参数资料
型号: M34501M2-XXXFP
元件分类: 微控制器/微处理器
英文描述: 4-BIT, MROM, MICROCONTROLLER, PDSO20
封装: 5.30 X 12.60 MM, 1.27 MM PITCH, PLASTIC, SOP-20
文件页数: 68/118页
文件大小: 952K
代理商: M34501M2-XXXFP
4501 Group
Rev.3.01
2005.02.07
page 51 of 112
REJ03B0104-0301
Fig. 53 Analog input external circuit example-1
Fig. 54 Analog input external circuit example-2
Notes for the use of A/D conversion 1
Note the following when using the analog input pins also for port
P2 function:
Selection of analog input pins
Even when P20/AIN0 and P21/AIN1 are set to pins for analog in-
put, they continue to function as port P2 input/output.
Accordingly, when any of them are used as I/O port and others
are used as analog input pins, make sure to set the outputs of
pins that are set for analog input to “1.” Also, the port input func-
tion of the pin functions as an analog input is undefined.
TALA instruction
When the TALA instruction is executed, the low-order 2 bits of
register AD is transferred to the high-order 2 bits of register A, si-
multaneously, the low-order 2 bits of register A is “0.”
Notes for the use of A/D conversion 2
Do not change the operating mode (both A/D conversion mode
and comparator mode) of A/D converter with the bit 3 of register
Q1 while the A/D converter is operating.
When the operating mode of A/D converter is changed from the
comparator mode to A/D conversion mode with the bit 3 of regis-
ter Q1, note the following;
Clear the bit 2 of register V2 to “0” (refer to Figure 52) to
change the operating mode of the A/D converter from the com-
parator mode to A/D conversion mode with the bit 3 of register
Q1.
The A/D conversion completion flag (ADF) may be set when the
operating mode of the A/D converter is changed from the com-
parator mode to the A/D conversion mode. Accordingly, set a
value to the bit 3 of register Q1, and execute the SNZAD instruc-
tion to clear the ADF flag.
LA
8
; (02)
TV2A
; The SNZAD instruction is valid ........
LA
0
; (02)
TQ1A
; Operation mode of A/D converter is
changed from comparator mode to A/D
conversion mode.
SNZAD
NOP
: these bits are not used here.
Fig. 52 A/D conversion interrupt program example
Notes for the use of A/D conversion 3
Each analog input pin is equipped with a capacitor which is used
to compare the analog voltage. Accordingly, when the analog
voltage is input from the circuit with high-impedance and, charge/
discharge noise is generated and the sufficient A/D accuracy
may not be obtained. Therefore, reduce the impedance or, con-
nect a capacitor (0.01
F to 1 F) to analog input pins (Figure 53).
When the overvoltage applied to the A/D conversion circuit may
occur, connect an external circuit in order to keep the voltage
within the rated range as shown the Figure 54. In addition, test
the application products sufficiently.
Sensor
AIN
Apply the voltage withiin the specifications
to an analog input pin.
Sensor
AIN
About 1k
18
16
17
相关PDF资料
PDF描述
M34501E4FP 4-BIT, OTPROM, MICROCONTROLLER, PDSO20
M34501M4-XXXFP 4-BIT, MROM, MICROCONTROLLER, PDSO20
M34501E4FP 4-BIT, OTPROM, MICROCONTROLLER, PDSO20
M34502M2-XXXFP 4-BIT, MROM, MICROCONTROLLER, PDSO24
M34502M4-XXXFP 4-BIT, MROM, MICROCONTROLLER, PDSO24
相关代理商/技术参数
参数描述
M34501M4 制造商:MITSUBISHI 制造商全称:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
M34501M4-XXXFP 制造商:MITSUBISHI 制造商全称:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
M34502E4 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
M34502E4FP 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:4-BIT CISC SINGLE-CHIP MICROCOMPUTER 4500 SERIES
M34502M2 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER