100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

EE 120 Microprocessor‐Based System Design Lab Section 6. Lab 10. Interfacing LCD with Microcontroller by Serial Peripheral Interface (SPI).. 20 Digital Design II - San Jose State University

Rating
-
Sold
-
Pages
9
Grade
A+
Uploaded on
28-04-2023
Written in
2022/2023

EE 120 Microprocessor‐Based System Design Lab Section 6. Lab 10. Interfacing LCD with Microcontroller by Serial Peripheral Interface (SPI). In this Lab, we will interface the 84x48 Nokia 5110 Liquid Crystal Display (LCD) to the MSP432 microcontroller by Serial Peripheral Interface (SPI). Also, we will design, write, test, and debug communication functions between them. Moreover, this lab uses a handshake scheme (busy and wait) to handle serial communication between software executed on MSP432, which is a master device, and Nokia 5110 LCD, which is a slave device. Figure 1: Busy‐Wait Scheme. Figure 2: MSP432 Serial Communication Interface.LAB PROCEDURE AND RESULTS: 1. Hardware set-up: Figure 3: MSP432 and Nokia 5110 Interface - Pin P9.4 (STE), P9.5 (CLK) and P9.7 (SIMO) are configured for SPI mode. • Pin P9.4 connected to SCE: 0 = enable LCD, 1 = disable LCD. • Pin P9.5 connected to SCLK: Clock. • Pin P9.7 connected to DN: Serial data bits (command or data for display). - Pin P9.3 and P9.6 are set as GPIO. • Pin P9.3 connected to RST: 0 = reset, 1 = run. • Pin P9.6 connected to DC: 0 = DN is command, 1 = DN is data for display.2. Lab11_LCD project: a. lcdcommandwrite function in Nokia5110.c: This function sends an 8-bit command to the LCD screen. Figure 4: Code for lcdcommandwrite Function. b. lcddatawrite function in Nokia5110.c: This function sends an 8‐bit display data to the LCD screen. Figure 5: Code for lcddatawrite Function. c. Nokia5110_OutString function in Nokia5110.c: This function prints a string of characters from the ASCII table shown in the Nokia5110.c program to the LCD screen. Figure 6: Code for Nokia5110_OutString Function.d. Nokia5110_OutUDec function in Nokia5110.c: This function displays a 16‐bit unsigned number in right‐justified 5‐digit decimal format on the LCD screen. Figure 7: Code for Nokia5110_OutUDec Function.e. Nokia5110_OutSDec function in Nokia5110.c: This function displays a 16‐bit signed number in right‐justified 6‐digit decimal format on the LCD screen.

Show more Read less
Institution
EE 120 Microprocessor‐Based System Design Lab Sect
Course
EE 120 Microprocessor‐Based System Design Lab Sect









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
EE 120 Microprocessor‐Based System Design Lab Sect
Course
EE 120 Microprocessor‐Based System Design Lab Sect

Document information

Uploaded on
April 28, 2023
Number of pages
9
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
AllAcademic Other
View profile
Follow You need to be logged in order to follow users or courses
Sold
59
Member since
5 year
Number of followers
39
Documents
528
Last sold
1 month ago
All the academic resources you need.

All the academic resources you need.

3.6

5 reviews

5
2
4
1
3
1
2
0
1
1

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions