background image

INSTALLATIONS 

12

 

MI802 User’s Manual

 

 
 
 
 

Connectors on MI802 

 
The connectors on MI802 allows you to connect external devices such as 
keyboard, floppy disk drives, hard disk drives, printers, etc. The 
following table lists the connectors on MI802 and their respective 
functions. 

 

Connector Locations on MI802 ........................................................... 13

 

CN6: PS/2 Keyboard and PS/2 Mouse Connectors ............................. 14

 

CN7: COM1/RS232/422/485, COM2/RS232 Serial Port.................... 14

 

CN9: VGA and DVI-D Connector ...................................................... 15

 

CN15: GbE 1st RJ-45 and USB0/1 Ports ............................................ 15

 

CN19: GbE 2nd RJ-45 and USB2/3 Ports ........................................... 15

 

CN22: Line-in, Line-out & Microphone Connector ............................ 15

 

CN1, CN2, CN3, CN4: COM3/4/5/6 RS232 Serial Port ..................... 16

 

CN5: ATX 4P +12V~24V Connector ................................................. 16

 

CN8, CN11: HDD Power Connector................................................... 16

 

CN10, CN12: LVDS Connectors (1st channel, 2nd channel) ............. 16

 

CN13: LCD Backlight Connector........................................................ 17

 

CN14, CN16: SATA Connectors......................................................... 17

 

CN17: USB6/7 Ports Header ............................................................... 17

 

CN18: iSMART JTAG Pin Header (factory use only) ........................ 17

 

CN20, CN21: Mini PCIE Connector ................................................... 17

 

CN23: Audio Connector (DF11 Connector)........................................ 18

 

CN24: Speaker Connector (JST Connector)........................................ 18

 

CPU_FAN1: CPU Fan Power Connector ............................................ 18

 

DIMM1, DIMM2: DDR3 SO-DIMM.................................................. 18

 

J1: LPC Debug Connector (factory use only)...................................... 18

 

J2: Digital I/O ...................................................................................... 18

 

J3: System Function Connector ........................................................... 19

 

J5: USB4 Port ...................................................................................... 19

 

J6: SPI Flash Connector (factory use only) ......................................... 19

 

PCI1: PCI Slot (supports 2 Master) ..................................................... 19

 

SYS_FAN1: System Fan Power Connector ........................................ 19

 

 
 
 

 

Summary of Contents for 802

Page 1: ...802 MI802 Intel Cedar Trail NM10 Mini ITX Motherboard USER S MANUAL Version 1 0 ...

Page 2: ...tional Business Machines Corporation Intel and Luna Pier are registered trademarks of Intel Corporation Microsoft Windows is a registered trademark of Microsoft Corporation Winbond is a registered trademark of Winbond Electronics Corporation All other product names or trademarks are properties of their respective owners ...

Page 3: ...ting the Jumpers 7 Connectors on MI802 12 BIOS Setup 21 Drivers Installation 41 Intel Chipset Software Installation Utility 42 VGA Drivers Installation 43 Realtek HD Audio Driver Installation 44 LAN Drivers Installation 45 Appendix 47 A I O Port Address Map 47 B Interrupt Request Lines IRQ 48 C Watchdog Timer Configuration 49 D Digital I O Sample Code 53 ...

Page 4: ...iv MI802 User s Manual This page is intentionally left blank ...

Page 5: ...s well asa 24 bit dual channel interface with the help of Chrontel CH7511B device Onboard functional connections are available for two SATA ports six COM ports eight USB 2 0 ports audio and a PS 2 keyboard mouse stack connector Additional Expansion comes in one slim PCI slot two Mini PCI e x1 slots Power connections is with a 12 24V DC in ATX 4 pin Remarks Currently the board comes in two versions...

Page 6: ...802 User s Manual Checklist Your MI802 package should include the items listed below The MI802 Mini ITX motherboard This User s Manual 1 CD containing chipset drivers and flash memory utility Serial ATA cable I O shield ...

