AN2200 STMICROELECTRONICS | Alldatasheet

Document overview

  • Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
  • PDF pages: 13

Technical content

Datasheet sections

  • 1 Feature Overview
  • 2 Pinout compatibility
  • 2.1 Package
  • 2.2 SO20 pinout
  • 3 Register map
  • 3.1 Register address
  • 3.2 Register content differences
  • 3.2.1 SICSR register
  • 3.2.2 PWMxCSR Register
  • 3.2.3 BREAKCR Register
  • 3.2.4 TRANCR Register
  • 4 New features in ST7FLITE1xB
  • 4.1 Clock management
  • 4.2.1 Dual counters
  • 4.2.2 Break function
  • 4.2.3 Dead time generation
  • 4.2.4 Long input capture
  • 4.2.5 One pulse mode
  • 4.2.6 Forced update
  • 4.3 Analog comparator
  • 4.3.1 On-chip analog comparator
  • 4.3.2 Programmable internal voltage reference
  • 5 Electrical characteristics
  • 6 Device ordering information

Table 1. Feature comparison

Migrating applications from ST7FLITE1x to ST7FLITE1xB 1 Pinout compatibility

1 Pinout compatibility

1.1 Package

ST7FLITE1x is available only in SO20 300” package. ST7FLITE1xB is available in SO20 300”, DIP20, SO16 300” and DIP16 packages.

1.2 SO20 pinout

Both ST7FLITE1x and ST7FLITE1xB are pin to pin compatible. On some pins of ST7FLITE1xB new alternate functions have been added to add new peripherals/ features. (1)COMPIN+: Analog Comparator Input (2)COMPIN-: Analog Comparator External Reference Input (3)COMPOUT: Analog Comparator Output (4)PC1: Port C1 (5)PC2: Port C2 ST7FLITE1x ST7FLITE1xB Pin No. 4 SS/AIN0/PB0 COMPIN+(1)/SS/AIN0/PB0 Pin No. 8 CLKIN/AIN4/PB4 COMPIN-(2)/CLKIN/AIN4/PB4 Pin No. 11 PA7 PA7/COMPOUT(3) Pin No. 19 OSC2 OSC2/PC1(4) Pin No. 20 OSC1/CLKIN OSC1/CLKIN/PC0(5)

2 Register map Migrating applications from ST7FLITE1x to ST7FLITE1xB

2 Register map

In ST7FLITE1xB, some register addresses have been added, some modified to add new features and peripherals. Note: For easy software migration, two general rules to be followed: All “reserved” byte memory areas must never be “read” or “write”. All “reserved” and “unused” bits must be left unchanged when accessing the byte.

2.1 Register address

These changes are classified in two groups: 1. New features added: Port C, dual counters in ART Timer, one pulse mode, External Break, Dead Time generation, Force Update in ART Timer, Analog Comparator and PLL divider. 2. TRANCR (Transfer Control Register) has been replaced by ATCSR2 (Timer Control Register2). Seven bits relative to the new features in ART Timer have been added in ATCSR2 register. TRAN <bit0> of TRANCR register has been replaced by TRAN1 <bit0>. Please, refer to the datasheet for the detailed description of the new features.

Figure 1. Register map modifications

2.2 Register content differences

2.2.1 SICSR register

Internal RC when compared to 8 bits in ST7FLITE1x. Figure 2. SICSR Register

2.2.2 PWMxCSR Register

3) corresponding to the One Pulse mode of the Auto reload Timer. Figure 3. PWMxCSR Register

2.2.3 BREAKCR Register

Figure 4. BREAKCR Register

2.2.4 TRANCR Register

Figure 5. TRANCR Re gister Changes

3 New features in ST7FLITE1xB Migrating applications from ST7FLITE1x to ST7FLITE1xB

3 New features in ST7FLITE1xB

3.1 Clock management

Some changes have been made in the clock management. They are as follows: 1. It is possible to also run at 4MHz with RC and PLL from 2.7V to 5.5V. An additional PLLTST register is available in ST7FLITE1xB containing the PLLDIV2 bit which allows you to divide the PLL output clock by 2. Hence, x4 PLL (x4PLL from 2.7V to 3.3V and x8PLL / 2 from 3.3V to 5.5V) is effectively available for the entire operating voltage range of the device (2.7V to 5.5V). 2. Ceramic Oscillator has a self -controlled gain feature, an oscillator of any frequency from 1 to 16 MHz can be connected to the OSC1 and OSC2 pins. For the ST7FLITE1xB through the option bytes External Oscillator is enabled but the frequency range need not be selected. For STFLITE1x the frequency range of the oscillator should also be selected. Refer to section 7 for details. 3. The Internal RC of ST7LITE1x has to be calibrated by writing a 8-bit calibration value in the RCCR (RC Control Register). In contrast, the Internal RC of ST7LITE1xB must be calibrated by writing a 10-bit calibration value in the RCCR (RC Control Register) and in bits 6:5 in the SICSR (SI Control Status Register). 4. The predefined cali bration values for ST7LITE1x: RCCR0 @ 5V and RCCR1 @ 3V are stored at locations FFDEh and FFDFh for ST7LITE1x. The predefined calibration values for ST7LITE1xB: RCCRH0 & RCCRL0 @ 5V and RCCRH1 & RCCRL1 @ 3.3V are stored at locations DEE0h, DEE1h, DEE2h and DEE3h. 5. The predefined calibration value for ST7LITE1x: RCCR1 @ 3V is used for obtaining an Internal RC frequency of 700KHz. The value for ST7LITE1xB, RCCRH1 & RCCRL1 @ 3.3V is used for obtaining an internal RC frequency of 1MHz. 3.2 12-bit autoreload timer The 12-bit Auto-Reload Timer has been modified to provide more features like Dual counters, Long Input Capture, Internal Break Control, Dead Time generation, One Pulse mode and Forced Update. All the other features of the timer do not change.

