gg
Junior Member level 3
About the parallel-in-serial-out of PIC16F84A, how can i generate a start and stop bit??? I required the start and stop bit because i wanted to send the data into the computer through rs-232 cable.
Next question: I'm inputting various of binary data parallelly such as 10101,11000,10111 and so on into my PIC. From my shallow knowledge on PIC, i only know that the PIC can able read the input data by using BTFSC or BTFSS. By using this two instuctions, it can only compare the data inputted with the bit required in the PIC. I think all of you are blur on what i say, let me give an example:
START .....
BTFSS PORTA,0
GOTO START
carry on here
If bit 0 in portA is set to a 1, it will skip the GOTO instruction and continue with the next instructions.
I want my PIC to accept any binary data from PORTA and store temporarily in my register. How can i do that???
Next question: I'm inputting various of binary data parallelly such as 10101,11000,10111 and so on into my PIC. From my shallow knowledge on PIC, i only know that the PIC can able read the input data by using BTFSC or BTFSS. By using this two instuctions, it can only compare the data inputted with the bit required in the PIC. I think all of you are blur on what i say, let me give an example:
START .....
BTFSS PORTA,0
GOTO START
carry on here
If bit 0 in portA is set to a 1, it will skip the GOTO instruction and continue with the next instructions.
I want my PIC to accept any binary data from PORTA and store temporarily in my register. How can i do that???