Rabbit 6000 User’s Manual
digi.com
243
23.4 Operation
23.4.1 Single Reading
The following steps must be taken to operate the multiplexed A/D converter in the single-read mode:
1. Select the clock source and enable the multiplexed A/D converter by writing to ADCCR.
2. Select the multiplexer channel and desired reference in ADCCSR, but do not start the conversion
yet. This provides greater settle time for the multiplexer switchover.
3. Enable a conversion by setting bit 0 of ADCCSR.
4. Wait for the conversion to complete by monitoring bits 0-1 of ADCLR. When complete, read the
rest of the A/D converter result in ADCMR.
23.4.2 Continuous Read
The following steps must be taken to operate the multiplexed A/D converter in the continuous-read mode:
1. Select the clock source and enable the multiplexed A/D converter by writing to ADCCR.
2. Enable the continuous read mode by setting bit 7 of ADCCSR.
3. To get a particular channel reading, check bits 0–1 of the ADCxLR that corresponds to that channel.
If the conversion is complete, read ADCxMR as well to get the full reading.
23.4.3 Handling Interrupts
The following steps explain how an interrupt is used.
1. Write the vector to the interrupt service routine to the internal interrupt table
2. Configure ADCR to select the interrupt priority (note that interrupts will be enabled once this value
is set; this step should be done last).
The following actions occur within the interrupt service routine.
•
Read ADCLR to get the 4 least-significant bits of the result and clear the interrupt flag.
•
Read ADCMR to get the 8 most-significant bits of the result.
Содержание 6000
Страница 1: ...Rabbit 6000 Microprocessor User s Manual 90001108_J...
Страница 11: ...Rabbit 6000 User s Manual digi com 11 1 3 Block Diagram Figure 1 1 Rabbit 6000 Block Diagram...
Страница 43: ...Rabbit 6000 User s Manual digi com 43 4 1 1 Block Diagram...
Страница 57: ...Rabbit 6000 User s Manual digi com 57 5 1 1 Block Diagram...
Страница 88: ...Rabbit 6000 User s Manual digi com 88 7 2 Block Diagram...
Страница 115: ...Rabbit 6000 User s Manual digi com 115 11 1 1 Block Diagram...
Страница 127: ...Rabbit 6000 User s Manual digi com 127 12 1 1 Block Diagram...
Страница 138: ...Rabbit 6000 User s Manual digi com 138 13 1 1 Block Diagram...
Страница 154: ...Rabbit 6000 User s Manual digi com 154 15 1 1 Block Diagram...
Страница 163: ...Rabbit 6000 User s Manual digi com 163 16 1 1 Block Diagram...
Страница 170: ...Rabbit 6000 User s Manual digi com 170 17 1 1 Block Diagram...
Страница 177: ...Rabbit 6000 User s Manual digi com 177 18 1 1 Block Diagram...
Страница 186: ...Rabbit 6000 User s Manual digi com 186 19 1 1 Block Diagram...
Страница 230: ...Rabbit 6000 User s Manual digi com 230 22 2 Block Diagram...
Страница 234: ...Rabbit 6000 User s Manual digi com 234 Figure 22 3 Sample Slow A D Converter Circuit...
Страница 287: ...Rabbit 6000 User s Manual digi com 287 25 1 1 Block Diagram...
Страница 310: ...Rabbit 6000 User s Manual digi com 310 26 1 1 Block Diagram...
Страница 323: ...Rabbit 6000 User s Manual digi com 323 28 1 1 Block Diagram...
Страница 351: ...Rabbit 6000 User s Manual digi com 351 31 1 4 Block Diagram...
Страница 361: ...Rabbit 6000 User s Manual digi com 361 32 1 1 Block Diagram...
Страница 369: ...Rabbit 6000 User s Manual digi com 369 33 2 Block Diagram...
Страница 390: ...Rabbit 6000 User s Manual digi com 390 35 1 1 Block Diagram...
Страница 408: ...Rabbit 6000 User s Manual digi com 408...
Страница 410: ...Rabbit 6000 User s Manual digi com 410...
Страница 411: ...Rabbit 6000 User s Manual digi com 411...
Страница 420: ...Rabbit 6000 User s Manual digi com 420 Figure 37 1 Memory Read and Write Cycles...