Alex_rcpilot
Member
Hi all,I would like to store a table of data inside the flash memory of a PIC16F877A.I'd like not to use the normal RETLW k structure to fetch data,but the slower 'read ROM word' operation instead.First I have to save the data into the flash.My text book doesn't describe how DB and DW does with a 14-bit ROM word in detail.So here are my questions:
what happens to the memory addr starting from 0x100 when I define bytes in sequence as below?
ORG 0x100
TABLE
DB 0xFD,0x35,0xDA,0xC4,0x0E........
Similarly,what would happen if I do this with DW?
ORG 0x100
TABLE
DB 0x1FFD,0x2E35,0x3DA,0x3F74,0xE0E........
BTW,is there a tutorial on MPASM pseudo instructions?I will appreciate if someone can share a link with me.Thank you.
Regards,Alex
what happens to the memory addr starting from 0x100 when I define bytes in sequence as below?
ORG 0x100
TABLE
DB 0xFD,0x35,0xDA,0xC4,0x0E........
Similarly,what would happen if I do this with DW?
ORG 0x100
TABLE
DB 0x1FFD,0x2E35,0x3DA,0x3F74,0xE0E........
BTW,is there a tutorial on MPASM pseudo instructions?I will appreciate if someone can share a link with me.Thank you.
Regards,Alex