2011-05-19, 15:06:50
(2011-05-18, 22:35:02)Mikael Gustafsson Wrote: Have you configured the rx and tx pins to be digital? See ANSEL register in the data sheet.
Well I hoped this would do that - but to no avail
#define USE_TXENABLE 1 ;xxx uncomment to use a tx enable pin
#ifdef USE_TXENABLE
#define TRISR_TXE TRISB ;xxx tris register containing tx enable
#define PORTR_TXE PORTB ;xxx port register containing tx enable
; #define TRISB_TXE TRISb2 ;xxx tris bit for tx enable
; #define PORTB_TXE Rb2 ;xxx port bit for tx enable
#define TRISB_TXE TRISB2 ;xxx tris bit for tx enable
#define PORTB_TXE RB2 ;xxx port bit for tx enable
#endif
Judging by the number of views this seems to be a popular topic.
What else can I do ?