SSPCON and 18F2431 Problem


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2008
    Posts
    48

    Default SSPCON and 18F2431 Problem

    Hi,
    i am trying to use the SSPCON Reg. on a 2431, but the compiler tells me that its a bad data type. I saw the definition is missing in the "PIC18EXT.Bas" File.
    I added the "SSPCON VAR BYTE EXT" definition. But after that i get the error message "...Symbol not previously defined (SSPCON)" in pbppic18.lib.
    Can some one help?
    Regards,
    Ralf

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


    Did you find this post helpful? Yes | No

    Default

    which version of PBP and MPASM you have? Sometimes it's a MPASM problem...
    Steve

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

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


    Did you find this post helpful? Yes | No

    Default

    SSPCON VAR BYTE EXT worked for me directly in the code, also worked for me when modifying PIC18EXT.BAS file...maybe you just forgot to save the file after doing the modification, or SSPCON register definition is also missing in the MPASM file ?
    Quote Originally Posted by ... \MPASM Suite\P18F2431.INC
    ADRES EQU H'0FC3'
    ADRESL EQU H'0FC3'
    ADRESH EQU H'0FC4'
    SSPCON EQU H'0FC6'
    SSPSTAT EQU H'0FC7'
    SSPADD EQU H'0FC8'
    Last edited by mister_e; - 10th November 2008 at 17:00.
    Steve

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

  4. #4
    Join Date
    Nov 2008
    Posts
    48


    Did you find this post helpful? Yes | No

    Default

    Steve,
    sure i saved it! The define is also present in the inc file.
    I use PBP 2.508, MPASM is 5.20.

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


    Did you find this post helpful? Yes | No

    Default

    If you're using MicroCode Studio, make sure you manually direct MPASM folder to the default c:\program files\Microchip\Mpasm Suite

    Works a treat here
    Steve

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

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