Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Hi,
You do not say what chip you are using, but have you set PortA to Digital from the default Analogue or Comparator input ?
Does you chip have 8 bits on PortA ?
LIST p=16F628a
include "P16F628a.inc"
__CONFIG _LVP_OFF & _BOREN_OFF & _MCLRE_OFF & _WDT_OFF & _PWRTE_ON & _INTOSC_OSC_NOCLKOUT
banksel TRISA ; select bank1
movlw b'00000000'
movwf TRISB
movwf TRISA
banksel PORTA ; return to bank 0
movlw 0x07 ; TURN OFF PORTa COMPARATOR
movwf CMCON
movlw d'255'
movwf PORTA
movwf PORTB
NOP
NOP
end
Hi,
The code below will load FF to PORTA, however not all pins on the 628A can be used as outputs.