Setting up the PICs
Posted: Thu Jan 03, 2008 7:17 am
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...)
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...)