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

56 questions
13
votes
5 answers

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 parity check. This means that my microcontroller…
Rocketmagnet
  • 26,933
  • 17
  • 92
  • 177
5
votes
3 answers

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 common baud rates used are: 9600 = up to 9600bps = 104uS per bit 2) So if I were to send…
xyf
  • 315
  • 1
  • 3
  • 12
3
votes
1 answer

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 keypad has: 8 pins that always have 3.2V (red…
mikabytes
  • 173
  • 1
  • 4
3
votes
3 answers

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 to illustrate my conundrum: Requirements and…
gbt
  • 671
  • 6
  • 17
3
votes
1 answer

Unused GPIO pins shall be configured as pull up or pull down

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 be followed to minimize current consumption or…
anandamu16
  • 65
  • 7
3
votes
1 answer

What is the difference between a Controller and Microcontroller?

I read, that I need to use a controller, if I want to communicate with a device over Input/Output Adressessing. It is sad, that I need 3 steps: Put the I/O-adress on the motherboard bus The hardware controllers are listening to that bus The…
Jorgos
  • 399
  • 1
  • 7
  • 15
2
votes
1 answer

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 documentation ESP32 documentation I'm trying to…
2
votes
3 answers

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 volatile tells the compiler not to care when or…
2
votes
1 answer

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 1) START 2) SLAVE ADDRESS+Write 3) SUBADDRESS (command byte to specify which register…
Taako
  • 388
  • 1
  • 3
  • 12
2
votes
3 answers

Groovy i2C/SPI peripherals for education?

I'm helping someone teach an embedded programming course at my university, and he's starting to cover i2C in class. SPI is next. We're trying to come up with a groovy, easy-to-interface, low-cost i2C/SPI peripheral that we could assign as a class…
Jay Carlson
  • 2,819
  • 1
  • 14
  • 21
2
votes
1 answer

Question about FTDI USB-to-Serial Evaluation board

The evaluation board I am talking about the FTDI EVAL232R evaluation board which can be found at the bottom of this page. It employs a FT232RL IC. What I want to do I would like to connect a USB joystick to the board´s USB port, then connect the…
pat3d3r
  • 125
  • 1
  • 1
  • 4
2
votes
1 answer

PIC's serial receive peripheral questions

I have a few questions regarding the PIC16F690's USART when doing asynchronous receives, and the user guide is sending me mixed signals. It has a two character FIFO buffer, and I'd like to know: What happens to the data in the FIFO buffer when I…
FrancoVS
  • 1,513
  • 14
  • 28
1
vote
3 answers

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, how can I know which parts do include…
Anas Malas
  • 866
  • 3
  • 20
1
vote
2 answers

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 thought it was pure-hardware (say I wanted to set some…
zombiesauce
  • 113
  • 4
1
vote
1 answer

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' signal, but when we are enabling IO/M' to…
1
2 3 4