bluelaser
Member level 1
pic16f628a comparator
Dear all:
In my project , I want to use RA2 to do the key detection . So I select
the comparator mode 010, and use the internal VREF . but I just use RA2 for the comparator input (analog input) , I plan to use the other RA0, RA1,
RA3 to do the digital output, In the TRISA register ,I set RA2 to input , and RA0,RA1,RA3 to output . Do you think this setting is correct ?
can I use this method to setup the RA Port?
Thank you .
bluelaser
Dear all:
In my project , I want to use RA2 to do the key detection . So I select
the comparator mode 010, and use the internal VREF . but I just use RA2 for the comparator input (analog input) , I plan to use the other RA0, RA1,
RA3 to do the digital output, In the TRISA register ,I set RA2 to input , and RA0,RA1,RA3 to output . Do you think this setting is correct ?
can I use this method to setup the RA Port?
Thank you .
bluelaser