|
//ICC-AVR application builder : 2009-4-18 16:47:48
// Target : M88
// Crystal: 8.0000Mhz
////用两个数码管显示2位数,断电以后能记忆,
#include <iom88v.h>
#include <macros.h>
#include <eeprom.h>
/////////////////////////////
/////// 主程序// //////////
/////////////////////////////
void main(void)
{
highbit=EEPROMread(0x00);
lowbit=EEPROMread(0x01);
init_devices();
while(1)
{
if(t_10ms==1)
{
t_10ms=0;
display();
check_key_add();
check_key_minus();
do_count();
EEPROMwrite(0x00,highbit);
EEPROMwrite(0x01,lowbit);
}
}
//insert your functional code here...
} |
阿莫论坛20周年了!感谢大家的支持与爱护!!
知道什么是神吗?其实神本来也是人,只不过神做了人做不到的事情 所以才成了神。 (头文字D, 杜汶泽)
|