You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use timer probably 8bit one is fine, to tick and just increment variables
Based on dataout pin level set dataoutPinLevel to 1 or 0 , in timer isr based on value of this var increment dataoutHighCount or dataoutLowCount variables.
Increment count variable for 50ms flag (seconds ticking)
Increment variable for counting between bytes or between packets
Also will be nice if sending out bits will be timed by this counter, so 50us is probably best, bit timing is currently 40us so 50us is fine, clk value should be stored in a variable( or we can read port bit, no?) And if we each tick simply invert it we have clock, then when this is low we can set dataline and leave timer isr, if next time timer isr is fired and we flip clock pin bit value ( so level) and it is high we simply did not change dataline pin bit value and leave isr.
The text was updated successfully, but these errors were encountered:
Use timer probably 8bit one is fine, to tick and just increment variables
Based on dataout pin level set dataoutPinLevel to 1 or 0 , in timer isr based on value of this var increment dataoutHighCount or dataoutLowCount variables.
Increment count variable for 50ms flag (seconds ticking)
Increment variable for counting between bytes or between packets
Also will be nice if sending out bits will be timed by this counter, so 50us is probably best, bit timing is currently 40us so 50us is fine, clk value should be stored in a variable( or we can read port bit, no?) And if we each tick simply invert it we have clock, then when this is low we can set dataline and leave timer isr, if next time timer isr is fired and we flip clock pin bit value ( so level) and it is high we simply did not change dataline pin bit value and leave isr.
The text was updated successfully, but these errors were encountered: