|
ST7Lite0X PWM CALCULATOR
ST7Lite0X_PWM.exe is a free PWM calculator utility program for the ST7Lite 02, 05 and 09 MCU from STMicroelectronics. The utility calculates the ATR "autoreload register value" to be programmed and the PWM output frequency.
The ST7Lite0X_PWM.EXE utility calculates the ATR register value based on two user input parameters; FCPU "clock frequency" and DCR "duty cycle register".
The FCPU clock frequency can be sourced by either an external clock or an on-board R/C oscillator and PLL. The on-board oscillator and PLL can be used to generate a 4 or 8 Mhz clock.
The DCR register contains the value used to control the PWM duty cycle. The utility program uses the number of DCR bits value or 2 to the Nth power to calculate the duty cycle count.
USER INPUTS:
-
FCPU Clock Frequency
- Number of bits for PWM Duty Cycle Control "12 bits max"
PWM CALCULATOR OUTPUTS:
-
PWM Cycle Count
-
ATR Load Value
-
PWM Frequency
CLICK HERE TO DOWNLOAD ST7Lite0X_PWM.exe
|