MPLAB
®
ICE User’s Guide
DS51159B-page 46
2001 Microchip Technology Inc.
Figure 2.9: MPLAB IDE with Untitled File Window
You will give this file window a name by using File>Save As. When the Save
File As dialog opens, select the project directory
icetut16
and enter
icetut16.asm
as the File Name. Click OK. You have now named the file
and are ready to begin entering the source code into the empty window.
icetut16.asm
Source Code:
list p=16c74b
title "PIC16C74B Tutorial - Flash PORTB LEDs"
#include <p16c74b.inc>
TEMP1 equ 0x20 ;Delay loop
TEMP2 equ 0x21 ;temp. variables
TEMP3 equ 0x22
org 0x00 ;Reset Vector
goto START
org 0x05 ;Start Program
START
clrf PORTB ;Clear PortB (LED’s off)
bsf STATUS, RP0 ;Select Bank 1
clrf TRISB ;Set PortB as output
bcf STATUS, RP0 ;Select Bank 0
Summary of Contents for MPLAB ICE
Page 1: ...2001 Microchip Technology Inc DS51159C MPLAB ICE EMULATOR USER S GUIDE M...
Page 8: ...MPLAB ICE User s Guide DS51159B page viii 2001 Microchip Technology Inc...
Page 18: ...MPLAB ICE User s Guide DS51159B page 18 2001 Microchip Technology Inc NOTES...
Page 36: ...MPLAB ICE User s Guide DS51159B page 36 2001 Microchip Technology Inc NOTES...
Page 58: ...MPLAB ICE User s Guide DS51159B page 58 2001 Microchip Technology Inc NOTES...
Page 80: ...MPLAB ICE User s Guide DS51159B page 80 2001 Microchip Technology Inc NOTES...
Page 126: ...MPLAB ICE User s Guide DS51159B page 126 2001 Microchip Technology Inc NOTES...
Page 140: ...MPLAB ICE User s Guide DS51159B page 140 2001 Microchip Technology Inc NOTES...
Page 158: ...MPLAB ICE User s Guide DS51159B page 158 2001 Microchip Technology Inc NOTES...
Page 189: ...2001 Microchip Technology Inc DS51159B page 189 Index NOTES...
Page 190: ...MPLAB ICE User s Guide DS51159B page 190 2001 Microchip Technology Inc NOTES...
Page 191: ...2001 Microchip Technology Inc DS51159B page 191 Index NOTES...