I have this simple program:
#include <p16f1503.inc>
__CONFIG _CONFIG1, _FOSC_INTOSC & _WDTE_OFF & _PWRTE_ON & _MCLRE_OFF & _CP_OFF & _BOREN_OFF & _CLKOUTEN_ON
__CONFIG _CONFIG2, _WRT_OFF & _STVREN_OFF & _LVP_OFF
org 0x00
goto setup
setup
banksel OSCCON
movlw b'01101010' ; Int. osc. 4 MHz
movwf OSCCON
banksel OPTION_REG
BCF OPTION_REG, TMR0CS
banksel ANSELA
clrf ANSELA
banksel TRISA
clrf TRISA
goto main_loop
main_loop
nop
goto main_loop
end
What I would like to do is to enable CLKOUT pin, but it doesn't work... Am I missing something?
I am using:
- IDE: MPLAB X IDE v1.20
- Compiler: MPASM v5.45
and integrated software simulator...
[EDIT]
CLKOUT works just fine.. But sadly not in simulator.... Can someone explain reason for this behaviour.