I have a program with a 16F88 at 4MHz internal osc that work but have some little bugs with the serial communication (I have try almost all serial speed). I suspect the internal clock is not accurate so I have build a simple prog to test the INTRC_CLKOUT and adjust it via the OSCTUNE register, but I can't see any clock output at RA6 with an oscilloscope. Here's my test program :
DEFINE OSC 4
@ __CONFIG _CONFIG1,_INTRC_CLKOUT&_PWRTE_ON&_MCLR_OFF&_ etc....
OSCCON = $6E
ANSEL = $00
CMCON = $07
OPTION_REG = %10000000
LED VAR PORTB.4
TEMP1 VAR BYTE
TRISA = %10111111
TRISB = %11101111
LED = 0
START :
LED = ~LED
PAUSE 500
GOTO START
Thank you if you have any idea
Bookmarks