![]() ![]() Sometimes it is necessary to write some test code to really understand how some peripherals work.Īt some point, the design needs to move to a PCB if you’re planning on mass producing your design. Thus, diagrams and text often go hand-in-hand in datasheets. The "SYNC" block seems self-explanatory but will probably require the developer to read the accompanying text in detail to fully appreciate its function. Some, such as the prescaler and postscaler, are self-explanatory. While you may recognize the D flip-flop on the right-hand side connected to the output pin, many of the blocks in the diagram are little more than squares. Interrupt signals. (Source: Microchip Technology) The block diagram for TIMER0 shows it has a range of clock sources,Īnd can even generate an output signal in addition to internal As we saw previously with the STATUS register, the cause of the previous reset can be determined in some cases. Here there is little control offered on this device, with essentially all interrupt sources being a potential reset signal (as marked in green). ![]() Marked in orange, we can see that a range of reset mechanisms, such as power-on detection and brown-out, are linked to the microcontroller’s supply pin. One of these is the RESET instruction, two come from the stack under- and overflow, while others are linked with the "Watchdog Timer." This is in addition to a range of other internal sources. In this example from page 100, we can see that two pins (marked as squares containing a cross, left-hand side) can generate resets. Like the clock, it will only need configuring once (if there are any configuration options provided), but it will save a lot of trouble later if you have a good understanding of what can cause a reset. If the clock peripheral is the most important part of a microcontroller, the implementation of the reset circuitry is the second most important block. Here we provide more block diagram examples and investigate where you can find the rest of the required documentation. In the previous parts of this series about microcontroller documentation, we covered register functionality and took a look at the clock block diagram. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |