I have a problem using my 12F675. I am using it with a external 4 MHz crystal.
My circuit:
PIN 1: +5V
PIN 2: Crystal / Capasitor(22pF) to GND
PIN 3: Crystal / Capasitor(22pF) to GND
PIN 8: GND
This is the CODE i am using:
Pin 5 doesn't change state. It is high all the time!
I have also tried with a 20 MHz crystal. Same problem.
Do i have to setup any registers to get it work? What else can be the problem?
My circuit:
PIN 1: +5V
PIN 2: Crystal / Capasitor(22pF) to GND
PIN 3: Crystal / Capasitor(22pF) to GND
PIN 8: GND
This is the CODE i am using:
Code:
DEVICE 12F675
CONFIG WDT_OFF, HS_OSC, PWRTE_ON, BODEN_OFF, MCLRE_OFF
DECLARE XTAL 4
OUTPUT GPIO.2
HIGH GPIO.2
Start:
pause 500
toggle GPIO.2
goto Start
stop
end
Pin 5 doesn't change state. It is high all the time!
I have also tried with a 20 MHz crystal. Same problem.
Do i have to setup any registers to get it work? What else can be the problem?