Monday, July 1, 2013


A Square LCD

I found a interesting LCD Module in the My Favorite surplus site

Square LCD,

They are very few and far between.
I don't know what else to do at first
I was indeed inspired from Aviation Instrument.
I tink a implement Analog Style Instrument,  Analog Clock is useful Technics.


- LCD type STN/Y-G/Positive/Transflective
- LCD duty 1/128
- Viewing direction 6:00 O’clock
- Module size (W×H×T) 72.4 × 69.9 × 13.5mm MAX mm
- Number of dots 128 × 128 dots
- Dot size (W×H) 0.32 × 0.32 mm
- Dot pitch (W×H) 0.35 × 0.35 mm
- Backlight type/Color LED side backlight / Yellow-Green
- Controller : T6963CFG


- Resolution up to 240x128 pixels or 320x64 pixels
- Capable of displaying text and graphics      
- Build-in character generator ROM (CG-ROM) with 12
- 8 bit parallel bus and signal lines for interfacifrom and to
   the micro controller are multiplexed on
- Capable of controlling up to 64 kByte of external have 8 kBytes of VRAM)                        
- Duty Ratio for display multiplex driving in the range of 1/16 up to 1/128
- Current consumption 3-4 mA maximum          
- Build-in crystal oscillator                  
- Operating temperature -20 to +70 degrees Celsius

DALLAS MAXIM DS3232 Extremely Accurate I2C RTC Features.
- Accuracy ±2ppm from 0°C to +40°C
   in other words 63.072 Second per Year errors (0.173 Second Per Day error)
- Accuracy ±3.5ppm from -40°C to +85°C
- Battery Backup Input for Continuous Timekeeping
- Operating Temperature Ranges
     Commercial: 0°C to +70°C
     Industrial: -40°C to +85°C
- 236 Bytes of Battery-Backed SRAM
- Low-Power Consumption
- Real-Time Clock Counts Seconds, Minutes, Hours, Day, Date, Month,
  and Year with Leap Year Compensation Valid Up to 2099
- Two Time-of-Day Alarms
- Programmable Square-Wave Output
- Fast (400kHz) I2C Interface
- 3.3V Operation
- Digital Temp Sensor Output: ±3°C Accuracy
- Register for Aging Trim
- RST Input/Output
- 300-Mil, 20-Pin SO Package
- Underwriters Laboratories Recognized

Additional Feature.

The LCD doesn't have  LCD Driving Voltage supply Chip
I2C Real Time Module

LCD Driving  (VEE:11v  Negative Voltage ) Supply Circuit
VEE need  small current, i'm using the MC34063,
MC34063  are cheaper and easy to get
MC34063 Datasheet
MC34063 design tool

DS3232 RTC Module
DS3232 is very accurate therefore Expensive
63.072 Second per Year errors (0.173 Second Per Day error)
DS3232 Datasheet

The days of the week is written in Chinese

// User define external Character
uint8_t pstr_custom_font[] PROGMEM =          // 日月火水木金土
    0x00,0x1E,0x12,0x12,0x1E,0x12,0x12,0x1E,    // 日   Sun
    0x1F,0x11,0x1F,0x11,0x1F,0x11,0x11,0x23,     // 月   Mon
    0x08,0x09,0x2A,0x08,0x1C,0x14,0x22,0x22,    // 火   Tue
    0x08,0x09,0x3E,0x0C,0x1A,0x29,0x08,0x18,    // 水   Wed
    0x08,0x08,0x3E,0x08,0x1C,0x2A,0x29,0x08,    // 木   Thu
    0x04,0x0A,0x11,0x0E,0x04,0x1F,0x0E,0x1F,    // 金   Fri
    0x00,0x04,0x04,0x0E,0x04,0x04,0x04,0x1F,     // 土   Sat

// User define external Character address
uint8_t wdays[] =  

//      日   月   火  水    木  金   土


// Writes single char pattern to character generator area of display RAM memory
static void set_custom_font(void)
  uint8_t sz = sizeof(pstr_custom_font);
uint8_t i;


  for(i=0; i


Download Schematic(Eagle cad, pdf, png)
Download Source code
Download Datasheet(LCD Module, Controller, Application Note)

The T6963C datasheet is unclear regarding to horizontal resolution, Font Size, the number of columns and the pixel width of one column etc..
at this time Application Note is very helpful.

any others.
Dot also Square
Power Consuption(Backlight:220mA,
DC2DC Converter:140mA, others:120mA)
FFC Cable is too weak, So Safeguards are needed to protect.

Another Clock
Arduino Nokia 6100 LCD Analog Clock Demo
Analog Clock on GLCD – Drawing the Face
Dutchtronix AVR Oscilloscope Clock