PDA

View Full Version : 32 Bit NEC IR Constants/Variables



Zebryk
- 18th July 2013, 20:39
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)

Zebryk
- 18th July 2013, 21:43
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.

dhouston
- 19th July 2013, 11:36
NEC IR Protocol (http://davehouston.org/Nec6121.pdf) documentation

Example PIC Code (http://davehouston.org/PIC-RX-TX.TXT)

Zebryk
- 23rd July 2013, 14:51
Dave,

Thanks very much for the info.
Very informative website you have there.

Jay Zebryk