??? 03/08/04 16:55 Read: times |
#66264 - RE: I think this should be okay Responding to: ???'s previous message |
Deepak Kash wrote:
------------------------------- I am pretty confident I am there I think you are not, (neither am I...;-)) but I don't know why my hardware is not able to send data out with this program,the simulation is okay What do you mean by "the simulation is okay"? SERIAL: JNB TI,$ CLR TI cjne r0,#42h,next mov r0,#40h sjmp out next:inc r0 out:mov sbuf,@r0 RETI what is the purpose of the above statements? Can you explain what you are trying to do? What happens if you enter your ISR and the TI-bit is not set? What happens if R0 does not contain 42H? What happens if R0 does contain 42H? As I said: Take a blank sheet of paper and start from scratch, Get your idea's organised, and start with either a high-level pseudo-code or a decent flow-chart. By the way: all comments from "serpat_explanation.htm" should be in your source-code... not in a separate document. regards Patrick |