260
CHAPTER 12 LCD CONTROLLER/DRIVER
12.5 Program Example for LCD Controller/Driver
This section gives a program example for LCD controller/driver.
■ Program example for LCD controller/driver
●
Processing description
The process writes LCD data to display RAM. The data is that required to display the numbers "0" through
"9" in an LCD panel connected as shown in Figure 12.4-7 "Segment/common connections, data states and
corresponding display". The settings are as follows:
• Internal voltage divider is selected (LCDR: VSEL = "1")
• 1/3 bias and 1/4 duty ratio are used.
• The main clock oscillation frequency is 5 MHz
• The frame frequency is set at 76 Hz (LCDR: FP1, FP0 = "11
B
")