Hi everybody, I have a problem writing to a table. this is my first try on using a table. I am modifying a program which came with PICDEM 2 PLUS. I first read a Byte and find the expected original data there then I write different data to this Byte and then I read again from this same place and finde the original data is still there. or is the table, as it is set up read-only??? thank you in advance Lembit the loop is this: ----------------- wr_next_char_1 tblrd * movff TABLAT, testRD movff testWR, TABLAT tblwt * tblrd *+ movff TABLAT, testRD decfsz ptr_count,F ;move pointer to next char bra wr_next_char_1 ----------------- before this loop is following program: ----------------------------- movlw .160 movwf ptr_pos movlw "X" movwf testWR movlw .16 ;1-full line movwf ptr_count movlw UPPER my_table movwf TBLPTRU movlw HIGH my_table movwf TBLPTRH movlw LOW my_table movwf TBLPTRL movf ptr_pos,W addwf TBLPTRL,F clrf WREG addwfc TBLPTRH,F addwfc TBLPTRU,F ----------------------------- before that I have the table set up like this: ------------------------ my_table ;table for my code data " Lembits " ;0 data " Microprocessor " ;16 data "Fenster Nord Azi" ;32 data "West-Fenster Azi" ;48 data " Achtung: offen " ;64 data "- geschlossen - " ;80 data "Taste 1 " ;96 data "Taste 2 " ;112 data "Taste 3 " ;128 data "Taste 4 " ;144 data "richtig123456789" ;160 data "falsch " ;176 data "Bus-Result " ;192 data " elec-tronic " ;208 data "Fenster Nord Azi" ;224 data "West-Fenster Azi" ;240 GLOBAL my_table ------------------------ -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist