Content Explore
  • 8251串行通信

    Published : 2004-12-08 Categories : School Tags : 8251 Serial Communication
    ;8251串行通信 用8251 8253 clk0接1M
    ;宏定义必须放在end main 以外 必须放在程序开头 在end main后不行
    ;用equ定义8251 8253 地址
    ;操作 键盘键入要发送的键值 屏幕显示其值和接收回来加三后的值 判ESC退出
    delay
    MACRO
    ;调用时直接用宏名 delay
    LOCAL d0
    MOV CX,0ffffh
    ;初值越大越好 0ffffh
    d0: ...
  • [串行通信8051/8253]微机原理实验14

    Published : 2004-11-30 Categories : School Tags : 8051 8253 Serial Communication
    IOPORT
    EQU
    0DC00H-280H
    C53
    EQU
    IOPORT+283H
    T53
    EQU
    IOPORT+280H
    C51
    EQU
    IOPORT+2B9H
    D51
    EQU
    IOPORT+2B8H
    DATA
    SEGMENT
    RUN DB
    'INPUT:',0DH,0AH,'$'
    ERR DB
    'ERROR!',0DH,0AH,'$'
    OVE DB
    'OVER!',0DH,0AH,'$'
    D...