FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    93c46 literacy program

     

    “93c46读写程序 “93c46读写程序”#包括sbit CS=P2^7;sbit SK=P2^6;sbit DI=P2^5;sbit-DO=P2^4; /*extern无符号字符ReadChar(无符号字符地址);extern void WriteChar(无符号字符地址,无符号字符InData);extern void ReadString(无符号字符数据*RamAddress、无符号字符RomAddress、无符号字符编号);extern void WriteString(无符号字符数据*RamAddress、无符号字符RomAddress、无符号字符编号)*/ //写入启用必须在所有编程模式之前。void Ewen(void){无符号字符临时值,InData;CS=0;SK=0;CS=1;InData=0x98;//10011XXXX用于(温度=9;临时工=0;温度--){//9 DI=InData&0x80;SK=1;SK=0;InData<<=1;}CS=0;} //禁用所有编程指令。void Ewds(void){unsigned char temp,InData;CS=0;SK=0;CS=1;InData=0x80;//10000xxx(温度=9;临时工=0;温度--){//9 DI=InData&0x80;SK=1;SK=0;InData<<=1;}CS=0;} //在指定的地址读取存储在内存中的数据;无符号整数结果;Ewen();SK=0;DI=1;//110 A5-A0 CS=0;CS=1;SK=1;SK=0;//1地址=地址&0x3f 0x80;对于(温度=8;临时工=0;临时--){//8 DI=地址&0x80;SK=1;SK=0;地址<<=1;}DO=1;对于(温度=16;临时工=0;温度--){//16 SK=1;结果=(结果<<1)DO;SK=0;}CS=0;Ewds();返回(结果);} //写入内存位置An-A0.void Write(无符号字符地址,无符号int-InData){unsigned char temp;Ewen();SK=0;DI=1;//101 A5-A0 CS=0;CS=1;SK=1;SK=0;//1地址=地址&0x3f 0x40;对于(温度=8;临时工=0;临时--){//8 DI=地址&0x80;SK=1;SK=0;地址<<=1;}用于(温度=16;临时工=0;温度--){//16 DI=InData&0x8000;SK=1;SK=0;InData<<=1;}CS=0;DO=1;CS=1;SK=1;而(DO==0){//忙测试SK=0;SK=1;}SK=0;CS=0;Ewds();} /*//擦除内存位置An-A0。无效擦除(无符号字符地址){无符号字符临时;Ewen();SK=0;DI=1;//111 A5-A0 CS=0;CS=1;SK=1;SK=0;//1地址=0xc0;对于(温度=8;临时工=0;临时--){//8 DI=地址&0x80;SK=1;SK=0;地址<<=1;}CS=0;DO=1;CS=1;SK=1;而(DO==0){SK=0;SK=1;}SK=0;CS=0;Ewds();} //擦除所有内存位置。仅在VCC=4.5V至5.5V时有效。无效(无效){无符号字符温度,InData;Ewen();CS=0;SK=0;CS=1;InData=0x90;//10010XXXX用于(温度=9;临时工=0;温度--){//9 DI=InData&0x80;SK=1;SK=0;InData<<=1;}CS=0;DO=1;CS=1;SK=1;而(DO==0){SK=0;SK=1;}SK=0;CS=0;Ewds();} //写入所有内存位置。仅在VCC=4.5V到5.5V时有效。void Wral(unsigned int InData){unsigned char temp,address;Ewen();CS=0;SK=0;CS=1;地址=0x88;//10001XXXX(温度=9;临时工=0;临时--){//9 DI=地址&0x80;SK=1;SK=0;地址<<=1;}用于(温度=16;临时工=0;温度--){//16 DI=InData&0x8000;SK=1;SK=0;InData<<=1;}CS=0;DO=1;CS=1;SK=1;而(DO==0){SK=0;SK=1;}SK=0;CS=0;Ewds();} */ 无符号字符ReadChar(无符号字符地址){无符号字符临时=地址>>1;if(address&0x01)返回((unsigned char)(Read(temp)>>8));else返回((无符号字符)(读取(临时));} void WriteChar(无符号字符地址,无符号字符InData){unsigned char temp=address>>1;if(地址和0x01)写入(临时(无符号整数)(读取(临时)和0x00ff(InData<<8));else写入(临时(无符号整数)(读取(临时)和0xff00 InData));} void ReadString(无符号字符数据*RamAddress,无符号字符RomAddress,无符号字符编号){while(Number=0){*RamAddress=ReadChar(RomAddress);RamAddress++;RomAddress++;数字--; }} void WriteString(无符号字符数据*RamAddress,无符号字符RomAddress,无符号字符编号){unsigned int temp;如果(数字==0)返回;if(RomAddress&0x01){WriteChar(RomAddress,*RamAddress);RamAddress++;RomAddress++;数字--;}如果(Number==0)返回;而(数字>>1){temp=*RamAddress;RamAddress++;temp=temp(*RamAddress)<<8;RamAddress++;写入(RomAddress>>1,temp);RomAddress++;RomAddress++;数字--;数字--;}if(Number)WriteChar(RomAddress,*RamAddress);,阅读全文,技术专区 关于ARM7 S3C4510B上μClinux移植问题 多回路化成充放电控制器设计方案 手臂嵌入式系统的中断服务例程跳转 基于8.位微控制器的发光二极管调光引擎设计 如何在液晶显示器上显示汉字、ASCII码字符和彩色图形"

     

     

     

     

    List all Question

    Nickname

    Email

    Questions

    Our other product:

    Professional FM Radio Station Equipment Package

     



     

    Hotel IPTV Solution

     


      Enter email  to get a surprise

      fmuser.org

      es.fmuser.org
      it.fmuser.org
      fr.fmuser.org
      de.fmuser.org
      af.fmuser.org ->Afrikaans
      sq.fmuser.org ->Albanian
      ar.fmuser.org ->Arabic
      hy.fmuser.org ->Armenian
      az.fmuser.org ->Azerbaijani
      eu.fmuser.org ->Basque
      be.fmuser.org ->Belarusian
      bg.fmuser.org ->Bulgarian
      ca.fmuser.org ->Catalan
      zh-CN.fmuser.org ->Chinese (Simplified)
      zh-TW.fmuser.org ->Chinese (Traditional)
      hr.fmuser.org ->Croatian
      cs.fmuser.org ->Czech
      da.fmuser.org ->Danish
      nl.fmuser.org ->Dutch
      et.fmuser.org ->Estonian
      tl.fmuser.org ->Filipino
      fi.fmuser.org ->Finnish
      fr.fmuser.org ->French
      gl.fmuser.org ->Galician
      ka.fmuser.org ->Georgian
      de.fmuser.org ->German
      el.fmuser.org ->Greek
      ht.fmuser.org ->Haitian Creole
      iw.fmuser.org ->Hebrew
      hi.fmuser.org ->Hindi
      hu.fmuser.org ->Hungarian
      is.fmuser.org ->Icelandic
      id.fmuser.org ->Indonesian
      ga.fmuser.org ->Irish
      it.fmuser.org ->Italian
      ja.fmuser.org ->Japanese
      ko.fmuser.org ->Korean
      lv.fmuser.org ->Latvian
      lt.fmuser.org ->Lithuanian
      mk.fmuser.org ->Macedonian
      ms.fmuser.org ->Malay
      mt.fmuser.org ->Maltese
      no.fmuser.org ->Norwegian
      fa.fmuser.org ->Persian
      pl.fmuser.org ->Polish
      pt.fmuser.org ->Portuguese
      ro.fmuser.org ->Romanian
      ru.fmuser.org ->Russian
      sr.fmuser.org ->Serbian
      sk.fmuser.org ->Slovak
      sl.fmuser.org ->Slovenian
      es.fmuser.org ->Spanish
      sw.fmuser.org ->Swahili
      sv.fmuser.org ->Swedish
      th.fmuser.org ->Thai
      tr.fmuser.org ->Turkish
      uk.fmuser.org ->Ukrainian
      ur.fmuser.org ->Urdu
      vi.fmuser.org ->Vietnamese
      cy.fmuser.org ->Welsh
      yi.fmuser.org ->Yiddish

       
  •  

    FMUSER Wirless Transmit Video And Audio More Easier !

  • Contact

    Address:
    No.305 Room HuiLan Building No.273 Huanpu Road Guangzhou China 510620

    E-mail:
    [email protected]

    Tel / WhatApps:
    +8618078869184

  • Categories

  • Newsletter

    FIRST OR FULL NAME

    E-mail

  • paypal solution  Western UnionBank OF China
    E-mail:[email protected]   WhatsApp:+8618078869184   Skype:sky198710021 Chat with me
    Copyright 2006-2020 Powered By www.fmuser.org

    Contact Us