Allegro A6280 with PICBASIC


Closed Thread
Results 1 to 26 of 26

Hybrid View

  1. #1
    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.

  2. #2
    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

  3. #3
    Join Date
    Jan 2009
    Posts
    4

    Default

    I was just curious if it was possible or not. I'll have to play with the examples above and see what I can get out of it. I've never used the CCP module, but I like the idea of not having to rely on any external clock sources.

  4. #4
    Join Date
    Jan 2009
    Posts
    4

    Default

    Ok, I got around to trying the example in this thread. I had to change a piece or two because I'm using a PIC12F683. The main changes were to change TRISB to use TRISIO (since there is only one GPx PORT), and of course the SHIFTOUT command to use the correct pins on that port as well.

    I'm getting no results, and it doesn't seem that the CCP module is working correctly. Is there a way I can test this individually?

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