4017 counter and pic


Closed Thread
Results 1 to 2 of 2
  1. #1
    xnihilo's Avatar
    xnihilo Guest

    Smile 4017 counter and pic

    hi,

    i'd like to switch between 10 outputs using a 4017 decade counter.
    let's say i'm using 10 leds which anode is linked to one of the 10 outputs.
    i have to connect vdd an vss, obviously, then the clock pin to a pin of my pic, the clock enable to another pic pin and the carryout to the clock pin of another 4017 if desired, right?

    If i understood well the datasheet, by default, output 0 will be on. to switch to next outout i have to input a positive voltage to clock pin AND bring clock enable pin low, is this right?
    even if i put a positive voltage on clock pin, it wont switch to next output, right?
    Last thing, the switch to next output happens only on the rising edge of the clock pin, right?

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Maybe not 0 as default, but for sure 0 after a reset. Look at the Functional Truth Table (page 2 of the following PDF).
    http://www.onsemi.com/pub_link/Colla...MC14017B-D.PDF

    Clock Enable can be connected to Vss all the time, so the output will shift at each clock rising edge.

    What i would do is to connect Reset and Clock on the PIC, and Clock enable to Vss.

    Check PDF page 3, Output Drive current... not a good idea to use this chip as is to drive LEDs... maybe you have high efficiency ones? Spec might be different from brand to brand though... worth a look.
    Last edited by mister_e; - 28th May 2008 at 15:14.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. assembly in Pic
    By lerameur in forum Off Topic
    Replies: 11
    Last Post: - 1st May 2008, 20:06
  2. 20 Digit Virtual LED Counter
    By T.Jackson in forum Code Examples
    Replies: 9
    Last Post: - 19th November 2007, 05:02
  3. How to set TMRO & TMR3 as Counter?.
    By NatureTech in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 18th May 2007, 08:52
  4. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  5. Frequency Counter using PIC and PicBasic
    By PICtron in forum mel PIC BASIC Pro
    Replies: 31
    Last Post: - 28th January 2005, 06:20

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts