earltyso
- 8th August 2008, 21:21
Hello, before you turn your nose at my silly question, please know that I have read the manual several times and searched and searched the forum before asking my question.
that said.....
Why is only one of my GPIO's working??
I am attempting to use the internal oscillator without using CMCON register.
Are my fuse settings wrong?
'DEFINE OSCCAL_1K 1
'DEFINE OSC 4
CMCON = 7
TRISIO = %000000
MAIN:
PAUSE 200
HIGH GPIO.0
HIGH GPIO.1
HIGH GPIO.2
HIGH GPIO.3
PAUSE 200
LOW GPIO.0
LOW GPIO.1
LOW GPIO.2
LOW GPIO.3
GOTO MAIN
GPIO.0 is the only one that blinks...The timing looks right but no output from any of the other pins with my scope.
You can see that I have commented out the OSCCAL lines for now, I am not sure if it is necessary to mess with the RC oscillator settings or not???
The data sheet says the chipset comes with a .....
"Precision Internal 4 MHz oscillator factory calibrated to ±1%"
Does this mean it is an RC oscillator???
I have selected the following drop down under OSCILLATOR [INTOSC IOGP4 IOGP5]
Is this wrong?
I know this chipset gets alot of the same questions about it, I just hope I have asked some new ones...
that said.....
Why is only one of my GPIO's working??
I am attempting to use the internal oscillator without using CMCON register.
Are my fuse settings wrong?
'DEFINE OSCCAL_1K 1
'DEFINE OSC 4
CMCON = 7
TRISIO = %000000
MAIN:
PAUSE 200
HIGH GPIO.0
HIGH GPIO.1
HIGH GPIO.2
HIGH GPIO.3
PAUSE 200
LOW GPIO.0
LOW GPIO.1
LOW GPIO.2
LOW GPIO.3
GOTO MAIN
GPIO.0 is the only one that blinks...The timing looks right but no output from any of the other pins with my scope.
You can see that I have commented out the OSCCAL lines for now, I am not sure if it is necessary to mess with the RC oscillator settings or not???
The data sheet says the chipset comes with a .....
"Precision Internal 4 MHz oscillator factory calibrated to ±1%"
Does this mean it is an RC oscillator???
I have selected the following drop down under OSCILLATOR [INTOSC IOGP4 IOGP5]
Is this wrong?
I know this chipset gets alot of the same questions about it, I just hope I have asked some new ones...