AnsweredAssumed Answered

KWIKSTIK SLCD HELP TO JUST LIGHT A SEGMENT

Question asked by derick petrey on Mar 9, 2012
Latest reply on Mar 9, 2012 by Mark Butcher

Hello I am a neewb to the ARM family, i am in a lab class where we are using assembly to write code on the kwikstik K40.

 

I am really frustrated as i nor the teacher can figure out how to light even one segment on the SLCD, can anyone help me with just a small code in ASSEMBLY please that will help me understand what steps need to be taken to light some segments PLEASE!!

 

Below is what ive tried just by poking in the debug registers and trying to get something but it crashes and does not store any values to the specified registers

 

.section .sdata
         .align 2
VAL1:         .word 0x00000001
VAL2:         .word 0x00000001
VAL3:         .word 0x00000001
VAL4:         .word 0x80800080

      .text
      .align 4

LCD_GCR:  .word 0x400BE000
LCD_PENL:   .word 0x400BE010

          .global main
main:
      LDR R1,LCD_GCR
      LDR R2,VAL4
      STR R2,[R1]
      LDR R1,LCD_PENL
      LDR R2,VAL1
      STR R2,[R1]
      NOP
      .END

Outcomes