Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program that displays a long message on the 2X16 LCD on the trainer boar

ID: 3538660 • Letter: W

Question

Write a program that displays a long message on the 2X16 LCD on the trainer board. In order to show a message that is longer than 16 characters you need to scroll the display. So you will show a part of message and then move characters to the left to show the rest of message. You will need a delay routine to display part of message at a time. You can select different messages based on the selector DIP switch on the trainer board. I am not too concerned about the message at this time, something can be made up for now and I will change it later.

Explanation / Answer

The program now knows the 4017 has output 9 HIGH and one clock of the 4017 via the following sub-routine will make the 10th output HIGH:

Set4017    bsf       status,rp0
                movlw   b'00100000'    ;Set the TRIS for A in/out
                movwf   05h
                bcf        status,rp0
Set_         movlw   b'00000001' ;(turn off RA4) Make RA0 HIGH
                movwf   05h
                call       _10uS
                movlw   b'00000000'    ;Make RA0 LOW
                movwf   05h
                call       _10uS           ;clock 4017
                btfsc    05h,5              ;see if 4017 is at 9th output
                retlw    00
                goto     Set_
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote