logo elektroda
logo elektroda
X
logo elektroda
REKLAMA
REKLAMA
Adblock/uBlockOrigin/AdGuard mogą powodować znikanie niektórych postów z powodu nowej reguły.

[AT8] [AT8][Bascom] - Jak zainicjować wyświetlacz po SPI z zasilaniem 3.3V?

tomson5 20 Lis 2013 19:21 1497 2
REKLAMA
  • #1 12974031
    tomson5
    Poziom 16  
    Witam

    Próbuje zainicjować pracę wyświetlacza po SPI
    Mam taki opis:
    Initialization
    This is an inizialisation example for single supply +3V / +3.3V supply with internal booster on.
    
    1. RESET-pin must be set to high (as along as the pin RESET is low, nothing works).
    2. CS-pin must be set to low (It can be written to the display, display input buffer is cleared).
    3. A0-pin  must be set to low (The display is prepared to receive command data).
    4. Display software initialization. Note that initialization commands depending on circuit diagram, please refer to page 6 in the displays data sheet for single supply or dual supply. Following initialization is made for single supply operation with +3,3V:
    4.1 Send hex 40 to the display: Display start line = 0
    4.2 Send hex A1 to the display: ADC reverse, 6 o'clock viewing direction
    4.3 Send hex C0 to the display: COM0 – COM63 in normal scan mode
    4.4 Send hex A6 to the display: Display normal, not mirrored
    4.5 Send hex A2 to the display: Set bias 1/9 (Duty 1/65)
    4.6 Send hex 2F to the display: Booster, regulator and follower on
    4.7 Send hex F8 to the display: Set internal booster to 4x
    4.8 Send hex 00 to the display: Set internal booster to 4x
    4.9 Send hex 27 to the display: Contrast set
    4.10 Send hex 81 to the display: Contrast set
    4.11 Send hex 16 to the display: Contrast set
    4.12 Send hex AC to the display: No indicator
    4.13 Send hex 00 to the display: No indicator
    4.14 Send hex AF to the display: No indicator
    5. End of Initialization set the CS-pin to high again.
    



    Tutaj jest mój kod
    Kod: text
    Zaloguj się, aby zobaczyć kod

    Czy konfiguracja SPI jest porawna ??
    Czy to jest w jakimś stopniu poprawne ??
  • REKLAMA
  • #2 12976062
    kamyczek
    Poziom 38  
    Może kolega napisać jaki to wyświetlacz jaki kontroler . Poza tym jest SPI 0,0 ; 0,1 ; 1,0 i 1,1 a tej konfiguracji jakoś nie widzę . dodatkowo proszę zwrócić uwagę na notkę z czasami minimalnymi sygnałów CS itp.
  • #3 12977396
    tomson5
    Poziom 16  
    Późno w nocy darowałem sobie programową obsługę SPI i zrobiłem sprzętowo
    Zamieszczam kod który po wgraniu chyba coś tam zadziałał ale nie jestem pewien czy na 100% ponieważ na ekranie pojawiły się "rozsypane" piksele a na odpowiednich pinach napięcia odpowiedzialne za kontrast.
    Tyle co udało mi się na razie zrobić.

    Zamieszczam zdjęcie z przykładową inicjacją podaną w PDF od wyświetlacza.
    Wyświetlacz to EDOGS102-6 102x64piks. kontroler to UC1701
    [AT8] [AT8][Bascom] - Jak zainicjować wyświetlacz po SPI z zasilaniem 3.3V?

    Kod: text
    Zaloguj się, aby zobaczyć kod
REKLAMA