另外用pe有点不清楚的地方是cpu的那一栏属性里工作模式应该选special single
还是 normal single ?接下来还有调整模式的选项都不知道应该怎样选。。。
下面是主函数部分的代码
/** ###################################################################
** Filename : eepromtest.C
** Project : eepromtest
** Processor : MC9S12DG128BCPV
** Version : Driver 01.11
** Compiler : Metrowerks HC12 C Compiler
** Date/Time : 2007-5-28, 19:59
** Abstract :
** Main module.
** Here is to be placed user's code.
** Settings :
** Contents :
** No public methods
**
** (c) Copyright UNIS, spol. s r.o. 1997-2005
** UNIS, spol. s r.o.
** Jundrovska 33
** 624 00 Brno
** Czech Republic
** http : www.processorexpert.com
** mail : info@processorexpert.com
** ###################################################################*/
/* MODULE eepromtest */
/* Including used modules for compiling procedure */
#include "Cpu.h"
#include "EEP.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"
const char s[20]="SaserKing";
volatile char a[20]={0};
volatile char b[20]={0};
void main(void)
{
unsigned int i;
unsigned int j;
/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
PE_low_level_init();
/*** End of Processor Expert internal initialization. ***/
__DI();
i=0;
while (s!=0) {
EEP_SetActByte(s);
i++;
}
EEP_SetActByte(0);
/*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/
for(;;){}
/*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/
} /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/
/* END eepromtest */
/*
** ###################################################################
**
** This file was created by UNIS Processor Expert 2.96 [03.76]
** for the Freescale HCS12 series of microcontrollers.
**
** ###################################################################
*/ 作者: saserking 时间: 2007-5-29 13:32