日志档案

发表于 2008-4-25 12:26:22

0

标签: 无标签

在DSP2812上的"零耗时键盘"演示C++程序

点击下载程序源码LCD_DEMO.RAR: rar

 

/*-----------------------------------------------------
      在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();
 }
}

 

 

系统分类: DSP   |   用户分类: DSP2812   |   来源: 原创   |   【推荐给朋友】

    阅读(416)    回复(0)  

投一票您将和博主都有获奖机会!