Author |
Message |
Topic: PIC16F88 - PWM resolution problem |
luismramirez
Replies: 17
Views: 43849
|
Forum: General CCS C Discussion Posted: Wed Apr 06, 2011 6:35 pm Subject: PIC16F88 - PWM resolution problem |
ok. i got it.
thank you all ;) |
Topic: PIC16F88 - PWM resolution problem |
luismramirez
Replies: 17
Views: 43849
|
Forum: General CCS C Discussion Posted: Wed Apr 06, 2011 11:47 am Subject: PIC16F88 - PWM resolution problem |
Thank you!
However, your formula has a "-1" at the end.
The one at the first page doesn't.
Which one is right and why?? |
Topic: PIC16F88 - PWM resolution problem |
luismramirez
Replies: 17
Views: 43849
|
Forum: General CCS C Discussion Posted: Wed Apr 06, 2011 9:20 am Subject: PIC16F88 - PWM resolution problem |
Hi,
I have an 8Mhz, with T2 BY 16, 250;
I know what duty % I need, so, using the equation:
16bit value = % * (250 + 1) * 4
Then, for 100% and 50%:
100% = 10400
50% = 50200
Is that ... |
Topic: Can't initialize 4x20 lcd |
luismramirez
Replies: 4
Views: 7543
|
Forum: General CCS C Discussion Posted: Mon Mar 07, 2011 2:14 pm Subject: Can't initialize 4x20 lcd |
First, thanks for all the help.
Actually, everything was right.
The actual problem was that a cable (DB6) wasn't connected.
It was inserted on the protoboard, but there was no connection at a ... |
Topic: Can't initialize 4x20 lcd |
luismramirez
Replies: 4
Views: 7543
|
Forum: General CCS C Discussion Posted: Sun Mar 06, 2011 10:46 pm Subject: Can't initialize 4x20 lcd |
Hi,
I can't make my lcd to init with any driver (ccs LCD420 neither this FLEX 4x20 driver)
It is 4x20, white on blue, with backlight.
When turned on, i got line 1 and 3 with squares.
The VEE ... |
Topic: #SEPARATE problem |
luismramirez
Replies: 6
Views: 10348
|
Forum: General CCS C Discussion Posted: Thu Feb 17, 2011 11:08 am Subject: #SEPARATE problem |
Yes, thanks!
I put #SEPARATE in many functions and it worked, but the rom jumped from 38% to 93%
Do i need to put #separate on various functions, before the definition, or all the functions after ... |
Topic: #SEPARATE problem |
luismramirez
Replies: 6
Views: 10348
|
Forum: General CCS C Discussion Posted: Thu Feb 17, 2011 10:34 am Subject: #SEPARATE problem |
Hi,
thanks for the response.
So I should use it like this?
#SEPARATE
void hotstart()....
Because, even like that, i get the same error of OUT OF ROM
Help![/code] |
Topic: #SEPARATE problem |
luismramirez
Replies: 6
Views: 10348
|
Forum: General CCS C Discussion Posted: Thu Feb 17, 2011 9:50 am Subject: #SEPARATE problem |
Hi,
I'm getting the OUT OF ROM problem, so, I tried the #SEPARATE command, however, I get this error when compiling:
*** Error 51 "main.c" Line 72(0,1): A numeric expression must appea ... |
|