Skip to main content

Questions tagged [peripheral]

an additional integrated circuit of a microcontroller or processor like a UART, SPI, RTC or any other block which can do something without always requiring the processing core to be active

Filter by
Sorted by
Tagged with
0 votes
1 answer
126 views

STM32 Can bus random data

I am using an STM32 to transmit data over CAN using CAN2. Currently, my code is only setting up the can peripheral and sending periodic messages. My messages usually look like this on the receiving ...
Daniel D.'s user avatar
1 vote
2 answers
60 views

How to consistently read two counter registers across PDEC and TCC on SAMD51

I am using the PDEC on a SAMD51 to read a quadrature encoder from a closed loop stepper motor which has 4000 encoder increments per rotation. The PDEC counter is only 16 bits wide, which would ...
Scott Duckworth's user avatar
0 votes
0 answers
39 views

How far down the OSI model does one have to go to reduce latency in wireless protocols

I'm curious about protocols used for low latency peripheral devices. The famous examples would be Logitech's lightspeed, Razer's hyperspeed and Corsair's Slipstream. The main selling point of which is ...
Materia Gravis's user avatar
0 votes
1 answer
131 views

How does data reach peripherals in STM32H7xx?

I'm trying to understand bus interconnection matrix in stm32h7xx. Here is a capture of the H753's one: In particular, I'm wondering how a data buffer located in DTCM would reach the SPI1's tx ...
Martel's user avatar
  • 1,259
2 votes
1 answer
92 views

How are register detail figures made for IP/peripheral documentation?

How are the register detail figures made for documentation of things like Xilinx/Vivado IP or in documentation for memory-mapped peripherals in microcontrollers like the examples below? Xilinx IP ...
Christopher Moore's user avatar
0 votes
1 answer
148 views

On Chip Peripheral Emulation - How to accomplish communication with an emulated peripheral that relies on bidirectional signals in between?

I recently asked some questions for an application in hope to gain more clarity on how to accomplish an emulation of an input device peripheral (in my case an input mouse) in simulation. Following ...
Vahe's user avatar
  • 171
0 votes
1 answer
100 views

How to find and enable fault input pins on AVR Timer/Counter-D (TCD)?

My application requires that my PWM outputs have an asynchronous and fast acting "fault" input that pulls the outputs low as soon as a fault is detected. AVR's "TCD" timer has ...
Anas Malas's user avatar
1 vote
3 answers
90 views

How to approach finding which micro controller include a specific sub-peripheral

Broadly: An application I am working on requires a specific function of a common peripheral. I know that this function is optional in a big family, but short of visiting every single SKU's datasheet, ...
Anas Malas's user avatar
0 votes
2 answers
617 views

Emulating microcontroller peripherals

When doing embedded MCU development, it's very helpful to emulate the MCU on a full PC, either via something like QEMU, or just directly targetting the PC in the compiler. What about the peripherals, ...
SRobertJames's user avatar
  • 1,118
0 votes
1 answer
81 views

SAM S70 Microcontroller - Need to use 2 functions on one pin

I need to connect a SAM S70 (ARM® Cortex®-M7 based microcontroller) to both a camera and an eMCC FLASH. The problem is that the PA27 pin has both MCDA3 and ISI_D7 as PIO Peripheral functions. How do ...
jmadsenee's user avatar
3 votes
1 answer
147 views

Replacing a keypad on DYMO LetraTag

I'm rebuilding my label printer to become an Internet service using an ESP8266. It's a fun project, never mind the usefulness. The keypad will be removed and instead my MCU emulates keypresses. The ...
mikabytes's user avatar
  • 181
1 vote
2 answers
124 views

Are peripherals in microcontrollers purely hardware or do they run code?

Specifically in Cortex-M4 (if that matters), when doing GPIO you need to write and/or read from GPIO's memory-mapped registers. Before diving deeper into library code that handled this for me, I ...
zombiesauce's user avatar
0 votes
0 answers
107 views

