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 CCS Technical Support

Need help for Cmos 4094

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



Joined: 11 Jun 2009
Posts: 1

View user's profile Send private message

Need help for Cmos 4094
PostPosted: Fri Jul 24, 2009 5:56 am     Reply with quote

Hi All,

i am facing a new problem. i am using 4094 shift registor. i had read data sheet. i want to know how it works? how to enable particular out pin and low all other. any one how can send me code example.
Thanks

Regards
aaa
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Fri Jul 24, 2009 8:34 am     Reply with quote

The 4094 is a very, very, old chip and not recommended for new designs. Better use the 74H595. CCS supplies a driver for this chip, see PICC/Drivers/74595.c

More info http://www.ccsinfo.com/forum/viewtopic.php?t=22789
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Fri Jul 24, 2009 9:41 am     Reply with quote

btw If your doing something high current ,ie relays or LEDs, I have been using a TPIC6C595 with the 74HC595 driver for a while now.
Great for turning on relays.
http://focus.ti.com/lit/ds/symlink/tpic6c595.pdf

as for code
Code:

...snip...
#define EXP_OUT_CLOCK   PIN_A3
#define EXP_OUT_DO      PIN_A4  //open collector, need a pull-up
#define EXP_OUT_ENABLE  PIN_A5
#define NUMBER_OF_74595 1
#include <74595.C>
...snip...
int8 tmp;
tmp=0b00000100;
write_expanded_outputs(&tmp);//write_expanded_outputs destroys the variable, use a tmp
Guest








PostPosted: Fri Jul 24, 2009 11:00 am     Reply with quote

Thanks for yours reply friends. I am not operating relay. I am operating 7 segment lcd using 4094, 4514 and 4056.

regads
aaa
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