Author |
Message |
Topic: 12F675 + write_eeprom + INT_EXT |
ChicoDaRave
Replies: 2
Views: 6684
|
Forum: General CCS C Discussion Posted: Thu May 21, 2015 4:44 am Subject: 12F675 + write_eeprom + INT_EXT |
Precise answer Ttelmah!
Just "clear_interrupt(INT_EXT);" right before enabling it has solved!
Thank you very much!
I was doing everything right as you said, except for this.
Everything ... |
Topic: 12F675 + write_eeprom + INT_EXT |
ChicoDaRave
Replies: 2
Views: 6684
|
Forum: General CCS C Discussion Posted: Thu May 21, 2015 3:12 am Subject: 12F675 + write_eeprom + INT_EXT |
Hello people.
I'm doing a small project here, all were going ok until here.
The device has a button connected to GP2, this should be a mode button, each time button is pressed INT_EXT is called, ins ... |
Topic: Math in define (I believe a basic error with float) |
ChicoDaRave
Replies: 12
Views: 17892
|
Forum: General CCS C Discussion Posted: Sat Mar 07, 2015 1:11 pm Subject: Math in define (I believe a basic error with float) |
Ttelmah, I thank you for your answer, but my knowledge in C and in english is poor, so could not understand some things you wrote.
"You always work out from the innermost thing" Sorry, wh ... |
Topic: Math in define (I believe a basic error with float) |
ChicoDaRave
Replies: 12
Views: 17892
|
Forum: General CCS C Discussion Posted: Sat Mar 07, 2015 3:19 am Subject: Math in define (I believe a basic error with float) |
Thanks for all answers.
I was 99,999% sure the problem was just lack of my knowledge about C and CCS.
Sorry for my lack of knowledge, If I had a lot knowledge for sure I would not bother you all w ... |
Topic: Math in define (I believe a basic error with float) |
ChicoDaRave
Replies: 12
Views: 17892
|
Forum: General CCS C Discussion Posted: Thu Mar 05, 2015 4:58 pm Subject: Math in define (I believe a basic error with float) |
asmboy, this math is just to make easier and tidier to make the code.
Will use like this:
If (ADC <= VTB(21))...
VTB(21) will mean 21v in the resistor divider input.
Got it?
Sorry, I dont ... |
Topic: Math in define (I believe a basic error with float) |
ChicoDaRave
Replies: 12
Views: 17892
|
Forum: General CCS C Discussion Posted: Thu Mar 05, 2015 4:39 pm Subject: Math in define (I believe a basic error with float) |
Hello.
I'm trying to do some simple math in a define for calculating ADC values in a resistor divisor.
Looks like this:
#define R1 220
#define R2 47
#define ADCVref 5
#define ADCMaxVal 255
# ... |
Topic: Question about forum (general electronics questions) |
ChicoDaRave
Replies: 1
Views: 5324
|
Forum: General CCS C Discussion Posted: Fri Dec 05, 2014 2:04 am Subject: Question about forum (general electronics questions) |
Hello.
I want to know if general electronics questions can be asked in this forum.
Thanks. |
Topic: 12F675 WDT and SLEEP |
ChicoDaRave
Replies: 6
Views: 16063
|
Forum: General CCS C Discussion Posted: Sat Nov 22, 2014 1:59 am Subject: 12F675 WDT and SLEEP |
Probably I will not find or price will be not friendly, but I will search for those.
Thank you. |
Topic: 12F675 WDT and SLEEP |
ChicoDaRave
Replies: 6
Views: 16063
|
Forum: General CCS C Discussion Posted: Fri Nov 21, 2014 2:55 pm Subject: 12F675 WDT and SLEEP |
Ttelmah:
Oh! Really!
My mistake, I forgot to check that, WDTE is a fuse!
No problem, I'm aware about the variations in WDT timer, the application is not time critical.
I was trying to avoid keepin ... |
Topic: 12F675 WDT and SLEEP |
ChicoDaRave
Replies: 6
Views: 16063
|
Forum: General CCS C Discussion Posted: Fri Nov 21, 2014 1:09 am Subject: 12F675 WDT and SLEEP |
Hello.
I want to put my 12F675 to SLEEP mode and want it to wake up from times to times, do what it need to do then SLEEP again for saving maximum energy possible.
I went to its datasheet and di ... |
|