Microcontroller register level programming for the ATmega2560
This nutshell gives two C code examples of how to configure the USART for transmitting and receiving data. The first uses a structure diagram for the code design and configures the USART for no parity, 8 data bits, 1 stop bit, and a baud rate of 9600. The second code uses a state diagram for its design and configures the USART for even parity, 5 data bits, 2 stop bits and a baud rate of 150. The nutshell gives a step-by-step guide in how to set up the registers
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
Chapters
00:00 Introduction
00:33 structure diagram and code
02:13 explanation of the register settings
07:26 loading the code into the megaPro board
08:08 state diagram and code
0954 explanation of the register settings
12:11 loading the code into the megaPro board
コメント