/*-----------------------------------------------------
在DSP2812上的"零耗时键盘"演示C++程序
本演示程序在Study-2812增强版上通过运行测试
菜农HotPower@126.com 2008.4.25 于西安大雁塔菜地
------------------------------------------------------*/
#include "main.h"
class SystemObj System;
class TimerObj Timer;
class LcdObj Lcd;
class KeyboardObj Keyboard;
int main(void)
{
Lcd.SetDisplayPos(0, 0);//汉字定位到上行左端
Lcd.Display("汉字显示演示12");
Lcd.SetDisplayPos(1, 0);//汉字定位到上行左端
Lcd.Display("汉字显示演示34");
Lcd.SetDisplayPos(2, 0);//汉字定位到上行左端
Lcd.Display("汉字显示演示56");
Lcd.SetDisplayPos(3, 0);//汉字定位到上行左端
Lcd.Display("汉字显示演示78");
EALLOW;
// PieCtrlRegs.PIEACK.all = 0xFFFF;//PIEACK_GROUP1;
PieCtrlRegs.PIEACK.bit.ACK7 = 1;
EDIS;
EINT; // Enable Global interrupt INTM
ERTM; // Enable Global realtime interrupt DBGM
for(;;)
{
asm(" nop");
// Reset the watchdog counter
KickDog();
}
}