??? 03/07/07 15:41 Modified: 03/07/07 15:50 Read: times |
#134503 - Oops its Erik not Eric (Proc: For Multiple Data) Responding to: ???'s previous message |
Well sir as you told it would be work on single data...
and for multiple data there is program pleas look at this SERIAL: PUSH ACC ;Push A JNB RB8,GET_DATA ;Jump if RB8=0 means data MOV A,SBUF ;Move the copy to Accumulator CJNE B,#001H,GO_ON ;Compare the Address if its equal to 001H then CLR SM2 ;Clear the SM2 to get the data RETI ;Return back from ISR GET_DATA: MOV A,SBUF ;Get the copy to Accumulator MOV B,A ;Save the A to B to main to see CJNE A,#010H,ANOTHER END_DATA: SETB SM2 ;Set the SM2 for agian for the Address ANOTER: POP ACC ;Pop A GO_ON: RETI ;Return back |