Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Most of the guides I've found on IRQs/PICs seem to send an init sequence to both PICs at the same time.
So, it sends the first byte to PIC 1, then to PIC 2.
Then it sends the next byte to PIC 1, then PIC 2.
...and so on.
Is this actually necessary, or can the entire init sequence be sent to each chip separately/individually?
The only reason I can think that this might not be appropriate is that the chips are set up for cascade/slave etc. at the same time and I'm not sure if this is really necessary or not.
Also some guides suggest the use of an I/O "wait" function between sending each byte. Does this really offer reliability or other advantages? (I do it anyway...)
The key is that old PICs need some delay between writes. So you offer them that delay by doing an OUT to the otherPIC. Pretty much the most efficient way of doing things.
But as long as you provide the delay, any method should work.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]