Hello all
Recently built an ICD2, now I'm having trouble loading a program
into a 16f628A. Heres a piece of code from Nigel site
Processor 16F628A
#inclde "p16f628a"
_config _CP_OFF & _WDT_OFF & _PWRTE_ON & _INT_OSC
;List p=16f628a
;include "P16F28A"
;-config 0x3D18
org 0x0000
movlw 0x07
movwf CMCON
bsf STATUS, RPO
movlw b'00000000
movwf TRISB
movwf TRISA
bcf STATUS
loop
movlf 0xff
movwf PORTA
movwf PORTB
nop
nop
movlw 0x000
movwf PORTA
movwf PORTB
goto loop
end
I know the code will turn the LEDs on and off so fast that they'll
appear to lit the entire time. But nothing seems to happen at
all. The problem is with my ability to MPLAB. The help file has
been that much so far.
This site
**broken link removed**
has been the most helpful so far(project wizard, new project,etc),
still missing something. I get the following messages from the MPLAB
IDE
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to target
ICDWarn0020: Invalid target device id (expected=0x89, read=0x83)
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready
Programming Target...
ICDWarn0013: Low Voltage Programming cannot be enabled when ICD 2 is used as a debugger. Disable Low Voltage Programming?
ICDWarn0014: Watchdog Timer cannot be enabled when ICD 2 is enabled as a debugger. Disable Watchdog Timer?
...Erasing Part
...Loading DebugExecutive
...Programming Debug Vector
Verifying...
...Debug Executive
...Debug Vector
...Verify Succeeded
Programming Configuration Bits
.. Config Memory
Verifying configuration memory...
...Verify Succeeded
Connecting to debug executive
Entering Debug Mode
...Programming GOTO 0x00 command
ICD0083: Target not in debug mode, unable to perform operation
MPLAB ICD 2 Ready
Any thoughts/suggestions are welcomed.
Gordon
Recently built an ICD2, now I'm having trouble loading a program
into a 16f628A. Heres a piece of code from Nigel site
Processor 16F628A
#inclde "p16f628a"
_config _CP_OFF & _WDT_OFF & _PWRTE_ON & _INT_OSC
;List p=16f628a
;include "P16F28A"
;-config 0x3D18
org 0x0000
movlw 0x07
movwf CMCON
bsf STATUS, RPO
movlw b'00000000
movwf TRISB
movwf TRISA
bcf STATUS
loop
movlf 0xff
movwf PORTA
movwf PORTB
nop
nop
movlw 0x000
movwf PORTA
movwf PORTB
goto loop
end
I know the code will turn the LEDs on and off so fast that they'll
appear to lit the entire time. But nothing seems to happen at
all. The problem is with my ability to MPLAB. The help file has
been that much so far.
This site
**broken link removed**
has been the most helpful so far(project wizard, new project,etc),
still missing something. I get the following messages from the MPLAB
IDE
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to target
ICDWarn0020: Invalid target device id (expected=0x89, read=0x83)
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready
Programming Target...
ICDWarn0013: Low Voltage Programming cannot be enabled when ICD 2 is used as a debugger. Disable Low Voltage Programming?
ICDWarn0014: Watchdog Timer cannot be enabled when ICD 2 is enabled as a debugger. Disable Watchdog Timer?
...Erasing Part
...Loading DebugExecutive
...Programming Debug Vector
Verifying...
...Debug Executive
...Debug Vector
...Verify Succeeded
Programming Configuration Bits
.. Config Memory
Verifying configuration memory...
...Verify Succeeded
Connecting to debug executive
Entering Debug Mode
...Programming GOTO 0x00 command
ICD0083: Target not in debug mode, unable to perform operation
MPLAB ICD 2 Ready
Any thoughts/suggestions are welcomed.
Gordon