What mechanism prevents me from initializing multiple peripherals on the same GPIO pin?

Can I initialize multiple peripherals on the same GPIO pin? For example, if I bind a GPIO with a peripheral, can I still manipulate this pin with the GPIO interface? With pseudo-code: ...
gbt's user avatar
  • 713
1 vote
1 answer
339 views

Is the following 8085-based design I/O mapped or memory mapped?

The above picture is an 8085-based system schematic used for undergrad courses at the laboratory. Now at first sight it seems that the 8085 in the circuit is isolated mapped IO since it uses the IO/M' ...
Amir Soleimani's user avatar
0 votes
4 answers
204 views

How to determine which connectivity and peripherals are needed in a microcontroller?

This post goes a step beyond my previous question about microcontroller selection here. In short, I am a moving away from AVR for product development and I want to stick with popular manufacturer uC ...
Bryan A.'s user avatar
0 votes
2 answers
2k views

Explain Idle, Sleep, Stop and Standby modes of power consumption in a microcontroller with examples

It is given in a website that "In Idle Mode, the CPU and Flash are stopped. The rest of the chip continues to operate in this mode. If you do not need to execute code, but are taking a sensor ...
rdeep's user avatar
  • 17
0 votes
0 answers
233 views

How to control peripheral power supply from microcontroller

I need to be able to control the 5Vdc power supply for a DS18b20 sensor and a 0.96 oled display from a microcontroller that works at 3v3. I implemented this circuit, it correctly energizes the ...
Fernando's user avatar
-1 votes
1 answer
97 views

Efficient understanding of Hardware Software Interface in Embedded

I am a budding engineer in the embedded field. My work involves both the circuit design and software development of microcontrollers. So, I need to understand how the software is working on ...
CNA's user avatar
  • 673
-1 votes
1 answer
94 views

Connecting I/O peripherals to general purpose (evaluation kit) MCU

I'm new to electronics and am interested in playing around with an evaluation kit like this one. It looks like those pins sticking out of it are GPIO pins, but I can't find a picture that zooms in ...
hotmeatballsoup's user avatar
0 votes
3 answers
656 views

How to interface IO Link devices without any gateway/additional circuit

I am planning to use a distance sensing device like this distance sensor with a mini computer like the Raspberry Pi or the Jetson boards. I read that the interfacing requires additional gateway like ...
Pe Dro's user avatar
  • 151
0 votes
0 answers
70 views

Methods to ruggedise a USB3.0 type A port

I am developing a carrier board for a autonomous navigation robot. I need to change the USB 3.0 type A ports to ensure a reliable connection in a rough terrain. I am familiar with some methods as: ...
Pe Dro's user avatar
  • 151
1 vote
1 answer
325 views

Microcontroller Current Consumption when different internal and external clock modules are used simultaneously

I am using this Microcontroller - S32K142 64 pin. From the Figure 4 in this Application Note, We can see there are 4 clock sources for the Microcontroller. FIRC - 48MHz SIRC - 8MHz SOSC - 4-40MHz LPO -...
user avatar
0 votes
3 answers
413 views

What is the impact of unhandled exception on microcontroller peripherals?

I always assumed that when an unhandled ARM exception occurs (i.e segfault), the microcontroller just stops executing code. This assumption comes from debugging observation: most MCU I worked with ...
gbt's user avatar
  • 713
1 vote
0 answers
20 views

Host and device protection needed for designing for USB type 3.0 powered electronics?

I am designing a switch-mode variable power supply (that can boost) intended to run on USB type 3.0 (be powered by a PC/laptop USB port say). Being that I am quite naive to computer electronics I am ...
TG123's user avatar
  • 31
4 votes
3 answers
4k views

How to leverage CAN bus Mailboxes in my embedded systems?

