Hi...Iam working on lcd interfacing with TWR-K65F180M using spi1. I have an issue in making my chipselect active high during data transfer and I cant make changes in the MCR, CTAR, SR registers using inbuilt functions namely ioctl(spifd, IO_IOCTL_SPI_SET_BAUD, ¶m),ioctl (spifd, IO_IOCTL_SPI_GET_FRAMESIZE, ¶m),etc which were given in example code of spi.
I changed " #define BSP_SPI_MEMORY_CHANNEL" to 1 & "const SPI_INIT_STRUCT _bsp_spi1_init " framsize = 7, baudrate = 8330000, chipselect = 1 in init_spi.c...Though the realterm is printing framsize, baudrate correctly using IO_IOCTL_SPI_GET_BAUD, IO_IOCTL_SPI_GET_FRAMESIZE..my framesize is not set in ctar FMSZ register.what else should be changed to set FMSZ, BR, PBR, DIS_RXF, DIS_TXF and also make chipselect active high during data transmission?
Hi Swathi:
Do you still have this issue? I did a quick check with your modifications , I found the registers changed. Please see the following picture.
The real register setting is within the following function
meory_read_status(spifd);
Regards
Daniel