|
inderjeet kalra
10/03/2008 6:15 AM
post14400
|
Hi,
I am using SPI controller and 2 SPI serial flashes (say dev1 and dev2)
are attached to the controller (assuming dev1 is attached to CS0 and
dev2 to CS1 of controller). There is SPCOM register in which 2 bits are
named as CHIP select (CS) (value is 0 for dev1 and 1 for dev2) which
selects the device for which transaction is destined.
Now according to my understanding, If dev1 driver wants to start some
transaction it will send devid = 0 to the controller and then controller
will set the value of CS=0 and in case of DEV2 value send by the driver
will be devid = 1, so that controller will set CS=1, so that the correct
device will be selected for transaction.
Please comment on my understanding. Can I change the controller code
according to the above understanding?
|
|
|
|
|