PDA

View Full Version : SSPCON registers not being recognized on 18F2550



Ryan7777
- 30th January 2016, 02:58
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

richard
- 30th January 2016, 03:35
trying to use the SSPCON registers

would you actually mean SSPCON1 the chip has no SSPCON reg

HenrikOlsson
- 30th January 2016, 20:41
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.