LCD problems in Large Memory Model

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
LuNo_297436
Level 3
Level 3
First solution authored 10 replies posted 10 questions asked

Hi

I'm having troubles displaying some data with large memory model.

If I use small memory model instead it prints ok.

mov     reg[IDX_PP],>Parameter1  

    mov     X,<Parameter1

    push     X

    mov     A,[X+0]

    mov     [bTemp2],A  

    mov A,0x00

    mov X,0x08

    lcall LCD_1_Position

    mov A,[bTemp2]

    lcall LCD_1_PrHexByte

  

    mov     reg[IDX_PP],>Parameter1

    pop     X

    mov     A,[X+1]  

    mov     [bTemp2],A

  

    mov A,0x01

    mov X,0x08

    lcall LCD_1_Position  

    mov A,[bTemp2]

    lcall LCD_1_PrHexByte

Any help will be very welcome.

Best regards

Luis

0 Likes
1 Solution
SampathS_11
Moderator
Moderator
Moderator
250 sign-ins 250 solutions authored 5 questions asked

Hello Luis,

Try prefixing the code with

RAM_PROLOGUE RAM_USE_CLASS_4

RAM_PROLOGUE RAM_USE_CLASS_2

At the end, add

RAM_EPILOGUE RAM_USE_CLASS_2

RAM_EPILOGUE RAM_USE_CLASS_4

Sampath

View solution in original post

0 Likes
1 Reply
SampathS_11
Moderator
Moderator
Moderator
250 sign-ins 250 solutions authored 5 questions asked

Hello Luis,

Try prefixing the code with

RAM_PROLOGUE RAM_USE_CLASS_4

RAM_PROLOGUE RAM_USE_CLASS_2

At the end, add

RAM_EPILOGUE RAM_USE_CLASS_2

RAM_EPILOGUE RAM_USE_CLASS_4

Sampath

0 Likes