Menu

A guide on how microcontrollers work
📰

A guide on how microcontrollers work

Adafruit Industries – Makers, hackers, artists, designers and engineers!·Anne Barela·9 days ago
#KLU38Stx
#adafruit#hackster#parts#runs#memory
Reading 0:00
15s threshold

electroniclovers has posted a tutorial on Hackster that walks through what’s inside a microcontroller and how the parts work together. It covers the three core blocks: the CPU that runs the instructions, the memory that holds the code and the variables, and the I/O peripherals that connect the chip to switches, sensors, relays, motors and displays.

Memory is split into non-volatile ROM for the compiled program and volatile RAM for data that changes while the program runs. The guide follows the path firmware takes: the binary is compiled on a PC, flashed into ROM with a programmer, and then read back instruction by instruction when the chip boots. The CPU does all the math, updates RAM and toggles pins to do things like light an LED.

Timing comes from a system clock, either an internal RC oscillator or an external crystal with two 22pF capacitors.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.