Hi folk, i have the kenetis demoboard twr53 also new in this mcu
i m trying using the spi2 on my board with an external chip which is active when the cs is high, in other way i m using the ioctl cmd ( IO_IOCTL_SPI_READ_WRITE) which auto assert the chip. __________
can someone please tell me how i can assert the chip "high" ? not low e.g not __ __ but __| |__
|________|
Please look at the wave form if what i wrote not clear
thx in advance
已解决! 转到解答。
Like a lot of parts of MQX the drivers often don't allow configuration of low level chip features. In this case the DSPI module driver for the kinetis chip set:
dspi_ptr->MCR |= DSPI_MCR_PCSIS(0xFF);
in the _dspi_polled_init function of the BSP. So you can either modify that for your application or else come back through after you do the fopen for the spi channel you are using and manually modify the SPIx_MCR register.
Like a lot of parts of MQX the drivers often don't allow configuration of low level chip features. In this case the DSPI module driver for the kinetis chip set:
dspi_ptr->MCR |= DSPI_MCR_PCSIS(0xFF);
in the _dspi_polled_init function of the BSP. So you can either modify that for your application or else come back through after you do the fopen for the spi channel you are using and manually modify the SPIx_MCR register.