参数资料
型号: SAB-C515-LM
厂商: INFINEON TECHNOLOGIES AG
元件分类: 微控制器/微处理器
英文描述: 8-BIT, 16 MHz, MICROCONTROLLER, PQFP80
封装: PLASTIC, MQFP-80
文件页数: 15/162页
文件大小: 771K
代理商: SAB-C515-LM
Semiconductor Group
6-68
On-Chip Peripheral Components
C515
An A/D conversion is always started with the beginning of a processor cycle when it has been
initiated by writing SFR ADDAT. The ADDAT write operation may take one or two machine cycles.
In figure 6-33, the instruction MOV ADDAT,#0 starts the A/D conversion (machine cycle X-1 and
X). The total A/D conversion (sample and conversion phase) is finished with the beginning of the
14th machine cycle after the A/D conversion start. In the next machine cycle the conversion result
is written into the ADDAT register and can be read in the same cycle by an instruction (e.g. MOV
A,ADDAT). If continuous conversion is selected (bit ADM set), the next conversion is started with
the beginning of the machine cycle which follows the write result cycle.
The BSY bit is set at the beginning of the first A/D conversion machine cycle and reset at the
beginning of the write result cycle. If continuous conversion is selected, BSY is again set with the
beginning of the machine cycle which follows the write result cycle. This means that in continuous
conversion mode BSY is not set for a complete machine cycle. Therefore, in continuous conversion
mode it is not recommended to poll the BSY bit using e.g. the JNB instruction.
The interrupt flag IADC is set in the 12th instruction cycle of an A/D conversion. If the A/D converter
interrupt is enabled and the A/D converter interrupt is priorized to be serviced immediately, the first
instruction of the interrupt service routine will be executed in the next machine cycle which follows
the write result cycle. IADC must be reset by software.
Depending on the application, typically there are three methods to handle the A/D conversion in the
C515 :
– Software delay
The machine cycles of the A/D conversion are counted and the program executes a software
delay (e.g. NOPs) before reading the A/D conversion result in the write result cycle. This is
the fastest method to get the result of an A/D conversion.
– Polling BSY bit
The BSY bit is polled and the program waits until BSY=0. Attention : a polling JB instruction
which is two machine cycles long, possibly may not recognize the BSY=0 condition during the
write result cycle in the continuous conversion mode.
– A/D conversion interrupt
After the start of an A/D conversion the A/D converter interrupt is enabled. The result of the
A/D conversion is read in the interrupt service routine. If other C515 interrupts are enabled,
the interrupt latency must be regarded. Therefore, this software method is the slowest method
to get the result of an A/D conversion.
Depending on the oscillator frequency of the C515 the total time of an A/D conversion is calculated
according the formula given in figure 6-33. Table 6-7 shows some conversion times for typical clock
rates.
Table 6-7
A/D Conversion Times
fOSC [MHz]
tIN [ns]
Total Conversion Time
tADCC [ms]
12 MHz
166.7
12
16 MHz
125
9
24 MHz
83.3
6
相关PDF资料
PDF描述
SAB-C515C-LM 8-BIT, 10 MHz, MICROCONTROLLER, PQFP80
SAB-XC164CM-8F40F 16-BIT, FLASH, 40 MHz, MICROCONTROLLER, PQFP64
SAB-XC164CM-4F40F 16-BIT, FLASH, 40 MHz, MICROCONTROLLER, PQFP64
SAB-XC164CM-8F20F 16-BIT, FLASH, 20 MHz, MICROCONTROLLER, PQFP64
SAB-XC164KM-4F40F 16-BIT, FLASH, 40 MHz, MICROCONTROLLER, PQFP64
相关代理商/技术参数
参数描述
SAB-C517A 制造商:INFINEON 制造商全称:Infineon Technologies AG 功能描述:8-bit CMOS MICROCONTROLLER
SAB-C517A-4R24M 制造商:INFINEON 制造商全称:Infineon Technologies AG 功能描述:8-Bit CMOS Microcontroller
SAB-C517A-4RM 制造商:INFINEON 制造商全称:Infineon Technologies AG 功能描述:8-Bit CMOS Microcontroller
SAB-C517A-L24M 制造商:INFINEON 制造商全称:Infineon Technologies AG 功能描述:8-Bit CMOS Microcontroller
SAB-C517A-LM 制造商:INFINEON 制造商全称:Infineon Technologies AG 功能描述:8-Bit CMOS Microcontroller