I understand MOVLW to mean, Move the Literal value (specified after the instruction) into the W register.. Is this not correct? ----- Original Message ----- From: "Tony Nixon" To: Sent: Thursday, March 29, 2001 11:47 PM Subject: Re: [PIC]: Flashing a LED "Alan B. Pearce" wrote: > > > This was part of a series of start up programs for people who don't know > > what an include file is yet. > > I would have thought that one of the first things to do would be to teach them > about the include file and how it helps them in their coding. > > This is not meant as a sarcastic comment on the teaching style of your course, > but rather a comment of how I see the pupils having good pointers early on which > would help them understand how the target processor itself works, and how the > assembler does pre-processor things for them. > That's fine I guess, but if newcomers don't even understand what MOVLW means how are they going to comprehend an include file. This is the first program that I mention and that is after 16 pages of lead up explanantion starting with 0 and 1. This simple program gets explained in detail and then how to write it in Mnemonic format etc. etc... and on it goes. They can then click on a link on the page and start the animated simulator and watch each of these simple instructions execute and get a visual idea of what is happening inside the processor. Title "mICro's Simple Program" list p=16f84 ; processor type ; ; ------------- ; PROGRAM START ; ------------- ; org 0h ; startup address = 0000 start movlw 0x00 ; simple code movwf 0x05 goto start ; do this loop forever end Its' similar to the clock project on my page. It provides a PDF file, 17 source code files, watch files etc. that build the project up from scratch and explain why each part is added and also how to simulate the files. There are also a few of these asm files with little bugs in them to spark up some problem solving when things don't work as expected. Teaching is certainly an art and I'm definitely no expert, but you have to start somewhere :-) -- Best regards Tony mICro's http://www.picnpoke.com mailto:sales@picnpoke.com -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.