I have a Chinese equipment that outputs a custom serial data stream, consisting in a 7ms packet preamble, followed by 7 bit data packet where 0s are 650us LOW pulses, 1s are 1500us, and the HIGHs are 750us.
I managed decoding of this stream atm pretty OK using a blocking approach, i.e. pulsePin for time measurement.
Now a new requirement was added, decoding is no more enough, we need altering some bits and forward the new packet on another pin, so an interrupt based approach is imposed.
How far is the encoding I described above from decoded PPM used in RC systems?
Or, is any other project close to these specifications that I can use just by changing the timings, without re-coding everything from zero ?
Not so proficient with interrupts and timers handling, sorry
Thank you !
Custom one wire protocol decoding and forwarding
-
- Posts: 9708
- Joined: Thu Nov 26, 2015 4:08 am
Re: Custom one wire protocol decoding and forwarding
If any, look at the RMT peripheral; that should be able to handle all that for you in hardware.
Who is online
Users browsing this forum: No registered users and 47 guests