Shop OBEX P1 Docs P2 Docs Learn Events
Multiple lookup tables — Parallax Forums

Multiple lookup tables

zabielzabiel Posts: 2
edited 2013-02-27 18:18 in General Discussion
Hello. I need to use several lookup tables(DATA,DATA1...) in one program and it should change after some time (like after 1s). Is it possible to do it in assembler language with 8051 microcontroler? Thank you in advance.
MAIN:
MOV DPTR,#[COLOR=#ff0000]DATA
[/COLOR]CLR A
MOVC A,@A+DPTR
MOV R2,A      
INC DPTR
......
[COLOR=#ff0000]DATA[/COLOR]: 
DB 36D 
DB 1D,254D       
;DB 22D,233D
...

Comments

  • LeonLeon Posts: 7,620
    edited 2013-02-27 03:21
    Why don't you ask an 8051 forum?
  • zabielzabiel Posts: 2
    edited 2013-02-27 03:27
    Brain exercise for you guys :) Sorry for disturbance.
  • kwinnkwinn Posts: 8,697
    edited 2013-02-27 18:18
    I have yet to encounter a computer, microprocessor, or microcontroller that cannot be programmed to use a lookup table, and if it can be programmed for one table it can be programmed for more than one. The main limitation is the amount and type of memory available.
Sign In or Register to comment.