全文预览

工业控制网络考试题汇总

上传者:蓝天 |  格式:doc  |  页数:11 |  大小:25KB

文档介绍
OVA,#00HMOVX@DPTR,AMOVDPTR,#8007HMOVA.#14HMOVX@DPTR,AMOVDPTR,#8008HMOVA#1AHMOVX@DPTR,AMOVDPTR,#801FHMOVA,#08HMOVX@DPTR,AMOVDPTR,#8000HMOVA#00HMOVX@DPTR,.A发送程序:CAN-TX:MOVDPTR.#8002HMOVA,@,2,CAN-TXMOVDPTR,#800AHMOVA,#02HMOVX@DPTR,AMOVDPTR,#800BHMOVA,#01HMOVX@DPTR,AMOVA,P1MOVDPTR,#8000HMOVX@DPTR,AMOVDPTR,#8001HMOVA,#01HMOVX@DPTRRET接收程序:CAN-RX:MOVDPTR,#8002HMOVXA,@.0,CAN-RSMOVDPTR,#8014HMOVXA,@DPTRMOV40H,AMOVDPTR,#8015HANLA,#0FHMOVR2,AMOVR0,#41HMOVDPOTR,#8016LOOP:MOV\XA,@DPTRMOV@RO,AINCROINCDPTRDJNZR2,LOOPMOVDPTR,#8001HMOVA,#04HMOVX@DPTR,A计算题1.CAN节点使SJA1000,震荡频率为16mhz,若使波特率为1mbps,如何设置SJA1000的BTR0和BTR1?解:时钟周期tclk=1/16MHZ=1/16(us)位时间tbit=1/1mbps=1us设BRP=0,则tscl=2*tclk*(BRP+1)=1/8(us)每个位周期的份数为8、位时间中包含tscl份数为8设同步段1为1个tscl,相位缓冲断为4个tscl,相位缓冲段2为3个tscl。同步段时间:tsinc=tscl=1/8us相位缓冲段1Ttsea1=tscl*(TSEA1+1)

收藏

分享

举报
下载此文档