; ******************************************************************* ; Curso Pic Leccion 1 - "Hello World" ; ; Este programa enciende un LED conectado al puerto RC0 con una resistencia de 330 ohms. #include __config _WDT_OFF & _PWRTE_ON & _LVP_ON & _CP_OFF & _XT_OSC 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