|
Bluecontroller (BCA8-BTM)
Epsilon
Bluecontroller BCA8-BTM (bluetooth module BTM-222, microcontroller ATmega328P)
|
#include <avr/io.h>#include <avr/interrupt.h>

Go to the source code of this file.
Macros | |
| #define | MCU atmega328p |
| #define | F_CPU 8000000UL |
| #define | BAUD 19200 |
| #define | MYUBRR F_CPU/16/BAUD-1 |
| #define | UBRRH UBRR0H |
| #define | UBRRL UBRR0L |
| #define | UCSRA UCSR0A |
| #define | UCSRB UCSR0B |
| #define | UCSRC UCSR0C |
| #define | UDR UDR0 |
| #define | UDRE UDRE0 |
| #define | UPE UPE0 |
| #define | DOR DOR0 |
| #define | FE FE0 |
| #define | RXC RXC0 |
| #define | TXB8 TXB80 |
Functions | |
| void | uart_init (unsigned int ubrr) |
| UART Initialization. More... | |
| void | uart_putc (unsigned char data) |
| Send char. More... | |
Licence: CC BY 3.0 (http://creativecommons.org/licenses/by/3.0/)
Code: http://github.com/Xennis/Bluecontroller_BCA8_BTM
Documentation: http://xennis.org/wiki/Bluecontroller
| #define BAUD 19200 |
Baud rate (Bluecontroller)
| #define F_CPU 8000000UL |
FOSC / Clock Speed (ATmega328P)
| void uart_init | ( | unsigned int | ubrr | ) |
UART Initialization.
USART Initialization (datasheet page 178)
| void uart_putc | ( | unsigned char | data | ) |
Send char.
Sending Frames with 5 to 8 Data Bit (datasheet page 179)