;****************************************************************************** ;Software License Agreement ; ;The software supplied herewith by Microchip Technology ;Incorporated (the "Company") is intended and supplied to you, the ;Company’s customer, for use solely and exclusively on Microchip ;products. The software is owned by the Company and/or its supplier, ;and is protected under applicable copyright laws. All rights are ;reserved. Any use in violation of the foregoing restrictions may ;subject the user to criminal sanctions under applicable laws, as ;well as to civil liability for the breach of the terms and ;conditions of this license. ; ;THIS SOFTWARE IS PROVIDED IN AN "AS IS" CONDITION. NO WARRANTIES, ;WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED ;TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A ;PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT, ;IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR ;CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. ; ******************************************************************* ; PICkit 2 Lesson 1 - "Hello World" ; ; This turns on DS1 LED on the Low Pin Count Demo Board. ; ; ******************************************************************* ; * See Low Pin Count Demo Board User's Guide for Lesson Information* ; ******************************************************************* ; * NOTE: The PIC16F690 requires the AC162061 header for debugging * ; ******************************************************************* #include __config (_INTRC_OSC_NOCLKOUT & _WDT_OFF & _PWRTE_OFF & _MCLRE_OFF & _CP_OFF & _BOR_OFF & _IESO_OFF & _FCMEN_OFF) org 0 Start: bsf STATUS,RP0 ; select Register Page 1 bcf TRISC,0 ; make IO Pin C0 an output bcf STATUS,RP0 ; back to Register Page 0 bsf PORTC,0 ; turn on LED C0 (DS1) goto $ ; wait here end