English
Language : 

C515A_9708 Datasheet, PDF (119/182 Pages) Siemens Semiconductor Group – 8-Bit CMOS Microcontroller
On-Chip Peripheral Components
C515A
MOV A,ADDATL). If continuous conversion is selected (bit ADM set), the next conversion is started
with the beginning of the machine cycle which follows the writre 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.
The interrupt flag IADC is set at the end of the 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 third machine cycle which follows the write
result cycle. IADC must be reset by software.
Depending on the application, typically there are three software methods to handle the A/D
conversion in the C515A.
– 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 C515A 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 C515A and the selected divider ratio of the A/D
converter prescaler the total time of an A/D conversion is calculated according figure 6-33 and
table 6-7. Figure 6-35 on the next page shows the minimum A/D conversion time in relation to the
oscillator frequency fOSC. The minimum conversion time is 6 µs and can be achieved at fOSC of 16
MHz.
Table 6-7
A/D Conversion Time for Dedicated System Clock Rates
fOSC
[MHz]
3.5
8
12
16
18
24
Prescaler
Ratio
÷4
÷4
÷4
÷4
÷8
÷8
fADC [MHz]
.438
1
Sample Time
tS [µs]
4.57
= 8 x tIN
2
1.5
1.33
2
1
1.125
1.78
1.5
1.3
= 16 x tIN
Total Conversion
Time tADCC [µs]
27.4
= 48 x tIN
12
8
6
10.67
8
= 96 x tIN
Semiconductor Group
6-68
1997-08-01