I'm wondering if anyone has a subroutine to decode a Holtek chip - I've spent a couple of hours on it and am more confused now than when I started!!! I've done a search on here and found several people saying that a pic can easily take place of a holtek decoder chip - but in my brain - not so easy.
I have a LINX ready made transmitter with 8 buttons and a 10 bit address, from what I can figure out it does this:
sync bits: 01010
address bits (if set to 1111100000):11111111110101010101
data bits (button 6 pressed): 0101010101000101
a zero is represented as 00
a one is represented as 11
and open circuit (button not pressed or address switch open) as 01
where a 0 is a 380uS pulse and a 1 is a 760uS pulse, i was trying to do it with pulsin to determine pulsewidth and convert it, I was going to try and bring it in as serial data and play with it then - but it figured out to me to be 770bps - given that I'd get 20 data pulses (for the address) in 26ms and PBP doesn't allow that as a valid speed.
The encoding chip is a holtek HT640 (apparently it's the same protocol as motorola use)
Any help would be greatly appreciated - cheers
Bookmarks