fixed the comments
This commit is contained in:
parent
42b5801a03
commit
e1c8a11ba1
1 changed files with 6 additions and 6 deletions
|
|
@ -2,17 +2,17 @@
|
|||
// Defines
|
||||
/*******************************************************************/
|
||||
//******* usart_init
|
||||
// (FOSC/(4 x Baud rate)) -1 BRGH=1 BRG16=1
|
||||
// (FOSC/(16 x Baud rate)) -1 (BRGH=1 BRG16=0) or (BRGH=0 BRG16=1) - High speed
|
||||
// (FOSC/(64 x Baud rate)) -1 BRGH=0 BRG16=0 - Low speed
|
||||
// (FOSC/(4 x BAUD_RATE))-1 BRGH=1 BRG16=1
|
||||
// (FOSC/(16 x BAUD_RATE))-1 (BRGH=1 BRG16=0) or (BRGH=0 BRG16=1) - High speed
|
||||
// (FOSC/(64 x BAUD_RATE))-1 BRGH=0 BRG16=0 - Low speed
|
||||
//******* usart_init_auto
|
||||
// BRG16=0 BRGH=0 => FOSC/512
|
||||
// BRG16=0 BRGH=1 => FOSC/128
|
||||
// BRG16=1 BRGH=0 => FOSC/128
|
||||
// BRG16=1 BRGH=1 => FOSC/32
|
||||
#define BAUD_RATE 0x0196 //0x0065 // 4800
|
||||
#define BAUD_BRGH 1
|
||||
#define BAUD_BRG16 1
|
||||
#define BAUD_RATE 0x0196 //0x0065 // 4800
|
||||
#define BAUD_BRGH 1
|
||||
#define BAUD_BRG16 1
|
||||
|
||||
#define TX_LED portb.4
|
||||
#define RX_LED portb.4
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue