本帖最后由 niuyaliang 于 2013-12-8 22:10 编辑
本来准备做个表格的,结果测试后发现读出的复位值与手册不同 Demo包
Example.rar
(431.66 KB)
/*---------------------------------------------------------------------------------------------------------*/
/* */
/* Copyright(c) 2010 Nuvoton Technology Corp. All rights reserved. */
/* */
/*---------------------------------------------------------------------------------------------------------*/
#include <stdio.h>
#include "M051Series.h"
//#include "initialization.h"
/*---------------------------------------------------------------------------------------------------------*/
/* MAIN function */
/*---------------------------------------------------------------------------------------------------------*/
int main(void)
{
printf("SYSCLK->PWRCON: %08x\n", SYSCLK->PWRCON);
printf("SYSCLK->AHBCLK: %08x\n", SYSCLK->AHBCLK);
printf("SYSCLK->APBCLK: %08x\n", SYSCLK->APBCLK);
printf("SYSCLK->CLKSTATUS: %08x\n", SYSCLK->CLKSTATUS);
printf("SYSCLK->CLKSEL0: %08x\n", SYSCLK->CLKSEL0);
printf("SYSCLK->CLKSEL1: %08x\n", SYSCLK->CLKSEL1);
printf("SYSCLK->CLKDIV: %08x\n", SYSCLK->CLKDIV);
printf("SYSCLK->CLKSEL2: %08x\n", SYSCLK->CLKSEL2);
printf("SYSCLK->PLLCON: %08x\n", SYSCLK->PLLCON);
printf("SYSCLK->FRQDIV: %08x\n", SYSCLK->FRQDIV);
while(1);
}
上图是主程序代码 |