大侠们好:我用S3C2410, ChangeClockDivider(1,1); // HCLK=FCLK/2,PCLK=FCLK/4 ChangeMPllValue(0xa1,0x3,0x1); // FCK=202.8MHZ 然后在主程序中 for(;;) { rGPEDAT = 0xffffc7ff; //LED1,LED2,LED3=ON rGPEDAT = 0xffffffff; //LED1,LED2,LED3=OFF rGPEDAT = 0xffffc7ff; rGPEDAT = 0xffffffff; rGPEDAT = 0xffffc7ff; rGPEDAT = 0xffffffff; rGPEDAT = 0xffffc7ff; rGPEDAT = 0xffffffff; } 测试LED端口发现LED端口波形大概为0.5us on,0.5us off 理论上端口波形至少在202.8/4(pclk)/4(端口操作大概四个时钟周期)=12.675MHZ 郁闷!
|