Student Attendance Logging Project
Hi,
I am currently doing a project on student attendance logging system using RFID reader from Parrallax. I have almost finish my other parts of my project such as LCD, KEYPAD and also USB. However i have some problem in sending the output (Sout) of the RFID reader to my wireless transmitter which has 4 input data pins. I am using PIC16F877 to control the system. Unfortunately i have to use assembly language for this project. This has become a challange to me as i m not so good in this programming language. My problem is i could not break the output of the RFID reader which contain 12 bytes to my wireless transmitter which has only 4 input data pins. My program is as following:
Convert········ movf··· PORTA,w
·················· ·movwf·TAG0
··················· movwf·TAG1
··················· movwf·TAG2
················· movwf·TAG3
···················· movwf·TAG4
··················· movwf·TAG5
················· movwf·TAG6
··················· movwf·TAG7
················ movwf·TAG8
················ movwf·TAG9
··············· CALL· ·DATA_SEND
············· MOVF·TAG1,W
··········· ··CALL· ·DATA_SEND
·········· MOVF·TAG2,W
· ········ ·CALL ·DATA_SEND
·········· MOVF·TAG3,W
· ·········· CALL· ·DATA_SEND
·
··············· MOVF·TAG4,W
· ·········· ·CALL· ·DATA_SEND
············ ·MOVF·TAG5,W
· ·············· CALL· ·DATA_SEND
············ MOVF·TAG6,W
· ··········· CALL· ·DATA_SEND
·········· MOVF·TAG7,W
· ······ CALL· ·DATA_SEND
········ MOVF·TAG8,W
· ···· ·CALL· ·DATA_SEND
·
······ MOVF·TAG9,W
· ····· CALL· ·DATA_SEND
DATA_SEND······ BCF·· ·STATUS,RP1··;BANK 0
···················· ·BCF·· ·STATUS,RP0
······················MOVWF·VAR2···;SENDING 1ST FOUR BITS
···················· ·SWAPF·VAR2,W
····················· ANDLW·0X0F
·················· ·MOVWF·TRF_PORT·· ;TRF_PORT is portA
··················· call ·Delay5
················ MOVF·VAR2,W···;SENDING 2ND FOUR BITS
·············· ·ANDLW·0X0F
·············· ··MOVWF·TRF_PORT
················· call ·Delay5
················ RETURN
I would be grateful if someone could give some comment or idea to complete my project!! Thanks.
regards,
anne
I am currently doing a project on student attendance logging system using RFID reader from Parrallax. I have almost finish my other parts of my project such as LCD, KEYPAD and also USB. However i have some problem in sending the output (Sout) of the RFID reader to my wireless transmitter which has 4 input data pins. I am using PIC16F877 to control the system. Unfortunately i have to use assembly language for this project. This has become a challange to me as i m not so good in this programming language. My problem is i could not break the output of the RFID reader which contain 12 bytes to my wireless transmitter which has only 4 input data pins. My program is as following:
Convert········ movf··· PORTA,w
·················· ·movwf·TAG0
··················· movwf·TAG1
··················· movwf·TAG2
················· movwf·TAG3
···················· movwf·TAG4
··················· movwf·TAG5
················· movwf·TAG6
··················· movwf·TAG7
················ movwf·TAG8
················ movwf·TAG9
··············· CALL· ·DATA_SEND
············· MOVF·TAG1,W
··········· ··CALL· ·DATA_SEND
·········· MOVF·TAG2,W
· ········ ·CALL ·DATA_SEND
·········· MOVF·TAG3,W
· ·········· CALL· ·DATA_SEND
·
··············· MOVF·TAG4,W
· ·········· ·CALL· ·DATA_SEND
············ ·MOVF·TAG5,W
· ·············· CALL· ·DATA_SEND
············ MOVF·TAG6,W
· ··········· CALL· ·DATA_SEND
·········· MOVF·TAG7,W
· ······ CALL· ·DATA_SEND
········ MOVF·TAG8,W
· ···· ·CALL· ·DATA_SEND
·
······ MOVF·TAG9,W
· ····· CALL· ·DATA_SEND
DATA_SEND······ BCF·· ·STATUS,RP1··;BANK 0
···················· ·BCF·· ·STATUS,RP0
······················MOVWF·VAR2···;SENDING 1ST FOUR BITS
···················· ·SWAPF·VAR2,W
····················· ANDLW·0X0F
·················· ·MOVWF·TRF_PORT·· ;TRF_PORT is portA
··················· call ·Delay5
················ MOVF·VAR2,W···;SENDING 2ND FOUR BITS
·············· ·ANDLW·0X0F
·············· ··MOVWF·TRF_PORT
················· call ·Delay5
················ RETURN
I would be grateful if someone could give some comment or idea to complete my project!! Thanks.
regards,
anne
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support