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.

关于SPI的一个问题



在数据手册中有这样一段话:19.2.4 SPI Enable:

The SPI transmit/receive enable bit USPIEx enables or disables the USART in SPI mode. When USPIEx

= 0, the USART stops operation after the current transfer completes, or immediately if no operation is

active. A PUC or set SWRST bit disables the USART immediately and any active transfer is terminated.

可是如何设置USPIE=1,从而使得SPI模块工作呢?