32 Bit NEC IR Constants/Variables
Interested in suggestions for best dealing with 32 Bit values as used with NEC IR codes. How best would a collection of IR commands of these be stored and used? (VolUp, VolDn, ChUp, ChDn, etc.) (Each 32 Bits) As Constants or as Variables? Using the Long version of the compiler? 2-16 Bit Words linked/associated together? In regards to sending data, what would the best way of clocking/shifting these out be? One way would be a For/Next Loop of 0-15 for the low word, then do again for the high word. (OutBufferHI.0 and OutBufferLO.0)
Re: 32 Bit NEC IR Constants/Variables
Oops...Asked too fast.
Looks like it's 2 address bytes followed by 2 command bytes.
Each 2nd byte is an inverted copy of the first.
No longs required and the Address versus Command are different animals.
Re: 32 Bit NEC IR Constants/Variables
NEC IR Protocol documentation
Example PIC Code
Re: 32 Bit NEC IR Constants/Variables
Dave,
Thanks very much for the info.
Very informative website you have there.
Jay Zebryk