Mdc Example For Serial Flash (Mdc_Lpm012M134B_Serflash) - Epson S1C31D01 Software Manual

Cmos 32-bit single chip microcontroller peripheral circuit sample software manual
Table of Contents

Advertisement

3.5 MDC Example for Serial Flash (MDC_LPM012M134B_SERFLASH)

MDC is a Controller for Memory Displays with a Drawing and Copying engine.
This software shows examples of using the routines in "se_mdc.c" peripheral library for initializing a panel, using
drawing functions, and using image/bitmap copying functions, using micron flash on the evaluation board. An
analog clock, digital time, and weekday are displayed on the panel. The display is updated every second by the
RTC interrupt. The digital time and weekday text are animated for each display update.
Hardware Setup
Example requires an LPM012M134B panel connected to connector CN3 of the S5U1C31D01T1 evaluation
board. The micron flash on the evaluation board is used in this example. Prior running example code, following
files have to be downloaded to micron flash using MDCSerFlashImg.exe tool:
Archivo_Black_28_1bit.mdcfont
Source_Code_Pro_Black_28_1bit.mdcfont
watchhand_21x100.mdcimg
Operations
1. Start OSC1 and change IOSC frequency to 20MHz.
2. Initialize LPM012M134B panel.
3. Set output destination window for MDC graphics engine
4. Fill display buffer with white background.
5. Draw line "ticks" (1-minute intervals) for analog clock.
6. Initialize and start RTC.
7. Infinite "while" loop:
- Read latest time from RTC.
- Draw circles in center of analog clock.
- Animation loop (3 times)
- Render bigger "weekday" text as needed.
- Draw line for "second" hand.
- Render "hour" hand.
- Render "minute" hand.
- Render bigger digital time text as needed.
- Update display (copy image from frame buffer to panel).
- Erase bigger "weekday" text as needed.
- Erase bigger digital time text as needed.
- Render normal "weekday" text.
- Draw line for "second" hand.
- Render "hour" hand.
- Render "minute" hand.
- Render normal digital time text.
- Update display (copy image from frame buffer to panel).
- Go to deep sleep waiting for 1-second interrupt from RTC.
- (wake up from sleep)
- Erase the "second" hand.
- Erase the "hour" hand.
- Erase the "minute" hand.
- Fill "weekday" area with white.
- Erase digital time text.
36
Seiko Epson Corporation
S1C31D01 Peripheral Circuit Sample
Software Manual (Rev.3.00)

Advertisement

Table of Contents
loading

Table of Contents