From e1c8a11ba17d6742685d1aea2e1b50263aea6884 Mon Sep 17 00:00:00 2001 From: Ziver Koc Date: Thu, 3 Dec 2009 22:50:55 +0000 Subject: [PATCH] fixed the comments --- boostc/usart.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/boostc/usart.h b/boostc/usart.h index ed60c1e..8aa8673 100644 --- a/boostc/usart.h +++ b/boostc/usart.h @@ -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