PDA

View Full Version : SSPCON and 18F2431 Problem



ralfmayr
- 10th November 2008, 10:35
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

mister_e
- 10th November 2008, 16:48
which version of PBP and MPASM you have? Sometimes it's a MPASM problem...

mister_e
- 10th November 2008, 16:51
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 ? :o


ADRES EQU H'0FC3'
ADRESL EQU H'0FC3'
ADRESH EQU H'0FC4'
SSPCON EQU H'0FC6'
SSPSTAT EQU H'0FC7'
SSPADD EQU H'0FC8'

ralfmayr
- 11th November 2008, 08:20
Steve,
sure i saved it! The define is also present in the inc file.
I use PBP 2.508, MPASM is 5.20.

mister_e
- 11th November 2008, 16:19
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 :o