如题,使用的程序是在例程包中的blinky例程基础上修改的,无论是分配到M3还是C28端,都不能正常输出高低电平。用作M3的I/O输出口程序在附件里。
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.
如题,使用的程序是在例程包中的blinky例程基础上修改的,无论是分配到M3还是C28端,都不能正常输出高低电平。用作M3的I/O输出口程序在附件里。
附件中的程序少了一句SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB);调试时这句是有的。现把添加了这句的代码重新上传。
其他的配置应该还比较清楚吧,PB7与PC7分配给M3并做IO输出用,PC6分配给C28,在while循环中使PB7和PC7电平改变,同样的配置,PC7没有问题,电平高低变化,但是PB7就不行,一直输出低电平!求解!!!
楼主你好!
请查看规格书中相关描述。我想问题应该是有由于这个原因导致。
The NMI signal is one of the peripheral functions for the PB7_GPIO15 signal, and functions as a GPIO
after reset. PB7_GPIO15 is under commit protection and requires a special process to be configured as
any alternate function or to subsequently return to the GPIO function.