Author |
Message |
Topic: Set specific pin as analog |
23.North
Replies: 10
Views: 16942
|
Forum: General CCS C Discussion Posted: Fri Aug 20, 2010 12:04 pm Subject: Set specific pin as analog |
Thank you all. I partly tested the program. The fast_io trick works, though I haven't measured the adc. Now I'm left with all kinds of other programming, which reminds me (I don't want to spam the fo ... |
Topic: Set specific pin as analog |
23.North
Replies: 10
Views: 16942
|
Forum: General CCS C Discussion Posted: Fri Aug 20, 2010 3:56 am Subject: Set specific pin as analog |
I have found one of the shown topic, but now the other covered part of the questions that i had.
Just to sum up. Is this possible (and i think won't have the extra power drainage )
setup_adc_ports ... |
Topic: Set specific pin as analog |
23.North
Replies: 10
Views: 16942
|
Forum: General CCS C Discussion Posted: Thu Aug 19, 2010 2:36 pm Subject: Set specific pin as analog |
Of course I understand that is how the hardware is designed, and not the software, that is valid. But I thought that you can set AN0 as an output, that it is also optional for other analog pins.
So, ... |
Topic: Set specific pin as analog |
23.North
Replies: 10
Views: 16942
|
Forum: General CCS C Discussion Posted: Thu Aug 19, 2010 2:04 pm Subject: Set specific pin as analog |
I'm using 18F2525 and was wondering whether it is possible to set pins A0,A1,A2 as digital outputs and to have AN3 as an analog input at the same time.
The definitions in the .h file doesn't suit me, ... |
|