Data Out From External Clock


Closed Thread
Results 1 to 3 of 3
  1. #1
    Quin's Avatar
    Quin Guest

    Lightbulb Data Out From External Clock

    To save me from re-inventing the wheel....

    I need to clock out 17 bits (two words + one bit) serially on the falling edge of an external clock signal. The clock signal comes as bursts of seventeen pulses approx 10uS width every 5 mS or so. In between the clock line is high.

    This means it's got to be pretty fast.

    I intend to use Darrel Taylor's (excellent) interrupt routine to get to the handling routine but need something that's quick and lean to get the data out at that speed.

    Project will probably use an 18F 40 pin PIC so 40MHz is available.

    Any ideas ?

  2. #2
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by Quin View Post
    To save me from re-inventing the wheel....
    I would think it can be done using a PIC and some crafty interrupts. 10us is enough for about 100 instruction cycles on a PIC18 running at 40Mhz.
    I would think it would be done a easier using 3 8-bit PISO (parallel in, serial out) shift registers (2 using all 8 bits, the 3rd using only one bit). Load them up one at a time using PortD (or whatever) and let the hardware handle all of the clocking, but keep track of the idle time so you know when you can reload them.

  3. #3
    Quin's Avatar
    Quin Guest

    Default

    Thanks for that.

    External shift reisters is the way that mk1 is done. It's OK but I'm trying to get the chip count down to just the PIC if I can.

Similar Threads

  1. Using Nokia LCD
    By BobP in forum mel PIC BASIC Pro
    Replies: 300
    Last Post: - 3rd May 2018, 04:47
  2. Nokia 3310 display text
    By chai98a in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 26th August 2007, 03:39
  3. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 02:21
  4. LCD + bar graph
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 5th October 2005, 14:50
  5. Sinus calculating !
    By Don Mario in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 28th November 2004, 23:56

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