There are only 35 instructions to learn on this PIC. The easiest way to learn how to use the PIC is to read the data sheets, and jump in. There are some books which can help you do so, and many web sites which will also help. See my links to such resources at http://www.ubasics.com/adam/pic/ I can help a little bit here with your questions: Steve Horvath wrote: > > Hello > I am fairly new to PIC programming, but have a fair bit of experience form > school involving the Intel 8031. I was wondering if someone could write a > quick program (2 minute job) to do the fallowing on a 16f84, so that I > could learn about these functions by doing them: First, the architecture is very different between these two mcus. You'll find yourself referring to the datasheet as you program. > -push W onto a stack, and pop W off of the stack There really is no direct analogy in the PIC for your stack. You have no access to the stack in the '84. If you want to program this way, then you'll need to create a software stack (which, for most things, is inefficient. It's just a different architechture, and a different way of thinking) > - input from port A to W when there is an interrupt org 4 (Save status registers if needed here (no point in saving W ;-) ) movf PORTA, W (restore status registers if needed here) RETFIE > - have a 10ms delay using the timer > - output to pb.0 through pb.4 after the interrupt > - have a 1 second timer using loops, and have the output (port B) blink on > and off every second thereafter. > > oh, and could someone tell em the difference between portA and trisA? Each i/o pin on the PIC can be an input, or an output. TRISA defines whether each pin in portA is input(1) or output(0). PORTA represents the actual status of PORTA. If you are driving all pins low, but an external circuit is driving them all high, then PORTA will read all high (ie, the real state, not the state the PIC is trying to keep it it) There are other examples out there which do all of what you are asking. Check my links above, and then start asking more specific questions. I hope this helps! -Adam