我在单端使用DSP时,需要唤醒DSP,按照资料上的要求
SYSCONFIG->KICKR[0] = KICK0R_UNLOCK;
SYSCONFIG->KICKR[1] = KICK1R_UNLOCK;
SYSCONFIG->HOST1CFG = 0x80010000;
SETBIT(psc->MDCTL[15], 3);
SETBIT(psc->PTCMD, 1);
while (CHKBIT(psc->PTSTAT, 1)) {}
while (CHKBIT(psc->MDSTAT[15], MASK_STATE) != in_next_state) {}
SETBIT(PSC0->MDCTL[LPSC_DSP], LRST);
使用以上程序调试时,运行到SETBIT(psc->PTCMD, 1); PTCMD寄存器不能置位,不知道为什么?可否解答下。
fei chen2:
补充:PTCMD寄存器置位是根据datasheet上的wake up DSP步骤说明, Write a 1 to the GO[0] bit (DSP subsystem is part of the PD_DSP domain) in the power domain transition command register (PSC0.PTCMD) to start the state transition sequence for the DSP module,通过SETBIT置位后,PTCMD寄存器低位并没有置1。请教下怎么是我哪方面没有操作完全?