Saturday 22 September 2012

RECEIVER PROGRAMMING



SetPorts     bsf       STATUS,                                RP0     ; select bank 1
                  movlw             b'01000010'                             ; A7=input
                  movwf             TRISB
                  CLRF TRISA
                  bcf       TRISC,4
                  bcf       STATUS,                                RP0     ; select bank 0
                  call       SER_INIT                                          ; initialize serial port

CheckB                 call Insert                   

This example of programming that have been wrote in MPLAB. This program is activating when key ‘A’ and LCD will display ‘set password 1’. Then this programming is to scan the input have been key in by user. The process is looping 5 times because entered password is 5 bits. 

No comments:

Post a Comment