Author |
Message |
Topic: i2c troubles - again |
erik006
Replies: 6
Views: 8290
|
Forum: General CCS C Discussion Posted: Mon May 12, 2008 12:53 pm Subject: Re: |
Mielsen, that's very possible, as the slave is using an internal osc (8Mhz), while the master was running at 12Mhz or more. Here are several things I tried.
-Using the 16F88 as the slave, everything ... |
Topic: i2c troubles - again |
erik006
Replies: 6
Views: 8290
|
Forum: General CCS C Discussion Posted: Thu May 08, 2008 7:25 pm Subject: Re: |
Good point,but I just didn't have a 20 mhz available. I did try the internal oscillator, an 8mhz crystal & a 12mhz crystal which had the same result. |
Topic: i2c troubles - again |
erik006
Replies: 6
Views: 8290
|
Forum: General CCS C Discussion Posted: Thu May 08, 2008 7:05 pm Subject: Re |
Good catch, PCM programmer, although that's not the problem. In trying to eliminate possibilities I tried a version without "SLAVE" although there's probably not much sense in that. It doesn ... |
Topic: i2c troubles - again |
erik006
Replies: 6
Views: 8290
|
Forum: General CCS C Discussion Posted: Thu May 08, 2008 5:50 pm Subject: i2c troubles - again |
I'm having i2c troubles again, with a very similar setup as last time.
Currently I'm using a 16F88 as the master device, and an 18F2431 as a slave device. Both running from the same supply. I have ... |
Topic: Driver For SHT75 Temperature & Humidity Sensor |
erik006
Replies: 33
Views: 300988
|
Forum: Code Library Posted: Sat Mar 08, 2008 1:06 pm Subject: If you're not getting correct data |
For future reference:
If you're not getting "proper" output, check that you have i2c resistors on the sht clock and data lines. |
Topic: I2C troubles - 2 PICs |
erik006
Replies: 4
Views: 8334
|
Forum: General CCS C Discussion Posted: Sun Mar 02, 2008 2:49 pm Subject: yeah... |
Thanks PCM programmer, that fixed it. Thanks for letting me know about the "ff" deal also, that'll definitely help me spot problems in the future.
Erik |
Topic: I2C troubles - 2 PICs |
erik006
Replies: 4
Views: 8334
|
Forum: General CCS C Discussion Posted: Sun Mar 02, 2008 8:09 am Subject: I2C troubles - 2 PICs |
Here's the master code:
#include <18f2431.h>
#fuses HS, NOWDT,NOPROTECT,NOLVP
#use delay(clock=8000000)
#use i2c(MASTER, SDA=PIN_C4, SCL=PIN_C5)
#use RS232(BAUD =57600, ... |
Topic: I2C troubles - 2 PICs |
erik006
Replies: 4
Views: 8334
|
Forum: General CCS C Discussion Posted: Sat Mar 01, 2008 11:02 pm Subject: I2C troubles - 2 PICs |
I'm trying to get two PICs the communicate over i2c. For now, I'm using 2 18F2431 PICs to test out the i2c routines.
The trouble is: it's just not working properly. Although at first, using the EX ... |
Topic: dspic30f2010 pwm question |
erik006
Replies: 3
Views: 5147
|
Forum: General CCS C Discussion Posted: Sun Jan 06, 2008 8:28 am Subject: dspic30f2010 pwm question |
I suppose you have tested that code with the dsPIC? I had tried it previously and it did not work for me.. no pwm output on any of the pins, & even though everything seems to be setup correctly, t ... |
Topic: dspic30f2010 pwm question |
erik006
Replies: 3
Views: 5147
|
Forum: General CCS C Discussion Posted: Sat Jan 05, 2008 6:33 pm Subject: dspic30f2010 pwm question |
Hello,
Has anyone gotten pwm support to work on this dsPIC? I can verify my chip is working, but pwm does not seem to work..
Erik |
|