IV ANALOG BLOCK: A/D CONVERTER
S1C33L03 FUNCTION PART
EPSON
B-IV-2-3
A-1
B-IV
A/D
Setting A/D Converter
When the A/D converter is used, the following settings must be made before an A/D conversion can be performed:
1. Setting analog input pins
2. Setting the input clock
3. Selecting the analog-conversion start and end channels
4. Setting the A/D conversion mode
5. Selecting a trigger
6. Setting the sampling time
7. Setting interrupt/IDMA/HSDMA
The following describes how to set each item. For details on how to set the analog input pins, refer to the preceding
section. For details on how to set interrupt/DMA, refer to "A/D Converter Interrupt and DMA".
Note: Before making these settings, make sure the A/D converter is disabled (ADE (D2) / A/D enable
register (0x40244) = "0"). Changing the settings while the A/D converter is enabled could cause a
malfunction.
Setting the input clock
As explained in "Prescaler", the A/D conversion clock can be selected from among the eight types shown in
Table 2.2 below. Use PSAD[2:0] (D[2:0]) / A/D clock control register (0x4014F) for this selection.
Table 2.2 Input Clock Selection
PSAD2
PSAD1
PSAD0
Division ratio
1
1
1
f
PSCIN
/256
1
1
0
f
PSCIN
/128
1
0
1
f
PSCIN
/64
1
0
0
f
PSCIN
/32
0
1
1
f
PSCIN
/16
0
1
0
f
PSCIN
/8
0
0
1
f
PSCIN
/4
0
0
0
f
PSCIN
/2
f
PSCIN
: Prescaler input clock frequency
The selected clock is output from the prescaler to the A/D converter by writing "1" to PSONAD (D3) / A/D
clock control register (0x4014F).
Notes: • The A/D converter operates only when the prescaler is operating.
• The recommended input clock frequency is a maximum of 2 MHz.
• Do not start an A/D conversion when the clock output from the prescaler to the A/D converter is
turned off, and do not turn off the prescaler's clock output when an A/D conversion is underway.
This could cause the A/D converter to operate erratically.
Selecting analog-conversion start and end channels
Select the channel in which the A/D conversion is to be performed from among the pins (channels) that have
been set for analog input. To enable A/D conversions in multiple channels to be performed successively
through one convert operation, specify the conversion start and conversion end channels.
Conversion start channel: CS[2:0] (D[2:0]) / A/D channel register (0x40243)
Conversion end channel: CE[2:0] (D[5:3]) / A/D channel register (0x40243)
Содержание CMOS 32-Bit Single Chip Microcomputer S1C33L03
Страница 4: ......
Страница 14: ......
Страница 15: ...S1C33L03 PRODUCT PART ...
Страница 16: ......
Страница 147: ...S1C33L03 FUNCTION PART ...
Страница 148: ......
Страница 149: ...S1C33L03 FUNCTION PART I OUTLINE ...
Страница 150: ......
Страница 152: ...I OUTLINE INTRODUCTION B I 1 2 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 162: ...I OUTLINE LIST OF PINS B I 3 8 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 163: ...S1C33L03 FUNCTION PART II CORE BLOCK ...
Страница 164: ......
Страница 166: ...II CORE BLOCK INTRODUCTION B II 1 2 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 172: ...II CORE BLOCK CPU AND OPERATING MODE B II 2 6 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 176: ...II CORE BLOCK INITIAL RESET B II 3 4 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 224: ...II CORE BLOCK BCU Bus Control Unit B II 4 48 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 250: ...II CORE BLOCK ITC Interrupt Controller B II 5 26 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 262: ...II CORE BLOCK DBG Debug Unit B II 7 2 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 263: ...S1C33L03 FUNCTION PART III PERIPHERAL BLOCK ...
Страница 264: ......
Страница 266: ...III PERIPHERAL BLOCK INTRODUCTION B III 1 2 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 292: ...III PERIPHERAL BLOCK 8 BIT PROGRAMMABLE TIMERS B III 3 18 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 318: ...III PERIPHERAL BLOCK 16 BIT PROGRAMMABLE TIMERS B III 4 26 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 322: ...III PERIPHERAL BLOCK WATCHDOG TIMER B III 5 4 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 414: ...III PERIPHERAL BLOCK INPUT OUTPUT PORTS B III 9 26 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 415: ...S1C33L03 FUNCTION PART IV ANALOG BLOCK ...
Страница 416: ......
Страница 418: ...IV ANALOG BLOCK INTRODUCTION B IV 1 2 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 434: ...IV ANALOG BLOCK A D CONVERTER B IV 2 16 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 435: ...S1C33L03 FUNCTION PART V DMA BLOCK ...
Страница 436: ......
Страница 438: ...V DMA BLOCK INTRODUCTION B V 1 2 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 492: ...V DMA BLOCK IDMA Intelligent DMA B V 3 18 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 493: ...S1C33L03 FUNCTION PART VI SDRAM CONTROLLER BLOCK ...
Страница 494: ......
Страница 496: ...VI SDRAM CONTROLLER BLOCK INTRODUCTION B VI 1 2 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 531: ...S1C33L03 FUNCTION PART VII LCD CONTROLLER BLOCK ...
Страница 532: ......
Страница 534: ...VII LCD CONTROLLER BLOCK INTRODUCTION B VII 1 2 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Страница 579: ...S1C33L03 FUNCTION PART Appendix I O MAP ...
Страница 580: ......