Page 7: ...2 COM4 RS 232 COM5 RS 232 COM6 RS 232 Hardware monitor 2 thermal inputs 4 voltage monitor inputs VID0 4 2 x Fan Header COM1 2 with pin 9 with power for 2 ports 500 mA for each port Digital IO 4 in 4 out Keyboard Mouse Connector Yes Expansion Slots Slim PCI slot x 1 Mini PCI e x1 x 2 Mounting holes for full sized x2 Reserved mounting holes for Half sized also x1 Edge Connector PS 2 KB MS stack conn...

Page 8: ...INTRODUCTION 4 MI802 User s Manual Board Dimensions ...

Page 9: ...l 5 Installations This section provides information on how to use the jumpers and connectors on the MI802 in order to set up a workable system The topics covered are Installing the Memory 6 Setting the Jumpers 7 Connectors on MI802 12 ...

Page 10: ...g and Removing Memory Modules To install the DDR3 modules locate the memory slot on the board and perform the following steps 1 Hold the DDR3 module so that the key of the DDR3 module aligned with that on the memory slot 2 Gently push the DDR3 module in an upright position until the clips of the slot close to hold the DDR3 module in place when the DDR3 module touches the bottom of the slot 3 To re...

Page 11: ...ur needs The following lists the connectors on MI802 and their respective functions Jumper Locations on MI802 8 JP1 COM1 RS232 RI 5V 12V Power Setting 9 JP2 COM2 RS232 RI 5V 12V Power Setting 9 JP3 LCD Panel Power Selection 9 JP4 LCD Backlight Power Selection 9 JP5 LCD BackLight Control Selection 10 JP7 Clear CMOS Setting 10 JP8 LCD BackLight Control Output Level 10 JP9 LCD Boot ROM Protect factor...

Page 12: ... 5V 12V Power Setting 9 JP2 COM2 RS232 RI 5V 12V Power Setting 9 JP3 LCD Panel Power Selection 9 JP4 LCD Backlight Power Selection 9 JP5 LCD BackLight Control Selection 10 JP7 Clear CMOS Setting 10 JP8 LCD BackLight Control Output Level 10 JP9 LCD Boot ROM Protect factory use only 10 SW1 Panel Type Selection 10 ...

Page 13: ...hort Closed 5V JP2 COM2 RS232 RI 5V 12V Power Setting JP2 Setting Function Pin 1 2 Short Closed 12V Pin 3 4 Short Closed RI Pin 5 6 Short Closed 5V JP3 LCD Panel Power Selection JP3 LCD Panel Power 3 3V 5V JP4 LCD Backlight Power Selection JP4 Setting Backlight Voltage Pin 1 2 Short Closed 3 3V Pin 3 4 Short Closed 5V 1 3 2 4 5 6 Pin 5 6 Short Closed 12V ...

Page 14: ...O Reserved JP7 Clear CMOS Setting JP7 Setting Normal Clear CMOS JP8 LCD BackLight Control Output Level JP8 Setting 2 1 3 3V 2 1 5V JP9 LCD Boot ROM Protect factory use only JP9 Setting 2 1 Write 2 1 Normal Default SW1 Panel Type Selection 1 ON 3 2 4 3 2 1 4 7 8 5 6 Default Pin 1 2 3 4 OFF 1111 ...

Page 15: ... OFF ON ON 1280 800 18bit 1ch ON OFF ON OFF 1280 960 18bit 1ch ON OFF OFF ON 1280 1024 24bit 2ch ON OFF OFF OFF 1366 768 18bit 1ch OFF ON ON ON 1366 768 24bit 1ch OFF ON ON OFF 1440 900 24bit 2ch OFF ON OFF ON 1440 1050 24bit 2ch OFF ON OFF OFF 1600 900 24bit 2ch OFF OFF ON ON 1680 1050 24bit 2ch OFF OFF ON OFF 1600 1200 24bit 2ch OFF OFF OFF ON 1920 1080 24bit 2ch OFF OFF OFF OFF 1920 1200 24bit ...

