Hello All,
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello All,
Hi Savitha,
1) There is no StarterWare McSPI example demonstrated on the Beaglebone since there is no slave(SPI Flash) device onboard to be demonstrated. Probably the reference you have taken is from the McSPI example of AM335x EVM(Which is another evaluation module)
2) The chNum field represents the particular channel used by the McSPI instance. The example for EVM demonstartes working of McSPI instance 0 and channel number(This is chip select) used is also 0. Hence by changing chNum to 1 will not be enough in your code. Code needs to be updated to reflect all configurations needed for McSPI instance 1 and if your using channel 1 then chNum can be 1.
3) Pin mode depends on which particular pin of McSPI controller out of SPIDAT0 or SPIDAT1 you want to make it as input(MISO) or output(MOSI). User has flexibility from the McSPI controller end and can configure either of the pins as MOSI/MISO. But you need to check which particular pin connects to your SPI slave device and program MOSI/MISO accordingly. For more information on programming the IS, DPE1 and DPE0 please refer the TRM. I guess you need to configure McSPI in Master mode with trasnfer only mode and you need to program SPI1_D0/SPI1_DAT0. Then you need to program the DPE0 = 0 and DPE1 = 1 and IS = 1 of McSPI Channel configuration register i .e. you need to use "MCSPI_DATA_LINE_COMM_MODE_6".
Regards,
Jeethan
Hi Jeethan,
Thanks for the reply.
Meanwhile,I referred another thread where you had provided answer to a similar query.I followed that & made my SPI0 operational.
Also I require a clockout of 8MHz to drive a printer head.Is it possible to obtain from 48MHz since I read in the TRM that only dividers of 2 to power n can be used.
Thanks & Regards
Savitha