Hi Sreekar
You can use the command ram for 16 command words (16 bits) for one single chip select too, not limited to share it to others chip selects. It´s specified by your QMR configuration.
A total of 16 words (16 bits) of data can be written to data tx ram. Basically you´ll need the same ammount of words on data tx ram as you have on the command ram.
After setting commands and tx data, you´ll need to configure the wrap register QWR to the mode you want. Then you´ll be able to start a SPI transmission. When the transmission is finished, the SPIF will be set and you´ll know it already finished. Clear this flag by writing a 1 to SPIF bit or you´ll no be able to start a new transfer.
Read process is simple. You know how much bits you need to read, so setup the command ram to send data and setup de data ram with 0x0000 words and reconfigure the QWR as you wish, then start a SPI transfer. The 0x0000 data is to set the SDO line low while you are emmiting the SCLK pulses for the slave AD. After this procedure finishes (look for the SPIF again) you´ll be able to read the data from the read ram, wich has a total of 16 words of data to be read.
Hope this helps.
Cheers