摘要: void Port_Init(void){ //CAUTION:Follow the configuration order for setting the ports. // 1) setting value(GPnDAT) // 2) setting control register (GPnCON) // 3) configure pull-up resistor(GPnUP) rGPACON = 0x7fffff; rGPBCON = 0x015550; rGPBUP = 0x7ff; // The pull up functi... 阅读全文
posted @ 2013-11-17 14:00 奔流聚海 阅读(1549) 评论(0) 推荐(2) 编辑
摘要: void Main(void) 时钟设定:400M 100M 50M得到1:4:8 进而需要得到 hdivn=2; pdivn=1; i = 2 ; //用于选择CUP核的频率;以及对应MPLL_vall ;key 参数; switch ( i ) case 2://400 key = 14; key=14 指 hdivn_val (FCLK:HCLK) 1:4; hdivn=2 mpll_val = (92>12)&0xff, (mpll_val>>4)&0x3f, mpll_val&3);三个参数传递给rMPLLCONChangeClockDivi 阅读全文
posted @ 2013-11-17 13:51 奔流聚海 阅读(505) 评论(0) 推荐(0) 编辑