Motorola CML12S-DP256, MC9S12DP256 manual LCD Command and Character Codes, Code Delay

Page 23

C M L 1 2 S D P 2 5 6

0 7 / 1 7 / 0 2

TABLE 1. LCD Command and Character Codes

Command codes are used for LCD setup and control of character and cursor position. All command codes are written to LCD panel address $B5F0. The BUSY flag (bit 7) should be tested before any command updates to verify that any previous command is completed. A read of the command address $B5F0 will return the BUSY flag status and the current display character location address.

Command

Clear Display, Cursor to Home

Cursor to Home

Entry Mode:

Cursor Decrement, Shift off

Cursor Decrement, Shift on

Cursor Increment, Shift off

Cursor Increment, Shift on

Display Control:

Display, Cursor, and Cursor Blink off Display on, Cursor and Cursor Blink off Display and Cursor on, Cursor Blink off Display, Cursor, and Cursor Blink on

Cursor / Display Shift: (nondestructive move) Cursor shift left

Cursor shift right

Display shift left

Display shift right

Display Function (default 2x40 size) Character Generator Ram Address set Display Ram Address and set cursor location

LCD Character Codes

Code

Delay

$01

1.65ms

$02

1.65ms

$04

40us

$05

40us

$06

40us

$07

40us

$08

40us

$0C

40us

$0E

40us

$0F

40us

$10

40us

$14

40us

$18

40us

$1C

40us

$3C

40us

$40-$7F

40us

$80- $FF

40us

$20 Space $21 ! $22 “ $23 # $24 $ $25 % $26 & $27 ‘ $28 ( $29 ) $2A * $2B + $2C ,

$2D - $2E . $2F / $30 0 $31 1 $32 2 $33 3 $34 4 $35 5 $36 6 $37 7 $38 8 $39 9

$3A : $3B ; $3C { $3D = $3E } $3F ? $40 Time $41 A $42 B $43 C $44 D $45 E $46 F

$47 G $54 $48 H $55

$49 I $56 $4A J $57 $4B K $58 $4C L $59 $4D M $5A $4E N $5B $4F O $5C $50 P $5D $51 Q $5E $52 R $5F $53 S $60

T

$61

A

$6E

n

U

$62

B

$6F

o

V

$63

C

$70

p

W

$64

D

$71

q

X

$65

E

$72

r

Y

$66

F

$73

s

Z

$67

G

$74

t

[

$68

H

$75

u

Yen

$69

I

$76

v

]

$6A

J

$77

w

^

$6B

K

$78

x

_

$6C

L

$79

y

`

$6D

M

$7A

z

$7B { $7C $7D } $7E > $7F <

23

Image 23
Contents CML12S-DP256 Contents Getting Started Modc = Out, JP2 = do not care, see COM Ports Installing the SoftwareBoard Startup Support SoftwareCreating Source Code TutorialSoftware Development AS12 HELLO.ASM -L Hello Assembling source codeRunning your application Auto Programming HCS12 Flash EEpromMON12 operation notes MON12 OperationMovw #IRQSRV,VIRQ Mon12 Monitor CommandsMON12 Interrupt Support MON12 and Noice Memory Map Noice OperationClock frequency = 24MHz BDM OperationAutostart ECS MemenOscsel ModcAuto OFF / spare ModeCUT-AWAY Options 1 Ports and ConnectorsTB1 and J1 Power JP1 and JP2Analog Port Mcuport6 connected and 7,8 connected BusportKeypad / Port H PCOM1 and PCOM2CAN-L Can PortPCOM2 pin connections CAN-HLcdport Lcdport ConnectorP1 P4 HCS12 Header Ring Documentation of the BDM BDM Port Test Points See the HC12 Technical Reference Manual for completeTroubleshooting Tips and Suggestions Code Delay LCD Command and Character CodesCommand MON12 Interrupt Table