Page 16: ...Microphone Connector 15 CN1 CN2 CN3 CN4 COM3 4 5 6 RS232 Serial Port 16 CN5 ATX 4P 12V 24V Connector 16 CN8 CN11 HDD Power Connector 16 CN10 CN12 LVDS Connectors 1st channel 2nd channel 16 CN13 LCD Backlight Connector 17 CN14 CN16 SATA Connectors 17 CN17 USB6 7 Ports Header 17 CN18 iSMART JTAG Pin Header factory use only 17 CN20 CN21 Mini PCIE Connector 17 CN23 Audio Connector DF11 Connector 18 CN...

Page 17: ...INSTALLATIONS MI802 User s Manual 13 Connector Locations on MI802 ...

Page 18: ... Keyboard data 1 7 Mouse data N C 2 8 N C GND 3 9 GND 5V 4 10 5V Keyboard clock 5 11 Mouse clock N C 6 12 N C CN7 COM1 RS232 422 485 COM2 RS232 Serial Port Pin Signal Name RS 232 R2 422 RS 485 1 DCD TX DATA 2 RX TX DATA 3 TX RX NC 4 DTR RX NC 5 Ground Ground Ground 6 DSR NC NC 7 RTS NC NC 8 CTS NC NC 9 RI NC NC Pin 9 supports RI 5V 12V function ...

Page 19: ...Name Pin Pin Signal Name DATA 2 1 16 HOT PLUG DATA 2 2 17 DATA 0 Shield 2 3 18 DATA 0 N C 4 19 SHIELD 0 N C 5 20 N C DDC CLOCK 6 21 N C DDC DATA 7 22 SHIELD CLK N C 8 23 CLOCK DATA 1 9 24 CLOCK DATA 1 10 C1 N C SHIELD 1 11 C2 N C N C 12 C3 N C N C 13 C4 N C 5V 14 C5 N C DVI D GROUND 15 C6 N C CN15 GbE 1st RJ 45 and USB0 1 Ports CN19 GbE 2nd RJ 45 and USB2 3 Ports CN22 Line in Line out Microphone C...

Page 20: ...RTS Request to send 7 8 CTS Clear to send RI Ring indicator 9 10 Not Used CN5 ATX 4P 12V 24V Connector Signal Name Pin Pin Signal Name GND 1 2 GND 12 24V 3 4 12 24V CN8 CN11 HDD Power Connector 1X4_2 5mm_Straight_Male_Wafer Haoguo W7 03H104142S1WT Pin Signal Name 1 5V 2 Ground 1 4 3 Ground 4 12V CN10 CN12 LVDS Connectors 1st channel 2nd channel Signal Name Pin Pin Signal Name TX0 2 1 TX0 Ground 4 ...

Page 21: ...5V 12V 2 Backlight Enable 4 1 3 Brightness Control 4 Ground CN14 CN16 SATA Connectors Pin Signal Name 1 Ground 2 TX 3 TX 4 Ground 5 RX 6 RX 1 7 4 7 Ground CN17 USB6 7 Ports Header 2X4_2 0mm_Straight_Male_DF11 Haoguo DF11 8S PA66H Mating connector Hirose DF11 8DS 2C or compatible Signal Name Pin Pin Signal Name 5V 1 2 Ground Data 3 4 Data Data 5 6 Data 1 7 2 8 Ground 7 8 5V CN18 iSMART JTAG Pin Hea...

Page 22: ...1 CN24 Speaker Connector JST Connector 1X4_2 5mm_Straight_Male_Wafer E CALL 0110 071 040 Mating connector JST B4B XH or compatible Pin Signal Name 1 Speaker L 2 Speaker L 1 4 3 Speaker R 4 Speaker R CPU_FAN1 CPU Fan Power Connector Pin Signal Name 1 Ground 2 12V 3 1 3 Rotation detection DIMM1 DIMM2 DDR3 SO DIMM J1 LPC Debug Connector factory use only J2 Digital I O 2X5_2 54mm_Straight_Male_Pin Hea...

