hi!
I have been trying to get the usart in an 16f877 to work now for a couple of day«s now.
There is no problem to load a byte. It«s when I am sending it, it keeps sending and sending though I just loaded it once and are not using a loop.
 
Is there a way off turning off the transmit?
Should I have to disable the transmit?
 
When I load data in to the TXREG it should be sent right away, but it does«ent.
I wrote somthing like this:
 
;init baudrate and so on.
 
movlw   b'11001100'
bcf        STATUS, 5
movwf   0x19
return
 
this pease of code should just send the code once.
If someone can help me with this problem I can send you the complite code to look at.
(there are not to many lines).
 
Thanks
/nabil