isp932.inc.bak
来自「P89LPC932的ISP使用」· BAK 代码 · 共 19 行
BAK
19 行
; name: ISP_INI
; function: setup the UART and open break detect,A break is detected
; when 11 consecutive bits are sensed low. The break detect
; can be used to reset the device and force the device into
; ISP mode.
;
; parameter: null
; note:
ISP_INI:
ANL SSTAT,#0FAH ; clr the BR, it is SSTAT.2
MOV BRGCON,#00H
ORL AUXR1,#40H ; setb the EBRR
MOV SCON,#50H ; setup UART mode 1, enables serial reception.
MOV BRGR1,#90H
MOV BRGR0,#00H
MOV BRGCON,#03H ; Baud Rate Generator Enable.
RET
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?