微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 嵌入式设计讨论 > DSP学习交流 > DSP的PSC如何配置

DSP的PSC如何配置

时间:10-02 整理:3721RD 点击:
这个程序大概什么意思,逐句求解一下!/*Enable Function for PSC0*/void PSC0_lPSC_enable(unsigned int PD, unsigned int LPSC_num) { *(unsigned int*) (PSC0_MDCTL+4*LPSC_num) = (*(unsigned int*) (PSC0_MDCTL+4*LPSC_num) & 0xFFFFFFE0) | 0x0003; PSC0_PTCMD = 0x1<<PD; while( (PSC0_PTSTAT & (0x1<<PD) ) !=0) ; /*Wait for power state transition to finish*/ while( (*(unsigned int*)(PSC0_MDSTAT+4 * LPSC_num) & 0x3F) !=0x3); }/*Enable Function for PSC1*/void PSC1_lPSC_enable(unsigned int PD, unsigned int LPSC_num) { *(unsigned int*) (PSC1_MDCTL+4*LPSC_num) = (*(unsigned int*) (PSC1_MDCTL+4*LPSC_num) & 0xFFFFFFE0) | 0x0003; PSC1_PTCMD = 0x1<<PD; while( (PSC1_PTSTAT & (0x1<<PD) ) !=0) ; /*Wait for power state transition to finish*/ while( (*(unsigned int*)(PSC1_MDSTAT+4 * LPSC_num) & 0x3F) !=0x3);}

  主营: 贴片电容全系列.电阻.IC.钽电容.等电子元器件.QQ:2844406506 联系电话:13760223342

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top