Announcement

Collapse
No announcement yet.

Read Registers - disp_ReadWord()

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • seulater
    replied


    yes you can. i tried that later and that does work thanks.
    I just forgot to post an update here sorry.

    Leave a comment:


  • ESPsupport
    replied


    Err, can't you do

    disp_WriteControl(0xe3);
    to(COM0); print([HEX2] disp_ReadWord());
    to(COM0); print([HEX2] disp_ReadWord());
    to(COM0); print([HEX2] disp_ReadWord());

    ?

    Leave a comment:


  • seulater
    started a topic Read Registers - disp_ReadWord()

    Read Registers - disp_ReadWord()

    I am using the VGA-II(GFX) module.
    In section 2.7 of PICASO-GFX2-4DGL-Internal-Functions manual it shows a way to set & read the internal registers of the SSD1963 Graphics Controller.
    Some of these registers have one location but multiple subsets
    For example, the register 0xe2 (set_pll_mn) takes 3 parameters.
    As an example to set this register you would do:
    WRITE COMMAND â0xE2â
    WRITE DATA â0x1Dâ (M=29)
    WRITE DATA â0x02â (N=2)
    WRITE DATA â0x54â (Dummy Byte)

    Now, to read this register there is 0xe3 (get_pll_mn) which also has 3 parameters. The problem is that according to 4DS manual to read a register you would do the following,

    disp_WriteControl(0xe3);
    to(COM0); print([HEX2] disp_ReadWord());

    This only grabs the first location @ 0xe3, there is no way to get the other 2 locations. You cant read 0xe4 and that is another register.

    So the questions is how do we read the settings in these register where they have multiple parameters.
Working...
X