Figure 43-23. Usage Model for Character Mapping Function
Manual CM Entry
Configure character
coordinate by writing
CMINDEX
Configure CMDMASK
Write CMDATA
Manual CM Exit
CMDMASK
configured?
Y
N
By this character mapping feature, user could update any particular rectangular window defined by
CMCFG and CMINDEX in the display memory just by a single APB write access.
The Decrement SEG Index bit in Character Mapping Configuration (CMCFG.DEC) defines the mapping
order. And CMINDEX.SINDEX also have different coordinate under different DEC configuration. Refer to
figure below for illustration.
Figure 43-24. Character Mapping Order
COM0
COM1
COM2
COM3
COM4
COM5
COM6
COM7
21
22
SEGn
SEGn
+
1
SEGn
+
2
8
12
16
20
13
17
10
14
18
0
4
1
5
9
2
6
23
SEGn
+
3
11
15
19
3
7
DEC=0
NSEG=3
SINDEX
COM0
COM1
COM2
COM3
COM4
COM5
COM6
COM7
22
21
SEGn
SEGn
+
1
SEGn
+
2
11
15
19
23
14
18
9
13
17
3
7
2
6
10
1
5
20
SEGn
+
3
8
12
16
0
4
DEC=1
NSEG=3
SINDEX
Note:
The user must make sure all character bits could be mapped to some bit in display memory, not
somewhere out side display memory.
Atmel SAM L22G / L22J / L22N [DATASHEET]
Atmel-42402E-SAM L22G / L22J / L22N_Datasheet_Complete-07/2016
1080