Author |
Message |
Topic: PWM period incorrect, pulse width correct |
dima2882
Replies: 0
Views: 3034
|
Forum: General CCS C Discussion Posted: Tue Mar 23, 2010 1:32 am Subject: PWM period incorrect, pulse width correct |
Hi all,
I am using a PIC24F04KA200 with 4.104. I successfully generate a PWM with pulse width (duty cycle) and period as programmed. However this only works until a period of ~16.4ms. Faster than t ... |
Topic: PCD: Problem calling functions inside infinite loop |
dima2882
Replies: 5
Views: 6848
|
Forum: General CCS C Discussion Posted: Mon Mar 22, 2010 6:34 pm Subject: PCD: Problem calling functions inside infinite loop |
Reinstalled the compiler... Everything worked the way it is written in the listing of my original post. I guess something in Windows went to hell :( |
Topic: PCD: Problem calling functions inside infinite loop |
dima2882
Replies: 5
Views: 6848
|
Forum: General CCS C Discussion Posted: Mon Mar 22, 2010 1:06 pm Subject: PCD: Problem calling functions inside infinite loop |
Do I need a #use standard_io statement for the port I want to use? That's now the way I changed it. Going to go try it now... |
Topic: PCD: Problem calling functions inside infinite loop |
dima2882
Replies: 5
Views: 6848
|
Forum: General CCS C Discussion Posted: Mon Mar 22, 2010 9:19 am Subject: PCD: Problem calling functions inside infinite loop |
Anybody? Bueller?
Plz, I really got to have this app working! |
Topic: PCD: Problem calling functions inside infinite loop |
dima2882
Replies: 5
Views: 6848
|
Forum: General CCS C Discussion Posted: Sun Mar 21, 2010 4:59 pm Subject: PCD: Problem calling functions inside infinite loop |
I'm hoping this is something silly, 'cause I'm stumped. I'm using 4.099, have the following test project:
#include <24F04KA200.h>
// Do some configuration
#fuses NOPROTECT, FRC, OSCIO, NO ... |
Topic: SPI for PIC24F04KA200 under 4.099 |
dima2882
Replies: 0
Views: 2939
|
Forum: General CCS C Discussion Posted: Sat Mar 20, 2010 5:18 pm Subject: SPI for PIC24F04KA200 under 4.099 |
Hi all,
I'm using the PIC24F04KA200 device and have the 4.099 compiler. setup_spi() broke during compile, which was odd - that had worked on other MCUs... Then I noticed that the header file for t ... |
Topic: Aviation Gray Code |
dima2882
Replies: 14
Views: 63203
|
Forum: General CCS C Discussion Posted: Sun Mar 11, 2007 10:16 am Subject: Aviation Gray Code |
Yes, I did. Refer to http://www.faqs.org/faqs/ai-faq/genetic/part6/ for more details. |
Topic: SPI communication b/w master-slave PICs |
dima2882
Replies: 4
Views: 55978
|
Forum: Code Library Posted: Fri Jul 21, 2006 6:39 am Subject: SPI communication b/w master-slave PICs |
Breno,
Your're right, F88_CS does indeed need to be declared. It is a variable equivalent to a pin on the F88 chip, of your choice. When I pasted the code in, I removed some lines that were applicati ... |
Topic: Aviation Gray Code |
dima2882
Replies: 14
Views: 63203
|
Forum: General CCS C Discussion Posted: Wed May 17, 2006 12:48 pm Subject: Aviation Gray Code |
Hi all,
I'm trying to create a system that interfaces to a digitizing altimeter and displays altitude information. As is the norm, my altimeter uses Gray code (aka Gilham code) as the output. However ... |
Topic: Highest speed possible with software I2C? |
dima2882
Replies: 6
Views: 9504
|
Forum: General CCS C Discussion Posted: Tue Apr 04, 2006 3:01 pm Subject: Highest speed possible with software I2C? |
Ahh, I see now. Well that clears things up. Thanks for your help guys. |
Topic: Highest speed possible with software I2C? |
dima2882
Replies: 6
Views: 9504
|
Forum: General CCS C Discussion Posted: Tue Apr 04, 2006 11:43 am Subject: Highest speed possible with software I2C? |
Of course not, I simply meant that the minimum the design would have needed is 200 kHz. It can go higher, but not lower, hence the full speed 400k I2C spec is the ticket. In any case, I got it on a br ... |
Topic: Highest speed possible with software I2C? |
dima2882
Replies: 6
Views: 9504
|
Forum: General CCS C Discussion Posted: Tue Apr 04, 2006 9:14 am Subject: Highest speed possible with software I2C? |
Sorry, I didn't put the clock of the PIC... its 40 MHz, thus allowing for the afore-mentioned 10 MHz SPI. I would really like to have a sampling rate of 200 kHz with the I2C sensor I'm using, so its h ... |
Topic: Highest speed possible with software I2C? |
dima2882
Replies: 6
Views: 9504
|
Forum: General CCS C Discussion Posted: Mon Apr 03, 2006 12:44 pm Subject: Highest speed possible with software I2C? |
Hello all,
I am stuck having to use SPI and I2C on the same PIC18F458 device. Based on info from previous postings, I am using 10MHz SPI using the dedicated hardware lines, and will use I2C on some o ... |
Topic: Creating a programmable current load |
dima2882
Replies: 7
Views: 10071
|
Forum: General CCS C Discussion Posted: Wed Jan 25, 2006 7:21 am Subject: Creating a programmable current load |
Yes, Doug's simulated resistor concept is exactly what I'm looking for. I will try to implement this in a 40 MHz PIC and external A/D, that should be fast enough. Thanks for all your help. |
Topic: Creating a programmable current load |
dima2882
Replies: 7
Views: 10071
|
Forum: General CCS C Discussion Posted: Tue Jan 24, 2006 10:34 am Subject: Creating a programmable current load |
I'm actually looking to sink quite a few amps. The DC-DC needs to be walked over its range of 0-7A. I'm a bad analog guy :( If anyone has more details, I'd love to know! |
|