background image

User Manual

ARK-5420 Series

Intel

®

 3rd Generation Core™ i 

Processor Based Fanless 
System with PCIE x 4 & PCI Slot

Summary of Contents for ARK-5420 Series

Page 1: ...User Manual ARK 5420 Series Intel 3rd Generation Core i Processor Based Fanless System with PCIE x 4 PCI Slot ...

Page 2: ...ins a hard copy user manual in Chinese for China CCC certification purposes and there is an English user manual included as a PDF file on the CD Please disregard the Chinese hard copy user manual if the product is not to be sold and or installed in China ...

Page 3: ... the terms of this warranty as a consequence of such events Because of Advantech s high quality control standards and rigorous testing most of our customers never need to use our repair service If an Advantech product is defec tive it will be repaired or replaced at no charge during the warranty period For out of warranty repairs you will be billed according to the cost of replacement materials se...

Page 4: ...have the following information ready before you call Product name and serial number Description of your peripheral attachments Description of your software operating system version application software etc A complete description of the problem The exact wording of any error messages Warnings Cautions and Notes Warning Warnings indicate conditions which if not observed can cause personal injury Cau...

Page 5: ...er Our dealers are well trained and ready to give you the support you need to get the most from your Advantech products In fact most problems reported are minor and are easily solved over the phone In addition free technical support is available from Advantech engineers every busi ness day We are always ready to give advice about application requirements or spe cific information on the installatio...

Page 6: ...our any liquid into an opening This may cause fire or electrical shock 13 Never open the equipment For safety reasons the equipment should be opened only by qualified service personnel 14 If one of the following situations arises get the equipment checked by service personnel The power cord or plug is damaged Liquid has penetrated into the equipment The equipment has been exposed to moisture The e...

Page 7: ...s while the PC is on ESD electrostatic discharge can cause either catastrophic or latent damage in sensitive electronic components Take appropriate measures to ensure that any accumulated body charge is removed before accessing electronic devices A static safe workbench is ideal Battery Information Batteries battery packs and accumulators should not be disposed of as unsorted household waste Pleas...

Page 8: ...ARK 5420 User Manual viii ...

Page 9: ... I O Interfaces 12 Figure 2 4 ARK 5420 Front I O Interfaces 12 2 3 1 COM Connector 13 Table 2 6 COM Connector Pin Definition 13 2 3 2 HDMI Connector 13 Table 2 7 HDMI Connector Pin Definition 13 2 3 3 VGA Connector 14 Table 2 8 VGA Connector Pin Definition 14 2 3 4 USB 2 0 Connector 14 Table 2 9 USB2 0 Connector Pin Definition 14 2 3 5 USB 3 0 Connector 14 Table 2 10 USB3 0 Connector Pin Definitio...

Page 10: ... 4 13 H W Monitor COnfiguration 33 Figure 4 14 CPU PPM Configuration 34 Figure 4 15 APM Configuration 35 4 2 3 Advanced Chipset Features Setup 35 Figure 4 16Advanced Chipset Features Setup 35 Figure 4 17PCH IO Configuration 36 Figure 4 18Chipset USB Configuration 36 Figure 4 19PCH Azalia Configuration 37 Figure 4 20 System Agent SA Configuration 38 Figure 4 21Graphics Configuration Menu 38 Figure ...

Page 11: ...le 6 4 Register 1 Output Port Register Bit Description 55 Table 6 5 Register 2 Polarity Inversion Register Bit Description 56 Table 6 6 Register 3 Configuration Register Bit Description 56 6 3 Function Call for Reference 57 Appendix A Programming the Watchdog Timer 63 A 1 Programming the Watchdog Timer 64 A 1 1 Watchdog Timer Overview 64 A 1 2 Programming the Watchdog Timer 64 Table A 1 Watchdog T...

Page 12: ...ARK 5420 User Manual xii ...

Page 13: ...Chapter 1 1 Overview Sections include Introduction Specifications Power Information Environment Specifications Dimension Diagram ...

