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
Posted: Tue Feb 22, 2005 6:04 am
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...).
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