Author |
Message |
Topic: MSP430 MASTER - PIC 16F876A SLAVE |
stelios1988
Replies: 17
Views: 24185
|
Forum: General CCS C Discussion Posted: Fri Jan 14, 2011 5:47 pm Subject: MSP430 MASTER - PIC 16F876A SLAVE |
Nothing on that Ttelmah? |
Topic: MSP430 MASTER - PIC 16F876A SLAVE |
stelios1988
Replies: 17
Views: 24185
|
Forum: General CCS C Discussion Posted: Fri Jan 14, 2011 9:14 am Subject: MSP430 MASTER - PIC 16F876A SLAVE |
That worked, the #INT_SSP works but after a lot of time. I have a timer that sends I2C address and data every 1 second and it takes time for the interrupt to happen. I've tried 1.8K , 2.4K and 10K res ... |
Topic: MSP430 MASTER - PIC 16F876A SLAVE |
stelios1988
Replies: 17
Views: 24185
|
Forum: General CCS C Discussion Posted: Thu Jan 13, 2011 4:32 pm Subject: MSP430 MASTER - PIC 16F876A SLAVE |
The MSP430 sends this. But why I can't see an interrupt happening? Every command I add to #INT_SSP doesn't get executed.
What's the reason that INT_SSP doesn't work even though with the same connect ... |
Topic: MSP430 MASTER - PIC 16F876A SLAVE |
stelios1988
Replies: 17
Views: 24185
|
Forum: General CCS C Discussion Posted: Thu Jan 13, 2011 3:13 pm Subject: MSP430 MASTER - PIC 16F876A SLAVE |
async command void HplI2C.setTransmitMode() { I2CTCTL |= I2CTRX; }
async command void HplI2C.setSlaveAddress( uint16_t addr ) { I2CSA = addr; }
async command vo ... |
Topic: MSP430 MASTER - PIC 16F876A SLAVE |
stelios1988
Replies: 17
Views: 24185
|
Forum: General CCS C Discussion Posted: Thu Jan 13, 2011 2:53 pm Subject: MSP430 MASTER - PIC 16F876A SLAVE |
typedef struct {
241 unsigned int i2cstt: 1; // I2CSTT Bit 0 START bit. (0=No action; 1=Send START condition)
242 unsigned int i2cstp: 1; // I2CSTP Bit 1 STOP bit. (0= ... |
Topic: MSP430 MASTER - PIC 16F876A SLAVE |
stelios1988
Replies: 17
Views: 24185
|
Forum: General CCS C Discussion Posted: Thu Jan 13, 2011 2:13 pm Subject: MSP430 MASTER - PIC 16F876A SLAVE |
It's written in a different programming language called nesC in tinyOS environment.
This program is written in high-level, I don't use the low-level programming of the MSP430. I've used this site htt ... |
Topic: MSP430 MASTER - PIC 16F876A SLAVE |
stelios1988
Replies: 17
Views: 24185
|
Forum: General CCS C Discussion Posted: Thu Jan 13, 2011 9:55 am Subject: MSP430 MASTER - PIC 16F876A SLAVE |
Well, I bought 1K8 and 2.2K resistors. Tried again, fixed the code as you see above and I would like to mention some things, if you can help me.
I've tested the PIC as master on the PCF 8574 and it w ... |
Topic: MSP430 MASTER - PIC 16F876A SLAVE |
stelios1988
Replies: 17
Views: 24185
|
Forum: General CCS C Discussion Posted: Wed Jan 12, 2011 8:16 am Subject: MSP430 MASTER - PIC 16F876A SLAVE |
do you think there is a problem in the code? or the code is fine?
and something else, what about the address? i can use whatever address i want? on the slave mode? |
Topic: MSP430 MASTER - PIC 16F876A SLAVE |
stelios1988
Replies: 17
Views: 24185
|
Forum: General CCS C Discussion Posted: Wed Jan 12, 2011 7:49 am Subject: MSP430 MASTER - PIC 16F876A SLAVE |
i have 10k resistors on SDA and SCK with 3.3V.
The pins C3 and C4 are connected. |
Topic: MSP430 MASTER - PIC 16F876A SLAVE |
stelios1988
Replies: 17
Views: 24185
|
Forum: General CCS C Discussion Posted: Wed Jan 12, 2011 6:37 am Subject: MSP430 MASTER - PIC 16F876A SLAVE |
Hello again guys. New post because its another subject.
I have a TelosB mote (functioning with the MSP430 microprocessor) and successfully drive leds with the PCF8574 IC with I2C.(all this with tin ... |
Topic: Moway pic16f876a with telosb mote |
stelios1988
Replies: 4
Views: 7017
|
Forum: General CCS C Discussion Posted: Mon Jan 10, 2011 12:00 pm Subject: Moway pic16f876a with telosb mote |
The pic16f876a has only 2 SDA/SCK output pins. So the option I have is to share the pins for slave/master mode. Can I do that?
Stelios |
Topic: Moway pic16f876a with telosb mote |
stelios1988
Replies: 4
Views: 7017
|
Forum: General CCS C Discussion Posted: Mon Jan 10, 2011 10:24 am Subject: Moway pic16f876a with telosb mote |
Thanks for the fast reply.
So I must learn how to use the #use i2c correctly and this can be done? |
Topic: Moway pic16f876a with telosb mote |
stelios1988
Replies: 4
Views: 7017
|
Forum: General CCS C Discussion Posted: Mon Jan 10, 2011 8:55 am Subject: Moway pic16f876a with telosb mote |
Hello guys. First post in here. For educational purpose I must connect a wireless sensor mote with the moway robot that works with pic16f876a. The mote has msp430 microprocessor. The moway robot conne ... |
|