Page 14: ...y resolution up to 2048 x 1536 60 Hz Dual Display resolution up to 1920 x 1200 60 Hz Storage Supports 1 x 2 5 SSD Tray 1 x Easy swap CF Tray 1 x mSATA socket on board Expansion Slot 1 x Mini PCIe slot 1 x PCI slot 1 PCIE x 4 slot Ethernet 2 x 10 100 1000M Ethernet Controller chip Intel i210 IT USB 3 x USB2 0 with Type A 2 x USB3 0 with Type A VGA 1 x VGA HDMI 1 x HDMI Serial I O 2 x DB9 RS232 422 ...

Page 15: ...e UL CCC BSMI CE and FCC compliant Temperature 0 50 C Storage Temperature 40 85 C Humidity 95 40 C non condensing Vibration With Compact Flash 2 Grms 5 500 Hz random 1 hr axis With 2 5 HDD 0 5 Grms 5 500 Hz random 1 hr axis IEC60068 2 6 Sine 2 G 5 500 Hz 1 hr axis Shock With Compact Flash 20 G IEC 68 2 27 half sine wave 11 ms duration With 2 5 HDD 10 G IEC 68 2 27 half sine wave 11 ms duration Tab...

Page 16: ... 5420 User Manual 4 1 5 Dimension Diagram Figure 1 1 Dimension Diagram of ARK 5420 137 19 82 87 240 4 118 43 4 4 133 129 11 47 150 200 20 140 R5 5 253 234 COM1 DIO HDMI RS 232 422 485 VGA COM2 DC in 9 36v ...

Page 17: ...ew Figure 1 2 Exploded Diagram of ARK 5420 1 Heat sink 2 Chassis 3 Top Bracket 4 FAN 5 ITB 230 MB 6 ITB 102 Riser Card 7 Riser Card Bracket 8 Top Cover Bracket 9 Top Cover 10 Front Cover Asm 11 2 COM Bracket 12 Small Door Cover 13 CF Bracket ...

Page 18: ...ARK 5420 User Manual 6 ...

Page 19: ...Chapter 2 2 Hardware installation Sections include Introduction Jumpers and Connectors I O Connectors ...

Page 20: ...s over the pins to connect them To close a jumper you connect the pins with the clip To open a jumper you remove the clip Sometimes a jumper will have three pins labeled 1 2 and 3 In this case you would connect either pins 1 and 2 or 2 and 3 The jumper settings are schematically depicted in this manual as follows A pair of needle nose pliers may be helpful when working with jumpers If you have any...

Page 21: ...configure your system to suit your application The table below lists the function of each of the con nectors and jumpers The locations of jumpers and connector on the board are shown in Figure 2 1 Figure 2 1 Jumper and Connector Location on Main Board mSATA Slot JLVDS1 USB7 8 for Dongle B B Conn SATA2 0 LPT1 SATA_PW R1 SATA_PW R2 PSON1 JCMOS1 mini PCIe Slot ...

Page 22: ... 2 2 JLVDS1 LVDS Voltage Selection Closed Pins Setting 3 4 Setting 2 4 V5 4 6 V5 Default setting Table 2 3 JCMOS1 CMOS Clear Function Closed Pins Setting 1 2 Default 2 3 Default Default setting Table 2 4 PSON1 Startup up Mode Selection Closed Pins Setting 1 2 AT Mode 2 3 AT Mode Default setting 1 3 5 2 4 6 1 3 5 2 4 6 1 3 5 2 4 6 For 12V For 5V For 3 3V 1 2 3 1 2 3 1 2 3 1 2 3 ...

Page 23: ...l Chapter 2 Hardware installation Figure 2 2 Jumper and Connector Location on Riser Board Table 2 5 VCCGPIO1 GPIO Voltage Selection Closed Pins Setting 1 3 Setting 2 4 Normal V3 3_SB 3 5 V5 4 6 V5 Default setting 1 3 5 2 4 6 ...

