View previous topic :: View next topic |
Author |
Message |
aaa
Joined: 11 Jun 2009 Posts: 1
|
Need help for Cmos 4094 |
Posted: Fri Jul 24, 2009 5:56 am |
|
|
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
|
|
Posted: Fri Jul 24, 2009 8:34 am |
|
|
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
|
|
Posted: Fri Jul 24, 2009 9:41 am |
|
|
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
|
|
Posted: Fri Jul 24, 2009 11:00 am |
|
|
Thanks for yours reply friends. I am not operating relay. I am operating 7 segment lcd using 4094, 4514 and 4056.
regads
aaa |
|
|
|