Hello,

I spend some bad hours trying to make 2 pics communicate via i2C with 16F1503 as slave and 18F4523 as master. It was a nightmare until I found the following information:
http://www.microchip.com/forums/tm.a...ge=&print=true

There are some registers with bad addresses in bank4 in files 16F1503.def et 16F1503.ppi (see datasheet pf 16F1503):

Please correct def file with:
$define _WPUA 524
$define _SSP1BUF 529
$define _SSPBUF 529
$define _SSP1ADD 530
$define _SSPADD 530
$define _SSP1MSK 531
$define _SSPMSK 531
$define _SSP1STAT 532
$define _SSPSTAT 532
$define _SSP1CON1 533
$define _SSPCON 533
$define _SSPCON1 533
$define _SSP1CON2 534
$define _SSPCON2 534
$define _SSP1CON3 535
$define _SSPCON3 535

and ppi file with:
WPUA EQU 0X020C
SSP1BUF EQU 0X0211
SSPBUF EQU 0X0211
SSP1ADD EQU 0X0212
SSPADD EQU 0X0212
SSP1MSK EQU 0X0213
SSPMSK EQU 0X0213
SSP1STAT EQU 0X0214
SSPSTAT EQU 0X0214
SSP1CON1 EQU 0X0215
SSPCON EQU 0X0215
SSPCON1 EQU 0X0215
SSP1CON2 EQU 0X0216
SSPCON2 EQU 0X0216
SSP1CON3 EQU 0X0217
SSPCON3 EQU 0X0217

by the way I wonder why the adresses of registers are duplicated in these 2 files?
Best regards

Francis