In SX Microcontrollers, SX/B Compiler and SX-Key Tool, keeloq wrote: FOR tmpB2 = 1 TO 12 ' send 12 bits IrAnode = IR_ENABLE ' activate IR LED IF tmpW3.0 = 1 THEN ' if 1 Delay MS_12 ' wait 1.2 ms ELSE ' otherwise Delay MS_06 ' wait 0.6 ms ENDIF IrAnode = IR_DISABLE ' deactivate IR LED Delay MS_06 tmpW3 = tmpW3 >> 1 ' get next bit NEXT Delay_MS 33 ' pad for ~45 frame time NEXT WHAT IS VALUE 12-BIT DATA TRANSMIT (dEVICE + COMMAND)? ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=194489#m194653 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)