Page 1 of 1

PIC Docs?

Posted: Tue Apr 25, 2006 12:43 pm
by Midas
Okay, I've restarted this guff but I'd like to not copy any code at all. I want to get this through hard graft, then it'll actually be worth something to me when it's done.

So, with that in mind, can anyone recommend (preferably online - since that's free and easily accessible, though if a book covers multiple useful topics, those recommendations are more than welcome too!) some documentation for the PIC (particularly with a view to remapping it so I can start adding interrupts and things properly, now that I've got my IDT etc setup).

Oh, and if there's a page in the Wiki that I've missed (I have actually looked, I've got a folder of printouts from it with the various theory things on them) then feel free to point me towards it and give me a good kick! ;)

Re:PIC Docs?

Posted: Tue Apr 25, 2006 2:35 pm
by paulbarker
Start with the actual docs for the (original Intel) PIC 8259 and good ole' Ralf Brown Interrupts List (ports 0x20-0x3f and 0xa0-0xaf).

Re:PIC Docs?

Posted: Wed Apr 26, 2006 4:52 am
by Pype.Clicker
if you just want to remap PIC and set it up, "how do i remap the PIC" in the FAQ should be enough. If you wonder why there are those magic values in the initialization vector, etc. then better read the datasheets (and possibly a good book about PC hardware to know how the chip is used in IBM PC clones :)

Re:PIC Docs?

Posted: Wed Apr 26, 2006 8:29 am
by Midas
Yeah, I've taken a look at the 'Can I remap the PIC?' page, and I can follow it; but I just wanted to have a solid knowledge and understanding of what the various codes mean.

Apart from anything else... black code-fu magic that I don't follow means it's easier to create lovely bugs that take hours to find. :P

But thanks, I'll take a look at the PIC 8259 docs and interrupts list. Then I'll take a look and see what books I have (or can buy) that might cover it.

Ta :)

Re:PIC Docs?

Posted: Wed Apr 26, 2006 11:01 pm
by hendric
http://bochs.sourceforge.net/techspec/intel-8259a-pic.pdf.gz
official specification of 8259A contains whole information about 8259A even though electronic feature..

Re:PIC Docs?

Posted: Thu Apr 27, 2006 8:32 am
by Midas
Thanks guys, the PIC docs for the 8259A (the copy I used, I found at http://pdos.csail.mit.edu/6.828/2005/re ... /8259A.pdf) answered all my questions (and were moderately interesting, to boot). :)

Re:PIC Docs?

Posted: Thu Apr 27, 2006 10:47 am
by asmboozer
Midas wrote: Thanks guys, the PIC docs for the 8259A (the copy I used, I found at http://pdos.csail.mit.edu/6.828/2005/re ... /8259A.pdf) answered all my questions (and were moderately interesting, to boot). :)
I am searching the doc too. thanks