PIC单片机iic接口程序
TxmtStartBit
bsf Bus_Busy ; on a start condiTIon bus is busy
bsf STATUS, RP0 ; Select page 1
bsf _SDA ; set SDA high
bsf _SCL ; clock is high
call Delay40uSec ; This is necessary for setup TIme
bcf _SDA ; This gives a falling edge on SDA while clock is high
call Delay47uSec ; Necessary for START HOLD TIme
return
下载地址
用户评论