imhereithink
New Member
Hi guys,
Another wee problem. Im using the 16F74 with three analogue inputs, these are connected to the A/D mux. The program sends out "AA" then A/D result then "BB" 2nd A/D result then "CC" 3rd A/D result through the TXREG.
What i am recieving on the comms tester is:
"AA RecordSeparator BB RecordSeparator CC RecordSeparator"
As you can see there is no data after the characters. The way i am moving the A/D result onto the Transmit register is as follows:
Test GO/Done, when set A/D is complete,
MOVLW ADRES
Check TXREG is empty
MOVWF TXREG
Is this the correct way to send the ADRES out onto TXREG? I have attached my asm file so you can have a chack at what i am doing and point me in the right direction
Thanks
Another wee problem. Im using the 16F74 with three analogue inputs, these are connected to the A/D mux. The program sends out "AA" then A/D result then "BB" 2nd A/D result then "CC" 3rd A/D result through the TXREG.
What i am recieving on the comms tester is:
"AA RecordSeparator BB RecordSeparator CC RecordSeparator"
As you can see there is no data after the characters. The way i am moving the A/D result onto the Transmit register is as follows:
Test GO/Done, when set A/D is complete,
MOVLW ADRES
Check TXREG is empty
MOVWF TXREG
Is this the correct way to send the ADRES out onto TXREG? I have attached my asm file so you can have a chack at what i am doing and point me in the right direction
Thanks
Attachments
Last edited: