CH365復(fù)位后莫名其妙進(jìn)入內(nèi)置BOOT_ROM功能,讀外部RAM就無效了 看手冊(cè)沒有找到相關(guān)說明,設(shè)置什么讓它進(jìn)入這種狀態(tài)的? 求助?。?/p>
CH365 進(jìn)入內(nèi)置BOOT-ROM 狀態(tài),是因?yàn)閺?fù)位期間MEM_WR被外部電路接成低電平了
你好!請(qǐng)問怎么用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數(shù)據(jù),下面是有關(guān)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 下的編程例程和接口庫,但不是匯編的。可以參考和調(diào)用。