ADCON1 |= 0x0F; // Configure all ports with analog function as digital
CMCON |= 7; // Disable comparators
When i touch on some ground points i get the output as 5v.but when i take off my hand the output again drops to 2.5v .
The Ground is common itself..
#define LED1 LATA4_bit;
// initialise PORTA as output for RA4
// RA4 --Led1 ----R=470--- +5V
do
{
Led1=0; //ON
delay_ms(5000);
Led1=1; //Off
delat_ms(5000);
}while(1);
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?