⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lv8.c

📁 基于FREEESCLAE LV8 的ADF7020通信程序
💻 C
字号:
/** ###################################################################
**     Filename  : lv8.C
**     Project   : lv8
**     Processor : MC68HC908LV8CFA
**     Version   : Driver 01.15
**     Compiler  : CodeWarrior HC08 C Compiler
**     Date/Time : 2006-8-17, 16:04
**     Abstract  :
**         Main module.
**         Here is to be placed user's code.
**     Settings  :
**     Contents  :
**         No public methods
**
**     (c) Copyright UNIS, spol. s r.o. 1997-2006
**     UNIS, spol. s r.o.
**     Jundrovska 33
**     624 00 Brno
**     Czech Republic
**     http      : www.processorexpert.com
**     mail      : info@processorexpert.com
** ###################################################################*/
/* MODULE lv8 */


/* Including used modules for compiling procedure */
#include "Cpu.h"
#include "LCD1.h"
/* Include shared modules, which are used for whole project */
#include "PE_Types.h"
#include "PE_Error.h"
#include "PE_Const.h"
#include "IO_Map.h"

void main(void)
{
  /* Write your local variable definition here */
  unsigned char i,PTA0,xx;
  /*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
  PE_low_level_init();
  
  DDRA|=0x03;
  PTA0=PTA&0x01;
  
  /*** End of Processor Expert internal initialization.                    ***/

  /* Write your code here */
  /* For example: for(;;) { } */

  /*** Don't write any code pass this line, or it will be deleted during code generation. ***/
  /*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/
  xx=1;
    LDAT1=0x00;
  LDAT2=0x00;
  LDAT3=0x00;
  LDAT4=0x00;
  LDAT5=0x00;

  LDAT6=0x00;
  LDAT7=0x00;
  LDAT8=0x00;
  LDAT9=0x00;
  LDAT10=0x00;

  LDAT11=0x00;
  LDAT12=0x00;
  LDAT13=0x00;
  for(;;){
        
  LDAT1=xx;
  LDAT2=xx;
  LDAT3=xx;
  LDAT4=xx;
  LDAT5=xx;

  LDAT6=xx;
  LDAT7=xx;
  LDAT8=xx;
  LDAT9=xx;
  LDAT10=xx;

  LDAT11=xx;
  LDAT12=xx;
  LDAT13=xx;
   xx=xx<<1; 
  }

  /*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/
} /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/

/* END lv8 */
/*
** ###################################################################
**
**     This file was created by UNIS Processor Expert 2.98 [03.80]
**     for the Freescale HC08 series of microcontrollers.
**
** ###################################################################
*/

⌨️ 快捷键说明

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