Author |
Message |
Topic: Connecting 16F877A to Wiimote using I2C |
Sodrohu
Replies: 7
Views: 8331
|
Forum: General CCS C Discussion Posted: Sat Sep 18, 2010 7:24 pm Subject: Connecting 16F877A to Wiimote using I2C |
Sorry for the long delay....
Anyway, I implemented the code as you asked me to. The result is still the same; the Wiimote does not register the uc's data.
The Wiimote sends handshake to the Nunc ... |
Topic: Connecting 16F877A to Wiimote using I2C |
Sodrohu
Replies: 7
Views: 8331
|
Forum: General CCS C Discussion Posted: Tue Sep 07, 2010 11:19 am Subject: Connecting 16F877A to Wiimote using I2C |
The code that I've updated is below there. The Connection is still not working.
#INT_SSP
void ssp_interupt ()
{
BYTE incoming, state;
state = i2c_isr_state();
... |
Topic: Connecting 16F877A to Wiimote using I2C |
Sodrohu
Replies: 7
Views: 8331
|
Forum: General CCS C Discussion Posted: Thu Sep 02, 2010 12:51 pm Subject: Connecting 16F877A to Wiimote using I2C |
For this part
if(state >= 0x80) // Master is requesting data from slave
{
index = state & 7; // Lower 3 bits of state = the index
i2c_write(buffer[index] ... |
Topic: Connecting 16F877A to Wiimote using I2C |
Sodrohu
Replies: 7
Views: 8331
|
Forum: General CCS C Discussion Posted: Wed Sep 01, 2010 11:59 am Subject: Connecting 16F877A to Wiimote using I2C |
So this is what I've done so far....
I've gone thru a similar topic posted here:
#use delay(clock=20000000)
#use i2c(Slave,Fast,sda=PIN_C4,scl=PIN_C3,address=0xA4)
void encr ... |
|