Hi,
I thought about that. I removed the hardware serial defines at the start of the program, and the problem remains.
Or is there another way to disable HW serial?
Btw I tried the same with a 16F877 and also there the same issue exists.
Try this;
You should get this;Code:DEFINE HSER_BAUD 9600 Main: HSEROUT ["HSER",13,10] PAUSE 500 SEROUT2 PORTC.6,84,["WITH RCSTA.7=1",13,10] PAUSE 500 RCSTA.7=0 SEROUT2 PORTC.6,84,["WITH RCSTA.7=0",13,10] PAUSE 500 RCSTA.7=1 GOTO Main
HSER
WITH RCSTA.7=0
HSER
WITH RCSTA.7=0
With RCSTA.7 set the USART takes over these pins.
Bookmarks