| Motor de Búsqueda de Datasheet de Componentes Electrónicos |
|
CR16MFS5 Datasheet(PDF) 69 Page - National Semiconductor (TI) |
|
|
|
|||||||||||||||||||||||||||||
CR16MFS5 Datasheet(HTML) 69 Page - National Semiconductor (TI) |
|
69 / 99 page ![]() 69 www.national.com 17.0 Analog Comparators The Dual Analog Comparator (ACMP2) module contains two independent analog comparators with all necessary control logic. Each comparator unit compares the analog input volt- ages applied to two input pins and determines which voltage is higher. The comparison results can be placed on two out- put pins and/or read by the software from a register. Figure33 is a block diagram of the Dual Analog Comparator module. The two comparators are designated Comparator 1 (CMP1) and Comparator 2 (CMP2). Each comparator has a positive and a negative input, called CMP1P and CMP1N for Com- parator 1 and CMP2P and CMP2N for Comparator 2. An op- tional output, CMP1O for Comparator 1 or CMP2O for Comparator 2, allows the external hardware to read the com- parison results. If the positive input is greater than the nega- tive input, the result is a logic 1. Otherwise, the result is a logic 0. These same results are available to the software by reading the CMPCTRL register. CMP1OP and CMP2OP are the direct outputs of the analog comparator. These signals are connected to the channels of the Multi-Wake-Up Module. 17.1 ANALOG COMPARATOR CONTROL/ STATUS REGISTER (CMPCTRL) The CMPCTRL register is a byte-wide, read/write register that controls the comparator module and contains the com- parison results. The control bits are read/write bits and the result bits are read-only bits. This register is cleared upon re- set. The register format is shown below. CMP1RD Comparator 1 Read. This read-only bit con- tains the output of Comparator 1 when the comparator is enabled (CMP1EN=1). CMP1RD is set to 1 when the voltage on CMP1P is greater than the voltage on CMP1N. This bit is always 0 when Comparator 1 is dis- abled. CMP2RD Comparator 2 Read. This read-only bit con- tains the output of Comparator 2 when the comparator is enabled (CMP2EN=1). CMP2RD is set to 1 when the voltage on CMP2P is greater than the voltage on CMP2N. This bit is always 0 when Comparator 2 is dis- abled. CMP1EN Comparator 1 Enable. This read/write bit en- ables (1) or disables (0) Comparator 1. CMP2EN Comparator 2 Enable. This read/write bit en- ables (1) or disables (0) Comparator 2. CMP1OE Comparator 1 Output Enable. This read/write bit, when set to 1, enables the use of the CMP1O pin as the output of Comparator 1 when Comparator 1 is enabled (CMP1EN=1). If Comparator 1 is disabled (CMP1EN=0), set- ting the CMP1OE bit results in a logic 0 on the CMP1O output pin. CMP2OE Comparator 2 Output Enable. This read/write bit, when set to 1, enables the use of the CMP2O pin as the output of Comparator 2 when Comparator 2 is enabled (CMP2EN=1). If Comparator 2 is disabled (CMP2EN=0), set- ting the CMP2OE bit results in a logic 0 on the CMP2O output pin. 17.2 ANALOG COMPARATOR USAGE The comparator I/O pins are alternate functions of the Port L pins. In order for a comparator to operate, its two input pins must be configured to operate as inputs in the alternate func- tion mode. Using a comparator's output pin is optional. If it is to be used, it must be configured to operate as an output in the alternate function mode. The comparison result bits in the CMPCTRL register are available to the CPU whether or not the output pin is enabled. The comparators uses DC current whenever they are en- abled. Therefore, in order to reduce power consumption, it is recommended that the comparators be disabled when they are not needed, especially before entering any of the Power Save modes. 7 6 5 4 3 2 1 0 Reserved CMP2OE CMP1OE CMP2EN CMP1EN CMP2RD CMP1RD |
|
Enlace URL |
| ¿ALLDATASHEET es útil para Ud.? [ DONATE ] |
Todo acerca de Alldatasheet | Publicidad | Contáctenos | Política de Privacidad | Enlace a la hoja de datos | Intercambio de Enlaces | Lista de Fabricantes 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 |