Clock Out Signal


Results 1 to 9 of 9

Threaded View

  1. #2
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by KeithH View Post
    My first dabble in PIC programming was to create a Serial circuit with multiple PIC16F84A chips. I chained the PICs together and sent the same Serial Out data to every chip. I was able to light up any LED on PortA of any slave chip from one driver PIC using serout/serin.

    I am now trying to send data to a bunch of 74HC4094 Shift registers instead.

    I have not written any code as yet as I am trying to work out which pins to connect. the only one I am not sure about is how I get a clock signal from the PIC16F84A chip to provide the CK clock for the shift register. I have heared mention of using RA3 which has a real time clock connection or RA6 as it is used for serial programming (of the PIC I think though) or do i connect to the ClockOUT OCS2 pin as this is being used by my 4Mhz crystal....

    Any ideas. Thanks in advance.
    If you use OSC2 as an output, you won't have any control over it. It'll just run and run and run whether or not you've got data to shift or not.
    Use SHIFTOUT. That way you can define both your clock and your data pin and have complete control over what they do, when they do it, and how they do it, and you can latch and enable the outputs with seperate pins on top of that. See the green book - section 5.76
    Last edited by skimask; - 27th April 2007 at 17:45.

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