Page 23: ...LED 2 8 6 4 1 7 5 3 Reset BTN 7 8 Reset BTN J5 USB4 Port Remarks Signal is shared with Mini PCIe CN20 1X5_1 25mm_Straight_Male_Wafer E CALL 0110 26110050 Mating connector Molex 53047 0510 or compatible Pin Signal Name 1 Ground 2 5V 3 Ground 4 Data 1 5 5 Data J6 SPI Flash Connector factory use only PCI1 PCI Slot supports 2 Master SYS_FAN1 System Fan Power Connector Pin Signal Name 1 Ground 2 12V 3 ...

Page 24: ...INSTALLATIONS 20 MI802 User s Manual This page is intentionally left blank ...

Page 25: ...ibes the different settings available in the AMI BIOS that comes with the board The topics covered in this chapter are as follows BIOS Introduction 22 BIOS Setup 22 Advanced Settings 24 Chipset Settings 33 Boot Settings 38 Security Settings 39 Save Exit Settings 40 ...

Page 26: ...activated Pressing the Del key immediately allows you to enter the Setup utility If you are a little bit late pressing the Del key POST Power On Self Test will continue with its test routines thus preventing you from invoking the Setup If you still wish to enter Setup restart the system by pressing the Reset button or simultaneously pressing the Ctrl Alt and Delete keys You can also restart by tur...

Page 27: ...ability Changing the defaults could cause the system to become unstable and crash in some cases Main Advanced Chipset Boot Security Save Exit BIOS Information System Date Sat 07 21 2012 System Time 13 03 22 Select Screen Select Item Enter Select Change Opt F1 General Help F2 Previous Values F3 Optimized Default F4 Save EXIT ESC Exit System Date Set the Date Use Tab to switch between Data elements ...

Page 28: ...Support Launch PXE OpROM Disabled Lannch Storage OpROM Disabled PCI Subsystem Settings ACPI Settings Wake up event setting CPU Configuration Auto Power On Schedule IDE Configuration USB Configuration F81866 Super IO Configuration FB81866 H W Monitor PPM Configuration Select Screen Select Item Enter Select Change Opt F1 General Help F2 Previous Values F3 Optimized Default F4 Save EXIT ESC Exit Laun...

Page 29: ...ed Select Screen Select Item Enter Select Change Opt F1 General Help F2 Previous Values F3 Optimized Default F4 Save EXIT ESC Exit PCI ROM Priority In case of multiple Option ROMs Legacy and EFI Compatible specifies what PCI Option ROM to launch PCI Latency Timer Value to be programmed into PCI Latency Timer Register VGA Palette Snoop Enables or Disables VGA Palette Registers Snooping PERR Generat...

Page 30: ...d Enable Hibernation Enabled Select Screen Select Item Enter Select Change Opt F1 General Help F2 Previous Values F3 Optimized Default F4 Save EXIT ESC Exit Enabled ACPI Auto Configuration Enables or Disables BIOS ACPI Auto Configuration Enable Hibernation Enables or Disables System ability to Hibernate OS S4 Sleep State This option may be not effective with some OS ...

Page 31: ...ot Security Save Exit Wake on Ring Disabled Wake on PCIE PME Disabled Select Screen Select Item Enter Select Change Opt F1 General Help F2 Previous Values F3 Optimized Default F4 Save EXIT ESC Exit Wake on Ring The options are Disabled and Enabled Wake on PCIE PME The options are Disabled and Enabled ...

Page 32: ... Hyper Threading Enabled Execute Disable Bit Enabled Limit CPUID Maximum Disabled Select Screen Select Item Enter Select Change Opt F1 General Help F2 Previous Values F3 Optimized Default F4 Save EXIT ESC Exit Hyper threading Enabled for Windows XP and Linux OS optimized for Hyper Threading Technology and Disabled for other OS OS not optimized for Hyper Threading Technology When Disabled only one ...

Page 33: ...n after Power Failure This field sets the system power status whether on or off when power returns to the system from a power failure situation Schedule Slot None Power On Power On Off Setup the hour minute for system power on IDE Configuration Aptio Setup Utility Main Advanced Chipset Boot Security Save Exit SATA Port0 Not Present SATA Port1 Not Present SATA Controller s Enabled Configure SATA as...