Page 24: ...gure 2 3 ARK 5420 Rear I O Interfaces Figure 2 4 ARK 5420 Front I O Interfaces Reserved I O blcok Easy swap 2 5 SSD HDD module Easy swap CF DOM module DIO Audio USB3 0 x 2 LAN COM HDMI USB2 0 x 2 PCIe x4 Slot PCI Slot VGA Power Input Power Switch ...

Page 25: ...e Signal Name 1 DCD Tx DATA 2 RxD Tx DATA 3 TxD Rx NC 4 DTR Rx NC 5 GND GND GND 6 DSR NC NC 7 RTS NC NC 8 CTS NC NC 9 RI NC NC Table 2 7 HDMI Connector Pin Definition Pin Signal Name Signal Name Signal Name 1 TMDS Data2 11 TMDS Clock Shiled 2 TMDS Data2 Shiled 12 TMDS Clock 3 TMDS Data2 13 Reserved 4 TMDS Data1 14 Reserved 5 TMDS Data1 Shiled 15 SCL 6 TMDS Data1 16 SDA 7 TMDS Data0 17 DDC CEC Grou...

Page 26: ...in the system BIOS setup 2 3 5 USB 3 0 Connector ARK 5420 provides two USB interface connectors which are USB XHCI Rev 3 0 compliant The USB interface can be disabled in the system BIOS setup Table 2 8 VGA Connector Pin Definition Pin Signal Name Pin Signal Name 1 Red 9 5V 2 Green 10 GND 3 Blue 11 NC 4 NC 12 DDC DATA 5 GND 13 H SYNC 6 GND 14 V SYNC 7 GND 15 DDC CLK 8 GND Table 2 9 USB2 0 Connector...

Page 27: ...ctor ARK 5420 provides one integrated Mic in speaker out audio connector with DB9 type Table 2 10 USB3 0 Connector Pin Definition Pin Signal Name Pin Signal Name 1 V5 VCC 6 StdA_SSRX 2 D 7 GND_DRAIN 3 D 8 StdA_SSTX 4 GND 9 StdA_SSTX 5 StdA_SSRX Table 2 11 DIO Connector Pin Definition Pin Signal Name Pin Signal Name 1 GPIO0 6 GPIO4 2 GPIO1 7 GPIO5 3 GPIO2 8 GPIO6 4 GPIO3 9 GPIO7 5 GND ...

Page 28: ...2 12 Ethernet Port Pin Definition Pin Signal Name Signal Name A1 B1 MDIO0 MDIO0 A2 B2 MDIO0 MDIO0 A3 B3 MDIO1 MDIO1 A4 B4 MDIO2 MDIO2 A5 B5 MDIO2 MDIO2 A6 B6 MDIO1 MDIO1 A7 B7 MDIO3 MDIO3 A8 B8 MDIO3 MDIO3 A9 B9 LED GREEN LED GREEN A10 B10 LED GREEN LED GREEN A11 B11 1000M LED 1000M LED A12 B12 100m 10M LED 100m 10M LED Table 2 13 Power Connector Pin Definition Pin Signal Name 1 Positive 2 GND ...

Page 29: ...Chapter 3 3 System Setup Sections include Installing Mainboard mini PCIe card and mini SATA Installing USB Dongle Installing HDD Module Installing Foot Stand Installing Notes ...

Page 30: ...K 5420 system 3 1 1 Installing Mainboard mini PCIe Card and m SATA 1 ARK 5420mainboard has a Mini PCIe slot and a m SATA slot Each one has a label for users to distinguish 2 Insert mini PCIe card and mSATA card to the respective slot and fix with two screws Figure 3 1 Installing Mainboard Mini PCIe Card and m SATA 1 1 ...

Page 31: ...ard and PCIE Card ARK 5420 provides 1 PCI slot 1 PCIE x 4 slot for customized expansion 1 Remove screws from outside of the chassis 2 Remove the Top Cover 3 Assemble I O bracket with PCI card PCIE x 4 card 4 Add the Top Cover Figure 3 2 Installing PCI Card PCIE Card 2 1 ...

