Lefora Pro Forum
login join
Loading
516 views

S128240D Clarification

Page 1
1–1
rookie - member
3 posts

I'm using the S128240D in 4-wire serial mode (based on sample schematic on this site)  and receiving a blank screen with about ~3V bias on VLCD.  Could someone verify that the following are correct:

- Sample schematics seems to be based on 3V and x7 Boost circuit (21V?) I have notice on this forum talks about x6 instead @3V or 3.3V.
- Schematics also use 1uF capacitors.  Would 2uF or 2.2uF result in better performance?
- SPI setup: using 500khz clk (for testing), with MSB first, Second Edge Phase, and Falling Edge Lead.  Is this correct?

- #Reset line stays High during operation.
- XCS stays low during byte transmission and high in between.
- Init sequence from the sample code is correct?  (what magic numbers should delay1-3 be at?)  I've included beginning of my init code below.  The rest is the same as the stock sample.

Much thanks,

-Armand


    clr_rst();
    delay3(900000); // 900 ms
clr_A0();                        // LCD A0 normally low
    clr_xcs();                       // LCD Data Latch
set_rst();
    delay3(250000); // 250 ms
     wcom(0x30,0);   //ext=0
     wcom(0x94,0);   //sleep cancel
     wcom(0xd1,0);   //osc on
     wcom(0x20,0);   //power control
     wcom(0x08,1);   //vb on
     delay3(500000); // 500 ms
     wcom(0x20,0);   //power control
     wcom(0x0b,1);   //vb,vf,vr on       
     wcom(0x81,0);   //electronic volumn set
     wcom(0x18,1);
     wcom(0x04,1);
     wcom(0xca,0);   //display control
     wcom(0x00,1);   //cld=0
     wcom(0x23,1);   //set duty=1/144
     wcom(0x00,1);   //set fr value
     wcom(0xa7,0);   //normal display
     wcom(0xbb,0);   //common scan
     wcom(0x02,1);   //com79~com0,com80~com159
     wcom(0xbc,0);   //data scan direction
     wcom(0x00,1);   //seg254~seg0,com160~con0
     wcom(0x00,1);  //rgb arrangement
     ...  

Page 1
1–1

Locked Topic


You must be a member to post in this forum

Join Now!