Hello Eric,
and thanks a lot for the code.
I don't know if it is OK because i couldnt programm the 16F628A.
So far i have
-installed the MPLAB V8.20,
-selected the 16F628A,
-installed the FTDI drivers for my Olimex PIC-MCP-USB-MPLAB Compatible Programmer
-changed the COm Port from 1 to 4 so that the MPLAB sees the Programmer right
-and programmed the chip but got an error.
Please see for yourself.
----------------------------------------------------------------------
Debug build of project `C:\Documents and Settings\SK\Desktop\timer3m.disposable_mcp' started.
Preprocessor symbol `__DEBUG' is defined.
Mon Mar 09 14:15:18 2009
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPASMWIN.exe" /q /p16F628A "timer3m.asm" /l"timer3m.lst" /e"timer3m.err" /d__DEBUG=1
Executing: "C:\Program Files\Microchip\MPASM Suite\mplink.exe" /p16F628A "timer3m.o" /u_DEBUG /z__MPLAB_BUILD=1 /z__MPLAB_DEBUG=1 /o"timer3m.cof" /M"timer3m.map" /W /x
MPLINK 4.30.01, Linker
Copyright (c) 2009 Microchip Technology Inc.
Errors : 0
Loaded C:\Documents and Settings\SK\Desktop\timer3m.cof.
----------------------------------------------------------------------
Debug build of project `C:\Documents and Settings\SK\Desktop\timer3m.disposable_mcp' succeeded.
Preprocessor symbol `__DEBUG' is defined.
Mon Mar 09 14:15:19 2009
----------------------------------------------------------------------
BUILD SUCCEEDED
---------------------------------------------------------------
A newer version of the PICSTART Plus firmware operating
system is available, and may be required for programming
some devices. The newer version is located in your
MPLAB IDE\PicstartPlus directory. Refer to the topic,
'Upgrading the PICSTART Plus Operating System' in the
PICSTART Plus Help file for instructions.
PICSTART Plus Firmware Version 04.50.06
PICSTART Program\Verify Report
09-Mar-2009, 14:18:28
Device Type: PIC16F628A
Address Range 0-e1
Program Memory Errors
Address Good Bad
0000: 30FF 0000
0001: 008E 0000
0002: 00AF 0000
0003: 0090 0000
0004: 30FF 0000
0005: 00A2 0000
0006: 3007 0000
0007: 009F 0000
0008: 20DA 0000
0009: 10A0 0000
000A: 20D4 0000
000B: 10A0 0000
000C: 20CE 0000
000D: 10A0 0000
000E: 20C8 0000
000F: 10A0 0000
0010: 20C2 0000
0011: 14A0 0000
0012: 20BC 0000
0013: 14A0 0000
0014: 20B6 0000
0015: 14A0 0000
0016: 20B0 0000
0017: 14A0 0000
0018: 20AA 0000
0019: 01A2 0000
001A: 01A3 0000
001B: 01A4 0000
001C: 10A0 0000
001D: 1120 0000
001E: 11A0 0000
001F: 20A3 0000
Any additional errors are not displayed.
Configuration Memory Errors
Field : Oscillator
Expected: INTOSC: I/O on RA6/OSC2/CLKOUT, I/O on RA7/OSC1/CLKIN
Received: LP
Field : Code Protect
Expected: Off
Received: On
Field : Brown Out Detect
Expected: Enabled
Received: Disabled
Field : Master Clear Enable
Expected: Enabled
Received: Disabled
Field : Data EE Read Protect
Expected: Disabled
Received: Enabled
What have i done wrong ?????
Regards
Stamatis