Fujitsu Semiconductor Controller MB89950/950A Hardware Manual page 275

F2mc-8l 8-bit microcontroller
Table of Contents

Advertisement

G
Coding example
LCRAM
EQU
LCDR
EQU
SEGR
EQU
LCD
SEG
LCDDATA DB
DB
DB
DB
DB
DB
DB
DB
DB
DB
DB
LCD
SEG
;-----Main program----------------------------------------------------------------
CSEG
:
MOVW
MOVW
MOV
LCDSET
MOV
MOV
INCW
INCW
BNZ
MOV
:
ENDS
;---------------------------------------------------------------------------------
END
0064H
;Starting address of LCD display RAM
0079H
;Address of LCD control register (LCDR)
007AH
;Address of segment output select register (SEGR)
CSEG
;8-segment LCD data
11011111B
;"0"
11001000B
;"1"
11110110B
;"2"
11111100B
;"3"
11101001B
;"4"
01111101B
;"5"
01111111B
;"6"
11011001B
;"7"
11111111B
;"8"
11111101B
;"9"
00000000B
;END
ENDS
; [CODE SEGMENT]
EP,#LCRAM
; Set LCD RAM address.
IX,#LCDDATA
; Set LCD data table address.
SEGR,01111111B
; Set the segment output function.
A,@IX+00H
@EP,A
EP
IX
LCDSET
; Continue until data end (00H) is detected.
LCDR,#00101111B ; Set LCDR and turn LCD display on.
CHAPTER 12 LCD CONTROLLER/DRIVER
261

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb89950 seriesMb89950a series

Table of Contents