|
|
I use printf, and nothing comes out. |
| You need to initialize the UART. For example,
UART_TRANSMIT_ON(); UBRR = BAUD9600;
Initializes the UART to 9600 baud and turns the transmitter on. These macros are defined in the file avr.h (the baudrate is for a 4MHz clock). It is best to use the Application Builder to generate peripheral initialization code.
| |
| [Append to This Answer] |
| Previous: |
|
| Next: |
|
| ||||||||