Hi,
I found code for N2Het serial communicationin here. when ı look at the code, I think that reduce this code.but I am not sure. so I want to ask to you.
it is original :(in forum)
SCITX CNT { next= Lm10, reg = T, max= 12, irq = OFF,data=0}
Lm10 BR { next= SCIRX, cond_addr= Lm11, event = ZERO}
Lm11 DJZ { next=SendOverINT,cond_addr=SCIRX,reg=A,irq=OFF,data=0}; set to number of bit to transfer
SendOverINT CNT { reg=A,irq=ON,max=9,data=0};
Lm12 SHFT { next=SCIRX,smode=OR0,prv=OFF,cond_addr=SCIRX,cond=UNC,pin=TX1_PIN,reg=A,irq=OFF,data=0x0};
Can I do one instructions for sent data, using SHFT instructions.
SCITX CNT { next= Lm10, reg = T, max= 12, irq = OFF,data=0}
Lm10 BR { next= SCIRX, cond_addr= Lm11, event = ZERO}
Lm12 SHFT { next=SCIRX,smode=OR1,prv=OFF,cond_addr=SCIRX,cond=UNC,pin=TX1_PIN,reg=A,irq=On,data=0x0};
Firstly : Shft irq = open
Secondly smode = OR1
My data format (1 bit stop + 8 bit data + 1 bit start)
can I do as this ?