/*-----------------------------------------------------
在DSP2812上的"零耗時(shí)鍵盤"演示C++程序
本演示程序在Study-2812增強(qiáng)版上通過(guò)運(yùn)行測(cè)試
菜農(nóng)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();
}
}
在DSP2812上的"零耗時(shí)鍵盤"演示C++程序
全部回復(fù)(0)
正序查看
倒序查看
現(xiàn)在還沒(méi)有回復(fù)呢,說(shuō)說(shuō)你的想法