956
LPCR—LCD Port Control Register
H'FC30
LCD
7
DTS1
0
R/W
6
DTS0
0
R/W
5
CMX
0
R/W
4
—
0
—
3
SGS3
0
R/W
0
SGS0
0
R/W
2
SGS2
0
R/W
1
SGS1
0
R/W
Bit
Initial value
Read/Write
Segment Driver Select (H8S/2646, H8S/2646R, H8S/2645)
Bit 3
Bit 2
Bit 1
Bit 0
SGS3 SGS2 SGS1 SGS0
SEG24 to
SEG17
SEG16 to
SEG13
SEG12 to
SEG9
SEG8 to
SEG5
SEG4 to
SEG1
Notes
Port
Port
Port
Port
Port
Initial value (external
expansion enabled)
External expansion
not possible
Function of Pins SEG24 to SEG1
0
0
0
0
SEG
Port
Port
Port
Port
1
SEG
SEG
Port
Port
Port
1
0
SEG
SEG
SEG
Port
Port
1
SEG
SEG
SEG
SEG
Port
1
0
0
SEG
SEG
SEG
SEG
SEG
1
Settting
prohibited
Settting
prohibited
Settting
prohibited
Settting
prohibited
Settting
prohibited
1
*
Settting
prohibited
Settting
prohibited
Settting
prohibited
Settting
prohibited
Settting
prohibited
1
*
*
*
Duty Cycle Select/Common Function Select
Note: COM4 to COM1 function as ports when the setting of SGS3 to SGS0 is 0000 (initial value).
*
: Don't care
*
: Don't care
Bit 7
DTS1
0
1
Bit 6
DTS0
0
1
0
1
Bit 5
CMX
0
1
0
1
0
1
*
Duty Cycle
Static
1/2 duty
1/3 duty
1/4 duty
COM1
COM4 to COM1
COM2 to COM1
COM4 to COM1
COM3 to COM1
COM4 to COM1
COM4 to COM1
COM4, COM3, and COM2 can be used as ports (Initial value)
COM4, COM3, and COM2 output the same waveform as COM1
COM4 and COM3 can be used as ports
COM4 outputs the same waveform as COM3, and COM2 outputs
the same waveform as COM1
COM4 can be used as a port
Do not use COM4
—
Common Drivers
Notes
Note: When using external expansion, set a value of 0000 for SGS3 to SGS0. When the setting of SGS3
to SGS0 is 0000, COM4 to COM1 also function as ports.
Segment Driver Select (H8S/2648, H8S/2648R, H8S/2647)
Bit 3
Bit 2
Bit 1
Bit 0
SGS3 SGS2 SGS1 SGS0
SEG40
to
SEG33
Notes
Port
Initial value (external
expansion enabled)
External expansion
not possible
Function of Pins SEG40 to SEG1
0
0
0
0
SEG
1
SEG
1
0
SEG
1
SEG
1
0
0
SEG
SEG
SEG
SEG
SEG
SEG32
to
SEG29
Port
Port
SEG
SEG
SEG
SEG
SEG
SEG
SEG
SEG
SEG28
to
SEG25
Port
Port
Port
SEG
SEG
SEG
SEG
SEG
SEG
SEG
SEG24
to
SEG21
Port
Port
Port
Port
SEG
SEG
SEG
SEG
SEG
SEG
SEG20
to
SEG17
Port
Port
Port
Port
Port
SEG
SEG
SEG
SEG
SEG
SEG16
to
SEG13
Port
Port
Port
Port
Port
Port
SEG
SEG
SEG
SEG
SEG12
to
SEG9
Port
Port
Port
Port
Port
Port
Port
SEG
SEG
SEG
SEG8
to
SEG5
Port
Port
Port
Port
Port
Port
Port
Port
SEG
SEG
SEG4
to
SEG1
Port
Port
Port
Port
Port
Port
Port
Port
Port
SEG
1
1
0
1
*
*
0
1
1
*
: Don't care
Note: When using external expansion, set a value of 0000 for SGS3 to SGS0. When the setting of SGS3
to SGS0 is 0000, COM4 to COM1 also function as ports.
Содержание H8S/2645
Страница 4: ......
Страница 16: ......
Страница 58: ...26 ...
Страница 110: ...78 ...
Страница 120: ...88 ...
Страница 132: ...100 ...
Страница 160: ...128 ...
Страница 172: ...140 ...
Страница 235: ...203 Transfer SAR or DAR DAR or SAR Block area First block Nth block Figure 8 8 Memory Mapping in Block Transfer Mode ...
Страница 418: ...386 ...
Страница 444: ...412 ...
Страница 530: ...498 ...
Страница 562: ...530 ...
Страница 642: ...610 ...
Страница 662: ...630 ...
Страница 688: ...656 ...
Страница 756: ...724 ...
Страница 784: ...752 ...
Страница 812: ...780 ...
Страница 837: ...805 A 2 Instruction Codes Table A 2 shows the instruction codes ...
Страница 1152: ...1120 ...