My simple thinking lead me to this version ditching the big array:
And then came your masterpiece of coding with TMR1...! Amazing!Code:index=0 pulsetrain: 'now collect 66 pulses ~800/400 ìsec pulsin portb.0,1,temp1 if temp1<55 then main if temp1>170 then main if temp1<130 then code.0[index]=1 else code.0[index]=0 endif index=index+1 if index<66 then pulsetrain
It just needs to be reversed (the code array) I guess. No big deal.
Thanks,
Ioannis
Bookmarks