Sorry I am very new with Assembly and I am using PicKit2 and I can't figure out how to blink all LEDs, I can only Turn on one LED this is my code so for
Rich (BB code):
#include <p16F690.inc>
__config (_INTRC_OSC_NOCLKOUT & _WDT_OFF & _PWRTE_OFF & _MCLRE_OFF & _CP_OFF & _IESO_OFF & _FCMEN_OFF)
ORG 0x00
call setLEDs ; Setup LED outputs
bsf PORTC,0 ; Turn LED 0 on
goto $ ; Wait here
; Subroutine to setup LED output port on PIC development board
setLEDs
BANKSEL TRISC ; Select bank 1
clrf TRISC ; Set PORTC to outputs
BANKSEL PORTC ; Select bank 0
return
END
Last edited by a moderator: