r/microcontrollers • u/carbon-network • Dec 12 '25
Which components inside a µController are responsible for turning Register-operations into peripheral-actions?
I want to fully understand what goes on inside a µController. I do already understand what Peripherals there are and their specific functions. I'm also familiar with writing code, that configures and controls those peripherals. However I don't understand what internal steps the CPU or other Hardware has to take, in order to get from for example writing to an UART-Register, to the action, the UART-Controller does (e.g. sending a Byte).
What Hardware is responsible for "mediating" between CPU-instructions and Peripheral? Im assuming its all Hardware doing the actual Job, of register-writing, UART-configuration etc.
I would greatly appreciate sources, videos or documents explaining that to a beginner/ intermediate.
View all comments
Show parent comment
1
u/FreddyFerdiland Dec 12 '25 edited Dec 12 '25
there are extra control lines ..many lines..
say for a plain old fashioned eeprom chip..
/ALE means the address lines are stable , the chip then stores a copy to decode internally... /WR means the data is stable,time for tge write action to haplen /DIR set to read means the rom chip has control and put data on the data lines..
this is the crudest set...its much more complicated in practice but the details aren't educational.
these actions are not done as a single atomic step... a microcontroller may well have to multiplex address and data lines to the eeprom . ie the first cycles send the address out, then the data ... and even a ram setup with individual address and data lines still needs the /ale signal on time, because its internal decoding of the address takes significant time... you don't just set the address , and get the data instantly... first set the address,then wait for the logic gates to settle, and then the data is available...