Author |
Message |
Topic: Resolution of a speed controller |
incubi
Replies: 6
Views: 6501
|
Forum: General CCS C Discussion Posted: Sun Apr 27, 2008 4:31 pm Subject: Follow up |
Just to complete this, it turns out that umka's idea was both simple and worked with no side-effects that I have been able to find. The float math and divide by 29 caused a small delay in the scanning ... |
Topic: Resolution of a speed controller |
incubi
Replies: 6
Views: 6501
|
Forum: General CCS C Discussion Posted: Thu Apr 24, 2008 6:21 pm Subject: Resolution of a speed controller |
Thanks for the input that gives me some ideas to work with.
incubi |
Topic: Resolution of a speed controller |
incubi
Replies: 6
Views: 6501
|
Forum: General CCS C Discussion Posted: Thu Apr 24, 2008 2:08 pm Subject: Resolution of a speed controller |
Thanks for the input
Would there be any issue with floats or because its an int will it round ok?
I know Hi-Tech has issues with that not sure about CCS.
incubi |
Topic: Resolution of a speed controller |
incubi
Replies: 6
Views: 6501
|
Forum: General CCS C Discussion Posted: Thu Apr 24, 2008 1:20 pm Subject: Resolution of a speed controller |
Hi all,
I was wondering if someone has a good/simple way of doing this.
I have an AD running 0 - 255 range and I need to control a speed function with a range from 1 – 30 (no float number) so ... |
Topic: Delays stop working if ICD=TRUE is enabled on 18F4520 |
incubi
Replies: 5
Views: 6602
|
Forum: General CCS C Discussion Posted: Wed Apr 09, 2008 3:50 am Subject: Delays stop working if ICD=TRUE is enabled on 18F4520 |
Where was this kind of help back in the 90s when I was learning C
Thanks PCM programmer,
incubi |
Topic: Delays stop working if ICD=TRUE is enabled on 18F4520 |
incubi
Replies: 5
Views: 6602
|
Forum: General CCS C Discussion Posted: Tue Apr 08, 2008 10:19 pm Subject: Delays stop working if ICD=TRUE is enabled on 18F4520 |
PCM programmer
Would you happen to know why adding a var at the top/global would stop the interrupt from working? Example,
#include "main.h"
#int_RTCC
byte myvar;
void RTCC_isr ... |
Topic: Delays stop working if ICD=TRUE is enabled on 18F4520 |
incubi
Replies: 5
Views: 6602
|
Forum: General CCS C Discussion Posted: Tue Apr 08, 2008 9:22 pm Subject: Delays stop working if ICD=TRUE is enabled on 18F4520 |
Looks like that's it, man its always the little things
Thanks for the help
incubi |
Topic: Delays stop working if ICD=TRUE is enabled on 18F4520 |
incubi
Replies: 5
Views: 6602
|
Forum: General CCS C Discussion Posted: Tue Apr 08, 2008 7:40 pm Subject: Delays stop working if ICD=TRUE is enabled on 18F4520 |
Hello,
Does anyone know what would cause a Delay_Ms to not work when the IDC-TRUE is set? It like the delays are gone but if I load the debug everything works. I’ve tried all the options I know ... |
|