Author |
Message |
Topic: Read the digital value using interrupt |
yuyljk
Replies: 14
Views: 15991
|
Forum: General CCS C Discussion Posted: Fri Mar 08, 2013 1:02 pm Subject: Read digital value using interrupt |
Er....
The analog inputs don't care whether they have 'power' or not. The ADC can still read, it'll just read zero.
The timed code will take readings at timed intervals.
Best Wishes
i have tes ... |
Topic: Read the digital value using interrupt |
yuyljk
Replies: 14
Views: 15991
|
Forum: General CCS C Discussion Posted: Fri Mar 08, 2013 12:51 pm Subject: Read digital value using interrupt |
Search the forum.
Some time ago, another user was asking how to take ADC readings at timed intervals, and I posted a complete program to do this.
Best Wishes
Before i use polling system to ge ... |
Topic: Read the digital value using interrupt |
yuyljk
Replies: 14
Views: 15991
|
Forum: General CCS C Discussion Posted: Fri Mar 08, 2013 10:11 am Subject: Read digital value from the analogue pin by interrupt |
1) Work on the KISS principle.
2) Read the forum guidelines.
3) Tell us specifically what works and what doesn't.
4) Try the CCS examples for starters, rather than cooking your own.
Mike
For ... |
Topic: Read the digital value using interrupt |
yuyljk
Replies: 14
Views: 15991
|
Forum: General CCS C Discussion Posted: Thu Mar 07, 2013 6:43 am Subject: Read digital value using interrupt |
Your programs has several errors and things that are less than optimum,
but this one below, prevents the interrupt from working.
You have a line of code between the #int_ad statement and the AD_isr( ... |
Topic: Read the digital value using interrupt |
yuyljk
Replies: 14
Views: 15991
|
Forum: General CCS C Discussion Posted: Wed Mar 06, 2013 12:56 pm Subject: read digital value using interrrupt |
First you've got the Low Voltage Programming fuse enabled.It's unlikely you really wants this,so tell us what programmer you're using to download the code into the PIC.
2nd. Have you got the simple ... |
Topic: Read the digital value using interrupt |
yuyljk
Replies: 14
Views: 15991
|
Forum: General CCS C Discussion Posted: Wed Mar 06, 2013 12:02 pm Subject: Read the digital value using interrupt |
I want read the digital value from the Analogue voltage AO pin by using AD interrrupt, and print the value on the screen. The code I wrote couldn't worked and shown below, I can't find the reason, hel ... |
|