Page 32: ...y 2 Insert the CF card into CF module board and fix it with fixed plastic shell 3 Place CF tray onto HDD bracket and secure it with the screws 4 Insert the CF module Figure 3 3 Installing CF Module 3 1 3 2 Installing HDD Module 1 Fix 4 rubbers to HDD bracket 2 Place 2 5 HDD into HDD bracket and tighten with screws 3 Assemble HDD bracket to HDD door 4 Connect HDD to SATA cable 5 Tighten up HDD door...

Page 33: ...1 ARK 5420 User Manual Chapter 3 System Setup 3 1 4 Installing Foot Stand Align the foot stands with the screw holes in the chassis side panel and secure them with screws Figure 3 5 Installing Foot Stand ...

Page 34: ... card for PCI PCIE slot just like POE card we reserved the FAN module for the machine heat dissipation 1 Remove the Top Cover 2 Remove FAN bracket 3 Assemble FAN on the chassis with screw 4 Use 1700023422 01 to connect the INV CON on MB and FAN 5 Add the Top Cover Figure 3 6 Installing FAN module 1 2 ...

Page 35: ...Chapter 4 4 BIOS Setting ...

Page 36: ...urned off When the power is turned on press the Del button or F2 button during the BIOS POST PowerOn Self Test to access the Aptio SETUP screen Table 4 1 Aptio Setup Control Keys KEY Function Select desired screen Select desired item Enter Engage item to make settings Increase the numeric value or make changes Decrease the numeric value or make changes F1 General help for Setup Sub Menu F2 Load Pr...

Page 37: ...ey legend Above the key legend is an area reserved for a text message When an option is selected in the left frame it is highlighted in white Often a text message will accom pany it Figure 4 1 Main Setup Screen System Language English DEFAULT Use these options to change the system language System Time System Date System Time DEFAULT 01 01 2012 System Date DEFAULT 00 00 00 Use this option to change...

Page 38: ...keys All Advanced BIOS Setup options are described in this section The Advanced BIOS Setup screen is shown below The sub menus are described on the following pages Figure 4 2 Advanced BIOS Features Setup Screen 4 2 2 1 ACPI Configuration Figure 4 3 ACPI Configuration Enable Hibernation This item allows users to enable or disable Hibernation ACPI Sleep State This item allows users to select APCI st...

Page 39: ...gure 4 4 Without TPM module Configuration Security Device Support This item allows user to Disable or Enable User should set to Enable the first time to set up the TPM module Please save changes to the BIOS and re boot system after setting Figure 4 5 TPM On board Configuration Note TPM is optional module P N PCA TPM 00A1E ...

Page 40: ...tails should be configured according to the OS Current Status information These 3 items should be set according to the OS TMP Enabled Status TPM Active Status TPM Owner Status 4 2 2 3 CPU Configuration Figure 4 6 CPU Configuration 1 Figure 4 7 CPU Configuration 2 Hyper Threading This item allows users to enable or disable Intel Hyper Threading Technology The default setting is Enabled ...

Page 41: ...e Prefectcher This item allows users to enable or disable Hardware Prefetcher Technology The default setting is Enabled Adjacent Cache Line Prefetch This item allows users to enable or disable sequential access to memory The default setting is Enabled Intel Virtualization Technology This item is a system virtualization technology adopted in CPUs produced by Intel It allows multiple operating syste...

Page 42: ... Enabled XHCI Hand off This item is to enable or disable function of supporting OS without XHCI Hand off feature The default setting is Enabled EHCI Hand off This item is to enable or disable function of supporting OS without EHCI Hand off feature The default setting is Disabled USB Mass Storage Driver Support This item allows users to set the specific type of the connected USB device USB Device P...

Page 43: ...llows users to open or close serial port The default setting is Enabled Serial Port Mode This item allows users to set serial port as RS232 422 485 The default setting is RS232 Change Settings This item allows user to change settings of serial ports and default setting is Auto IO 3F8h IRQ 4 IO 3F8h IRQ 3 4 5 6 7 10 11 12 This item allows users to select IO address and IRQ to change serial port set...

