STM8-lcd

所属分类:单片机开发
开发工具:C/C++
文件大小:6100KB
下载次数:24
上传日期:2013-05-07 18:01:37
上 传 者lingfeng19
说明:  STM8 lcd 操作文档,源代码和手册
(STM8 lcd)

文件列表:
STM8L15x_AN3114_FW_V1.1.0\_htmresc (0, 2011-07-01)
STM8L15x_AN3114_FW_V1.1.0\_htmresc\logo.bmp (6798, 2009-04-06)
STM8L15x_AN3114_FW_V1.1.0\Libraries (0, 2011-07-01)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver (0, 2011-07-01)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc (0, 2011-07-01)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x.h (132834, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_adc.h (16913, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_aes.h (5059, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_beep.h (3557, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_clk.h (19406, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_comp.h (9963, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_dac.h (10149, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_dma.h (13242, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_exti.h (9790, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_flash.h (14388, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_gpio.h (6511, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_i2c.h (35437, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_irtim.h (2267, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_itc.h (13871, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_iwdg.h (4632, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_lcd.h (22646, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_pwr.h (4484, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_rst.h (3101, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_rtc.h (37772, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_spi.h (14474, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_syscfg.h (21019, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_tim1.h (37391, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_tim2.h (29141, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_tim3.h (29019, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_tim4.h (11698, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_tim5.h (28418, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_usart.h (13222, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_wfe.h (7786, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_wwdg.h (2749, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\Release_Notes.html (40081, 2011-05-17)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\src (0, 2011-07-01)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\src\stm8l15x_adc.c (40505, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\src\stm8l15x_aes.c (14578, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\src\stm8l15x_beep.c (8172, 2011-06-10)
STM8L15x_AN3114_FW_V1.1.0\Libraries\STM8L15x_StdPeriph_Driver\src\stm8l15x_clk.c (40400, 2011-06-10)
... ...

/** @page LCD_SegmentsDrive How to use the STM8L15x LCD controller @verbatim ******************** (C) COPYRIGHT 2011 STMicroelectronics ******************* * @file readme.txt * @author MCD Application Team * @version V1.1.0 * @date 01-July-2011 * @brief Description of How to use the STM8L15x LCD controller ****************************************************************************** * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS * WITH CODING 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 FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. ****************************************************************************** @endverbatim @par Description This application note provides a description of how to use the STM8L15x/16x LCD embedded controller to drive the Pacific Display LCD glass (PD-878) mounted on STM8L1526-EVAL or the custom LCD glass HXO5002B mounted on STM8L1528-EVAL boards. After the evaluation board is powered up the default time (00’00’00) is displayed on the LCD glass and the first digit of the hour field is ready to be changed. Keep pressing the "Key" button will increment the active digit. When the "Key" button is released the selected value is stored and the next digit is ready to be changed, these two steps are repeated for the six digits. Some digit values are limited to a range of values depending on the field (hour, minute or seconds). Once all the digits are set, the RTC calendar registers are configured and the current time is displayed on the LCD. The application will enter in active halt mode and wakeup, by RTC wakeup interrupt, to display the current time then go back to active halt mode. This operation is repeated in an infinite loop. Note STM8L1528-EVAL: before displaying the default time, the "STM" string is displayed on the LCD dot matrix and the ST logo segment is ON. The LCD is configured as follow: - clock source fLCDCLK = LSE (32.768 KHz) - Voltage source = Internal - Prescaler = 2 - Divider = 18 (16 + 2) - Mode = 1/4 Duty, 1/3 Bias applies to medium density devices (PD-878 LCD Glass) = 1/8 Duty, 1/4 Bias applies to high density devices (HXO5002B custom LCD glass) - LCD frequency = (clock source * Duty) / (Prescaler * Divider) = 228 Hz ==> Frame frequency (fframe) = 57Hz for PD-878 LCD glass = 28.5 Hz for the HXO5002B custom LCD glass @par Directory contents - Project\\LCD_SegmentsDrive\\inc - stm8l15x_conf.h Library Configuration file - stm8l15x_it.h Interrupt routines declaration - main.h Main program header file - Project\\LCD_SegmentsDrive\\src - main.c Main program - stm8l15x_it.c Interrupt routines source - Project\\LCD_SegmentsDrive\\RIDE - project.rapp Contains the Ride workspace - project.rprj Contains the Ride project - stm8l15x_ob.asm Contains the values to program in the option bytes - Project\\LCD_SegmentsDrive\\STVD\\Cosmic - project.stw Contains the STVD workspace - stm8l1526-eval.stp Contains the STM8L152C6 STVD project - stm8l1528-eval.stp Contains the STM8L152M8 STVD project - stm8_interrupt_vector.c Interrupt handlers - Project\\LCD_SegmentsDrive\\STVD\\Raisonance - project.stw Contains the STVD workspace - stm8l1526-eval.stp Contains the STM8L152C6 STVD project - stm8l1528-eval.stp Contains the STM8L152M8 STVD project - Project\\LCD_SegmentsDrive\\STVD\\EWSTM8 - project.eww Contains the IAR workspace - project.ewd Contains the IAR debug project - project.ewp Contains the IAR project - This application note runs on STM8l152C6 and STM8L152M8 devices. - This application note has been tested with STMicroelectronics STM8L1526-EVAL and STM8L1528-EVAL evaluation boards. @par Hardware and Software environment - STM8L1526-EVAL Set-up - LCD glass daughter board (MB821) @note Make sure that the LCD glass daughter board (MB821) is mounted in LCD position, for more details please refer to section "2.4 LCD glass Module" of the STM8L1526-EVAL User Manual. - Key button @note Make sure that the jumper JP7 is in the Key position. - STM8L1528-EVAL Set-up - LCD glass daughter board (MB905) @note Make sure that the LCD glass daughter board (MB905) is mounted in LCD position, for more details please refer to section "2.5 LCD glass Module" of the STM8L1528-EVAL User Manual. - Key button @par How to use it? - STVD - Open the STVD workspace - Rebuild all files: Project ->Rebuild all - Load project image: Debug ->Start/Stop Debug Session - Run program: Debug ->Run (F5) - RIDE - Open the RIDE workspace - Rebuild all files: Project ->Build project(Alt+F9) - Load project image: Debug ->Start (Ctrl+D) - Run program: Debug ->Run (Ctrl+F9) - IAR - Open the IAR workspace - Rebuild all files: Project ->Rebuild all - Load project image: Project ->Download and debug (Ctrl+D) - Run program: Debug ->Go (F5) @note - Low-Density devices are STM8L15x microcontrollers where the Flash memory density ranges between 4 and 8 Kbytes. - Medium-Density devices are STM8L15x microcontrollers where the Flash memory density ranges between 16 and 32 Kbytes. - Medium density Plus devices are STM8L151R6, STM8L152R6 microcontrollers where the Flash memory density is fixed and equal to 32 Kbytes and with wider range of peripheral and features than the medium density devices. - High-Density devices are STM8L15x/16x microcontrollers where the Flash memory density is *** Kbytes and with the same peripheral set than Medium Density Plus devices. *

© COPYRIGHT 2011 STMicroelectronics

*/

近期下载者

相关文件


收藏者