Microcontroller register level programming for the ATmega2560
This nutshell gives two C code examples based on a structure diagram on how to configure and use the USART for transmitting and receiving data. The two C code examples are for a remote car loking system for both the remote key transmitter and car receiver locking system. The C programs are designed using state diagrams. The nutshell gives a step-by-step guide on how to set up the registers and the program design
Keywords
AVR, ATmega, ATmega2560, Atmel, Microchip, microcontroller programming, microcontroller register level programming. universal synchronous, asynchronous receiver transmitter, USART, data register UDRn, control and status registers UCSRnA/B/C, baud rate registers UBBRnH/nL, state diagrams
Chapters
00:00 introduction
00:20 transmitter problem description
01:29 transmitter pseudo code and structure diagram
02:29 transmitter C code and register set up
06:20 receiver problem description
07:23 receiver pseudo code and structure diagram
08:54 receiver C code and register set up
14:19 transmitter and receiver running on the megaPro board
コメント