As the title says... Chat on...

User avatar
By j0hncc
#14415 Would it be possible/suitable to use the gpio triggering to decode pulses of 200/400/600 microseconds?

e.g. trigger handler pseudocode:
Code: Select all  pwidth = now - last
  If pwidth > 500
      STATE= header
  else if  pwidth  < 300 (microseconds)
      bits[bitno++] = 1
  else ( pwidth is between 300 and 500 )
      bits[bitno++] = 0
  If bitno >= 76
      STATE = done


Thanks!
John

Sorry for crosspost but I realized it might be more suitable question for here...