Escolar Documentos
Profissional Documentos
Cultura Documentos
include "P16F872.inc"
__CONFIG _XT_OSC & _WDT_OFF & _PWRTE_OFF & _CP_OFF & _BODEN_OFF
& _LVP_OFF
PORTA EQU 5
PORTB EQU 6
ADCON1 EQU 9f
ADCON0 EQU 1f
ADRESH EQU 1e
TRISA EQU 85
TRISB EQU 86
GOTO init
; ***************main program***************************************************
movlw 0xf
movlw 0x00
movlw 0x0e
bsf PORTB,0 ; Light the LED if the carry bit or the status register
is set
END