WOW !!! What fast and GREAT answer !!!
Thank YOU so much ! I will try this and post feed-back !
WOW !!! What fast and GREAT answer !!!
Thank YOU so much ! I will try this and post feed-back !
One little queries : In "SendIt:" which is the command to send (to portb.7) the data from ByteArray[n] (n=3;4;5) ? I miss something ? Thanks !
Hi,
Not sure I understand what you mean....
Send it iterates thru the bytearray bit by bit. For each bit it GOSUBS either One or Zero based on if the bit is 1 or 0. It's in the routines One and Zero that the actual port is written.
With that said, the code is untested so I may have missed something.
I understand...Thanks !
Next step : need confirmation if works correct (just VolumeUp & VolumeDn at this moment) !
In attach : code and Proteus simulation.
Please, take a look at this two pictures ..."original" vs. testing ...
In "our" case, after commander begins ("an 8ms pulse at +5V and then 4.5ms at 0V"), we have 11101011110...instead 1101011111 ...![]()
Last edited by fratello; - 1st February 2012 at 14:35.
Bookmarks