打印

dsp 12864串口方式 为什么显示不了

[复制链接]
1175|5
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
本帖最后由 zq799879197 于 2013-10-20 21:31 编辑

void main(void)
{

// Step 1. Initialize System Control:
// PLL, WatchDog, enable Peripheral Clocks
// This example function is found in the DSP2833x_SysCtrl.c file.
   InitSysCtrl();

// Step 2. Initalize GPIO:
   Gpio_select();        

// Step 3. Clear all interrupts and initialize PIE vector table:
// Disable CPU interrupts
   DINT;

// Initialize PIE control registers to their default state.
// The default state is all PIE interrupts disabled and flags
// are cleared.
// This function is found in the DSP2833x_PieCtrl.c file.
   InitPieCtrl();

// Disable CPU interrupts and clear all CPU interrupt flags:
   IER = 0x0000;
   IFR = 0x0000;

// Initialize the PIE vector table with pointers to the shell Interrupt
// Service Routines (ISR).
// This will populate the entire table, even if the interrupt
// is not used in this example.  This is useful for debug purposes.
// The shell ISR routines are found in DSP2833x_DefaultIsr.c.
// This function is found in DSP2833x_PieVect.c.
   InitPieVectTable();


   delay_loop(632000); //80ms的延时 上电延时
   RST_1;
   RST_1;
   delay_loop(632000);
   LcmInit();
   LcmClearTXT();
   LcmClearBMP();

   for(;;)
   {   
      
        // lcd_set_dot(2,2);
           //显示图像
           LcmClearTXT();
       PutBMP(bmp1);
       DelayKey(20,5);
       /*
       //全屏间隔显示点
       DisplayDots(0x55);
       DelayKey(1,5);
      
       //全屏间隔显示点            
       LcmClearTXT();
       DisplayDots(0xaa);
       DelayKey(1,5);
      
            
       */
       //全屏显示文字
       LcmClearBMP();
       DelayKey(15,5);
       PutStr(0,0,str1);
       DelayKey(30,5);
      
       LcmClearTXT();
       DelayKey(15,5);
       PutStr(0,0,str2);
       DelayKey(30,5);
            //全屏间隔显示半型符号            
       LcmClearTXT();
       PutSign(0,0,sign);
       DelayKey(30,5);
//            while(1);
    }


}         

QQ截图20131020212633.jpg (120.55 KB )

QQ截图20131020212633.jpg

QQ截图20131020212617.jpg (79.92 KB )

QQ截图20131020212617.jpg

QQ截图20131020212610.jpg (92.42 KB )

QQ截图20131020212610.jpg

QQ截图20131020212604.jpg (87.43 KB )

QQ截图20131020212604.jpg

QQ截图20131020212557.jpg (91.36 KB )

QQ截图20131020212557.jpg

QQ截图20131020212549.jpg (67.09 KB )

QQ截图20131020212549.jpg

QQ截图20131020212540.jpg (58.74 KB )

QQ截图20131020212540.jpg

QQ截图20131020212529.jpg (110.31 KB )

QQ截图20131020212529.jpg

QQ截图20131020212513.jpg (112.87 KB )

QQ截图20131020212513.jpg

相关帖子

沙发
wangch_sh| | 2013-10-21 13:32 | 只看该作者
硬件有没有问题?时序?

使用特权

评论回复
板凳
zhangmangui| | 2013-10-21 13:58 | 只看该作者
网上好多代码  你参考对比一下
你说的串口方式是指SPI?

使用特权

评论回复
地板
zq799879197|  楼主 | 2013-10-22 08:15 | 只看该作者

使用特权

评论回复
5
lvgyl| | 2013-12-22 13:29 | 只看该作者
你 这是模拟串口 并没有用到SPI啊

使用特权

评论回复
6
zhangmangui| | 2013-12-22 21:32 | 只看该作者
我也没看到配置SPI相关的代码

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

15

主题

21

帖子

0

粉丝