Page 34: ...acy USB support AUTO option disables legacy support if no USB devices are connected DISABLE option will keep USB devices available only for EFI applications EHCI Hand off Enabled Disabled This is a workaround for OSes without EHCI hand off support The EHCI ownership change should be claimed by EHCI driver USB Transfer Time out The time out value for Control Bulk and Interrupt transfers Device Rese...

Page 35: ...onfiguration Serial Port 3 Configuration Serial Port 4 Configuration Serial Port 5 Configuration Power Failure I Always off KB MS Power on None F81866 ERP Support All Enable Select Screen Select Item Enter Select Change Opt F1 General Help F2 Previous Values F3 Optimized Default F4 Save EXIT ESC Exit Serial Port Configuration Set Parameters of Serial Ports User can Enable Disable the serial port a...

Page 36: ... Values F3 Optimized Default F4 Save EXIT ESC Exit Temperatures Voltages These fields are the parameters of the hardware monitoring function feature of the motherboard The values are read only values as monitored by the system and show the PC health status CPU Fan1 Control Options are Disabled default 50 60 70 80 SYS Fan2 Control Options are Disabled default 50 60 70 80 PPM Configuration Aptio Set...

Page 37: ...Optimized Default F4 Save ESC Exit Host Bridge This item shows the Host Bridge Parameters South Bridge This item shows the South Bridge Parameters Host Bridge This section allows you to configure the Host Bridge Chipset Aptio Setup Utility Main Advanced Chipset Boot Security Save Exit Memory Frequency and Timing Intel IGD Configuration Memory Information Memory Frequency 1067 MHz DDR3 Total Memory...

Page 38: ... F3 Optimized Default F4 Save EXIT ESC Exit MRC Fast Boot The options are Disabled and Enabled Max TOLUD The default setting is Dynamic Intel IGD Configuration Aptio Setup Utility Main Advanced Chipset Boot Security Save Exit Intel IGD Configuration IGFX Boot Type VBIOS Default Select Screen Select Item Enter Select Change Opt F1 General Help F2 Previous Values F3 Optimized Default F4 Save EXIT ES...

Page 39: ...onfiguration High Precision Timer Enabled SLP_SP4 Assertion Width 1 2 Seconds Select Screen Select Item Enter Select Change Opt F1 General Help F2 Previous Values F3 Optimized Default F4 Save EXIT ESC Exit DMI Clink ASPM Control The control of Active State Power Management on both NB side and SB side of the DMI Link PCI Exp High Priority Port The options are Disabled Port1 Port2 Port3 and Port4 Hi...

Page 40: ...XIT ESC Exit PCI Express Root Port0 Aptio Setup Utility Main Advanced Chipset Boot Security Save Exit PCI Express Port 0 Enabled Port 0 IOxAPIC Disabled Automatic ASPM Manual ASPM L0s Root Port Only ASPM L1 Enabled Select Screen Select Item Enter Select Change Opt F1 General Help F2 Previous Values F3 Optimized Default F4 Save EXIT ESC Exit PCI Express Root Port1 Aptio Setup Utility Main Advanced ...

Page 41: ...en Select Item Enter Select Change Opt F1 General Help F2 Previous Values F3 Optimized Default F4 Save EXIT ESC Exit PCI Express Root Port3 Aptio Setup Utility Main Advanced Chipset Boot Security Save Exit PCI Express Port 3 Enabled Port 0 IOxAPIC Disabled Automatic ASPM Auto Select Screen Select Item Enter Select Change Opt F1 General Help F2 Previous Values F3 Optimized Default F4 Save EXIT ESC ...

Page 42: ...mpt Timeout Number of seconds to wait for setup activation key 65535 0xFFFF means indefinite waiting Bootup NumLock State Select the keyboard NumLock state Quiet Boot Enables Disables Quiet Boot option Fast Boot Enables Disables boot with initialization of a minimal set of devices required to launch active boot option Has no effect for BBS boot options GateA20 Active UPON REQUEST GA20 can be disab...

Page 43: ...ssword is set then this only limits access to Setup and is only asked for when entering Setup If ONLY the User s password is set then this is a power on password and must be entered to boot or enter Setup In Setup the User will have Administrator rights Administrator Password User Password Select Screen Select Item Enter Select Change Opt F1 General Help F2 Previous Values F3 Optimized Default F4 ...

