Author |
Message |
Topic: Help with IF statement?????? |
armondo_522
Replies: 13
Views: 14437
|
Forum: General CCS C Discussion Posted: Mon Nov 01, 2010 7:03 am Subject: Thanks. |
Thanks to everyone who responded. I changed all the float arrays to INT16 and the program is now working. I can't explain why the floats didn't work, but I will not use floats unless absolutely necess ... |
Topic: Help with IF statement?????? |
armondo_522
Replies: 13
Views: 14437
|
Forum: General CCS C Discussion Posted: Sun Oct 31, 2010 7:27 am Subject: Help with IF statement?????? |
Thanks FVM,
The only thing not shown, is the loading of the array, which comes from an A/D capture routine. The float #'s are more like 1.336464784 etc. The other puzzling part is that it works per ... |
Topic: Help with IF statement?????? |
armondo_522
Replies: 13
Views: 14437
|
Forum: General CCS C Discussion Posted: Fri Oct 29, 2010 2:04 pm Subject: Help with IF statement?????? |
DSPIC30F6015.
Works great except for this bug.. |
Topic: Help with IF statement?????? |
armondo_522
Replies: 13
Views: 14437
|
Forum: General CCS C Discussion Posted: Fri Oct 29, 2010 1:46 pm Subject: Help with IF statement?????? |
Thanks,
I was thinking of trying that. It will mean changing quite a bit of code coming out of AD routine, Which I change to volts so other functions can massage the data in volts..
Regards, |
Topic: old code broken in new compiler version: PIC18F2550 CPUDIV1 |
armondo_522
Replies: 2
Views: 5414
|
Forum: General CCS C Discussion Posted: Fri Oct 29, 2010 1:42 pm Subject: old code broken in new compiler version: PIC18F2550 CPUDIV1 |
I have never gotten anything after 4.087 to work on existing code. |
Topic: Help with IF statement?????? |
armondo_522
Replies: 13
Views: 14437
|
Forum: General CCS C Discussion Posted: Fri Oct 29, 2010 1:19 pm Subject: Help with IF statement?????? |
Thank you for the response.
It is correct, I can only get it to work when I hard code in
IF(1.6>1.3) this works every time. Its only when I pass variables to the IF statement it doesnt work. I ... |
Topic: Help with IF statement?????? |
armondo_522
Replies: 13
Views: 14437
|
Forum: General CCS C Discussion Posted: Fri Oct 29, 2010 10:01 am Subject: Help with IF statement?????? |
Hello,
I am using Ver 4.114 of the PCD compiler. I am trying to make a simple IF compare statement. Basically, I take an A/D sample and put it in an Float array. I then want to compare that element t ... |
Topic: Question on waking up from sleep (ULPWU) |
armondo_522
Replies: 8
Views: 14845
|
Forum: General CCS C Discussion Posted: Sun Mar 21, 2010 3:56 pm Subject: thanks |
Thank you, I think my biggest problem was that I enabled the global interupt and that brought me to the isr instead of the statement after sleep, but I will try your method to give me a work around in ... |
Topic: Question on waking up from sleep (ULPWU) |
armondo_522
Replies: 8
Views: 14845
|
Forum: General CCS C Discussion Posted: Sat Mar 20, 2010 9:51 am Subject: Question on waking up from sleep (ULPWU) |
Hi,
I am using a PIC16F886. I want to use the ULPWU function. I would like the pic to wake up periodically or by an external interrupt. The ULPWU interrupt works but when it wakes up it goes to the U ... |
|