fixed the comments

This commit is contained in:
Ziver Koc 2009-12-03 22:50:55 +00:00
parent 42b5801a03
commit e1c8a11ba1

View file

@ -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