CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

AUSART problem ?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
imanjla
Guest







AUSART problem ?
PostPosted: Mon Feb 21, 2005 8:49 am     Reply with quote

Hi..I work on 16f877A about a year . and i dont know that it has AUSART for serial communication or USART . but in the device.h file i mean (16f877A.h) we have this :


Code:

////////////////////////////////////////////////////////////////// UART
// Constants used in setup_uart() are:
// FALSE - Turn UART off
// TRUE  - Turn UART on
#define UART_ADDRESS 2
#define UART_DATA    4
// TRUE  - Turn UART on




I cant undrestand the {setup_uart()} function and aslo its relation with

UART_ADDRESS and UART_DATA ? Can I use this with the chips that support AUSART?

Im so thankful if anybody help me through this ......


Ttelmah
Guest







PostPosted: Tue Feb 22, 2005 6:04 am     Reply with quote

There are some details in the current manual (get this from the website). The UART_ADDRESS instauction, only applies to chips with the EUART module, and allows the chip to automatically sit 'looking' for a byte with the 9th bit set to mark an address. The 16F877A does not have this ability, but the definitions have been added to a lot of the compiler .h files, presumably to allow code for the more sophisticated chips to actually compile (but not to work...).

Best Wishes
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group