View previous topic :: View next topic |
Author |
Message |
thiaguetz
Joined: 03 Feb 2004 Posts: 12 Location: Brazil
|
HOLTEK (HT6026 Encoder) + PIC |
Posted: Tue May 18, 2004 2:18 pm |
|
|
hi,
I am building a little circuit that control my home garage gate and my office gate using PIC.
But the decoder, on the gate system, use the Holtek HT6026 encoder as the emitter of the open and close signal.
So, the question is... the control, that comes with the garage kit, use two types of logic.. (zero or open)... when there is no jumper on the logic pin, the encoder send as "open".. but when there is a jumper on tem logic pin, the signal is zero (ground).
The point is... i can emulate the ground sigal using a PNP transistor... to switch the logic... BUT, how can i simulate a "open" logic pin?
For reference, the HT6026 datasheet http://www.holtek.com.tw/pdf/consumer/6026.pdf
thanks! |
|
|
rnielsen
Joined: 23 Sep 2003 Posts: 852 Location: Utah
|
|
Posted: Tue May 18, 2004 3:29 pm |
|
|
How about output_float()?
From the CCS help file: Sets the specified pin to the input mode. This will allow the pin to float high to represent a high on an open collector type of connection.
Ronald |
|
|
thiaguetz
Joined: 03 Feb 2004 Posts: 12 Location: Brazil
|
|
Posted: Thu May 20, 2004 8:53 am |
|
|
Thanks dood!
I will test it.
thanks! |
|
|
|