Author |
Message |
Topic: long help |
croc4
Replies: 1
Views: 4167
|
Forum: General CCS C Discussion Posted: Wed Nov 08, 2006 12:10 pm Subject: long help |
I am trying to set up a counter that will count greater than 255, everything I have tried has failed. I have defined my variable as
long timer_delay
this should be a 16bit number correct?, so I do ... |
Topic: transfering data to LCD via I2C |
croc4
Replies: 4
Views: 10546
|
Forum: General CCS C Discussion Posted: Fri Mar 17, 2006 2:11 pm Subject: Thank you!!! |
Thanks, the printf, did the trick. I didn't know you could do that, I have a lot to learn.
Thanks again,
Croc4 |
Topic: transfering data to LCD via I2C |
croc4
Replies: 4
Views: 10546
|
Forum: General CCS C Discussion Posted: Fri Mar 17, 2006 1:32 pm Subject: transfering data to LCD via I2C |
I have a project that I'm stuck on. I have a pic (16F628A) that I am using as a I2C master, I'm bit banging the protocol. I also have a ADC connected to the pic. The goal is to read the ADC and then d ... |
Topic: delay problem |
croc4
Replies: 7
Views: 9275
|
Forum: General CCS C Discussion Posted: Fri Sep 16, 2005 9:37 am Subject: Check your clock freq |
you may have an issue with your osc freq and the way you declare your delay (#USE delay(xxxxxx)), if this number is different from the actual osc speed I have seen it skew the delay_us/ms commands qui ... |
Topic: Output pin interferes with other pin??????? |
croc4
Replies: 5
Views: 7408
|
Forum: General CCS C Discussion Posted: Thu Sep 15, 2005 10:51 pm Subject: Check your setup_xxxx options |
I had the same problem until I turned off the analog ports
// Turn off the ADC
setup_adc_ports(NO_ANALOGS);
try this and see if things get better |
Topic: Does version 3.203 support HW I2C for 16F88? |
croc4
Replies: 7
Views: 8393
|
Forum: General CCS C Discussion Posted: Tue Sep 06, 2005 9:51 pm Subject: Does version 3.203 support HW I2C for 16F88? |
found the problem, brain fart!!!!! I was using 7 bit addressing and not eight, duh!
I set the device up as addr 0x52, and sending in 0xA4 (which translates to 0x52 on the bus), once I set it to 0xA ... |
Topic: Does version 3.203 support HW I2C for 16F88? |
croc4
Replies: 7
Views: 8393
|
Forum: General CCS C Discussion Posted: Sat Sep 03, 2005 12:25 pm Subject: Does version 3.203 support HW I2C for 16F88? |
thanks for that thread, but I'm not using the setup_spi() routine, so that can't be it, well it seems that the tools that I am using should support HW I2C so maybe I have mad a bone head mistake, I'll ... |
Topic: Does version 3.203 support HW I2C for 16F88? |
croc4
Replies: 7
Views: 8393
|
Forum: General CCS C Discussion Posted: Fri Sep 02, 2005 8:31 pm Subject: Does version 3.203 support HW I2C for 16F88? |
Just checked it and it was marked as "true" for I2C slave.... |
Topic: Does version 3.203 support HW I2C for 16F88? |
croc4
Replies: 7
Views: 8393
|
Forum: General CCS C Discussion Posted: Fri Sep 02, 2005 7:32 pm Subject: Does version 3.203 support HW I2C for 16F88? |
I have PCWH I believe (no near my dev system at the moment), I can't point to a part of the code that is failing, I don't think that it even gets that far. Here is how I understand it, and I could be ... |
Topic: Does version 3.203 support HW I2C for 16F88? |
croc4
Replies: 7
Views: 8393
|
Forum: General CCS C Discussion Posted: Fri Sep 02, 2005 5:33 pm Subject: Does version 3.203 support HW I2C for 16F88? |
anybody know, I don't want to upgrade if I don't have to and at the moment
my code for talking to a slave 16F88 is not working, the slave is not acking the address, pretty basic problem I know, but ... |
|