Page 44: ... including COM232 module ITB 112 ITB 114 Figure 4 12 COM232 Module Serial Port Configuration This item only shows when COM232 is assembled into an ARK 5420 system These items allows user to set COM232 module Note ARK 5420 supports a third RS 232 COM port by cable expansion and it is an optional item ARK 5420 supports arallel port by cable expansion and it is another optional item ...

Page 45: ...r Manual Chapter 4 BIOS Setting This item only appears when ITB 112 or ITB 114 assembled into ARK 5420 system These items allows user to set up a COM232 model 4 2 2 8 H W Monitor Figure 4 13 H W Monitor Configuration ...

Page 46: ...n Figure 4 14 CPU PPM Configuration EIST This item is used to set CPU SpeedStep function The default setting is Enabled Turbo Mode This item is used to set CPU Turbo mode function The default setting is Enabled CPU C3 C6 7 Report This item is used to set CPU C state function The default setting is Enabled Config TDP LOCK This item is used to set Config TDP LOCK function The default setting is Dis ...

Page 47: ...ter 4 BIOS Setting 4 2 2 10 APM Configuration Figure 4 15 APM Configuration Board Power Mode This item is used to set power on mode either AT or ATX 4 2 3 Advanced Chipset Features Setup Figure 4 16 Advanced Chipset Features Setup ...

Page 48: ...Power Loss This item is used to set power status when mains power comes back on Power Off Power button should be pressed after the power comes on Power On No action required after the power comes on Last State Resume last state before the power went off USB Configuration Figure 4 18 Chipset USB Configuration XHCI Pre Boot Driver This item allows users to enable or disable XHCI Pre Boot Driver The ...

Page 49: ...isable xHCI Maximum Primary Stream Array Size EHCI1 EHCI2 This item allows users to enable or disable EHCI 1 EHCI 2 The default setting is Enable USB Ports Per Port Disable Control This item is used to set disable control of each USB connector PCH Azalia Configuration Figure 4 19 PCH Azalia Configuration Azalia This item is used to detect any Azalia device The default setting is Enable Disabled Az...

Page 50: ...ion Figure 4 21 Graphics Configuration Menu Graphics Turbo IMON Current Graphics turbo IMON current values supported 14 31 GTT Size This item is used to select GTT size DVMT Total Gfx Mem This item allows users to select memory size of DVMT Total Gfx Low Power Mode This item allows users to enable of disable Low Power mode ...

Page 51: ...Enabled DMI Vcp Control This item is used to set DMI Vcp control and Default setting is Enabled DMI Vcm Control This item is used to set DMI Vcm control and Default setting is Enabled DMI Extended Synch Control This item is used to set DMI Extended Synch control and default setting is Dis abled DMI Gen2 This item is used to set DMI Gen2 This item can be setting at Auto Enabled and Disabled The def...

Page 52: ...o set PEG function and default setting is Auto Detect Non Compliance Device This item is used to set system to detect Non compliance device and default setting is Enabled De emphasis Control This item is used to set different De emphasis values and default setting is 3 5dB PEG sampler Calibrate This item is used to set PEG sampler Calibrate and default setting is Auto Swing Control This item is us...

Page 53: ...Scrambler Seed Generation off This item is used to set Scrambler Seed Generation Off and default setting is Disabled Memory Remap This item is used to set memory remap Memory Alias Check This item is used to set Memory alias Check function and default is Disabled 4 2 3 6 GT Power Management Control RC6 Render Standby This item is used to set RC6 Render Standby function and default setting is Enabl...

Page 54: ...to active Bootup NumLock State function after the system is power on to DOS The default setting is On On NumLock function is on when system boots Off Keypad is set for cursor control arrows when system boots Quiet Boot If set to Disabled BIOS will display normal POST information if set to Enabled BIOS will show OEM icon rather than POST information Fast Boot This item allows BIOS to skip some test...

