-
现场的4套奖品,其中三套是TI的dk-9b96,一套是我们瑞鑫同创提供的hellom3-9b96系列开发板套件,呵呵,广州下大雨,去的人还很多。
下雨原因开始的时间晚了,时间比较仓促,内容多,所以有些实验可能不能保证每位现场工程师都能做完,最主要的是通过现场的操作对TI的M3能有个感性的认识。
[ 本帖最后由 锐鑫同创 于 2011-7-1 11:50 编辑 ]
-
UARTprintf()是UARTStdio里的函数,所以这个初始化是必要的。
-
您检查一下您板子的硬件及原理图吧,PWM输出电平应该和VCC相同,是不是接大负载了?
-
void
InitConsole(void)
{
//
// Enable GPIO port A which is used for UART0 pins.
// TODO: change this to whichever GPIO port you are using.
//
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA);
//
// Configure the pin muxing for UART0 functions on port A0 and A1.
// This step is not necessary if your part does not support pin muxing.
// TODO: change this to select the port/pin you are using.
//
GPIOPinConfigure(GPIO_PA0_U0RX);
GPIOPinConfigure(GPIO_PA1_U0TX);
//
// Select the alternate (UART) function for these pins.
// TODO: change this to select the port/pin you are using.
//
GPIOPinTypeUART(GPIO_PORTA_BASE, GPIO_PIN_0 | GPIO_PIN_1);
//
// Initialize the UART for console I/O.
//
UARTStdioInit(0);
}
先按这个初始化,使用方法如下。
//
// Display the example setup on the console.
//
UARTprintf("16-Bit Timer Interrupt ->");
-
您的意思是说,您的程序实现的逻辑是正确的,只是PWM_OUT_2输出的电压幅值不是3.3V?不翻转的时候幅值正常吗?这个看起来像是硬件上的问题。