Your OSCCON setting is for 16 MHz
Change INTIO67
to
INTOSCIO
Your OSCCON setting is for 16 MHz
Change INTIO67
to
INTOSCIO
Dave
Always wear safety glasses while programming.
Hi Dave,
You right about the OSCCON. I set this to %01100000 for 8MHz. speed.
I try to change INTOSCIO but no LED flashing...
Post your code and configs.
Dave
Always wear safety glasses while programming.
Hi Dave,
This my program.
asm
@_CONFIG_CONFIG1H_FOSC_INTIO67
endasm
OSCCON = %01100000 ' OSC Control register to 8MHz
OSCTUNE = %00000000 ' 16 MHz PLL Off bit 6=0, 64MHz PLL On bit 6=1
DEFINE OSC 8 ' Inform PBP for 8 MHz
' Hardware initialization
ANSEL = 0 ' all I/O to digital
ANSELH = 0 '
Led var PORTA.0
' ----- [ Program Code ] ------------------------------------------------------
Main:
High LED ' LED On
pause 200
low LED ' And off....
pause 300
goto Main
I read something wrong the first time.
Try
Along with your other settings. But I do not have this chip to test...Code:@ __CONFIG _CONFIG1H, _FOSC_INTIO67_1H & _FCMEN_OFF_1H & _IESO_OFF_1H @ __CONFIG _CONFIG2H, _WDTEN_ON_2H & _WDTPS_512_2H @ __CONFIG _CONFIG3H, _CCP2MX_PORTC_3H & _PBADEN_OFF_3H & _LPT1OSC_OFF_3H & _HFOFST_ON_3H & _MCLRE_ON_3H @ __CONFIG _CONFIG4L, _STVREN_ON_4L & _LVP_OFF_4L & _XINST_OFF_4L CM1CON0 = 0 CM2CON0 = 0
Dave
Always wear safety glasses while programming.
Thanks Dave,
A lott of errors. like:
(,) illegal character
(_CONFIG1H) illegal opcode
(_CONFIG2H) illegal opcode
(_CONFIG3H) illegal opcode
(_CONFIG4L) illegal opcode
The 18F25K20 is the same as on the Amicus18 boards. I read about some problem with MPASM for this PIC.
@Gevo What version of the compiler are you using?
George
Hi George,
PBP 2.60C
MicroCode Studio 3.0.0.5
MPASM ? I have MPLAB IDE v8.84
I have update MPLAB IDE to v8.92
So, MPASM is now v5.51
I think this is the last version of MPLAB IDE
@Gevo What version of the compiler are you using?
George
Bookmarks