Page 55: ...ble or disable CSM The default setting is Enabled Boot option filter This item is used to control boot device system The default setting is UEFI and Legacy Launch PXE OpROM policy This item is used to control UEFI execution and backward compatibility of PXE OpROM The default setting is Do not Launch Launch Storage OpROM policy This item is used to control UEFI execution and backward compatibility ...

Page 56: ...ing is Legacy only Other PCI device ROM priority This item is used for PCI device that is not the same as network which is defined by massive storage or video booted by OpROM 4 2 5 Security Setup Figure 4 29 Setup Security Menu Administrator Password This item is used to set Administrator Password User Password This item is used to set User Password ...

Page 57: ...k or Cancel Discard Changes and Exit Select this option to quit Setup without making any permanent changes to the system configuration 1 Select Exit Discard Changes and Exit from the Exit menu and press Enter The following message appears Discard Changes and Exit Setup Now Ok Cancel 2 Select Ok to discard changes and exit Save Changes and Reset When you have completed system configuration select t...

Page 58: ...ave changes done so far to any of the options Discard Changes This item allows users to discard changes done so far to any of the options Restore Defaults This item allows users to restore load default values for all the options Save as User Defaults This item allows users to save the changes done so far as user defaults Restore User Defaults This item allows users to restore the user defaults to ...

Page 59: ...pter 5 5 Driver Installation Sections include Chipset Windows Driver Setup VGA Windows Driver Setup ME Windows Driver Setup LAN Windows Driver Setup USB 3 0 Windows Driver Setup Audio Windows Driver Setup ...

Page 60: ...ramming developers You can apply the Windows Device Drivers to the most popular Windows Programming tools such as Visual C Visual Basic Bor land C Builder and Borland Delphi Here Windows 7 is taken as an example 5 2 Driver Installation Insert the driver CD into your system s CD ROM drive You can see the ITA 5730 driver folder items ...

Page 61: ...ou can see the driver folder items Navigate to the Drv_01Chipset folder and click Setup to complete the installation of the driver 5 2 2 VGA Windows Driver Setup Insert the driver CD into your system s CD ROM drive You can see the driver folder items Navigate to the Drv_02VGA folder and click Setup to complete the installa tion of the drivers ...

Page 62: ...iver folder items Navigate to the Drv_03ME folder and click Setup to complete the installa tion of the drivers 5 2 4 LAN Windows Driver Setup Insert the driver CD into your system s CD ROM drive You can see the driver folder items Navigate to the Drv_04LAN folder and click Autorun to complete the instal lation of the drivers ...

Page 63: ... the driver folders items Navigate to the Drv_05USB3 0 folder and click Setup to complete the installation of the drivers 5 2 6 Audio Windows Driver Installation Insert the driver CD into your system s CD ROM drive You can see the driver folders items Navigate to the Drv_ 06AUDIO folder and click WDM_R264 exe to com plete the installation of the drivers ...

Page 64: ...ARK 5420 User Manual 52 ...

Page 65: ...Chapter 6 6 GPIO Programming This chapter introduces GPIO pro gramming Guide ...

Page 66: ...PCA9554 of GPIO 00 GPIO 07 on ARK 5420 is 0x40 8bit address GPIO 00 GPIO 07 PCA9554 0x40 IO0 IO7 Below are pinouts for PCA9554 SMB_BASE Offset Mnemonic Register Name Default Type 00h HST_STS Host Status 00h R WC RO R WC special 02h HST_CNT Host Control 00h R W WO R W 03h HST_CMD Host Command 00h R W 04h XMIT_SLVA Transmit Slave Address 00h R W 05h HST_D0 Host Data 0 00h R W 06h HST_D1 Host Data 1 ...

Page 67: ...r 1 Output Port register This register reflects the outgoing logic levels of the pins defined as outputs by Regis ter 3 Bit values in this register have no effect on pins defined as inputs Reads from this register return the value that is in the flip flop controlling the output selection not the actual pin value Table 6 2 Command Byte Command Protocol Function 0 read byte Input Port register 1 rea...

