Introduction: Build Yourself Flashing Message on PIC16F877A With Assembler
Guys, in this step by step instruction,
I wanna share my private experiment with PIC16F877A and assembly language,
I call it
Build yourself flashing message on PIC16F877A with assembler
Let's prepare the parts
Step 1: The Parts Needed for This Experiment
1. PIC 16F877A chip
2. The board for PIC 16F877A
3. LCD 16x2
4. G540 chip programmer
6. Time for editing and understanding assembly
Step 2: Create the Code on MPLAB
Create the code on MPLAB
BANKSEL TRISD; 1 for input, 0 for output
movwf TRISB ;RB<7:0> are all outputs
clrf PORTB ;Here RW is pulled down to ground
;LCD routine starts
;give LCD module to reset automatically
;Fundtion for 8-bit, 2-line display, and 5x8 dot matrix
;Display On, CUrsor On, No blinking
movlw 0x0E ;0F would blink
;DDRAM address increment by one & cursor shift to right
;Set DDRAM ADDRES
movlw 0x80 ;00
;WRITE DATA in the 1st position of line 1
movlw 0x52 ;R
movlw 0x49 ;I
Step 3: Test and Enjoy Yourself Message Flashing on LCD...
elabusivo made it!
We have a be nice policy.
Please be positive and constructive.