Clock Out Signal


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Dec 2005
    Posts
    1,073

    Default

    MELabs has sample programs on their website for both PBP and PB.There's one for ShiftIn/ShiftOut with PicBasic.

  2. #2
    Join Date
    Apr 2007
    Location
    UK
    Posts
    5

    Default Thanks

    Thanks Dave and SKIMASK for your help. Things that may seem obvious once you know they are there are not easy to find without a little help.

    I had already looked at shift.bas but wast not sure if shiftout was the correct method to start with.

    Will there be much of an overhead using the shift.bas Shiftout function over the SHIFTOUT function in PBP?

  3. #3
    Join Date
    Dec 2005
    Posts
    1,073

    Default

    Quote Originally Posted by KeithH View Post
    Will there be much of an overhead using the shift.bas Shiftout function over the SHIFTOUT function in PBP?
    I've never tried to compare them in this way but my guess would be that PBP is slightly more efficient. However, this is a pretty simple operation so I doubt there's a huge difference. The real question is whether it, along with your other code, fits in the memory available.

  4. #4
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by KeithH View Post
    I had already looked at shift.bas but wast not sure if shiftout was the correct method to start with.
    Will there be much of an overhead using the shift.bas Shiftout function over the SHIFTOUT function in PBP?
    I'd be willing to bet that the compiled SHIFTOUT command looks very similar to the shift.bas program, from a functional standpoint anyways (probably won't have the same labels, jumps, etc., but the flow would be almost identical).
    As far as overhead goes, yes, there's overhead. 'cause when you're doing the shiftout, that's all your doing, is shifting out. You can't do anything else (unless you've got interrupts going for you).

  5. #5
    Join Date
    Apr 2007
    Location
    UK
    Posts
    5

    Smile All working now

    I've managed to get the shift.bas working with the PIC16F84A sending a binary count to a 74HC4094 Shift register.

    I've had to do this with five wires: Ground, Vcc(5V), Strobe, Clock and Data. I have set the Output Enable permanetly on so I do not need it wired.
    It is a shame I need so many wires but there we go, I only needed three wires to make two pics communicate.

    I have placed LEDs on the Shift register's Parallel out pins along with a current limiting 680R resistor on each pin.

    I am intending to create a chain of 30 or more shift registers so don't want to loose too much power over the whole chain.

    I am not too hot on the electical side of this so for me this will be trial and error. I can't really say exactly what I am trying to make except to say it will have a lot of LEDs on a chain of shift registers, all spaced about an inch apart and wired together, i.e. not on the same PCB. So there is a lot of room for leakage and noise etc.

    Is it a good idea to use the Resistors or should I look for a register/LED combination that draws the least power per LED?

    Also it would make it easier to build if I didn't need the 210+ resistors.

    Any suggestions would be appreciated.

    Thanks.

  6. #6
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by KeithH View Post
    I have placed LEDs on the Shift register's Parallel out pins along with a current limiting 680R resistor on each pin. I am intending to create a chain of 30 or more shift registers so don't want to loose too much power over the whole chain. I am not too hot on the electical side of this so for me this will be trial and error. I can't really say exactly what I am trying to make except to say it will have a lot of LEDs on a chain of shift registers, all spaced about an inch apart and wired together, i.e. not on the same PCB. So there is a lot of room for leakage and noise etc. Is it a good idea to use the Resistors or should I look for a register/LED combination that draws the least power per LED? Also it would make it easier to build if I didn't need the 210+ resistors. Any suggestions would be appreciated.

    Thanks.
    Since your LEDs are individually controllable, you're probably going to need one resistor per LED, unless you find LEDs with resistors built in. If you don't, you might end up burning up '4094's over time. Maybe there's another version of the '4094' out there that can handle the current your LEDs require.

Similar Threads

  1. EM4095 Chip, get Clock and Data signals?
    By mindthomas in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 19th August 2008, 06:27
  2. PIC16F684 + LCD to use the 256bytes of EEPROM - HELP
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 7th March 2008, 14:19
  3. After Shiftout where is the clock signal???
    By makson in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 31st August 2007, 18:27
  4. Help with sound command in 2 programs
    By hyperboarder in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2007, 20:36
  5. Wiring for a clock signal
    By champion in forum General
    Replies: 2
    Last Post: - 15th January 2007, 22:15

Members who have read this thread : 0

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