3.2.1 Dual counters

Apart from Single Timer mode, Dual Timer mode is available with two 12-bit upcounters and two 12-bit autoreload registers.

3.2.2 Break function

Some additions in this feature are

  • Break function can be activated through an Internal Comparator output
  • Break active level can be programmed instead of just low level in ST7FLITE1x
  • When the break function is active, the break pattern is forced on the PWMx outputs if OEx is set whereas in ST7FLITE1x the active break pattern is forced on the PWMx outputs irrespective of whether OEx bit is set or reset.

Migrating applications from ST7FLITE1x to ST7FLITE1xB 3 New features in ST7FLITE1xB

3.2.3 Dead time generation

A programmable dead time can be inserted between PWM0 and PWM1. This is required for half-bridge driving where PWM signals must not be overlapped.

3.2.4 Long input capture

In addition to the normal Input Capture mode, Long Input Capture is available in ST7FLITE1xB. Using this mode, pulses that last more than 8us can be measured with an accuracy of 4us. This configuration allows you to cascade the Lite Timer and the 12-bit AT3 Timer to get a 20-bit Input Capture value.

3.2.5 One pulse mode

One pulse mode can be used to control PWM2/3 signal with External LTIC pin. This mode is only available in dual timer mode.

3.2.6 Forced update

In order not to wait for CNTRx overflow to load the value into the active DCRx registers, a programmable CNTRx overflow is provided. For both counters, a separate bit is provided which when set makes the counters start with the overflow value i.e. FFFh. After overflow, the counters start counting from their respective auto reload registers.

3.3 Analog comparator

ST7FLITE1B has an analog comparator and an internal voltage reference. The voltage reference can be external or internal, selectable under program control. The comparator input pins, COMPIN+ and COMPIN- are also connected to A/D Converter.

3.3.1 On-chip analog comparator

The analog comparator compares the voltage at the two inputs COMPIN+ and COMPIN- which are connected to VP and VN at the input of the comparator. When the analog input at COMPIN+ is less than analog input at COMPIN-, the output of the comparator is 0. When the analog input at COMPIN+ is greater than analog input at COMPIN- the output of the comparator is 1.

3.3.2 Programmable inter nal voltage reference

The voltage reference module can be configured to connect the comparator pin to one of the following sources:

  • Fixed internal voltage bandgap: The voltage reference module can generate a fixed voltage reference of 1.2V on the VN input.
  • Programmable internal reference voltage: The internal voltage reference module can provide 16 distinct internally generated voltage levels from 0.2V to 3.2V each at a step 0.2V on the comparator pin VN.
  • External voltage reference: If you want to have a reference voltage other than the one generated by the internal voltage reference module, you can connect the COMPIN- to an external voltage source.

4 Electrical characteristics Migrating applications from ST7FLITE1x to ST7FLITE1xB

4 Electrical characteristics

respective datasheets for the complete specifications. Table 2. Operating conditions with Low Voltage Detector (LVD) - typical values Table 3. Auxiliary Voltage Detector (AVD) - typical values Table 4. Internal RC oscillator and PLL Note: Refer to 3.1 for more details.

Table 5. Supply current - typical values @ V DD = 5.5V

5 Device ordering information Migrating applications from ST7FLITE1x to ST7FLITE1xB

5 Device ordering information

The complete order code of ST7LITE1x is ST7FLITE1xF1M6. The complete order code of ST7LITE1xB is ST7FLIT1xB(F/Y)1(M/B)6. Please note that the The ‘E’ in “LITE” is suppressed in the ST7LITE1xB order code for length reasons.

Migrating applications from ST7FLITE1x to ST7FLITE1xB 5 Device ordering information “THE PRESENT NOTE WHICH IS FOR GUIDANCE ONL Y AIMS AT PROVIDING CUSTOMERS WITH INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH A NOTE AND/OR THE USE MADE BY CUSTOMERS OF THE INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.” Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under any patent or patent rights of STMicroelectronics. Specifications mentioned in this publicati on are subject to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products are not authorized for use as critical components in life support devices or systems without express written approval of STMicroelectronics. The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners © 2005 STMicroelectronics - All rights reserved STMicroelectronics group of companies Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan - Malaysia - Malta - Morocco - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America