I2C Slave with PIC24F16KA301/302/304
Posted: Sat Jan 13, 2018 10:02 am
Hello Matrix team,
I already describe in the 16bit area this following situation:
I need to fix a problem in replacing a 16 bit IO I2C with a controller.
The Master sends at 100 kHz without time-out:
chip-address + R/W -/- register-address -/- databyte
In this case, the pic24 has about 50us to receive and process the data.
The I2C component allows only 1 Byte to read and write to the slave.
An interrupt for I2C channel 1 or 2 could resolve the problem, but is not present
in the interrupt icon.
Trying himself was without succes, because the compiler stops with errors.
I´m working with I2C-Slave 1 + 2 and some sfr-keywords are missing.
Can you have a look to them and write a example for interrupt?
Best regards
Jörg
I already describe in the 16bit area this following situation:
I need to fix a problem in replacing a 16 bit IO I2C with a controller.
The Master sends at 100 kHz without time-out:
chip-address + R/W -/- register-address -/- databyte
In this case, the pic24 has about 50us to receive and process the data.
The I2C component allows only 1 Byte to read and write to the slave.
An interrupt for I2C channel 1 or 2 could resolve the problem, but is not present
in the interrupt icon.
Trying himself was without succes, because the compiler stops with errors.
I´m working with I2C-Slave 1 + 2 and some sfr-keywords are missing.
Can you have a look to them and write a example for interrupt?
Best regards
Jörg