A6 in 16F628 givinh 2.4v !?

Status
Not open for further replies.

aljamri

Member
Hi,

for a simple project, I'm using PortA as switch ( following NG switch Tutorial 2.2 ), everything is working o.k., except for A6 is giving 2.4v where as all the other switches pins are getting 5V before the switches pressed. The micro controller interpret it as the key is pressed.

the same pen can be used as OSC2 and CLKOUT, but I'm not using any of theses features. is there any thing to be checked in the initial setup.?
 
How are the other switches getting 5v before the switch is pressed?

What is your config?
 
Thanks colin55, you've made me to change the cofig word, which is 0x3D18 originally in the tutorial into the following:

__config _BODEN_OFF & _INTRC_OSC_NOCLKOUT & _CP_OFF & _PWRTE_OFF & _WDT_OFF & _LVP_OFF & _MCLRE_OFF


The program know is working fine. Thanks for your help.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…