#include <hidef.h> /* for EnableInterrupts macro */
#include "derivative.h" /* include peripheral declarations */
#define LED_D1 PTDD_PTDD0
#define LED_D1_DIR PTDDD_PTDDD0
#define LED_ON 0
#define LED_OFF 1
unsigned char SCANF_SEND_STRINGS[] = "HELLO MCU WORLD";
unsigned char *pSendString = SCANF_SEND_STRINGS;
/*************************************************************/
/* 初始化总线时钟PEE模式 */
/* 外部晶振频率为4MHz,总线频率16MHz */
/*************************************************************/
void INIT_MCG(void)
{
MCGC2=0x36;
while(!MCGSC_OSCINIT);
MCGC1=0xb8;
while(MCGSC_IREFST);
while(MCGSC_CLKST!=0b10);
MCGC2_LP = 1;
MCGC1 = 0x90;
MCGC3 = 0x48;
MCGC2_LP = 0;
while(!MCGSC_PLLST);
while(!MCGSC_LOCK);
MCGC1 = 0x10;
while(MCGSC_CLKST!=0b11);
飞思卡尔单片机DZ60---SCI(查询发送)
最新推荐文章于 2024-04-07 23:30:00 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)