Interfacing Zeus with the PICKkit 2 Starter Kit

Find Tips and tricks on how to better use the Zeus IDE. Feel free to post your own tips but please do not post bug reports, feature requests or questions here.
Post Reply
jussij
Site Admin
Posts: 2449
Joined: Fri Aug 13, 2004 5:10 pm

Interfacing Zeus with the PICKkit 2 Starter Kit

Post by jussij » Sun Jan 28, 2007 11:31 pm

These instructions show how to configure Zeus so that it can be used as the IDE for the PICKkit 2 Starter Kit.

Step 1: Create a PIC Document Type with the file extensions of asm and inc.

Code: Select all

MPAsmWin.exe /q /pNNNNNN "$f" /l"$fb.lst" /e"$fb.err"
where NNNNNN is the device.

For example for the PIC16F690 device this would be the command line:

Code: Select all

MPAsmWin.exe /q /p16F690 "$f" /l"$fb.lst" /e"$fb.err"
This document type can be used to compile the source code from within Zeus and have it create a hex file ready for upload.

Step 2: Make sure MPAsmWin.exe is in the path.

Step 3: To programmer the hex file into the microcontroller add the following tool to the PIC document type:

Program: C:\Program Files\Microchip\PICkit 2\PICkit 2.exe

Directory: C:\Program Files\Microchip\PICkit 2\

This tool can now be used to upload a hex file to the microcontroller from within Zeus.

Step 4: To have Zeus correctly syntax highlight the code, edit the document type and add these keywords.
Reserved words:
MOVLW
MOVF
MOVWF
CLRF
CLRW
COMF
DECF
INCF
BCF
BSF
RLF
RRF
SWAPF
GOTO
CALL
RETURN
RETLW
RETFIE
BTFSC
BTFSS
DECFSZ
INCFSZ
NOP
CLRWDT
OPTION
SLEEP
TRIS
ANDLW
ANDWF
IORLW
IORWF
XORLW
XORWF
ADDWF
ADDLW
SUBLW
SUBWF
User Defined #1
SET
DEVICE
INCLUDE
CONFIG
EQU
User Defined #2
W
F
C
Z
User Defined #3
INDF
IND0
TMR0
RTCC
PCL
STATUS
FSR
PORTA
PORTB
EEDATA
EEADR
PCLATH
INTCON
OPTIO
TRISA
TRISB
EECON1
EECON2
IRP
RP1
RP0
TO
PD
DC
GIE
EEIE
RTIE
INTE
RBIE
RTIF
INTF
RBIF
RBPU
INTEDG
RTS
RTE
PSA
PS2
PS1
PS0
EEIF
WRERR
WREN
EWR
ERD
Cheers Jussi

Post Reply
kuchnie warszawa opinie

Who is online

Users browsing this forum: No registered users and 30 guests