欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136

標題: 關于DS1302串口傳輸數據的問題 [打印本頁]

作者: countryboy    時間: 2010-1-11 19:16
標題: 關于DS1302串口傳輸數據的問題
uchar bdata dat; sbit dat0=dat^0; sbit dat7=dat^7; void Write_8bit(uchar ch) { uchar i; dat=ch; RST=1; CLK=0; _nop_(); for(i=0;i<8;i++) { // io="(bit)ch&0x01; " io="dat0; " clk="1; " _nop_(); _nop_(); _nop_(); clk="0; " _nop_(); _nop_(); // ch="ch">>1; dat=dat>>1; } } 加注釋的代碼IO=(bit)ch&0x01等價于IO=dat0;可我把hex寫進單片機后前者無效,后者才能把數據正確寫進DS1302的寄存器中,哪位前輩幫我解釋一下好嗎?
[此貼子已經被作者于2010-1-11 19:19:37編輯過]

作者: countryboy    時間: 2010-1-11 19:18
咋這個排版不能換行啊,郁悶




歡迎光臨 (http://www.raoushi.com/bbs/) Powered by Discuz! X3.1