Author |
Message |
Topic: whats so wrong with my i2c communication code |
gurhalil
Replies: 6
Views: 7248
|
Forum: General CCS C Discussion Posted: Thu Jul 23, 2009 5:48 am Subject: whats so wrong with my i2c communication code |
Well, the rest of the code is irrelevant. Just the idea is that master must transmit the key value that ranges between specific values. It works fine with the Proteus simulator and again works fine wi ... |
Topic: whats so wrong with my i2c communication code |
gurhalil
Replies: 6
Views: 7248
|
Forum: General CCS C Discussion Posted: Thu Jul 23, 2009 5:12 am Subject: whats so wrong with my i2c communication code |
NEVER enable the global interrupt flag inside an interrupt handler!!!
If you do this and another interrupt is waiting to be handled the hardware will immediately execute the interrupt dispatcher aga ... |
Topic: whats so wrong with my i2c communication code |
gurhalil
Replies: 6
Views: 7248
|
Forum: General CCS C Discussion Posted: Thu Jul 23, 2009 4:18 am Subject: whats so wrong with my i2c communication code |
#include <16F876.h>
#device ADC=8
#fuses XT,NOWDT,NOPROTECT,NOLVP, PUT , BROWNOUT
#use delay(clock=4000000) //4 Mhz osilatör hızı
#use i2c(Master, sda=PIN_C4, scl=PI ... |
Topic: I2C MultiMaster Problem |
gurhalil
Replies: 1
Views: 2780
|
Forum: General CCS C Discussion Posted: Thu Jul 16, 2009 7:08 am Subject: I2C MultiMaster Problem |
Hello
I think the answer to my problem would be multimaster i2c but still I have to ask
I have a circuit which I use 2 16f876 as keypad pics ( this means I have two keypads and these 16fs deals with ... |
|