Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[PIC] need help in HEF 4094 programing

Status
Not open for further replies.

Mzz Amin

Newbie level 5
Joined
Mar 18, 2014
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
86
Hello everyone ,
I'm using pic16f877, programing it with mikro_C. In order to extand my I/O pins i've used HEF4094 in my isis disgn ( it was not a choice i have to) so could some one help with a code example to manipulate the HEF4094 because i would know which output is activated in each time .
 

It is a 8-bit serial in parallel out shift register. You have to clock in 8 bits that has to appear at the o/p of HEF4094 and then apply strobe. After strobe is applied the data appears at output.

If 00000001 (data) is clocked and strobe applied (LSB sent first) then QP0-QP6 will be 0's and QP7 will be 1.

If you have connected LEDs to HEF's outputs then the data you send next time will change the state of all LEDs depending upon the new data. So, if you want to change the value of a particular pin then you have to keep a copy of previous data and then use it with AND and OR operation while sending next data byte.
 

Try this code. Modify it according to your needs.
 

Attachments

  • HEF4094.rar
    63.2 KB · Views: 89

thank u so much i will try it :)
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top