define MPIOLVL 0x90;
define MPIOSEL 0x93;
void Write_XR17D158(int address, int value);
Write_XR17D158(MPIOSEL, 0x80);
// Setting up MPIOSEL
Write_XR17D158(MPIOLVL, 0x19);
// CEN = ‘1’, ADR = "011”, D(6) = ‘0’
Write_XR17D158(MPIOLVL, 0x1D);
// CLK = ‘1’
Write_XR17D158(MPIOLVL, 0x01);
// CLK = ‘0’, ADR = “000”, D(5) = ‘0’
Write_XR17D158(MPIOLVL, 0x05);
// CLK = ‘1’
Write_XR17D158(MPIOLVL, 0x01);
// CLK = ‘0’, D(4) = ‘0’
Write_XR17D158(MPIOLVL, 0x05);
// CLK = ‘1’
Write_XR17D158(MPIOLVL, 0x01);
// CLK = ‘0’, D(3) = ‘0’
Write_XR17D158(MPIOLVL, 0x05);
// CLK = ‘1’
Write_XR17D158(MPIOLVL, 0x41);
// CLK = ‘0’, D(2) = ‘1’
Write_XR17D158(MPIOLVL, 0x45);
// CLK = ‘1’
Write_XR17D158(MPIOLVL, 0x01);
// CLK = ‘0’, D(1) = ‘0’
Write_XR17D158(MPIOLVL, 0x05);
// CLK = ‘1’
Write_XR17D158(MPIOLVL, 0x41);
// CLK = ‘0’, D(0) = ‘1’
Write_XR17D158(MPIOLVL, 0x45);
// CLK = ‘1’
Write_XR17D158(MPIOLVL, 0x00);
// CLK = ‘0’, CEN = ‘0’
5.2.2.2 Read
Содержание TPMC465
Страница 2: ...TPMC465 10 Style Conventions...
Страница 3: ...Issue Description Date...
Страница 5: ...Table of Figures...
Страница 6: ...1 Product Description...
Страница 10: ...3 2 2 Device Configuration Registers Address Register Description Access Reset Value...
Страница 11: ...3 2 3 UART Channel Configuration Registers Register Offset Comment Register Access Reset Value...
Страница 14: ...4 2 Configuration EEPROM Address Configuration Register Configuration Register Offset Value...
Страница 15: ...Address Configuration Register TPMC465 10...
Страница 17: ...5 2 CPLD Access MPIO Pin Direction Function...
Страница 21: ...5 3 1 2 RS485 Receiver Control 5 3 1 3 Slew Rate Limiting 5 3 1 4 Low Power Shutdown...
Страница 26: ...5 6 5 5 4 Termination Block Diagram...
Страница 30: ...7 2 Back I O PMC Connector P14 Pin RS232 RS485 RS422 Pin RS232 RS485 RS422...