View previous topic :: View next topic |
Author |
Message |
delesan
Joined: 23 Jun 2010 Posts: 19
|
12LF1822 CLKOUT PIN |
Posted: Thu Feb 03, 2011 3:07 am |
|
|
Hi everyone,
I just got the 12LF1822 and attempting to run a working program from the 12F683. Noticed PIN 4 - CLKOUT is outputting fosc/4 despite the fact that I had disabled it in the fuses directive (INTRC_IO). This directive works in the 12F683.
Appreciate your suggestions on disabling the CLKOUT so that I can use the PIN_A4 on the 12LF1822 as an output pin. Unfortunately, all other pins are been utilized.
Kind regards. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19545
|
|
Posted: Thu Feb 03, 2011 3:32 am |
|
|
Triple check your fuses. Classic cause is having another clock fuse, and the values of the two fuses get 'ored' together, resulting in the wrong fuse actually being set.
What compiler version?. We can't tell you whether it should work with your compiler, without knowing this.
Load the compiled code into MPLAB, and see what the configuration bits are actually set to. Most probable thing, is that CCS have got the option wrong....
Best Wishes |
|
|
delesan
Joined: 23 Jun 2010 Posts: 19
|
12LF1822 CLKOUT PIN |
Posted: Thu Feb 03, 2011 3:50 am |
|
|
Thanks Ttelmah.
I do apologize for omitting the details. I am using the PICKIT 3 version 01.26.05. The compiler is CCS C-compiler. Couldn't find the version. I am using the MPLAB IDE version 8.50.
I checked the Configuration Word 1 in memory location 8007h and it has a data 30D4. By default, CLKOUT is enabled.
Regards |
|
|
delesan
Joined: 23 Jun 2010 Posts: 19
|
12LF1822 CLKOUT PIN |
Posted: Fri Feb 04, 2011 3:13 am |
|
|
Placed before main() the following and was able to disable the CLKOUT for the 12LF1822:
#rom 0x8007 = {0b00100110100100}.
Regards |
|
|
|