SPI comunication


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2006
    Posts
    60

    Default SPI comunication

    Hello All

    I use the Shifthout command

    Shiftout sdata , sclk ,MSBFIRST, [Lcd_out]

    to send bytes to a lcd, but i need more speed.
    If i use the spi pin of the pic to send the bytes can i get more speed?

    If yes, have anyone a example code how to send bytes with spi?

    Thanks in advance

    Regards

    Pedro

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    sure you'll get more speed. But is this really a must?

    Why not changing to a higher speed crystal instead?

    What kind of LCD are you using?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Aug 2006
    Posts
    65


    Did you find this post helpful? Yes | No

    Default

    You can write a very simple PBP routine to operate the clock, data, and strobe lines into your SPI device, and it will be much faster and will occupy less code space that the SHIFTOUT function. I did this a while back and it worked fine. Unfortunately I don't have the code in front of me or I'd post it.

    Joe

Similar Threads

  1. Using SPI with External Interrupts
    By shaiqbashir in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 29th June 2008, 04:08
  2. 16-bit SPI problem
    By shaiqbashir in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th June 2008, 15:42
  3. SPI Interfacing
    By toofastdave in forum Serial
    Replies: 8
    Last Post: - 18th November 2007, 11:15
  4. SPI configuration PIC versus Atmel
    By Pedro Santos in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th July 2007, 19:17
  5. How to configure SPI in PICBASIC PRO?
    By moogle in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 15th April 2007, 18:31

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