| Electronic Components Datasheet Search |
|
ST92185B Datasheet(PDF) 153 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST92185B Datasheet(HTML) 153 Page - STMicroelectronics |
|
153 / 178 page ![]() 153/178 ST92185B - A/D CONVERTER (A/D) A/D CONVERTER (Cont’d) The conversion technique used is successive ap- proximation, with AC coupled analog fully differen- tial comparators blocks plus a Sample and Hold logic and a reference generator. The internal reference (DAC) is based on the use of a binary-ratioed capacitor array. This technique allows the specified monotonicity (using the same ratioed capacitors as sampling capacitor). A Pow- er Down programmable bit sets the A/D converter analog section to a zero consumption idle status. 7.7.3.1 Operating Modes The two main operating modes, single and contin- uous, can be selected by writing 0 (reset value) or 1 into the CONT bit of the Control Logic Register. Single Mode In single mode (CONT=0 in ADCLR) the STR bit is forced to '0' after the end of channel i-th conver- sion; then the A/D waits for a new start event. This mode is useful when a set of signals must be sam- pled at a fixed frequency imposed by a Timer unit or an external generator (through the alternate synchronization feature). A simple software rou- tine monitoring the STR bit can be used to save the current value before a new conversion ends (so to create a signal samples table within the in- ternal memory or the Register File). Furthermore, if the R242.0 bit (register AD-INT, bit 0) is set, at the end of conversion a negative edge on the con- nected external interrupt channel (see Interrupts Chapter) is generated to allow the reading of the converted data by means of an interrupt routine. Continuous Mode In continuous mode (CONT=1 in ADCLR) a con- tinuous conversion flow is entered by a start event on the selected channel until the STR bit is reset by software. At the end of each conversion, the Data Register (ADCDR) content is updated with the last conver- sion result, while the former value is lost. When the conversion flow is stopped, an interrupt request is generated with the same modality previously de- scribed. 7.7.3.2 Alternate Synchronization This feature is available in both single/continuous modes. The negative edge of external EXTRG sig- nal or the occurrence of an on-chip event generat- ed by another peripheral can be used to synchro- nize the conversion start with a trigger pulse. These events can be enabled or masked by pro- gramming the TRG bit in the ADCLR Register. The effect of alternate synchronization is to set the STR bit, which is cleared by hardware at the end of each conversion in single mode. In continuous mode any trigger pulse following the first one will be ignored. The synchronization source must pro- vide a pulse (1.5 internal system clock, 125ns @ 12 MHz internal clock) of minimum width, and a period greater (in single mode) than the conver- sion time (~6.5us @ 12 MHz internal clock). If a trigger occurs when the STR bit is still '1' (conver- sions still in progress), it is ignored (see Electrical Characteristics). WARNING: If the EXTRG or INTRG signals are al- ready active when TRG bit is set, the conversion starts immediately. 7.7.3.3 Power-Up Operations Before enabling any A/D operation mode, set the POW bit of the ADCLR Register at least 60 µs be- fore the first conversion starts to enable the bias- ing circuits inside the analog section of the con- verter. Clearing the POW bit is useful when the A/D is not used so reducing the total chip power consumption. This state is also the reset configu- ration and it is forced by hardware when the core is in HALT state (after a HALT instruction execution). 7.7.3.4 Register Mapping It is possible to have two independent A/D convert- ers in the same device. In this case they are named A/D 0 and A/D 1. If the device has one A/D converter it uses the register addresses of A/D 0. The register map is the following: If two A/D converters are present, the registers are renamed, adding the suffix 0 to the A/D 0 registers and 1 to the A/D 1 registers. Register Address ADn Page 62 (3Eh) F0h A/D 0 ADDTR0 F1h A/D 0 ADCLR0 F2h A/D 0 ADINT0 F3-F7h A/D 0 Reserved F8h A/D 1 ADDTR1 F9h A/D 1 ADCLR1 FAh A/D 1 ADINT1 FB-FFh A/D 1 Reserved |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |