Phil.Wakeman
New member
Any help appreciated. I wish to send a serial character on a pin going high (once), and then another character on same pin going low (once). Needs to be in an interrupt structure with other serin and serout stuff happening.
I thought this should work: [14M2 chip, other code including ADC seems to be ok]
interrupt:
let b1 = pinC.2
serout C.4, T9600_8, (b1,cr,lf)
pause 5
on b1 gosub int0, int1
return
int0: setint %00000100, %00000100 ;if 0 set interrupt high
return
int1: setint %00000000, %00000100 ;if 1 set interrupt low
return
But doesn't.
Thanks Phil
I thought this should work: [14M2 chip, other code including ADC seems to be ok]
interrupt:
let b1 = pinC.2
serout C.4, T9600_8, (b1,cr,lf)
pause 5
on b1 gosub int0, int1
return
int0: setint %00000100, %00000100 ;if 0 set interrupt high
return
int1: setint %00000000, %00000100 ;if 1 set interrupt low
return
But doesn't.
Thanks Phil