阅读:1388回复:0
我的一段程序代码
下面是我的一段程序代码:
不知道按照时序对不对: read interrupt register:只是读中断寄存器的第一字节 mov a,#0f4h clr p1.6 lcall D12GetStatus setb p1.6 (PDIUSBD12的片选) D12Write: movx @dptr,a nop nop nop nop ret D12Command: mov dptr,#01h lcall D12Write dec dpl ret D12GetStatus: lcall D12Command D12Read: movx a,@dptr nop nop nop nop ret |
|