SPI configuration PIC versus Atmel


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

    Default SPI configuration PIC versus Atmel

    Hello
    For a Atmel controller is this the configuration for the SPI to communicate to a lcd and it works very good.

    Using the buildt-in hardware-SPI interface of the ATMega, which is defined here:
    Config Spi = Hard , Interrupt = Off , Data Order = Msb , Master = Yes , Polarity = Low , Phase = 0 , Clockrate = 4 , Noss = 1
    Spiinit '''Initializing of the SPI interface
    Set Spsr.spi2x '''double the spi output speed

    But i'm a PIC controller and PBP Pro Fan and want to continue use it, but how can i configure the 18F452 or 18F4520 to use the hardware SPI like this Atmel
    SPI configuration, the experience that i have maked with the 18F452 was all unsucessful.

    Please help me

    Kind regards

    Pedro

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Pedro Santos View Post
    Hello
    For a Atmel controller is this the configuration for the SPI to communicate to a lcd and it works very good.
    Pedro
    You sure the LCD uses SPI and not just a plain ol' serial interface?

  3. #3
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

Similar Threads

  1. Presetting Configuration Fuses (PIC Defines) into your Program
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 82
    Last Post: - 15th December 2013, 09:54
  2. SPI Communication between two pic 16f877
    By anti83 in forum Serial
    Replies: 1
    Last Post: - 5th July 2008, 21:06
  3. 16-bit SPI problem
    By shaiqbashir in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th June 2008, 15:42
  4. pic to pic ir link versus wired link : help please anyone
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th May 2008, 21:01
  5. Pic Vrs Atmel speed
    By shawn in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th April 2008, 21:50

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