大家好:
我们购买了BT-MSPAUDSOURCE Tools Bluetooth and MSP430 Audio开发板(MSP430F5229),请教系统初始化代码的编写:
例如:厡代码如下:
WDTCTL = WDTPW + WDTHOLD;
SCFI0 |= FN_2;
FLL_CTL0 |= XCAP18PF;
SCFQCTL = 127; // 32768*128=4194304*/
我们希望使用DDS芯片AD9954模块!
辛苦了
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.
大家好:
我们购买了BT-MSPAUDSOURCE Tools Bluetooth and MSP430 Audio开发板(MSP430F5229),请教系统初始化代码的编写:
例如:厡代码如下:
WDTCTL = WDTPW + WDTHOLD;
SCFI0 |= FN_2;
FLL_CTL0 |= XCAP18PF;
SCFQCTL = 127; // 32768*128=4194304*/
我们希望使用DDS芯片AD9954模块!
辛苦了
您好:
我们希望借用MSP430驱动AD9954的成熟代码, MSP430上运行的C代码下:
WDTCTL = WDTPW + WDTHOLD; //stop watchdog timer
SCFI0 |= FN_2; //系统时钟频率积分器
FLL_CTL0 |= XCAP18PF; //配置内部晶振
SCFQCTL = 127; // 32768*128=4194304, 系统时钟频率控制寄存器 4.19M
您看能帮在MSP430F5229开发板上改写这段初始化程序吗?
大家早晨好:
我们移植了“蓝牙和MSP430音频参考设计”里的A3DPDemo_SNK里的参考代码,并且连线正常;AD9954仍然不工作, 为什么?
代码如下:
int main(void) {
/* Turn off the watchdog timer */
WDTCTL = WDTPW | WDTHOLD;
/* Configure the hardware for its intended use. */
HAL_ConfigureHardware();
/* Enable interrupts and call the main application thread. */
__enable_interrupt();
#if 0
MainThread(); /* MainThread should run continously, if it exits an error occured. */
while(1) {
HAL_LedToggle(0);
BTPS_Delay(100);
}
msec_s(1);
AD9954_Initial();
msec_s(1);
while(1)
{
#if 0
AD9954_SETFRE(10000.0); //
SET_AD9954_PS0; //
LINEARSWEEP(1.0,100000.0);
msec_s(1); //
CLR_AD9954_PS0;
#else
AD9954_SETFRE(1931.0);
SET_AD9954_PS0;
LINEARSWEEP(1.0,1931.0);
msec_s(1);
CLR_AD9954_PS0;
#endif
}
#endif
}