Jun 29, 2011 #1 D d@nny Full Member level 5 Joined May 28, 2011 Messages 246 Helped 11 Reputation 22 Reaction score 11 Trophy points 1,298 Activity points 3,238 processor 16f84 #include "p16f84.inc" __config _RC_OSC & _WDT_OFF & _PWRTE_ON ; This includes PIC16F84 definitions for the MPASM assembler ; Please insert your code here. org 0x00 temp equ 4h goto main org 0x04 movwf temp movlw B'11111111' movwf PORTA movfw temp bcf INTCON , 1 retfie main: bsf INTCON,7 bsf INTCON,4 bcf INTCON,1 banksel TRISB movlw B'00000001' movwf TRISB banksel TRISA movlw B'00000000' movwf TRISA fin: goto fin END
processor 16f84 #include "p16f84.inc" __config _RC_OSC & _WDT_OFF & _PWRTE_ON ; This includes PIC16F84 definitions for the MPASM assembler ; Please insert your code here. org 0x00 temp equ 4h goto main org 0x04 movwf temp movlw B'11111111' movwf PORTA movfw temp bcf INTCON , 1 retfie main: bsf INTCON,7 bsf INTCON,4 bcf INTCON,1 banksel TRISB movlw B'00000001' movwf TRISB banksel TRISA movlw B'00000000' movwf TRISA fin: goto fin END
Jun 29, 2011 #2 W wp100 Advanced Member level 6 Joined May 15, 2009 Messages 3,051 Helped 884 Reputation 1,783 Reaction score 733 Trophy points 113 Location Prime Meridian Activity points 0 Hi, This thread should help https://www.edaboard.com/threads/215684/#post913441