Page 68: ... a bit in this register is cleared the corresponding port pin is enabled as an output At reset the I Os are configured as inputs with a weak pull up to VDD Register 3 is used to set each GPIO as Input or Output If the bit is 0 the corresponding GPIO pin is set as Output If the bit is 1 the corre sponding GPIO pin is set as Input Table 6 5 Register 2 Polarity Inversion Register Bit Description Bit ...

Page 69: ...2 Set bit 7 of the value read in step 1 as 1 and write it to SMBUS slave 0x40 regis ter 3 3 Read SMBUS slave 0x40 register 0 byte value 4 Decide low or high of the input value through bit7 value read in step3 6 3 Function Call for Reference ICH SMBUS Access Code The following code is realized by simulating the access of BIOS to SMBUS It uses Borand C 3 1 for compiling and is successfully tested un...

Page 70: ... void smbus_write_byte BYTE addr BYTE offset BYTE value Write SMBUS Register byte value Write one byte value each time addr is slave address such as 0x40 and offset is register offset int i outportb SMBUS_PORT 4 addr Write slave address to SMB_BASE 4 When writing slave address bit 0 should be set as 0 moredelay longer delay moredelay longer delay chk_smbus_ready Whether SMBUS is ready outportb SMB...

Page 71: ...arely occurs BIOS code does not make judgement on the return value of this function in read and write of SUMBUS byte int i result 1 BYTE data for i 0 i 0x800 i SMB_BASE 0 is SMBUS status value data inportb SMBUS_PORT Read SMBUS status value once data check_data SMBUS_PORT Read SMBUS status value several timesoutportb SMBUS_PORT data Write back SMBUS status value which will clear status value Write...

Page 72: ...turnresult BYTE check_data WORD addr int i BYTE data for i 0 i 6 i data inportb addr if data 0 break returndata void newiodelay Shorter delay outportb 0xeb 0 IO port 0xeb No real device occu pies Write a value to this port can realize delay function You can also choose other method according to the real situa tion void moredelay Longer delay int i for i 0 i 20 i ...

Page 73: ...te data 0xfe bit 0 is set as 0 smbus_write_byte 0x40 0x03 data Write back GPIO 00 is set for output data smbus_read_byte 0x40 0x01 Read slave 0x40 register 1 data 0x01 bit 0 is set as 1 which stands for high smbus_write_byte 0x40 0x01 data Write back Output high value Read Input Value from GPIO 07 data smbus_read_byte 0x40 0x03 Read slave 0x40 register 3 byte data 0x80 bit 7 1 smbus_write_byte 0x4...

Page 74: ...ARK 5420 User Manual 62 ...

Page 75: ...Appendix A A Programming the Watchdog Timer ...

Page 76: ...te Set seconds or minutes as units for the timer Write 0 to bit 7 set second as counting unit default Write 1 to bit 7 set minutes as counting unit 66 hex write 0 Stop timer default 01 FF hex The amount of the count in seconds or min utes depends on the value set in register 65 hex This number decides how long the watchdog timer waits for strobe before generating an interrupt or reset signal Writi...

Page 77: ...watchdog timer I O port address 680h register shifts 65h Mov al 00h Set minute as counting unit Out dx al 680h Mov dx A66h Select register 66h watchdog timer I O port address 680h register shifts 66h Mov al 5 Set timeout interval as 5 minutes and start counting Out dx al 3 Enable watchdog timer to be reset by mouse Mov dx A67h Select register 67h watchdog timer I O port address 680h register shift...

Page 78: ...ARK 5420 User Manual 66 Mov dx A68h Select register 68h watchdog timer I O port address 680h register shifts 68h In al dx Or al 4h Generate a time out signal Out dx al ...

Page 79: ...67 ARK 5420 User Manual Appendix A Programming the Watchdog Timer ...

Page 80: ...ations are subject to change without notice No part of this publication may be reproduced in any form or by any means electronic photocopying recording or otherwise without prior written permis sion of the publisher All brand and product names are trademarks or registered trademarks of their respective companies Advantech Co Ltd 2015 ...

Reviews: