
vi
Programmer’s Manual
11.2
Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-2
11.3
System Internal Modes . . . . . . . . . . . . . . . . . . . . . . . . . . .5.1
Initialization Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-3
System Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-3
Wake-up Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-3
Application Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-3
Normal Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5.2
Doze Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-4
Sleep Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-5
Power Management Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-6
Setting Duty Cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-6
Setting Doze Period . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-6
Setting Sleep Period . . . . . . . . . . . . . . . . . . . . . . . . . .6.1
Going Into Doze Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-7
Going Into Sleep Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-7
I/O Ports Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-7
Disabling I/O Port Before Doze Mode . . . . . . . . . . . . . . . . . . . . 11-7
Enabling I/O Port After Doze Mode . . . . . . . . . . . . . . . . . . . . . . 11-7
Disabling I/O Port Before Sleep Mode . . . . . . . . . . . . . . . . . . . . 11-7
Enabling I/O Port After Sleep Mode . . . . . . . . . . . . . .6.3
11.4
11.5
11.6
Chapter 12
12-1
Chapter 13
UART Communication Support . . . . . . . . . . . . . . . . . . . . . .12-3
13.1
UART Communication Architecture . . . . . . . . . . . . . . . . . . . . . . . . . 12Graphics Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-10
UART hardware flow control . . . . . . . . . . . . . . . . . . . .6.7
UART Interface Constraints . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-4
UART Interface Interrupt Message . . . . . . . . . . . . . . .6.8
UART Configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . .6.9
Configuring the UART . . . . . . . . . . . . . . . . . . . . . . . .6.10
Inquiring the UART Configurations . . . . . . . . . . . . . . . . . . . . . . 12-11
Setting Data Transmission Time Out . . . . . . . . . . . . . . . . . . . . 12-11
Setting Data Transmission Delay . . . . . . . . . . . . . . . .6.12
Sending Data to the UART . . . . . . . . . . . . . . . . . . . . . . . .6.13
Initiating a Send Request . . . . . . . . . . . . . . . . . . . . . .6.14
Terminating a Send Request . . . . . . . . . . . . . . . . . . . . . . . . . . 12-13
Receiving Data from the UART . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-13
Initiating a Receive Request . . . . . . . . . . . . . . . . . . . .6.16
Reading Received Data . . . . . . . . . . . . . . . . . . . . . . .6.17
Terminating a Receive Request . . . . . . . . . . . . . . . . . . . . . . . . 12-14
Setting Data Reception Time Out . . . . . . . . . . . . . . . .6.18
13.2
13.3
13.4
PDA Personal Portable System Manager
Programmer’s Manual
Table of CTable of Contents
iii
Soft Keyboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-1
Starting Soft Keyboard Character Input . . . . . . . . . . . . . . . . . . . .5-2
Auto-Key-Repeat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-3
Terminating Soft Keyboard Character Input . . . . . . . . . . . . . . . . .5-3
Suspend Soft Keyboard Character Input . . . . . . . . . . . . . . . . . . .5-3
The Input Pad Mechanism . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-5
Starting Handwriting Character Input . . . . . . . . . . . . . . . . . . . . . .5-5
Terminating Handwriting Character Input . . . . . . . . . . . . . . . . . . .5-6
Display Screen Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-2
LCD Display Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-2
Panning Display Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-3
Screen Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-3
LCD Display Screen in relation to the Touch Panel . . . . . . . . . . .6-3
Screen Resolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-4
6.2
6.4
1 bit-per-pixel Graphics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-5
Drawing Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-6
2 bits-per-pixel Graphics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-7
Drawing Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-7
6.5
6.6
Get LCD Display Screen Width . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-11
Get LCD Display Screen Height . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-11
Get Panning Screen Width . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-12
Get Panning Screen Height . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-12
6.11
Set Pattern Fill . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-12
Set Dot Width . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-13
DisplayMove . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-13
Direct All Graphics Output to off-screen memory . . . . . . . . . . . . . . .6-13
6.15
Change Panning Screen Parameters . . . . . . . . . . . . . . . . . . . . . . . .6-14
Fill the whole Panning Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-17
Draw a Dot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-17
Draw a Horizontal Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-19
6.19
Draw a Vertical Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-20
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.