UM1753 STMICROELECTRONICS | Alldatasheet
Document overview
- Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
- PDF pages: 21
Technical content
Datasheet sections
- 1 Reference documents
- 2 Acronyms
- 3 STLUX library
- 3.1 Introduction
- 3.2 STLUX385A clock (stlux_clk)
- 3.3 STLUX385A SMEDs (stlux_smed)
- 3.4 STLUX385A analog comparator unit (stlux_acu)
- 3.5 STLUX385A analog-to-digital converter (stlux_adc)
- 3.6 STLUX385A system timer (stlux_stmr)
- 3.7 STLUX385A general purpose I/O (stlux_gpio)
- 3.8 STLUX385A auxiliary timer (stlux_atm)
- 3.9 STLUX385A auto wake-up unit (stlux_awu)
- 4 Revision history
Description of STLUX385A peripheral library Introduction This user manual provides complete information for SW developers on the STLUX385A library, a library of APIs useful to get familiar developing applications for the STLUX385A digital controller and its peripherals. The STLUX385A is an STMicroelectronics® digital device tailored for lighting applications. The heart of the STLUX is the SMED (“State Machine Event Driven”) technology which allows the device to operate several independently configurable PWM clocks with up to 1.3 ns resolution. A SMED is a powerful autonomous state machine which is programmed to react to both external and internal events and may evolve without any software intervention. The tools provided by this Kit will help you understand the SMEDs and how to program them in your applications. SMEDs are configured and programmed via the STLUX internal low-power microcontroller (STM8). This manual describes the tools provided in this kit.
Reference documents UM1753
1 Reference documents
For hardware information on the STLUX385A controller and product specific SMED configuration, please refer to the STLUX385A product datasheet. For information on programming, erasing and protection of the internal Flash memory please refer to the STM8 Flash programming manual (PM0047). For information about the debug and SWIM (single-wire interface module) refer to the STM8 SWIM communication protocol and debug module user manual (UM0470). For information on the STM8 core and assembler instruction please refer to the STM8 CPU programming manual (PM0044). For information on the SMED configurator please refer to the UM1760 “STLUX™ SMED configurator 1.0” user manual.
2 Acronyms
Table 1. List of acronyms
Table 1. List of acronyms (continued)
3 STLUX library
3.1 Introduction
be included in your application.
3.2 STLUX385A cl ock (stlux_clk)
Table 2. STLUX385A clock DISABLE. Enables/disables HSE. DISABLE. Enables/disables HSI. DISABLE. Enables/disables LSI. DISABLE. Enables/disables CCO.
HIS/CPU clock divider to apply. HIS/CPU clock divider to apply. the SWIM clock divider to apply. It can be divided by 1 or 2. Table 2. STLUX385A clock (continued)
factor for PLL selected clock.
3.3 STLUX385A SMEDs (stlux_smed)
Table 3. STLUX385A SMEDs Value is the time value to be set.
3.4 STLUX385A analog comp arator unit (stlux_acu)
3.5 STLUX385A analog-to-di gital converter (stlux_adc)
Table 4. STLUX385A analog comparator unit initializes the compare levels. CP3 is internal or external. level reference to the DACx. Table 5. STLUX385A analog-to-digital converter ADC_IntEndConvMode_Interrupt.
to be applied for the conversion. sequence and must be cleared by SW. conversion and must be cleared by SW. Table 5. STLUX385A analog-to-digital converter (continued)
3.6 STLUX385A system timer (stlux_stmr)
Table 6. STLUX385A system timer pulse mode must be activated. immediately or at the update event.
interrupt status register value. interrupt status register value. Table 6. STLUX385A system timer (continued)
3.7 STLUX385A general pu rpose I/O (stlux_gpio)
Table 7. STLUX385A general purpose I/O pins. It can be ENABLE or DISABLE.
3.8 STLUX385A auxiliary timer (stlux_atm)
Table 8. STLUX385A auxiliary timer
3.9 STLUX385A auto wak e-up unit (stlux_awu)
IT_SEL specifies the interrupt trigger (source/edge) for the ATM. ATM_OutDigIn0 NewState can be ENABLE or DISABLE. ATM_ITConfig NewState can be ENABLE or DISABLE. Table 9. STLUX385A auto wake-up unit
3.10 STLUX385A univer sal asynchronous receiver/transmitter
Table 10. STLUX385A universal asynchronous receiver/transmitter detection length is 10 or 11 bits.
UART_SendData8 Data is the 8-bit data to be transmitted. UART_SendData9 Data is the 9-bit data to be transmitted. Table 10. STLUX385A universal asynchronous receiver/transmitter (continued)
4 Revision history
Table 11. Document revision history 14-May-2014 1 Initial release.