I think you can start with these books: http://www.mikroe.com/en/books/picbook/picbook.htm http://www.amqrp.org/elmer160/lessons/index.html These are for a much smaller microcontroller, and some of the registers and options called or handled a bit different, but you can find out how to modify the samples using the data sheet of yours: http://ww1.microchip.com/downloads/en/DeviceDoc/39631a.pdf Alternatively you can buy that smaller PIC and play with that one until you confident and can learn the rest with the 18Fxx one. Let us know if you stuck on something and could not find in either books. Tamas On 05/09/06, Lembit Soobik wrote: > > Lets say I have 8 variables, each one Byte, named > B1, B2, ... B8 > and I want to write them into the first GPR > howdo I address the GPR and > which instruction do I use to write (or read) > > thank you for your help > Lembit > > ----- Original Message ----- > From: "Jan-Erik S=F6derholm XA (TN/PAC)" > > To: "Microcontroller discussion list - Public." > Sent: Tuesday, September 05, 2006 1:34 PM > Subject: RE: [PIC] MPASM - table write problem 18F4520 > > > > Close to *all* instructions read/write GPRs. > > I've no idea what your problem is. > > Could you be more specific ? > > > > Regards, > > Jan-Erik. > > > > -----Original Message----- > > From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu]On Behalf > > Of Lembit Soobik > > Sent: den 5 september 2006 12:52 > > To: Microcontroller discussion list - Public. > > Subject: Re: [PIC] MPASM - table write problem 18F4520 > > > > > > sorry, if I am using the wrong expressions, I'm pretty new to PICs. > > I guess you call it Data Memory. > > The18F4520 has 1536 bytes of SRAM and 256 bytes of EEPROM. > > I want to read/write the SRAM, not the EEPROM and not the Flash Memory > > (program memory part) > > > > Lembit > > > > ----- Original Message ----- > > From: "Jan-Erik Soderholm" > > To: > > Sent: Tuesday, September 05, 2006 12:18 PM > > Subject: RE: [PIC] MPASM - table write problem 18F4520 > > > > > >> Lembit Soobik wrote : > >> > >>> I intended to write and read the static RAM. > >>> Is there a sample code snippet somewhere > >>> how to read/write static RAM? > >> > >> What is "static RAM" ?? > >> > >> Jan-Erik. > >> > >> > >> > >> -- > >> http://www.piclist.com PIC/SX FAQ & list archive > >> View/change your membership options at > >> http://mailman.mit.edu/mailman/listinfo/piclist > >> > >> > >> -- > >> No virus found in this incoming message. > >> Checked by AVG Free Edition. > >> Version: 7.1.405 / Virus Database: 268.11.7/437 - Release Date: > >> 04.09.2006 > >> > >> > > > > -- > > http://www.piclist.com PIC/SX FAQ & list archive > > View/change your membership options at > > http://mailman.mit.edu/mailman/listinfo/piclist > > > > -- > > http://www.piclist.com PIC/SX FAQ & list archive > > View/change your membership options at > > http://mailman.mit.edu/mailman/listinfo/piclist > > > > > > -- > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.1.405 / Virus Database: 268.11.7/437 - Release Date: > 04.09.2006 > > > > > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- = unPIC -- The PIC Disassembler http://unpic.sourceforge.net -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist