SSPCON registers not being recognized on 18F2550


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2006
    Location
    Indiana, USA
    Posts
    72

    Default SSPCON registers not being recognized on 18F2550

    I'm using PBP3 (MPLAB 8.9) with a 18F2550 and trying to use the SSPCON registers to set it up for hardware SPI. I get bad data type error. Is SSPCON not supported on this chip?

    I've also tried it with 2.60C and no luck there.

    Any help is appreciated

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,386


    Did you find this post helpful? Yes | No

    Default Re: SSPCON registers not being recognized on 18F2550

    trying to use the SSPCON registers
    would you actually mean SSPCON1 the chip has no SSPCON reg

  3. #3
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,520


    Did you find this post helpful? Yes | No

    Default Re: SSPCON registers not being recognized on 18F2550

    Richard is spot on. The 2550 have two MSSP modules so there are two SSPCON registers.
    I've found that sometimes MeLabs have aliased the SSPCON to SSPCON1 so code written for devices with one MSSP module would still work on devices with two but apparently not so on this device.
    As always, when i doubt read the datasheet and by all means look at the .PBPINC files where all the registers that PBP is made aware of is being declared.

    /Henrik.

Similar Threads

  1. statment not recognized
    By xvladx in forum General
    Replies: 4
    Last Post: - 10th April 2010, 14:07
  2. device not recognized
    By Hylan in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 21st November 2009, 17:21
  3. 18F4431 SSPCON.5 syntax error
    By AndrewC in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 22nd March 2009, 11:17
  4. SSPCON and 18F2431 Problem
    By ralfmayr in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 11th November 2008, 16:19
  5. Replies: 3
    Last Post: - 22nd January 2008, 03:48

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