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.

how to write a coding for cd4017 in pic c?

Status
Not open for further replies.

suvaraj

Member level 2
Member level 2
Joined
Dec 24, 2010
Messages
50
Helped
4
Reputation
8
Reaction score
4
Trophy points
1,298
Location
erode
Activity points
1,580
hi to all i'm using pic 16f84a for led moving&blinking one by one using cd 4017.but i can,t create a clock AND reset signal from pic.pls help me for create clock signal and reset signal in program.
cd-4017-_pinout.JPG

thank u
 

hi

cd4017 is a decimal counter, use any output of pic write a time delay loop and use that as clock for cd4017, if you wish use a switch to pause the clock.

you do not have to use the reset pin unless implementing divide by less than 10.

if not using reset pin tie it to ground also tie the clock enable to ground.
 
That seems counter productive, why not just move the LED directly with the 16F84?

If you must do it this way, connect the clock and reset pins to PIC port pins and write '1' to the pin to make it logic high and write '0' to make it logic low. Doing that once on the reset pin will set the counter to Q0 and each time you do it on the clock pin it will advance to the next 'Q' output.

Brian.
 
Hi,

If you simply want to drive 4017, use 555 timer as clock generator
KNIGHT RIDER Circuit

Or if you want to play with PIC and use it as a clock generator; Use your programing language to configure a pin as an output, then repeatedly out 1 and 0 with some delay (say 500ms).

You can also connect rest line to an output pin of the PIC. Initialize that as Low, then when you need to reset pull it up High.

Thanks

---------- Post added at 23:25 ---------- Previous post was at 23:23 ----------

Please note clock inhibit line should be low.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top