Allegro A6280 with PICBASIC


Closed Thread
Results 1 to 26 of 26

Hybrid View

  1. #1
    Join Date
    May 2008
    Location
    France
    Posts
    2

    Default multiple pixels

    Hello,

    I don't understand the principle of the shift register of the A6280. I need to control 20 RGB pixels separately. Is this principle work ? :

    1) Load RGB data of pixel 1
    2) Load RGB data of pixel 2
    ..) ...
    20) Load RGB data of pixel 20
    21) Latch
    22) Load RGB data of pixel 1
    ....

    Thank tou for your help

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959

    Default

    If pixel 1 is the LAST one in the string, then yes.
    Send the data for all pixels then latch it. All pixels update at the same time.

    DT

  3. #3
    Join Date
    May 2008
    Location
    France
    Posts
    2

    Thumbs up

    ok, thank you for this fast reply,
    A6280 is perfect for my application : (low resolution screen).

    I'm going to test it soon

  4. #4
    Join Date
    Jan 2009
    Posts
    4

    Default

    I know I'm coming in on this thread a little late, but I'm trying to control the A6280 as well. I'm using a PIC16F873a which has a SPI port. Supposedly it is very easy to use the SPI port because it handles the serial clocking of the data and such. I was wondering if someone could clarify something though. Does the SCK pin maintain a constant clock pulse. I believe how it's setup is to deliver OSC/4 to that.

  5. #5
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959

    Default

    Quote Originally Posted by Photovor View Post
    Does the SCK pin maintain a constant clock pulse.
    It Does NOT.

    It only puts out a CLK when data is being sent.
    The A6280 needs a CLK all the time though, not just when there's data.

    DT

  6. #6
    Join Date
    Jan 2009
    Posts
    4

    Default

    Thanks for the clarification. Is there a way to utilize the oscillator that is supplying the clock for the PIC to also supply the clock pulse for the A6280, and use the SPI functions as well? Or would SPI not work at all in this example? It's a shame that the A26281 just comes in a QFN package, considering it has its own internal PWM counter.

  7. #7
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959

    Default

    Quote Originally Posted by Photovor View Post
    ... Is there a way to utilize the oscillator that is supplying the clock for the PIC to also supply the clock pulse for the A6280, and use the SPI functions as well? ...
    It's possible, with external hardware, extra pins on the chip, and a great deal of thoughtful programming.

    But since you can use the CCP module in co-operation with SHIFTOUT commands on 2-3 PINs and no external hardware .... Why?

    DT

Similar Threads

  1. Picbasic VS C Compiler
    By koossa in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 11th October 2005, 21:44
  2. Replies: 22
    Last Post: - 12th July 2005, 17:39
  3. 1st 16F877A program in PICBasic
    By Borisw37 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 19th January 2005, 04:46
  4. PicBasic Fundamentals
    By Billyc in forum General
    Replies: 9
    Last Post: - 4th May 2004, 10:04
  5. PicBasic Pro & PicBasic syntax different
    By Billyc in forum General
    Replies: 5
    Last Post: - 16th April 2004, 21:19

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