网站地图| 免费获取|
教育资料网
  • 网站首页|
  • 资料范文|
  • 修改降重|
  • 职称资料|
  • 合作期刊|
  • 资料下载|
  • 计算机资料|
  • 外文翻译|
  • 免费资料|
  • 原创资料|
  • 开题报告资料
搜索

当前位置:教育资料网 -> 免费资料 -> 电气工程 -> 免费资料论文--大棚温室自动控制系统资料设计(九)
自动化资料范文| 电子机电资料| 测控技术资料| 通信专业资料| 电气工程资料| 通信工程资料| 电子信息工程资料| 免费自动化资料| 免费电子资料| 免费电气资料| 免费通信资料

免费资料论文--大棚温室自动控制系统资料设计(九)

免费资料论文--大棚温室自动控制系统资料设计(九) bsp;a, FADDR 
 SETB acc.0  
 LCALL    shout        
 JC x44
 LCALL    shin          
 LCALL    NAK           
 CLR c  
x44:LCALL    stop
x45:ret
rd_rand:NOP
 ; AT24Cxx Random Read function.
 ;Called with programmable address in A, byte address in
 ; register pair ADDR_HI:ADDR_LO. Returns data in A.
 ; Returns CY set to indicate that the bus is not available
 ; or that the addressed device failed to acknowledge.
 PUSH b
 MOV b, a
  LCALL    start
 JC x47  
 RL a  
 ORL a, FADDR 
 CLR acc.0  
 LCALL    shout     
 JC x46  
 MOV a, address 
 LCALL    shout         
 JC x46        
 MOV a, b
 LCALL rd_curr
 LJMP x47            
x46: LCALL    stop
x47: pop     b
 ret
start:NOP
 ; Send START, defined as high-to-low SDA with SCL high.
 ; Return with SCL, SDA low.
 ; Returns CY set if bus is not available.
 setb SDA
 setb SCL; Verify bus available.
 jnb SDA, x40 
 jnb SCL, x40 
 nop   
 clr SDA
 nop   
 nop   
 nop   
 nop   
 nop   
 clr SCL
 clr c  
 Ljmp     x41
 x40:    setb    c              
 x41:    ret;;
 stop: NOP
 ; Send STOP, defined as low-to-high SDA with SCL high.
 ; SCL expected low on entry. Return with SCL, SDA high.
 clr SDA
 nop   
 nop
 setb SCL
 nop  
 nop   
 nop   
 nop   
 nop   
 setb SDA
 ret
 shout:NOP
 ; Shift out a byte to the AT24Cxx, most significant bit first.
 ; SCL, SDA expected low on entry. Return with SCL low.
 ; Called with data to send in A.
 ; Returns CY set to indicate failure by slave to acknowledge.
 ; Destroys A.
 push b
 mov b, #8  
x42: NOP
 rlc a  
 mov SDA, c  
 nop   
 setb SCL  
 nop  
 nop   
 nop   
 nop   
 clr SCL

首页 上一页 6 7 8 9 10 下一页 尾页 9/10/10

免费资料论文--大棚温室自动控制系统资料设计(九)由教育资料网(www.jaoyuw.com)会员上传。
原创资料流程 相关资料
上一篇:JAVA中使用AWT控件设置窗口 下一篇:免费资料论文--带式输送机的PLC控..
推荐资料 本专业最新资料
Tags:免费 资料论文 大棚 温室 自动 控制系统 资料设计 2010-03-19 11:40:23【返回顶部】
精彩推荐
发表资料

联系方式 | 资料说明 | 网站地图 | 免费获取 | 钻石会员 | 硕士资料


教育资料网提供资料范文,资料代发,原创资料

本站部分文章来自网友投稿上传,如发现侵犯了您的版权,请联系指出,本站及时确认并删除  E-mail: 17304545@qq.com

Copyright@ 2009-2020 教育资料网 版权所有 湘ICP备19027999