I don't understand how to leverage CAN bus Mailboxes in my embedded systems. I think I don't use them properly because I don't understand the problem they are trying to solve. Here's a simple example ...
gbt's user avatar
  • 713
0 votes
0 answers
92 views

Atmel SAM3X / SAM3A, handle interrupts from Parallel Input/Output Controller (Peripherals)

I want to enable the PA8 pin in a processor (Atmel SAM3X / SAM3A). I have set: PIOA_MDER[7]=0 PIOA_MDDR[7]=0 PIO_OER[7]=0 PIO_ODR[7]=1 so that the tri-state ...
m0ss's user avatar
  • 113
8 votes
3 answers
19k views

How do you determine which baud rate to choose, its relation with MCU clock and oversampling at RX

1) How do you determine the baud rate that you want for your application while considering the clock of the MCU? Baud rate = number of bits / second. The most ...
xyf's user avatar
  • 345
1 vote
1 answer
59 views

How to identify a faulty peripheral before connecting to my Beaglebone microcontroller? Board damaged connecting to ADXL345

I was trying to connect ADXL345 via SPI interfacing to beaglebone black via a breadboard. The board was purchased a month back and was all good when connected to others like mpu6050. I suspect the ...
RajSanpui's user avatar
  • 111
0 votes
0 answers
104 views

MCU based I2C master receiver mode includes transmitter mode or not?

If I am programming an MCU I2C peripheral as a master of I2C bus that will be receiving data from other slaves on the bus. So I will set its direction as 'I2C_Receiver.' But since an I2C slave will ...
alt-rose's user avatar
  • 1,479
0 votes
2 answers
1k views

Memory-mapped IO vs Port-mapped IO in microcontrollers

I've been reading about external peripheral mapping to microcontrollers. I understand that memory-mapped IO means that the same address space in the microcontroller can be used for internal memory ...
Engineer999's user avatar
1 vote
2 answers
3k views

STM32F4 Discovery board only works in DEBUG mode

I generated my project with STMCUBEMX with CAN, SPI, I2C peripherals and did some coding on top of it. Code basicly polls the CANBUS, stores data to some IC over i2c and sends the processed data to ...
Dogus Ural's user avatar
1 vote
3 answers
602 views

Questions on STM32 multiple GPIO names

I started designing the development board for STM32F427VIT6 of LQFP100 package. Its has multiple USART and UART pins. The USART names in the datasheets are USART1, USART2, USART3, UART4, UART5, ...
Sourav Garnaik's user avatar
2 votes
3 answers
158 views

Does the addresses of an arbitrary peripheral register can be used to store data randomly during code execution?

I need to make sure of the concept of volatile qualifier in C-language. so volatile is used when we don't want the compiler to optimize the variable being identified as a volatile or in other words ...
ayman magdy's user avatar
0 votes
1 answer
129 views

Reading MLX90303 over SPI

I am trying to take readings from the Melexis Tri-axis Hall effect sensor MLX90393, but all I seem to get is garbage. I am reading the sensor over SPI, with a 1MHz clock. Here is an example of a ...
Rocketmagnet's user avatar
  • 27.5k
0 votes
1 answer
1k views

What is the 'H' in 'RWH' for register access type in mcu register map?

In the EFM32 Ref Manual, on pg 256, there are some registers in the timer peripheral's register map that have an access type of 'RWH'. I understand that R and W mean Read and Write, but what does H ...
BitShift's user avatar
  • 153
1 vote
3 answers
571 views

Which type of capacitor to use for matching the data sheet?

I want to choose decoupling capacitors for some microcontroller peripherals, which in their data sheets only specify some capacitans. Since you have quite a choice of passive components and the data ...
Paul Würtz's user avatar
2 votes
1 answer
2k views

STM32F446 I2C peripheral won't assert repeated start condition

I am writing some register level firmware for my STM32F446 to use the I2C peripheral to talk to an accelerometer. The sequence of events i need to do is as follows ...
Taako's user avatar
  • 388
