Author |
Message |
Topic: timer1 overflow stupid mistake in reciprocal frequency count |
Athar Rasul
Replies: 3
Views: 7459
|
Forum: General CCS C Discussion Posted: Sun Apr 15, 2012 2:52 am Subject: timer1 overflow stupid mistake in reciprocal frequency count |
Thanks.
Your points, although valid, still couldn't get me a correct value. Had to poke around a little to figure out where it was getting the false value from. Had to implement another valid flag bi ... |
Topic: timer1 overflow stupid mistake in reciprocal frequency count |
Athar Rasul
Replies: 3
Views: 7459
|
Forum: General CCS C Discussion Posted: Sat Apr 14, 2012 1:14 pm Subject: timer1 overflow stupid mistake in reciprocal frequency count |
I've been working on this reciprocal frequency counter project on PIC16F877A with 16MHz intended to be a 0-400 Hz counter. CCP1 is utilized to capture RE of incoming signal and ticks are counted. It i ... |
Topic: Problem with compiling lcd.c and kbd.c |
Athar Rasul
Replies: 19
Views: 32394
|
Forum: General CCS C Discussion Posted: Sat Mar 20, 2010 3:15 pm Subject: Problem with compiling lcd.c and kbd.c |
Ok. I changed the name of function and variable. But it still gives error "expecting a numeric expression here" at the last line i.e. line containing '}'
abc(){
int key,in ... |
Topic: Problem with compiling lcd.c and kbd.c |
Athar Rasul
Replies: 19
Views: 32394
|
Forum: General CCS C Discussion Posted: Sat Mar 20, 2010 2:41 pm Subject: Problem with compiling lcd.c and kbd.c |
I want to call the function input() and assign the value it returns to input variable. Is that ok? |
Topic: Problem with compiling lcd.c and kbd.c |
Athar Rasul
Replies: 19
Views: 32394
|
Forum: General CCS C Discussion Posted: Sat Mar 20, 2010 1:31 pm Subject: Problem with compiling lcd.c and kbd.c |
#include <16F877A.h>
#device ADC = 8 // 8-bit conversion
#use delay(clock = 16000000)
#use rs232(UART1) // Select hardware UART
#include <lcd.c>
#include <kbd. ... |
Topic: Problem with compiling lcd.c and kbd.c |
Athar Rasul
Replies: 19
Views: 32394
|
Forum: General CCS C Discussion Posted: Sat Mar 20, 2010 5:20 am Subject: Problem with compiling lcd.c and kbd.c |
Also please tell me can I call "wait_kbd_getc(void)" routine from some other routine? (other than main())? |
Topic: KEYPAD + LCD |
Athar Rasul
Replies: 23
Views: 29347
|
Forum: General CCS C Discussion Posted: Sat Mar 20, 2010 4:59 am Subject: KEYPAD + LCD |
Once you've edited the driver file, save it. But don't add it to the project while compiling. Same thing happened to me. Just remove it from the source files' list. |
Topic: Problem with compiling lcd.c and kbd.c |
Athar Rasul
Replies: 19
Views: 32394
|
Forum: General CCS C Discussion Posted: Sat Mar 20, 2010 4:12 am Subject: Problem with compiling lcd.c and kbd.c |
I know this shouldn't be happening but now I have to press the keys for quite some time, otherwise they aren't detected. And what about sending control commands to lcd. How can I do that? |
Topic: Problem with compiling lcd.c and kbd.c |
Athar Rasul
Replies: 19
Views: 32394
|
Forum: General CCS C Discussion Posted: Fri Mar 19, 2010 4:10 pm Subject: Problem with compiling lcd.c and kbd.c |
Sorry to bother you again but how can I make the keypad wait for the input once called? instead of having to call it a million times. Also can I send commands to lcd like hiding the cursor (0x0C) etc? |
Topic: Problem with compiling lcd.c and kbd.c |
Athar Rasul
Replies: 19
Views: 32394
|
Forum: General CCS C Discussion Posted: Fri Mar 19, 2010 4:07 pm Subject: Problem with compiling lcd.c and kbd.c |
That doesn't bother me. I'm happier still... Thank you for your cooperation. |
Topic: Problem with compiling lcd.c and kbd.c |
Athar Rasul
Replies: 19
Views: 32394
|
Forum: General CCS C Discussion Posted: Fri Mar 19, 2010 2:45 pm Subject: Problem with compiling lcd.c and kbd.c |
That solved my problem. Thanks a lot. About the analog pins; I think I'll go for the three pins but I was wondering is it possible to setup the adc ports and adc channel alternatively for the two inpu ... |
Topic: Problem with compiling lcd.c and kbd.c |
Athar Rasul
Replies: 19
Views: 32394
|
Forum: General CCS C Discussion Posted: Fri Mar 19, 2010 1:23 pm Subject: Problem with compiling lcd.c and kbd.c |
I know that these files are to be included in the main program. Here is the complete code:
#include <16F877A.h>
#device ADC = 8 // 8-bit conversion
#use delay(clock = 16000000)
#u ... |
Topic: Problem with compiling lcd.c and kbd.c |
Athar Rasul
Replies: 19
Views: 32394
|
Forum: General CCS C Discussion Posted: Fri Mar 19, 2010 5:58 am Subject: Problem with compiling lcd.c and kbd.c |
I am using PIC16F877A to interface 2x16 LCD and 4x3 keypad. Problem might be silly but whenever I try to compile the standard drivers for these, following errors occur:
*** Error 128 "KBD.C&q ... |
|