CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

HOLTEK (HT6026 Encoder) + PIC

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
thiaguetz



Joined: 03 Feb 2004
Posts: 12
Location: Brazil

View user's profile Send private message

HOLTEK (HT6026 Encoder) + PIC
PostPosted: Tue May 18, 2004 2:18 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Tue May 18, 2004 3:29 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Thu May 20, 2004 8:53 am     Reply with quote

Thanks dood!

I will test it.

thanks!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group