1 vote
0 answers
453 views

SOC vs ARM Core

I am trying to understand the difference between SoC ( System on Chip ) and ARM Core. In the following post, I have read "The typical ARM processor in use today is integrated with peripherals on a ...
md.jamal's user avatar
  • 163
13 votes
5 answers
6k views

Why bother with even parity?

I am using an SPI peripheral in my application. The peripheral returns packets containing 15 data bits, plus an Even Parity bit for error detection. Therefore all zeros, and all ones both pass the ...
Rocketmagnet's user avatar
  • 27.5k
0 votes
2 answers
384 views

Microcontroller with and without debugging features?

Out of curiousity, are there any microcontrollers which are available with and without debugging capabilities? I'm asking because I assume that the debugger is not a simple 'peripheral' in terms of e....
JimmyB's user avatar
  • 3,863
1 vote
1 answer
913 views

ADC Interrupt usage

I'm using a dsPIC30F4011 in my project with XC16, and I'm currently programming its ADC. But my question is also general: Do I have to turn off and then back on the peripheral (ADC in this case) in ...
Iaka Noe's user avatar
  • 175
4 votes
1 answer
2k views

Unused GPIO pins shall be configured as pull up or pull down [closed]

I have recently started working on Embedded Systems. I am configuring GPIO pins for MCU. But I'm bit confuzed whether I should configure them pull up or pull down. Is there any configuration rule to ...
anandamu16's user avatar
-1 votes
2 answers
3k views

Meaning of USB 2.0 high-speed/full-speed device/host/OTG controller ...? [closed]

In the datasheets of many MCUs, following are said about USB. "USB 2.0 high-speed/full-speed device/host/OTG controller with dedicated DMA, on-chip full-speed PHY and ULPI" I wonder what do the ...
KHK's user avatar
  • 21
-1 votes
2 answers
6k views

UART speed limitation factors? [duplicate]

I want to ask about using UART to send data from uC to PC. So I have some questions. I wonder what is the maximum of the UART bit rate? What factors affect the UART speed? For example does using DMA ...
KHK's user avatar
  • 21
-3 votes
2 answers
3k views

Data transfer from Microcontroller to computer [closed]

I'm looking for a good link to data from Microcontroller to computer. I do not know what kind of communications is suitable for me. I need a link which has a bit rate more than 50 Mbit/sec. and also ...
KHK's user avatar
  • 21
0 votes
3 answers
116 views

Is my illustration of this configuration good enough? [closed]

I do a university project about hardware peripherals. I have little experience with it coming from a computer science background. The project is about connecting a peripheral to the serial UART RS-232 ...
Niklas Rosencrantz's user avatar
0 votes
1 answer
70 views

82c55 as 8 bit latches

I'm trying to make my 82C55 function as three sets of 8-bit latches where I can choose one of them by applying the appropriate logic to A0 and A1 and lowering the WR signal to apply the data from ...
user avatar
0 votes
1 answer
2k views

How to send ethernet frames with RJ45 on STM32F107 board? [closed]

How can I configure and initialize the ethernet connector (RJ45) and send/receive packets with the ethernet connector of the STM32F107 evaluation board (ARM Cortex-M3). I searched for tutorials, but I ...
user126623's user avatar
0 votes
2 answers
1k views

Sending a divided clock through a non-dedicated clock pin?

I'm moderately new to FPGA's, and right now I'm working on code to interface with a DAC. I'm using this PMOD DAC , and a Nexys 4 DDR fpga. Right now, I'm connecting them through the JB PMOD header. ...
qasddd's user avatar
  • 3
1 vote
2 answers
5k views

USB OTG with occasional charging

I'd like to use a mobile phone together with a barcode scanner as a poor-man's version of a computerised barcode scanner, something like this: http://www.thebarcodewarehouse.co.uk/pdas-and-handheld-...
user3210218's user avatar