View previous topic :: View next topic |
Author |
Message |
Swys
Joined: 24 Feb 2010 Posts: 22
|
I2C Slave problem |
Posted: Mon May 24, 2010 4:14 am |
|
|
Hi all,
I am trying to let two PICs communicate with each other over I2C. I am using a PIC24F16KA102 as the slave and a PIC24HJ64GP504 as the master.
The first problem I ran into was with CCS not wanting to configure the slave as a slave, stating Bad Option: SLAVE. The master does work, however. I tested it with the FRAM I have on the board.
I then decided to implement the slave device myself. It seems that the slave address gets recognized by the slave address, but I am not sure how to let the slave send an ACK bit. According to the reference manual the slave module will automatically generate the ACK bit, but I am not seeing this at the master.
Any help will be appreciated |
|
 |
Swys
Joined: 24 Feb 2010 Posts: 22
|
|
Posted: Mon May 24, 2010 6:13 am |
|
|
O, and I am using version 4.107 of the PCD compiler |
|
 |
christian.koji
Joined: 12 May 2010 Posts: 16
|
|
 |
|