Page 44: ... Exit Boot Override Save Changes and Exit Exit system setup after saving the changes Discard Changes and Exit Exit system setup without saving any changes Save Changes and Reset Reset the system after saving the changes Discard Changes and Reset Reset system setup without saving any changes Save Changes Save Changes done so far to any of the setup options Discard Changes Discard Changes done so fa...

Page 45: ...g please contact the vendor where you made the purchase The contents of this section include the following Intel Chipset Software Installation Utility 42 VGA Drivers Installation 43 Realtek HD Audio Driver Installation 44 LAN Drivers Installation 45 IMPORTANT NOTE After installing your Windows operating system you must install first the Intel Chipset Software Installation Utility before proceeding...

Page 46: ...that comes with the board Click Intel and then Intel R Cedarview Chipset Drivers 2 Click Intel R Chipset Software Installation Utility 3 When the Welcome screen to the Intel Chipset Device Software appears click Next to continue 4 Click Yes to accept the software license agreement and proceed with the installation process 5 On the Readme File Information screen click Next to continue the installat...

Page 47: ...t to continue 4 Click Yes to to agree with the license agreement and continue the installation 5 On the Readme File Information screen click Next to continue the installation of the Intel Graphics Media Accelerator Driver 6 On Setup Progress screen click Next to continue 7 Setup complete Click Finish to restart the computer and for changes to take effect ...

Page 48: ...nual Realtek HD Audio Driver Installation 1 Click Realtek High Definition Audio Driver 2 On the Welcome to the InstallShield Wizard screen click Next to proceed with and complete the installation process 3 Restart the computer when prompted ...

Page 49: ...creen click Next 4 In the License Agreement screen click I accept the terms in license agreement and Next to accept the software license agreement and proceed with the installation process 5 Click the checkbox for Drivers in the Setup Options screen to select it and click Next to continue 6 When the Ready to Install the Program screen appears click Install to continue 7 When InstallShield Wizard i...

Page 50: ...DRIVERS INSTALLATION 46 MI802 User s Manual This page is intentionally left blank ...

Page 51: ...ller 1 040h 05Fh Timer 060h 06Fh Keyboard Controller 070h 07Fh Real Time Clock NMI 080h 09Fh DMA Page Register 0A0h 0BFh Interrupt Controller 2 0C0h 0DFh DMA Controller 2 0F0h Clear Math Coprocessor Busy Signal 0F1h Reset Math Coprocessor 1F0h 1F7h IDE Interface 2B0h 2DFh Graphics adapter Controller 2E8h 2EFh Serial Port 4 COM4 2F8h 2FFh Serial Port 2 COM2 360h 36Fh Network Ports 3B0h 3BFh Monochr...

Page 52: ...red The following table shows the IRQ used by the devices on board Level Function IRQ0 System Timer Output IRQ1 Keyboard IRQ2 Interrupt Cascade IRQ3 Serial Port 2 IRQ4 Serial Port 1 IRQ5 Reserved IRQ6 Reserved IRQ7 Reserved IRQ8 Real Time Clock IRQ9 Reserved IRQ10 Serial Port 4 IRQ11 Serial Port 3 IRQ12 PS 2 Mouse IRQ13 80287 IRQ14 Primary IDE ...

Page 53: ...rvals before the timer counts to zero SAMPLE CODE include dos h include conio h include stdio h include stdlib h include F81866 H int main int argc char argv void EnableWDT int void DisableWDT void int main int argc char argv unsigned char bBuf unsigned char bTime char endptr char SIO printf Fintek 81865 watch dog program n SIO Init_F81866 if SIO 0 printf Can not detect Fintek 81865 program abort ...

