Line 16... |
Line 16... |
16 |
#FUSES BORV40 //Brownout reset at 4.0V |
16 |
#FUSES BORV40 //Brownout reset at 4.0V |
17 |
|
17 |
|
18 |
#use delay(clock=20000000) |
18 |
#use delay(clock=20000000) |
19 |
#use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8,errors) |
19 |
#use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8,errors) |
20 |
|
20 |
|
21 |
//NOTE: Must declare MASTER before SLAVE, i2c_isr_state() returns 0 |
- |
|
22 |
// when MASTER is the most recent #use i2c |
- |
|
23 |
//#use i2c(MASTER, sda=PIN_C1, scl=PIN_C0, stream=I2CM) |
- |
|
24 |
#use i2c(SLAVE, Fast, sda=PIN_C4, scl=PIN_C3, force_hw, address=0xA0) |
- |
|
25 |
|
21 |
|