Shop OBEX P1 Docs P2 Docs Learn Events
Create a Clock output pulse with the BS2 ? — Parallax Forums

Create a Clock output pulse with the BS2 ?

T&E EngineerT&E Engineer Posts: 1,396
edited 2005-12-05 12:32 in BASIC Stamp
I tried using the PULSOUT command and didn't see that it worked right. No mater what I changed the· pulse value too, it did not seem to make any difference.

(.ie PULSOUT 15, 50) (or PULSOUT 15, 5000) on a BS2 or BS2px.

Perhaps someone knows how to make a high speed strobing clock for a 4017 for LED's. I tried the Pulse Generator on the Professional Development board and it wasn't fast enough.

I am trying to clock into a 4017 IC to strobe across some LEDs for my message display sign I am working on.

Comments

  • Bruce BatesBruce Bates Posts: 3,045
    edited 2005-12-04 17:36
    tdg8934 -

    Presuming the problem is that the clock pulse is not being seen by the 4017, have you brought the clock enable input (pin 13) HIGH? If not, you need to do that first.

    I didn't look closely at the clock requirements, but you also may need to strobe it in a DO ... LOOP some finite number of times.

    Hope that helps.

    Regards,

    Bruce Bates
  • T&E EngineerT&E Engineer Posts: 1,396
    edited 2005-12-04 19:00
    I have used the 4017 many times and it does work with the Pulse Generator built into the Professional Development Board (PDB) but it only has a 1KHz max clock. I need a faster clock. I would like to know if it is possible to generate a clock pulse from the BS2 as the PULSOUT was not cycling through very slowly as a clock to the 4017.

    Ideas?

    Comments.

    Thanks,

    Timothy Gilmore
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2005-12-04 21:01
    ··Here I'm using P2 for the Pulse Output pin.· The OUTL = %00000100 makes P2 HI initially and, therefore, the PULSOUT goes to GND (0V).· If you change it to OUTL = %00000000, then the resulting PULSOUTs will be HI (5V).· I pull-up P2·via a 10K resistor (to VDD.)· The PAUSE is just a little extra delay, omit it.
    ·
    [size=2][code]
    Prelims:
       DIRS = $0F        'MSB INs, LSB OUTs -- P0=D, P1=CLK, P8=Btn, P2 = /MR
       OUTL = %00000100  'preset OUTs; P2=1; P1,0 = 0
       INH  = %00000000  'preset INs; button bit0, Term bit1
     
    Go1:
       PULSOUT 2,50        'hit /MR ( /RESET )
       PAUSE 10
       GOTO Go1
    
    


    [/code][/size]


    · Works for me, T.
  • T&E EngineerT&E Engineer Posts: 1,396
    edited 2005-12-05 12:32
    Thanks PJ.

    That worked with I brought the value of PULSOUT up higher and could see a noticible difference (.ie 50 to 50000).

    However, I have the problem solved using a different method. I appreciate all you assistance.

    Thanks again,

    Timothy Gilmore
Sign In or Register to comment.