hey
i m doing a project on PIC18F452 and using Visual basic 6.0 to control the PIC
in the project VB will send a Byte to the PIC through a serial port and the PIC turn on a LED with that Byte
i have the sample of my old lab
(LIGHT
bsf PORTA,RA1
bsf PORTA,RA2
bsf PORTA,RA3
movlw 128
cpfseq SAVEBYTE
bcf PORTA,RA2
movlw 2
bcf PORTA,RA3
movlw 5
bcf PORTA,RA1
return)
so could u guys help me figure out to turn on a LED PORTA RA1 with one byte and. then turn it of with a different byte
and turn of POTRA,RA2 with a different byte. and so on... with assembly language or MikroBasic or MikroC.
plz help. me figure out this.
thanx..
i m doing a project on PIC18F452 and using Visual basic 6.0 to control the PIC
in the project VB will send a Byte to the PIC through a serial port and the PIC turn on a LED with that Byte
i have the sample of my old lab
(LIGHT
bsf PORTA,RA1
bsf PORTA,RA2
bsf PORTA,RA3
movlw 128
cpfseq SAVEBYTE
bcf PORTA,RA2
movlw 2
bcf PORTA,RA3
movlw 5
bcf PORTA,RA1
return)
so could u guys help me figure out to turn on a LED PORTA RA1 with one byte and. then turn it of with a different byte
and turn of POTRA,RA2 with a different byte. and so on... with assembly language or MikroBasic or MikroC.
plz help. me figure out this.
thanx..
Last edited: