hjl4
Member
Hi, I am using a 12f675, GP0, and GP1, set in analogue mode, and all other pins are set as digital.
Now when my circuit is switched on, and the micro turns the LED on and then off repeatedly , if I pass my hand over the chip, about 4-6 inches above it, it stalls or causes LED to flash randomly, until I move my hand away and returns to set blink rate.
GP0 and GP1 are connected to an accelerometer, and micro turns GP4 on and blinking, when a certain amount of G force is present. The circuit is built on a solder less prototyping board. My power supply to the micro is a stable 5V, and only a resistor in series, to the accelerometer, to lower the voltage down to 3.3V.
My Config bits are as follows, _CP_OFF & _CPD_OFF & _BODEN_OFF & _MCLRE_OFF & _WDT_OFF & _PWRTE_ON & _INTRC_OSC_NOCLKOUT. Comparators are off, GP0 GP1 analogue, GP2 GP4 GP5 are digital out, and GP3 digital input.
Has anyone a solution to this problem?
Now when my circuit is switched on, and the micro turns the LED on and then off repeatedly , if I pass my hand over the chip, about 4-6 inches above it, it stalls or causes LED to flash randomly, until I move my hand away and returns to set blink rate.
GP0 and GP1 are connected to an accelerometer, and micro turns GP4 on and blinking, when a certain amount of G force is present. The circuit is built on a solder less prototyping board. My power supply to the micro is a stable 5V, and only a resistor in series, to the accelerometer, to lower the voltage down to 3.3V.
My Config bits are as follows, _CP_OFF & _CPD_OFF & _BODEN_OFF & _MCLRE_OFF & _WDT_OFF & _PWRTE_ON & _INTRC_OSC_NOCLKOUT. Comparators are off, GP0 GP1 analogue, GP2 GP4 GP5 are digital out, and GP3 digital input.
Has anyone a solution to this problem?