-
Data: 2016-04-02 21:10:05
Temat: Ku potomności lcd 2,4cala z mcu friend jest na...
Od: "Bo(o)t manager" <b...@W...wp.pl> szukaj wiadomości tego autora
[ pokaż wszystkie nagłówki ]RM 68090.
Długo się naszukałem bo pierwsze wyniki wskazywały na st7781.
Ktoś tu o nich pisał i se zakupiłem działa to na komendach od ili9325.
Więc jak by ktoś kupował to polecam. 18 pln i coś koło 1,5 tygodnia
czekania.
Działa na tych komendach(z pdf od ili9325):
LCD_WriteReg(0x00E3, 0x3008); // Set internal timing
LCD_WriteReg(0x00E7, 0x0012); // Set internal timing
LCD_WriteReg(0x00EF, 0x1231); // Set internal timing
LCD_WriteReg(0x0001, 0x0100); // set SS and SM bit
LCD_WriteReg(0x0002, 0x0700); // set 1 line inversion
LCD_WriteReg(0x0003, 0x1030);// set GRAM write direction and BGR=1.
LCD_WriteReg(0x0004, 0x0000); // Resize register
LCD_WriteReg(0x0008, 0x0207); // set the back porch and front porch
LCD_WriteReg(0x0009, 0x0000);//setnon-display area refresh cycleISC[3:0]
LCD_WriteReg(0x000A, 0x0000); // FMARK function
LCD_WriteReg(0x000C, 0x0000); // RGB interface setting
LCD_WriteReg(0x000D, 0x0000); // Frame marker Position
LCD_WriteReg(0x000F, 0x0000); // RGB interface polarity
//*************Power On sequence ****************//
LCD_WriteReg(0x0010, 0x0000); // SAP, BT[3:0], AP, DSTB, SLP, STB
LCD_WriteReg(0x0011, 0x0007); // DC1[2:0], DC0[2:0], VC[2:0]
LCD_WriteReg(0x0012, 0x0000); // VREG1OUT voltage
LCD_WriteReg(0x0013, 0x0000); // VDV[4:0] for VCOM amplitude
delay(200,ms); // Dis-charge capacitor power voltage
LCD_WriteReg(0x0010, 0x1490); // SAP, BT[3:0], AP, DSTB, SLP, STB
LCD_WriteReg(0x0011, 0x0227); // DC1[2:0], DC0[2:0], VC[2:0]
delay(50,ms); // Delay 50ms
LCD_WriteReg(0x0012, 0x001C); Internal reference voltage= Vci;
delay(50,ms); // Delay 50ms
LCD_WriteReg(0x0013, 0x1A00); // Set VDV[4:0] for VCOM amplitude
LCD_WriteReg(0x0029, 0x0025); // Set VCM[5:0] for VCOMH
LCD_WriteReg(0x002B, 0x000C); // Set Frame Rate
delay(50,ms); // Delay 50ms
LCD_WriteReg(0x0020, 0x0000); // GRAM horizontal Address
LCD_WriteReg(0x0021, 0x0000); // GRAM Vertical Address
// ----------- Adjust the Gamma Curve ----------//
LCD_WriteReg(0x0030, 0x0000);
LCD_WriteReg(0x0031, 0x0506);
LCD_WriteReg(0x0032, 0x0104);
LCD_WriteReg(0x0035, 0x0207);
LCD_WriteReg(0x0036, 0x000F);
LCD_WriteReg(0x0037, 0x0306);
LCD_WriteReg(0x0038, 0x0102);
LCD_WriteReg(0x0039, 0x0707);
LCD_WriteReg(0x003C, 0x0702);
LCD_WriteReg(0x003D, 0x1604);
//------------------ Set GRAM area ---------------//
LCD_WriteReg(0x0050, 0x0000); Horizontal GRAM Start Address
LCD_WriteReg(0x0051, 0x00EF); // Horizontal GRAM End Address
LCD_WriteReg(0x0052, 0x0000); // Vertical GRAM Start Address
LCD_WriteReg(0x0053, 0x013F); // Vertical GRAM Start Address
LCD_WriteReg(0x0060, 0xA700); // Gate Scan Line
LCD_WriteReg(0x0061, 0x0001); // NDL,VLE, REV
LCD_WriteReg(0x006A, 0x0000); // set scrolling line
//-------------- Partial Display Control ---------//
LCD_WriteReg(0x0080, 0x0000);
LCD_WriteReg(0x0081, 0x0000);
LCD_WriteReg(0x0082, 0x0000);
LCD_WriteReg(0x0083, 0x0000);
LCD_WriteReg(0x0084, 0x0000);
LCD_WriteReg(0x0085, 0x0000);
//-------------- Panel Control -------------------//
LCD_WriteReg(0x0090, 0x0010);
LCD_WriteReg(0x0092, 0x0600);
LCD_WriteReg(0x0007, 0x0133); //262Kcolor and display ON
Może komuś się przyda. Testowane z STM32F401Discovery.
--
Pozdrawiam
Bo(o)t manager
Następne wpisy z tego wątku
- 03.04.16 01:22 AlexY
- 03.04.16 04:29 Bo(o)t manager
- 03.04.16 11:42 AlexY
- 03.04.16 14:03 ww
- 03.04.16 17:34 Bo(o)t manager
- 03.04.16 17:24 Bo(o)t manager
- 03.04.16 18:22 Bo(o)t manager
- 04.04.16 07:59 ww
- 04.04.16 08:29 ww
- 04.04.16 10:32 AlexY
- 04.04.16 10:46 ww
- 04.04.16 10:51 J.F.
- 04.04.16 10:54 AlexY
- 04.04.16 11:49 ww
- 04.04.16 15:40 AlexY
Najnowsze wątki z tej grupy
- Multimetr z bluetooth
- Ciekawa mapka z BTS-ami
- Lampy uliczne LED z kubkiem
- Pęczniejące LiPo
- wyłącznik ścienny
- "Wybitna" inteligencja AI
- test stereo
- Bluetooth stereo
- W USA budują pierwszą komercyjną elektrownię fuzji jądrowej
- Weryfikacja myjki ultradźwiękowej
- zasieg radaru
- Zmywarka Bosch SRV55T43EU - awaria
- Kod zniżkowy w TME do 26.09.2025
- SFP, 10G, simplex sc/apc
- [słabe wiatry powodują - przyp. JMJ] Energetyczny paraliż w Niemczech
Najnowsze wątki
- 2025-10-01 Dlaczego nie skorzystam z promocji -40% na MT w rocznej prenumeracie
- 2025-10-01 Multimetr z bluetooth
- 2025-10-01 Citek i "wymagane działanie"
- 2025-10-01 Białystok => Software Engineer .Net <=
- 2025-10-01 Rzeszów => International Freight Forwarder <=
- 2025-10-01 Wrocław => Specjalista ds. Marketingu Online (PPC) <=
- 2025-10-01 Gdańsk => Starszy programista oprogramowania C++ <=
- 2025-10-01 Chrzanów => Spedytor Międzynarodowy (handel ładunkami/prowadzenie f
- 2025-10-01 Rzeszów => Spedytor Międzynarodowy <=
- 2025-10-01 Białystok => Inżynier oprogramowania .Net <=
- 2025-10-01 => Senior Algorithm Developer (Java/Kotlin) <=
- 2025-10-01 Środa Wielkopolska => SAP FI/CO Konsultant wewnętrzny <=
- 2025-10-01 Ciekawa mapka z BTS-ami
- 2025-09-30 Lublin => Delphi Programmer <=
- 2025-09-30 Warszawa => Konsultant Wiodący SAP PP <=