Page 54: ...ount mode is second Set_F81866_Reg 0xF6 interval set timer bBuf Get_F81866_Reg 0xFA bBuf 0x01 Set_F81866_Reg 0xFA bBuf enable WDTO output bBuf Get_F81866_Reg 0xF5 bBuf 0x20 Set_F81866_Reg 0xF5 bBuf start counting void DisableWDT void unsigned char bBuf Set_F81866_LD 0x07 switch to logic device 7 bBuf Get_F81866_Reg 0xFA bBuf 0x01 Set_F81866_Reg 0xFA bBuf disable WDTO output bBuf Get_F81866_Reg 0xF...

Page 55: ...6_BASE Init_Finish return result void Unlock_F81866 void outportb F81866_INDEX_PORT F81866_UNLOCK outportb F81866_INDEX_PORT F81866_UNLOCK void Lock_F81866 void outportb F81866_INDEX_PORT F81866_LOCK void Set_F81866_LD unsigned char LD Unlock_F81866 outportb F81866_INDEX_PORT F81866_REG_LD outportb F81866_DATA_PORT LD Lock_F81866 void Set_F81866_Reg unsigned char REG unsigned char DATA Unlock_F818...

Page 56: ...F81866_BASE define F81866_DATA_PORT F81866_BASE 1 define F81866_REG_LD 0x07 define F81866_UNLOCK 0x87 define F81866_LOCK 0xAA unsigned int Init_F81866 void void Set_F81866_LD unsigned char void Set_F81866_Reg unsigned char unsigned char unsigned char Get_F81866_Reg unsigned char endif __F81866_H ...

Page 57: ...gned char unsigned char Dio3GetDirection void int main void char SIO unsigned char DIO printf Fintek 81866 digital I O test program Ver 2 0 n SIO Init_F81866 if SIO 0 printf Can not detect Fintek 81866 program abort n return 1 if SIO 0 Dio3Initial for GPIO30 37 Dio3SetDirection 0xF0 GP30 33 input GP34 37 output printf Current DIO direction 0x X n Dio3GetDirection printf Current DIO status 0x X n D...

Page 58: ... Switch GPIO multi function pin forgpio 30 37 Multi Pin Select UART2 GPIOs bit 6 5 0 UART2 1 GPIOs ucBuf Get_F81866_Reg 0x28 ucBuf BIT5 Set_F81866_Reg 0x28 ucBuf Set_F81866_LD 0x06 switch to logic device 6 enable the GP3 group ucBuf Get_F81866_Reg 0x30 ucBuf 0x01 Set_F81866_Reg 0x30 ucBuf Set_F81866_Reg 0x88 0x00 define as input mode Set_F81866_Reg 0xA3 0xFF push pull mode void Dio3SetOutput unsig...

Page 59: ...ed char NewData NewData 1 for input 0 for output Set_F81866_LD 0x06 switch to logic device 6 Set_F81866_Reg 0x88 NewData unsigned char Dio3GetDirection void unsigned char result Set_F81866_LD 0x06 switch to logic device 6 result Get_F81866_Reg 0x88 return result ...

Page 60: ...Did Get_F81866_Reg 0x20 if ucDid 0x07 Fintek 81801 goto Init_Finish F81866_BASE 0x00 result F81866_BASE Init_Finish return result void Unlock_F81866 void outportb F81866_INDEX_PORT F81866_UNLOCK outportb F81866_INDEX_PORT F81866_UNLOCK void Lock_F81866 void outportb F81866_INDEX_PORT F81866_LOCK void Set_F81866_LD unsigned char LD Unlock_F81866 outportb F81866_INDEX_PORT F81866_REG_LD outportb F81...

Page 61: ...APPENDIX MI802 User s Manual 57 unsigned char Get_F81866_Reg unsigned char REG unsigned char Result Unlock_F81866 outportb F81866_INDEX_PORT REG Result inportb F81866_DATA_PORT Lock_F81866 return Result ...

Page 62: ...INDEX_PORT F81866_BASE define F81866_DATA_PORT F81866_BASE 1 define F81866_REG_LD 0x07 define F81866_UNLOCK 0x87 define F81866_LOCK 0xAA unsigned int Init_F81866 void void Set_F81866_LD unsigned char void Set_F81866_Reg unsigned char unsigned char unsigned char Get_F81866_Reg unsigned char endif __F81866_H ...

Reviews: