ernestclydeachua
Junior Member level 1
relay driver pic16f84a
Im currently working in this project and searched and modified the circuit,
by using a spdt switch i can control a specific relay and LED
where
RB0 controls RB7 and RA0 ===>if RB0=0 then RB7 and RA0=0, else it will be 1 when RB0=1
RB1 controls RB6 and RA1
RB2 controls RB5 and RA2
RB3 controls RB4 and RA3
i want to know the codes in Assembly language
- - - Updated - - -
i really want to know how to control each pins, i only know
movlw b'00000000'
movwf portb
Im currently working in this project and searched and modified the circuit,
by using a spdt switch i can control a specific relay and LED
where
RB0 controls RB7 and RA0 ===>if RB0=0 then RB7 and RA0=0, else it will be 1 when RB0=1
RB1 controls RB6 and RA1
RB2 controls RB5 and RA2
RB3 controls RB4 and RA3
i want to know the codes in Assembly language
- - - Updated - - -
i really want to know how to control each pins, i only know
movlw b'00000000'
movwf portb
Last edited: