Mdc Example For Ls012B7Dh02 Panel (Mdc_Ls012B7Dh02) - Epson S1C31D01 Software Manual

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

Advertisement

3.6 MDC Example for LS012B7DH02 Panel (MDC_LS012B7DH02)

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. An analog clock is displayed on the panel. The
clock is updated every second by the RTC interrupt.
Hardware Setup
1. Connect an LS012B7DH02 panel to connector CN4 of the S5U1C31D01T1 evaluation board.
2. Connect the following pins on the S5U1C31D01T1 evaluation.
JP4 - connect pin 2 and 3
JP5 - connect pin 2 and 3
JP6 - connect pin 1 and 2
JP7 - connect pin 1 and 2
JP8 - connect pin 5 and 6
Operations
1. Start OSC1 and change IOSC frequency to 20MHz.
2. Initialize LS012B7DH02 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.
- Draw rectangle border for "weekday" string.
- Render digital time string.
- Render "weekday" 3-character string.
- Draw line for "second" hand.
- Render "hour" hand.
- Render "minute" hand.
- 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 digital time string.
- Erase the "second" hand.
- Erase the "hour" hand.
- Erase the "minute" hand.
- Fill "weekday" area with white.Start OSC1 and change IOSC frequency to 20MHz.
S1C31D01 Peripheral Circuit
Sample Software Manual (Rev.3.00)
Seiko Epson Corporation
37

Advertisement

Table of Contents
loading

Table of Contents