欢迎访问ic37.com |
会员登录 免费注册
发布采购

HD6433846XXXH 参数 Datasheet PDF下载

HD6433846XXXH图片预览
型号: HD6433846XXXH
PDF下载: 下载PDF文件 查看货源
内容描述: 微控制器\n [Microcontroller ]
分类和应用: 微控制器外围集成电路时钟
文件页数/大小: 524 页 / 1465 K
品牌: ETC [ ETC ]
 浏览型号HD6433846XXXH的Datasheet PDF文件第350页浏览型号HD6433846XXXH的Datasheet PDF文件第351页浏览型号HD6433846XXXH的Datasheet PDF文件第352页浏览型号HD6433846XXXH的Datasheet PDF文件第353页浏览型号HD6433846XXXH的Datasheet PDF文件第355页浏览型号HD6433846XXXH的Datasheet PDF文件第356页浏览型号HD6433846XXXH的Datasheet PDF文件第357页浏览型号HD6433846XXXH的Datasheet PDF文件第358页  
12.3.3  
A/D Converter Operation Modes  
A/D converter operation modes are shown in table 12-3.  
Table 12-3 A/D Converter Operation Modes  
Operation  
Module  
Mode  
Reset  
Reset  
Reset  
Held*1  
Held*1  
Active  
Sleep  
Watch Subactive  
Subsleep  
Held  
Standby Standby  
AMR  
Functions Functions Held  
Functions Functions Held  
Functions Functions Held  
Functions Functions Held  
Held  
Held  
Held  
Held  
Held  
Held  
Held  
Held  
Held  
Held  
Held  
Held  
ADSR  
ADRRH  
ADRRL  
Held  
Held  
Held  
Note: 1. Undefined in a power-on reset.  
12.4  
Interrupts  
When A/D conversion ends (ADSF changes from 1 to 0), bit IRRAD in interrupt request register 2  
(IRR2) is set to 1.  
A/D conversion end interrupts can be enabled or disabled by means of bit IENAD in interrupt  
enable register 2 (IENR2).  
For further details see 3.3, Interrupts.  
12.5  
Typical Use  
An example of how the A/D converter can be used is given below, using channel 1 (pin AN1) as  
the analog input channel. Figure 12-3 shows the operation timing.  
1. Bits CH3 to CH0 of the A/D mode register (AMR) are set to 0101, making pin AN1 the analog  
input channel. A/D interrupts are enabled by setting bit IENAD to 1, and A/D conversion is  
started by setting bit ADSF to 1.  
2. When A/D conversion is complete, bit IRRAD is set to 1, and the A/D conversion result is  
stored is stored in ADRRH and ADRRL. At the same time ADSF is cleared to 0, and the A/D  
converter goes to the idle state.  
3. Bit IENAD = 1, so an A/D conversion end interrupt is requested.  
4. The A/D interrupt handling routine starts.  
5. The A/D conversion result is read and processed.  
339  
 复制成功!