20 bit data whith SHIFTOUT


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    Depends how your data is stored but there are several options

    shiftout DataPin, ClockPin,1,[myWord/16,myHalfbyte/4]

    shiftout DataPin, ClockPin,1,[mysystem/8,myDevice/4,myFunction/8]

    shiftout DataPin, ClockPin,1,[bit1/1,bit2/1,.....bit20/1]

    This is an example of how I shift a load of data to drive 64 LEDs

    shiftout DataPin, ClockPin,1,[$00,TwoDigits,FourDigits/16,TempZoneID,TempZoneSource,$00,$00]

    Hope that helps
    Keith

    www.diyha.co.uk
    www.kat5.tv

  2. #2
    Join Date
    Jan 2006
    Location
    Slovenia EU
    Posts
    32


    Did you find this post helpful? Yes | No

    Exclamation Clock is not synchronized

    Thank You Keith,

    I have now another problem;
    Clock and data is not synchronized. Clock pulse is 50% slowly. Must be clock seperated with data?
    Can you help me and write routine for this shift?
    I use PIC10F202 whith internal clock.

    please see attach file

    thanks, regards

    Samo
    Attached Images Attached Images  
    Last edited by Samoele; - 20th January 2006 at 13:08.

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 : 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