Author |
Message |
Topic: PIC ADC |
rezaf
Replies: 1
Views: 7066
|
Forum: General CCS C Discussion Posted: Sat Mar 13, 2010 7:37 am Subject: PIC ADC |
Hello
How can I convert 10bit result of PIC16F877A ADC to BCD code or other methods to display on 7segment display?
I have written the code below to read ADC pin:
#include <float.h>
# ... |
Topic: about ADC |
rezaf
Replies: 5
Views: 6593
|
Forum: General CCS C Discussion Posted: Fri Aug 28, 2009 3:42 am Subject: Re |
sorry I am not lazy don't judge quickly. the microchip's datasheet is not for amateurs also my english is not very good. I read that several times from when I work on PIC but always go confused.
than ... |
Topic: about ADC |
rezaf
Replies: 5
Views: 6593
|
Forum: General CCS C Discussion Posted: Thu Aug 27, 2009 5:33 am Subject: Re |
thanks PCM programmer for the sample code link. thanks Ttelmah for your guide, but say to me that the formula is experimental or is constant ? how can I calculate the formula for other conversion ?
... |
Topic: about ADC |
rezaf
Replies: 5
Views: 6593
|
Forum: General CCS C Discussion Posted: Wed Aug 26, 2009 2:35 pm Subject: about ADC |
Hi
I have problem with ADC commands. I written the code below and in schematic connected a 5v with potentiometer to AN0 pin but when the voltage is 0v the printf command send "1" to RS232 ... |
Topic: problem with timers |
rezaf
Replies: 4
Views: 5940
|
Forum: General CCS C Discussion Posted: Sat Oct 25, 2008 1:21 am Subject: Hi ECACE |
Hi ECACE,
very thanks for your answer, but your code too don't work and the timer variable is always zero.I don't know where of code are wrong. |
Topic: problem with timers |
rezaf
Replies: 4
Views: 5940
|
Forum: General CCS C Discussion Posted: Tue Oct 21, 2008 2:18 am Subject: problem with timers |
Hi .
I am a new C language user and work with CCS compiler. I have an
project that use Timer1 of PIC16F877A and can't use timer. Please help
me to solve my program's problem.
My project:
When ... |
Topic: problem with timers of PIC in CCS |
rezaf
Replies: 1
Views: 4303
|
Forum: General CCS C Discussion Posted: Sun Oct 12, 2008 7:16 am Subject: problem with timers of PIC in CCS |
hi,
I am a new user of CCS and have problem with timers. I don't know how to use timer libraries. I don't know how to start timer, stop timer and save timer number in a variable. Please help me on th ... |
|