main.c

来自「根据freescale XXDZ60的多用途时钟发生器的设置原理」· C语言 代码 · 共 34 行

C
34
字号
#include <hidef.h> /* for EnableInterrupts macro */
#include "derivative.h" /* include peripheral declarations */




void main(void) {
  unsigned int wCount;
  
  EnableInterrupts; /* enable interrupts */
  /* include your code here */
  PTDDD = 0xFF;
  PTDD = 0x55;


 
  for(;;) 
  {
    for (wCount = 0; wCount < 0xfff0; wCount++) 
    { }      
      if (PTDD == 0x55) 
         {
           PTDD = 0xA6;
         }
      else 
        {
          PTDD = 0x55;
        }
    
    __RESET_WATCHDOG(); /* feeds the dog */
  } /* loop forever */
  /* please make sure that you never leave main */
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?