CH365复位后莫名其妙进入内置BOOT_ROM功能,读外部RAM就无效了 看手册没有找到相关说明,设置什么让它进入这种状态的? 求助!!
CH365 进入内置BOOT-ROM 状态,是因为复位期间MEM_WR被外部电路接成低电平了
你好!请问怎么用dos下的汇编程序来控制CH365的PCI板卡,比如通过控制D0-D7输出来控制LED的亮灭?
参考CH365EVT\PUB\DOS_SW里面的C代码, MOV AX,0B102H MOV CX,5049H MOV DX,4348H XOR SI,SI INT 1AH MOV AX,0B109H MOV DI,10H INT 1AH ;CX中就是IO基地址 就可以通过IN或OUT来传输IO数据,下面是有关INT 1AH介绍 Interrupt 1Ah General PCI Services AH = B1h PCI Services AL 01h = PCI BIOS present Exit: EDX "PCI", "P" in [DL], "C" in [DH], etc. AL Hardware mechanism: Bit Description 5 Spec. Cycle–Config Mechanism #2 support 4 Spec. Cycle–Config Mechanism #1 support 1 Config Mechanism #2 support 0 Config Mechanism #1 support BH Interface level major version BL Interface level minor version CL Number of last PCI bus
AL 02h = Find PCI Device Entry: CX Device ID (0-65535) DX Vendor ID (0-65534) SI Index (0-n) Exit: BH Bus number (0-255) BL Bits 7-3 Device number Bits 2-0 Function number
AL 03h = Find PCI class code Entry: ECX Class code in lower three bytes SI Index (0-n) Exit: BH Bus number (0-255) BL Bits 7-3 Device number Bits 2-0 Function number
AL 06h = Generate special cycle Entry: BH Bus number (0-255) EDX Special cycle data
AL 08h = Read configuration byte Entry: BH Bus number (0-255) BL Bits 7-3 Device number Bits 2-0 Function number DI Register number (0-255) Exit: CL Byte read
AL 09h = Read configuration word Entry: BH Bus number (0-255) BL Bits 7-3 Device number Bits 2-0 Function number DI Register number (0, 2, 4,...254) Exit: CX Word read
AL 0Ah = Read configuration Dword Entry: BH Bus number (0-255) BL Bits 7-3 Device number Bits 2-0 Function number DI Register number (0, 4, 8,...252) Exit: ECX Dword read
AL 0Bh = Write configuration byte Entry: BH Bus number (0-255) BL Bits 7-3 Device number Bits 2-0 Function number DI Register number (0-255) CL Byte value to write
CH365EVT/PUB/DOS_SW/ 中有DOS 下的编程例程和接口库,但不是汇编的。可以参考和调用。