电子发烧友App

硬声App

0
  • 聊天消息
  • 系统消息
  • 评论与回复
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
创作中心

完善资料让更多小伙伴认识你,还能领取20积分哦,立即完善>

3天内不再提示
电子发烧友网>电子资料下载>音视频类>SAA7114程序源代码

SAA7114程序源代码

2007-12-24 | rar | 2048 | 次下载 | 免费

资料介绍

SAA7114程序源代码

#include                              
#include
#ifdef VIDEO_SAA7114
#define SAA7114WRITEID 0x40
#define SAA7114READID  0x41

//-------------------------------------------------------------------
void SAA7114_SET(void)
{
        BYTE i;
        BYTE code DataSAA7114[]={   
    0x00,0x08,0xc2,0x00,0x00,0x00,0xeb,0xe0,0x98,0x80,0x80,0x44,0x40,0x00,0x89,0x2a,//0x00
    0x0e,0x00,0x00,0x00,0x00,0x11,0x01,0x02,0x40,0x80,//0x10
    0x00,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,//0x40
    0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//0x50
    0x00,0x00,0x00,0x12,0x00,0x00,0x00,0x45,0x06,0x40,0x00,//0x80
    0x00,0x08,0x10,0x40,0x00,0x00,0xd0,0x02,0x00,0x00,0x04,0x01,0xd0,0x02,0x04,0x01,//0x90
    0x01,0x00,0x00,0x00,0x80,0x40,0x40,0x00,0x00,0x04,0x20,0x00,0x00,0x02,0x10,0x00,//0xa0
    0x00,0x04,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//0xb0
    0x00,0x08,0x10,0x40,0x00,0x00,0xd0,0x02,0x00,0x00,0xf0,0x00,0xd0,0x01,0xf0,0x00,//0xc0
    0x01,0x00,0x00,0x00,0x80,0x40,0x40,0x00,0x00,0x04,0x00,0x00,0x00,0x02,0x00,0x00,//0xd0
    0x00,0x04,0x00,0x04,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//0xe0
                };
        I2C_Send9Stop();
        I2C_SendByteWithStart(SAA7114WRITEID);
        I2C_SendByte(0);
        delay(1);
        for(i=0; i                I2C_SendByte(DataS.1………AA7114_1[i]);
                delay(1);
        }
        I2C_SendStop();
        I2C_ReleaseBus();
        delay(10);
        
    I2C_SendByteWithStart(SAA7114WRITEID);
        I2C_SendByte(0x40);
        delay(1);
        for(i=0; i                I2C_SendByte(DataSAA7114_2[i]);
                delay(1);
        }
        I2C_SendStop();
        I2C_ReleaseBus();
        delay(10);
        
    wr_SAA7114(0x88,0xd8);
    delay(10);
    
    I2C_SendByteWithStart(SAA7114WRITEID);
        I2C_SendByte(0x80);
        delay(1);
        for(i=0; i                I2C_SendByte(DATASAA7114_3[i]);
                delay(1);
        }
        I2C_SendStop();
        I2C_ReleaseBus();
        delay(10);
        
    I2C_SendByteWithStart(SAA7114WRITEID);
        I2C_SendByte(0x8f);
        delay(1);
        for(i=0; i                I2C_SendByte(DATASAA7114_4[i]);
                delay(1);
        }
        I2C_SendStop();
        I2C_ReleaseBus();
        I2C_Send9Stop();
    delay(10);
    
    wr_SAA7114(0x88,0xf8);

       
}


void wr_SAA7114(BYTE address, BYTE value)
{
        I2C_Send9Stop();
        I2C_SendByteWithStart(SAA7114WRITEID);
        I2C_SendByte(address);
        delay(1);
        I2C_SendByte(value);
        delay(1);
        I2C_SendStop();
        I2C_ReleaseBus();
}

BYTE rd_SAA7114(BYTE address)
{
        BYTE temp;

        I2C_SendByteWithStart(SAA7114WRITEID);
        I2C_SendByte(address);

        I2C_SendByteWithStart(SAA7114READID);
        temp = I2C_GetLastByte();

        I2C_SendStop();
        I2C_ReleaseBus();
        return(temp);
}

#endif    

 

下载该资料的人也在下载 下载该资料的人还在阅读
更多 >

评论

查看更多

下载排行

本周

  1. 1TC358743XBG评估板参考手册
  2. 1.36 MB  |  330次下载  |  免费
  3. 2开关电源基础知识
  4. 5.73 MB  |  11次下载  |  免费
  5. 3100W短波放大电路图
  6. 0.05 MB  |  4次下载  |  3 积分
  7. 4嵌入式linux-聊天程序设计
  8. 0.60 MB  |  3次下载  |  免费
  9. 5DIY动手组装LED电子显示屏
  10. 0.98 MB  |  3次下载  |  免费
  11. 651单片机大棚环境控制器仿真程序
  12. 1.10 MB  |  2次下载  |  免费
  13. 751单片机PM2.5检测系统程序
  14. 0.83 MB  |  2次下载  |  免费
  15. 8TP4055-500mA线性锂离子电池充电器数据手册
  16. 0.27 MB  |  2次下载  |  免费

本月

  1. 1OrCAD10.5下载OrCAD10.5中文版软件
  2. 0.00 MB  |  234315次下载  |  免费
  3. 2555集成电路应用800例(新编版)
  4. 0.00 MB  |  33566次下载  |  免费
  5. 3接口电路图大全
  6. 未知  |  30323次下载  |  免费
  7. 4开关电源设计实例指南
  8. 未知  |  21549次下载  |  免费
  9. 5电气工程师手册免费下载(新编第二版pdf电子书)
  10. 0.00 MB  |  15349次下载  |  免费
  11. 6数字电路基础pdf(下载)
  12. 未知  |  13750次下载  |  免费
  13. 7电子制作实例集锦 下载
  14. 未知  |  8113次下载  |  免费
  15. 8《LED驱动电路设计》 温德尔著
  16. 0.00 MB  |  6656次下载  |  免费

总榜

  1. 1matlab软件下载入口
  2. 未知  |  935054次下载  |  免费
  3. 2protel99se软件下载(可英文版转中文版)
  4. 78.1 MB  |  537797次下载  |  免费
  5. 3MATLAB 7.1 下载 (含软件介绍)
  6. 未知  |  420027次下载  |  免费
  7. 4OrCAD10.5下载OrCAD10.5中文版软件
  8. 0.00 MB  |  234315次下载  |  免费
  9. 5Altium DXP2002下载入口
  10. 未知  |  233046次下载  |  免费
  11. 6电路仿真软件multisim 10.0免费下载
  12. 340992  |  191186次下载  |  免费
  13. 7十天学会AVR单片机与C语言视频教程 下载
  14. 158M  |  183279次下载  |  免费
  15. 8proe5.0野火版下载(中文版免费下载)
  16. 未知  |  138040次下载  |  免费