Embedded & Industrial Computing

Embedded & Industrial Computing Hardware Platforms for Embedded and Industrial Computing LEC-7100 User's Manual >> Publication date:2010-05-07 Ab...
Author: Amice Anderson
22 downloads 2 Views 8MB Size
Embedded & Industrial Computing Hardware Platforms for Embedded and Industrial Computing

LEC-7100

User's Manual >>

Publication date:2010-05-07

About

About

Overview

Acknowledgement

Icon Descriptions The icons are used in the manual to serve as an indication of interest topics or important messages. Below is a description of these icons: NOTE: This check mark indicates that there is a note of interest and is something that you should pay special attention to while using the product.

WARNING: This exclamation point indicates that there is a caution or warning and it is something that could damage your property or product.

Intel, Pentium and Celeron are registered trademarks of Intel Corp. Microsoft Windows and MS-DOS are registered trademarks of Microsoft Corp. All other product names or trademarks are properties of their respective owners.

Compliances CE This product has passed the CE test for environmental specifications. Test conditions for passing included the equipment being operated within an industrial enclosure. In order to protect the product from being damaged by ESD (Electrostatic Discharge) and EMI leakage, we strongly recommend the use of CE-compliant industrial enclosure products.

FCC Class A

Online Resources The listed websites are links to the on-line product information and technical support. Resource

Website

Lanner

http://www.lannerinc.com

Product Resources http://assist.lannerinc.com RMA

This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment. This equipment generates, uses and can radiate radio frequency energy and, if not installed and used in accordance with the instruction manual, may cause harmful interference to radio communications. Operation of this equipment in a residential area is likely to cause harmful interference in which case the user will be required to correct the interference at his own expense.

http://eRMA.lannerinc.com

Copyright and Trademarks This document is copyrighted, © 2010. All rights are reserved. The original manufacturer reserves the right to make improvements to the products described in this manual at any time without notice. No part of this manual may be reproduced, copied, translated or transmitted in any form or by any means without the prior written permission of the original manufacturer. Information provided in this manual is intended to be accurate and reliable. However, the original manufacturer assumes no responsibility for its use, nor for any infringements upon the rights of third parties that may result from such use.

Embedded and Industrial Computing

i

TTaTTable of Contentsbeable of Conten Chapter 1: Introduction

1

System Specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Package Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Front Panel Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Rear Panel Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Chapter 2: Hardware Setup

5

Preparing the Hardware Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Installing the System Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Installing the Hard Disk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Installing a CompactFlash Card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 3G SIM Card Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Wireless 3G module Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Wall Mounting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

Chapter 3: Motherboard Information

7

Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Motherboard Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Jumper Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

Chapter 4: BIOS Settings

13

Accessing the BIOS menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Navigating the BIOS menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 The Main Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Advanced Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Boot Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Security Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Exit Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

Appendix A: Programming Watchdog Timer

28

Appendix B: Setting up Remote Access

30

Appendix C: Digital Input/Output Control on the GPIO port

31

Appendix D: Terms and Conditions

34

Warranty Policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 RMA Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34

ii

Chapter 1 Chapter 1: Introduction Thank you for choosing the LEC-7100. The LEC-7100 is Lanner’s flagship IPC. It features the Dual Core Intel® Atom™ D510 processor that has 1.66GHz of processing power. Utilizing the Atom’s ability for performance with very low heat generation allows the LEC-7100 to be a completely fanless system. The LEC-7100 is an ideal solution for application ready system platform. All electronics are protected in a compact sealed aluminum case as a stand-alone unit and can be easily situated in a place where space is limited and the environment is harsh. A solid sealed Aluminum extrusion framing provides vibration and dust resistance while providing a passive cooling solution. It also provides great protection from EMI, shock, and vibration. The LEC-7100 answers the demand for versatile I/O interfaces by offering 1 x DVI-I interface and 1x VGA interface for dual display, 6x USB 2.0 ports (2 internal), 2 x Giga LAN port, audio function, 2x COM ports (1 internal), and 2 PCI-e slots; all of theses are equipped onto a small rugged unit. The LEC-7100 also supports 1 x 2.5 SATA HDD and 1 x Compact Flash card for storage options. Please refer to the following chart below for a summary of the system’s specifications.

Introduction System Specification FEATURE

Form Factor

Embedded Fanless System

Processor

Onboard Intel D510

Chipset

Intel ICH8M

BIOS

AMIBIOS with 8Mbit FWH

Max. FSB

667MHz

Memory Socket

SODIMM x 1 (up to 2GB)

Max Memory

2GB (Module)

Compact Flash

CF Socket Type I/II x1

HDD

2.5” SATA HDD support

Controller

Controller (Interface)

RTL8111C(D) (PCIe 1X)

Video

Controller

Intel Gen 3.5 GFX Core

Audio

Codec

ALC888 HD Codec

COM Ports

RS-232 x 1

Digital I/O

DB9 Female, 4 in 4 Out

USB 2.0

4 (External x 4)

Onboard SIM card Socket

1 to be used with mini-PCIe 3G/ GPS module

VGA

1 (2048 x 1536 / 75Hz)

DVI-D

1 (1280 x 800)

LAN

RJ45 GbE x 2

Audio

Stereo Line Out (RCA L/R)

Internal CF

1

DC-in Connector Type

Power Jack w/Lock

Expansion

Mini-PCIe x 2, Mini-PCI x 1

Controller

Winbond W83627 UHG integrated hardware monitor

Watchdog timer

Yes (1~255 level)

Platform

Memory

Storage

I/O

Hardware Monitor

Linux kernel 2.4.16 or above, XPE/ Win XP-32 bit, Windows 7

OS Supported

Environmental Parameters

Dimensions

Power Compliance

Embedded and Industrial Computing

DESCRIPTION

Operating Temperature (With Industrial Components: CF, Memory, SSD, HDD)

-10°~55°C / 14°~131°F

Operating Temperature (With Commercial Components)

-5°C~45°C / 23°~113°F

W x H x D (mm)

268(W) x 44(H) x 174(D)

W x H x D (Inch)

10.55”(W) x 1.73”(H) x 6.85”(D)

Input (Mode)

DC +12V (ATX Mode)

AC Adapter

AC Adapter D: 60W (+12V) Power Jack w/Lock CE, FCC, RoHS

1

Chapter 1

Introduction

Package Contents Your package contains the following items: •• LEC-7100 Embedded System •• DC+12V 60W Power Adapter •• Serial-ATA/Power Cable •• Wall-Mounting Kit •• Drivers and User’s Manual CD

Embedded and Industrial Computing

2

Chapter 1

Introduction

Front Panel Features F1

F2

F3

F4

F5

F6

F7

F1 VGA Port: DB-15 Female Connector Using suitable DB-15 cable, you can connect an appropriate device such as a monitor. F2 DVI-D Port: DVI-D Dual Link Connector By using suitable DVI-D dual link cable, you can connect an appropriate device such as an LCD panel. It allows a maximum resolution of 1280x800 pixels. F3 Audio-right RCA Jack for right audio out F4 Audio-left RCA Jack for left audio out F5 Two 10/100/1000Mbps LAN ports: LAN1-left, LAN2-right Using suitable RJ-45 cable, you can connect LEC-7100 System to a computer, or to any other piece of equipment that has an Ethernet connection, for example, a hub or a switch. Moreover, both of them have Wake-on-LAN and Preboot Execution Environment capabilities. F6 Power Adapter socket with Lock DC-in 12V jack. Only use the power adapter supplied with the LEC-7100 System. F7 LED Indicators: Yellow-HDD LED, Green-Power LED HDD LED: A hard disk LED. If the LED is on, it indicates that the system’s storage is functional. If it is off, it indicates that the system’s storage is not functional. If it is flashing, it indicates data access activities. Power Led: Green indicates that the system is powered on.

Embedded and Industrial Computing

3

Chapter 1

Introduction

Rear Panel Features R1

R2

R3

F4

R5

R6

R1 Reset Switch It is a hardware reset switch. Use this switch to reset the system without turning off the power. R2 DIO Port (DB-9 female connector) The general-purpose input/output (GPIO) peripheral provides dedicated general-purpose pins to support connection of digital I/O devices. R3 RS-232 COM Port (DB-9 Male Connector) Using suitable RS-232 cable, you can connect an appropriate device, for example, a terminal console for diagnostics. This port is assigned as COM1. The default configuration parameter: 9600 baud rate, 8 data bits, no parity, 1stop bit, and no flow control. R4 Four USB 2.0 Ports It connects to any USB devices such as a flash drive. The left-bottom one is defined as USB0 whereas the left-upper one is USB1; the right-bottom one is defined as USB2 whereas the right-upper one is USB3. R5 Power Switch through Phoenix Contact It is a power-on switch. You could turn on or off the system power by using this contact in stead of the following power switch. R6 Power-on Switch If the LED is green, it indicates that the system is powered on; if the LED is red, it indicates that the system is in Standby mode.

Embedded and Industrial Computing

4

Chapter 2 Chapter 2: Hardware Setup Preparing the Hardware Installation To access some components and perform certain service procedures, you must perform the following procedures first. WARNING: To reduce the risk of personal injury, electric shock, or damage to the equipment, remove the power cord to remove power from the server. The front panel Power On/Standby button does not completely shut off system power. Portions of the power supply and some internal circuitry remain active until AC power is removed. 1. Unpower the LEC-7100 and remove the power cord. 2. Unscrew the 3 threaded screws from the top cover of the LEC-7100 System. 3. Slide the cover backwards and open the cover

Introduction

Note: 1. All SO-DIMMs installed must be the same speed

(DDR2 667). Do not install DIMMs supporting different speeds. 2. The motherboards can support up to 2 GB memory capacity in maximum.

Installing the Hard Disk The system can accomdate two Serial-ATA disks. Follow these steps to install a hard disk into the LEC-7100: 1. Unsrew the 4 screws on the hard disk tray to take out the hard disk tray from the system. 2. Place hard disk on the hard disk tray and align the holes of the hard disk with the mounting holes on the tray. 3. Secure the hard disk with 4 mounting screws on the hard disk tray. 4. Connect the Serial-ATA power and hard disk cables to the hard disk’s connectors respectively. 5. Plug the Serial-ATA cable to the Serial-ATA Connector on the main board. 6. Put the hard disk tray with the installed hard disk back to the system and secure it with the mounting screws.

upwards.

7. Put the hard disk tray with the installed hard disk back to the system and secure it with the mounting screws. 1

Installing the System Memory The motherboard supports DDR2 memory that features data transfer rates of 667 MHz to meet the higher bandwidth requirements of the latest operating system and Internet applications. It comes with two Double Data Rate(DDR2) Small Outline Dual Inline Memory Modules (SO-DIMM) sockets. 1. Open the DIMM slot latches.

2

2. Install the DIMM.

Notch Cutout

Embedded and Industrial Computing

5

Chapter 2

Introduction

Installing a CompactFlash Card

Note:

LEC-7100 provides one CompactFlash slot(CF1). Follow the procedures bellow for installing a CompactFlash card.

1. To remove the module from the system, release

1. Align CompactFlash card and the card slot with the arrow pointing toward the connector.

2.

2. Push the card to insert into the connector.

Wall Mounting The product ships with wall mounting kit. To mount your product on the wall, follow the instructions below:

2

1

the latch first by slightly bending it inward. To remove the SIM card, unlock the tray first by sliding it outward.

1. First make a hole for the anchor in the surface on the wall. 2. Then press the anchor into the hole until it is flush with the surface. You may need a hammer to tap the wall anchor. 3. Use a screwdriver to screw the threaded screw into the plastic anchor.

3G SIM Card Installation 1. Open the SIM tray and flip it diagnolly. 2. Align the cut-off angle of the SIM card with the SIM card socket. Also place the ICs facing up.

4. Attach the wall mounting bracket to the back of the device, securing it in place with four of the flat-head screws provided. 5. Hang the device on the wall.

3. Insert the SIM card into the tray diagnoally. Close and lock the tray.

Wireless 3G module Installation 1. Align the wireless module’s cutout with the Mini-PCIe slot notch. 2. Insert the wireless module into the connector diagnoally. 3. Push the other end of the wireless module to be tightened with the latch.

3G module

SIM Card 2

2

3

Embedded and Industrial Computing

6

Chapter 3

Motherboard Information

Chapter 3: Motherboard Information Block Diagram The block diagram depicts the relationships among the interfaces or modules on the motherboard. Please refer to the following figure for your motherboard’s layout design.

Embedded and Industrial Computing

7

Chapter 3

Motherboard Information

Motherboard Layout The motherboard layout shows the connectors and jumpers on the board. Refer to the following picture as a reference of the pin assignments and the internal connectors.

DC-in 12V Jack(CN7)

LAN1(CN6)/ LAN2(CN5)

M1

Lineout-L(CN1):

M2

M22 Lineout-R(CN2)

External VGA Connector(CN4)

M3 M23

M5 M4

M25 M6

Mini-PCI Connector(at the back)

M8 M7

M13 M12

HW Reset(SW1)

M15 M14

M24

M18

M19

M9 M20

M10 M17 M16

M21

M11

Embedded and Industrial Computing

8

Chapter 3

Motherboard Information

Jumper Settings M1

Power/Hard Disk LED (LED1): The power and hard disk LED indicator. Pin No. C2 C1

M2

M8

Function HDD LED N PWD LED N

Pin No. A2 A1

Function HDD LED P PWR LED P

DVI-D Connector(CN3): The DVI (Digital Visual Interface) is a standard for high resolution digital displays. Below is a 24-Pin DVI Female connector ‘s pinout.

Pin No. 1 2 3 4 5

Function TMDS Data2TMDS Data2+ Ground Reserved Reserved

Pin No. 13 14 15 16 17

Function Reserved +5V Power Ground (for+5V) Hot Plug Detect TMDS Data()-

6 Reserved 18 TMDS Data()+ 7 Reserved 19 Ground 8 Reserved 20 Reserved 9 TMDS Data121 Reserved 10 TMDS Data 1+ 22 TMDS Clock Shield 11 Ground 23 TMDS Clock + 12 Reserved 24 TMDS Clock Note that some pins are assigned as Reserved which is different from the standard DVI-D pinout. M3

SPI-ROM(J1): Using the appropriate cable to connect this 10-pin ISP in header connector, the user can update the SPI Flash soldered on board Pin No. 1 3 5 7 9

Function SPI_HOLD_N SPI_CS0_N SPI_MISO RSVD GND

2 4 6 8 10

1 3 5 7 9

Pin No. 2 4 6 8 10

Function RSVD +3.3V RSVD SPI_CLK SPI_MOSI

M4

Serial-ATA Connector (J4/J5): It is for connecting a 2.5'' SATA harddisk to be served as your system's storage.

M5

4-pin Serial-ATA Power Connector (J3): connectig the SATA power cord. 4 3 2 1

Pin No. 1 2 3 4

It is for

Function 5V Ground Ground 12V

M6

SIM Socket (CN9): It is for connecting SIM card of the mobile connection.

M7

Compact Flash Connector (CN11): It is for connecting a Compact Flash card to be served as your system's storage.

Embedded and Industrial Computing

Mini-PCIe Socket(CN10/CN12): It is for connecting any Mini-PCIe adapter such as a Wi-Fi module (CN10) or connecting Wireless 3G module (CN12) for mobile Internet connections.

CN10 Pin Assignment PIN NO. Description 1 WAKE# 3 Reserved 5 Reserved 7 CLKREQ# 9 GND 11 REFCLK13 REFCLK+ 15 GND 17 Reserved (UIM_C8) 19 Reserved (UIM_C4) 21 GND 23 PERn0 25 PERp0 27 GND 29 GND 31 PETn0 33 PETp0 35 GND 37 Reserved 39 Reserved 41 Reserved

PIN NO. 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42

43

Reserved

44

45

Reserved

46

47 49 51

Reserved Reserved Reserved

48 50 52

Description 3.3V GND 1.5V UIM_PWR UIM_DATA UIM_CLK UIM_RESET UIM_VPP GND ENABLE PERST# +3.3Vaux GND +1.5V SMB_CLK SMB_DATA GND USB_DUSB_D+ GND LED_ WWAN# LED_ WLAN# LED_ WPAN# +1.5V GND +3.3V

PIN NO. 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38

Description 3.3V GND 1.5V Reserved Reserved Reserved Reserved Reserved GND ENABLE PERST# +3.3Vaux GND +1.5V SMB_CLK SMB_DATA GND USB_DUSB_D+

CN12 Pin Assignment PIN NO. Description 1 WAKE# 3 Reserved 5 Reserved 7 CLKREQ# 9 GND 11 REFCLK13 REFCLK+ 15 GND 17 Reserved (UIM_C8) 19 Reserved (UIM_C4) 21 GND 23 PERn0 25 PERp0 27 GND 29 GND 31 PETn0 33 PETp0 35 GND 37 Reserved

9

Chapter 3 39 41 43 45 47 49 51

Reserved Reserved Reserved Reserved Reserved Reserved Reserved

Motherboard Information 40 42 44 46 48 50 52

GND Reserved Reserved Reserved +1.5V GND +3.3V

M9

RS-232 COM Port(COM1, CN18): It is the RS-232 serial port. P i n Pin Name No. 1 Data Carrier Detectg 2

12345

Receive Data

3

Transmit Data

4

Data Terminal Ready

5

Ground

6789

P i n No. 6

Pin Name Data Set Ready

7

Request to Send

8

Clear to Send

9

Ring Indicator

M10

SO-DIMM Socket (CN8): It is for connecting the DDR2 667 (200 pin) memory. The system can suport up to 2 GB in maximum.

M11

Clear CMOS jumper (JP3): It is for clearing the CMOS memory. Pin No. 1-2 2-3

1 2 3

Function Normal (Default) Clear CMOS

M12 M14

Ring-indicator Jumper Setting (JP1, JP2): The Ring indicator pinout of the RS-232 COM port (JP2 for COM1 and JP1 for COM2) can be altered according to the following jumper settings.

M13

Embedded and Industrial Computing

Pin No. 6 4 2

Pin No. 5 3 1

5 3 1

6 4 2

Function LED1_WPAN_N LED1_WLAN_N LED1_WWAN_N

RS-232 COM Port(COM2, J8): It is for connecting the RS-232 interface cable . Pin No. Key

Function 10

Ring Indicator

8

Clear to Send

6

Request to Send

4

Data Set Ready

2

M16

Function Supply +5V to Device Supply +12V to Device RS-232 Ring

Mini-PCIe Wireless LED(J7): It shows the wireless connection status for wireless modules connected in Mini-PCIe Socket. Function LED1R_WPLAN_N LED1R_WLAN_N LED1R_WWAN_N

M15

Pin No. 1-2 3-4 5-6

5 3 1

6 4 2

10 8 6 4 2

9 7 5 3 1

Pin No. 9

Signal Ground

Function

7

Data Terminal Ready

5

Transmitted Data

3

Received Data

1

Data Carrier Detected

USB Ports (No. 0/1/2/3): The system provides 4 external USB [CN16 for USB0, USB1 (the bottom one is USB0; the upper one is USB1) and CN17 for USB2, USB3 (the bottom one is USB2; the upper one is USB3)] type A connectors.

10

Chapter 3 Pin No. 5 6 7 8

Pin No. 5 6 7 8

Function USB_VCC USBD1USBD1+ GND

5

6

1

7

2

Pin No. 1 2 3 4

M17

Motherboard Information Function USB_VCC USBD3USBD3+ GND

5

8

6

4

1

Function USB_VCC USBD0USBD0+ GND

Pin No. 1 2 3 4

3

2

7

M21

8

3

PIN No. 1 3 5 7

4

Pin No. 1

1 PWR_BTN_N

2

GND

8 6 4 2 PIN No. 2 4 6 8

DIO Ports(CN14): The 8 pins of General Purpose Input/ Output (GPIO) can be can be configured as an either input or output through the DB-9 female connector. Pin Name Input0 Input1 Input2 Input3 GND

PIN NO.

LINE_OUT2_L

GND

MIC_OUT_L

2

4

6

Pin Name VCC

3

MSDATA

5

KBDATA

7

GND

M20

5 4321

Pin No. 6 7 8 9

9876

Pin Name Output0 Output1 Output2 Output3

2 4 6 8

Pin No. 2

Pin Name MSCLK

4

KEY

1 3 5 7

6

KEY

8

KBCLK

Dual USB Interface Connector (J10 for USB No.4 and No.5): It is for connecting the USB module cable. It complies with USB2.0 and support up to 480 Mbps connection speed. Function PIN NO.

USB_VCC USBD5- USBD5+ 2 4 6 2 4 6 8 10

1 3 5 7 9 PIN NO. 1 3 5 Function USB_VCC USBD4- USBD4+

GND 8

10

2 4 6 8 1 0

1 3 5 7 9 Pin No. 1 Pin Name LINE_OUT2_R

PS/2 Keyboard & Mouse Connector (J9): It is for connecting the PS/2 keyboard and mouse interface cable.

Pin No. 1

Internal Audio Connector(J2): It is an redundant pin header for connecting an audio interface cable.

Function

M23 M19

Function PWDLED PWROK_100MS_N FP_PWR_BTN_N GND

Function

M22

Pin No. 1 2 3 4 5

Function HardDisk LED HardDisk_LED_N FP_RST_BTN_N GND

7 5 3 1

Function USB_VCC USBD2USBD2+ GND

Power Switch through Phoenix Contact(J12) 12

M18

Miscellaneous Pin Header (J11): Theses pin headers can be used as a backup for the following functions: Harddisk LED, Reset Button, and Power LED indicator.

GND 8

7 GND

Embedded and Industrial Computing

5 MIC_OUT_R

7 LINE_IN_R

9 LINE_IN_L

SM-Bus Reserved (J6): System Management Bus. It can be connected to read the value of the CPU register. 1 2 3

M24

3 GND

Pin No. 1

Pin Name Smbdata

2

GND

3

SmbCLK

Thermal Sensor Connector(J13): It is for connecting a temperature monitor.

1 2

M25

Pin No. 1

Pin Name System_temp

2

GND

Mini-PCI Connector (at the back, CN19)

NC 10

9

11

Chapter 3

Motherboard Information

PIN NO. 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 73 75 77 79 81 83 85 87 89 91 93 95 97 99 101 103 105

Description TIP 8PMJ-3 8PMJ-6 8PMJ-7 8PMJ-8 LED1_GRNP LED1_GRNN CHSGND INT-B +3.3V RESERVED GROUND CLK GROUND REO +3.3V AD31 AD29 GROUND AD27 AD25 RESERVED C_BE-3 AD23 GROUND AD21 AD19 GROUND AD17 C_BE-2 IRDY +3.3V CLKRUN SERR GROUND C_BE-1 AD14 GROUND AD12 AD10 GROUND AD8 AD7 +3.3V AD5 RESERVED AD3 +5V AD1 GROUND AC_SYNC AC_SDATA_IN

Pin No. 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 74 76 78 80 82 84 86 88 90 92 94 96 98 100 102 104 106

107 109 111

AC_BIT_CLK AC_CODEC_ID1 MOD_AUDIO_ MON AUDIO_GND

108 110 112

Description RING 8PMJ-1 8PMJ-2 8PMJ-4 8PMJ-5 LED2_YELP LED2_YELP RESERVED +5V INT-A RESERVED 3.3VAUX RST +3.3V GNT GROUND PME RESERVED AD30 +3.3V AD28 AD26 AD24 IDSEL GROUND AD22 AD20 PAR AD18 AD16 GROUND FRAME TRDY STOP +3.3V GROUND AD15 AD13 AD11 GROUND AD9 C_BE-0 +3.3V AD6 AD4 AD2 AD0 RESERVED-WIP RESERVED-WIP GROUND M66EN AC_SDATA_ OUT AC_CODEC_ID0 AC_RESET RESERVED

114

GROUND

113

Embedded and Industrial Computing

PIN NO. 115 117 119 121 123

Description SYS_AUDIO_ OUT SYS_AUDIO_ OUT GND AUDIO_GND RESERVED VCC5VA

Pin No. 116

Description SYS_AUDIO_IN

118

SYS_AUDIO_IN GND AUDIO_GND MPCIACT 3.3AUX

120 122 124

12

Chapter 4 Chapter 4: BIOS Settings Accessing the BIOS menu Use the BIOS Setup program when you are installing a motherboard, reconfiguring your system, or prompted to “Run Setup.” This section explains how to configure your system using this utility.

Bios Settings Navigating the BIOS menu The BIOS setup/utility uses a key-based navigation system called hot keys. Most of the BIOS setup utility hot keys can be used at any time during the setup navigation process. These keys include , , , , keys, and so on.

Even if you are not prompted to use the Setup program, you can change the configuration of your computer in the future. For example, you can enable the security password feature or change the power management settings. This requires you to reconfigure your system using the BIOS Setup program so that the computer can recognize these changes and record them in the CMOS RAM .

If you wish to enter Setup after POST, restart the system by pressing , or by pressing the reset button on the system chassis. You can also restart by turning the system off and then back on. Do this last option only if the first two failed. The Setup program is designed to make it as easy to use as possible. Being a menu-driven program, it lets you scroll through the various sub-menus and make your selections from the available options using the navigation keys.

Note: This manual describes the standard look of the setup screen. The motherboard manufacturer has the ability to change any and all of the settings described in this manual. This means that some of the options described in this manual do not exist in your motherboard’s AMIBIOS.

Embedded and Industrial Computing

Keys -> >-

When you start up the computer, the system provides you with the opportunity to run this program. Press during the Power-On Self-Test (POST) to enter the Setup utility(There are a few cases that other keys are used, such as , , and so on.); otherwise, POST continues with its test routines.

Up/Down

+- Plus/Minuss

Tab

Description The Left and Right keys allow you to select an setup screen. For example: Main screen, Advanced screen, Chipset screen, and so on. The Up and Down keys allow you to select an setup item or sub-screen. The Plus and Minus keys allow you to change the field value of a particular setup item. For example: Date and Time. The key allows you to select setup fields.

13

Chapter 4

Bios Settings

The Main Menu The main BIOS setup menu is the first screen that you can navigate. Each main BIOS setup menu option is described in this chapter. The Main BIOS setup menu screen has two main frames. The left frame displays all the options that can be configured. “Grayed-out” options cannot be configured. Options is blue can be. The right frame displays the key 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 accompany it.

System Time/System Date Use this option to change the system time and date. Highlight System Time or System Date using the keys. Enter new values through the keyboard. Press the key or the keys to move between fields. The date must be entered in MM/DD/YY format. The time is entered in HH:MM:SS format.

Advanced Settings Select the Advanced tab from the setup screen to enter the Advanced BIOS Setup screen. You can select any of the items in the left frame of the screen, such as SuperIO Configuration, to go to the sub menu for that item. You can display an Advanced BIOS Setup option by highlighting it using the keys. All Advanced BIOS Setup options are described in this section. The Advanced BIOS Setup screen is shown at the right. The sub menus are described on the following pages.

IDE Configuration Settings You can use this screen to select options for the IDE Configuration Settings. Use the up and down keys to select an item. Use the and keys to change the value of the selected option. A description of the selected item appears on the right side of the screen. The settings are described on the following pages. An example of the IDE Configuration screen is at the right.

Primary IDE Master, Primary IDE Slave, Secondary IDE Master, Secondary IDE Slave: Select one of the hard disk drives to configure it. Press to access its the sub menu. The options on the sub menu are described as in the following..

Hard disk drive Write Protect Set this option to protect the hard disk drive from being overwritten. The Load Optimal default setting is Disabled. Embedded and Industrial Computing

14

Chapter 4 Option Disabled

Enabled

Bios Settings

Description Set this value to allow the hard disk drive to be used normally. Read, write, and erase functions can be performed to the hard disk drive. This is the default setting. Set this value to prevent the hard disk drive from being erased.

IDE Detect Time Out (Seconds) Set this option to stop the AMIBIOS from searching for IDE devices within the specified number of seconds. Basically, this allows you to fine-tune the settings to allow for faster boot times. Adjust this setting until a suitable timing that can detect all IDE disk drives attached is found. The Load Optimal default setting is 35. 0

Option

5

10 15 20 25 30 35

Description This value is the best setting to use if the onboard IDE controllers are set to a specific IDE disk drive in the AMIBIOS. Set this value to stop the AMIBIOS from searching the IDE bus for IDE disk drives in five seconds. A large majority of ultra ATA hard disk drives can be detected well within five seconds. Set this value to stop the AMIBIOS from searching the IDE bus for IDE disk drives in 10 seconds. Set this value to stop the AMIBIOS from searching the IDE bus for IDE disk drives in 15 seconds. Set this value to stop the AMIBIOS from searching the IDE bus for IDE disk drives in 20 seconds. Set this value to stop the AMIBIOS from searching the IDE bus for IDE disk drives in 25 seconds. Set this value to stop the AMIBIOS from searching the IDE bus for IDE disk drives in30 seconds. Set this value to stop the AMIBIOS from searching the IDE bus for IDE disk drives in 35 seconds.

Embedded and Industrial Computing

15

Chapter 4

Bios Settings

Primary and Secondary IDE Master and Slave Settings From the IDE Configuration screen, press to access the sub menu for the primary and secondary IDE master and slave drives. Use this screen to select options for the Primary and Secondary IDE drives. Use the up and down keys to select an item. Use the and keys to change the value of the selected option. The settings are described on the following pages. The screen for the Primary IDE Master is shown at the right.

Type This option sets the type of device that the AMIBIOS attempts to boot from after the Power-On Self-Test (POST) has completed. The Load Optimal default setting is Auto. Option Description Not Installed Set this value to prevent the BIOS from searching for an IDE disk drive on the specified channel. Auto Set this value to allow the BIOS auto detect the IDE disk drive type attached to the specified channel. This setting should be used if an IDE hard disk drive is attached to the specified channel. This is the default setting. CDROM This option specifies that an IDE CD-ROM drive is attached to the specified IDE channel. The BIOS will not attempt to search for other types of IDE disk drives on the specified channe. ARMD This option specifies an ATAPI Removable Media Device. This includes, but is not limited to: • ZIP • LS-120

LBA/Large Mode LBA (Logical Block Addressing) is a method of addressing data on a disk drive. In LBA mode, the maximum drive capacity is 137 GB. The Load Optimal default setting is Auto. Option Disabled

Auto

Description Set this value to prevent the BIOS from using Large Block Addressing mode control on the specified channel. Set this value to allow the BIOS to auto detect the Large Block Addressing mode control on the specified channel. This is the default setting.

Embedded and Industrial Computing

16

Chapter 4

Bios Settings

Note: For drive capacities over 137 GB, your AMIBIOS must be equipped with 48-bit LBA mode ddressing. If not, contact your motherboard manufacturer or install an ATA/133 IDE controller card that supports 48-bit LBA mode.

Block (Multi-Sector Transfer) This option sets the block mode multi sector transfers option. The Load Optimal default setting is Auto. Option Disabled

Auto

Description Set this value to prevent the BIOS from using Multi-Sector Transfer on the specified channel. The data to and from the device will occur one sector at a time. Set this value to allow the BIOS to auto detect device support for Multi-Sector Transfers on the specified channel. If supported, Set this value to allow the BIOS to auto detect the number of sectors per block for transfer from the hard disk drive to the memory. The data transfer to and from the device will occur multiple sectors at a time. This is the default setting.

PIO Mode IDE PIO (Programmable I/O) mode programs timing cycles between the IDE drive and the programmable IDE controller. As the PIO mode increases, the cycle time decreases. The Load Optimal default setting is Auto. Option Auto

0 1 2 3 4

Description

Set this value to allow the BIOS to auto detect the PIO mode. Use this value if the IDE disk drive support cannot be determined. This is the default setting. Set this value to allow the BIOS to use PIO mode 0. It has a data transfer rate of 3.3 MBs. Set this value to allow the BIOS to use PIO mode 0. It has a data transfer rate of 5.2 MBs. Set this value to allow the BIOS to use PIO mode 0. It has a data transfer rate of 8.3 MBs. Set this value to allow the BIOS to use PIO mode 0. It has a data transfer rate of 11.1MBs. Set this value to allow the BIOS to use PIO mode 4. It has a data transfer rate of 16.6 MBs. This setting generally works with all hard disk drives manufactured after 1999. For other disk drive, such as IDE CD-ROM drives, check the specifications of the drive.

DMA Mode This setting allows you to adjust the DMA mode options. The Load Optimal default setting is Auto.

Embedded and Industrial Computing

17

Chapter 4 Option Auto

SWDMA0

SWDMA1

SWDMA2

MWDMA0

MWDMA1

MWDMA2

UDMA0

UDMA1 UDMA2 UDMA3

UDMA4

UDMA5

UDMA6

Bios Settings

Description

Set this value to allow the BIOS to auto detect the DMA mode. Use this value if the IDE disk drive support cannot be determined. This is the default setting. Set this value to allow the BIOS to use Single Word DMA mode 0. It has a data transfer rate of 2.1 MBs. Set this value to allow the BIOS to use Single Word DMA mode 1. It has a data transfer rate of 4.2 MBs. Set this value to allow the BIOS to use Single Word DMA mode 1. It has a data transfer rate of 8.3 MBs. Set this value to allow the BIOS to use Multi Word DMA mode 0. It has a data transfer rate of 4.2 MBs. Set this value to allow the BIOS to use Multi Word DMA mode 0. It has a data transfer rate of 13.3 MBs. Set this value to allow the BIOS to use Multi Word DMA mode 0. It has a data transfer rate of 16.6 MBs. Set this value to allow the BIOS to use Ultra DMA mode 0. It has a data transfer rate of 16.6 MBs. It has the same transfer rate as PIO mode 4 and Multi Word DMA mode 2. Set this value to allow the BIOS to use Ultra DMA mode 1. It has a data transfer rate of 25 MBs. Set this value to allow the BIOS to use Ultra DMA mode 1. It has a data transfer rate of 33.3 MBs. Set this value to allow the BIOS to use Ultra DMA mode 1. It has a data transfer rate of 44.4 MBs. To use this mode, it is required that an 80-conductor ATA cable is used. Set this value to allow the BIOS to use Ultra DMA mode 1. It has a data transfer rate of 66.6 MBs. To use this mode, it is required that an 80-conductor ATA cable is used. Set this value to allow the BIOS to use Ultra DMA mode 1. It has a data transfer rate of 99.9 To use this mode, it is required that an 80-conductor ATA cable is used. Set this value to allow the BIOS to use Ultra DMA mode 1. It has a data transfer rate of 133.2 MBs. To use this mode, it is required that an 80-conductor ATA cable is used.

S.M.A.R.T. for Hard disk drives Self-Monitoring Analysis and Reporting Technology (SMART) feature can help predict impending drive failures. The Load Optimal default setting is Auto.

Embedded and Industrial Computing

18

Chapter 4 Option Auto

Disabled Enabled

Bios Settings

Description Set this value to allow the BIOS to auto detect hard disk drive support. Use this setting if the IDE disk drive support cannot be determined. This is the default setting. Set this value to prevent the BIOS from using the SMART feature. Set this value to allow the BIOS to use the SMART feature on support hard disk drives.

32Bit Data Transfer This option sets the 32-bit data transfer option. The Load Optimal default setting is Enabled. Option

Disabled Enabled

Description

Set this value to prevent the BIOS from using 32-bit data transfers. Set this value to allow the BIOS to use 32-bit data transfers on support hard disk drives. This is the default setting.

USB Configuration You can use this screen to select options for the USB Configuration. Use the up and down keys to select an item. Use the and keys to change the value of the selected option. The settings are described on the following pages. Note: The device listed under the USB Devices Enabled indicates the auto-detected values. If no device is detected, the item shows None.

Legacy USB Support This option enable or disable the support ofr USB devices on legacy operating systems (OS), e.g., Windows ME/98/ NT, and MS-DOS. Option Auto

Enabled Disabled

Description Allow the system to detect the presence of USB devices at startup. If detected, the USB controller legacy mode is enabled If it is not detected, the USB control er legacy mode is disabled. Enable the support for USB devices on legacy operating system Disable this function.

BIOS EHCI Hand-off This option enable or disable the support for the operating systems which does not have an EHCI Hand-Off feature.

Embedded and Industrial Computing

19

Chapter 4 Option Enabled Disabled

Bios Settings

Description Enable the support for the OS without EHCI Hand-Off feature. Disable the support for the OS without EHCI Hand-Off feature.

USB Functions This option allows you to enable or disable the USB controllers.

USB 2.0 Controller It allows you to enable or disable the USB 2.0 controller support.

Hotplug USB FDD support It allows you to enable or disable the support for a USB floppy disk drive. When set to auto, the system automatically detects the device and enables the support for the device.

USB Mass Storage Device Configuration USB Mass Storage Reset Delay This option sets the reset timing for the USB Mass Storage to be initialized. Option 10 Sec 20 Sec 30 Sec 40 Sec

Description When set to 10 Sec, the BIOS will wait for up to 10 seconds for the USB flash drive to initialize. When set to 10 Sec, the BIOS will wait for up to 10 seconds for the USB flash drive to initialize. When set to 10 Sec, the BIOS will wait for up to 10 seconds for the USB flash drive to initialize. When set to 10 Sec, the BIOS will wait for up to 10 seconds for the USB flash drive to initialize.

Emulation Type USB Emulation refers the system being able to boot to a USB drive. Normally if this option is not enabled, any attached USB drive will not become available until a USB compatible operating system is fully booted with all USB drivers loaded. When this option is enabled, any attached USB drive can boot the system even when there is no USB drivers loaded on the system. Set this value to allow the system to select the Emulation type for a USB drive. Option Auto Floppy Hard Disk Drive

Description Set this value to allow the system to automatically detect a USB drive emulation type. Set this value to allow the system to select floppy emulation type. Set this value to allow the system to select hard disk drive emulation type.

Embedded and Industrial Computing

20

Chapter 4

Bios Settings

ACPI Settings Select the ACPI tab from the setup screen to enter the ACPI BIOS Setup screen. You can select ACPI Advanced in the left frame of the screen to go to the sub menu for that item. Configure your ACPI settings to allow the system to utilize the Intel ACPI (Advanced Configuration and Power Interface) specification. The Optimal and Fail-Safe default setting is Yes.

General ACPI Settings It sets the ACPI Standby State when system goes into ACPI Standby Mode. •• S1/POS: Power on Suspend

System is on. The CPU is fully up and running; power conservation operates on a per-device basis. •• S3/STR: Suspend to RAM (Default)

STR allows a properly configured system to go into a low power state while saving information to main memory about the system’s configuration, open applications, and active files.

Repost Video on S3 Resume No Yes

Option

Description This setting prevents the video BIOS to be initialized coming out of the S3 state. This setting allows the video BIOS to be initialized coming out of the S3 state. Some video controllers require this option to be enabled. This is the default setting.

Advanced ACPI Settings •• ACPI Version Features: Select the version of ACPI to be

compliant with.

•• ACPI APIC Support: It enables or disables the internal

I/O APIC and Multiprocessor tables. (Disabling the APIC ACPI SCI IRQ may require you to reinstall the operating system.)

•• AMI OEMB tableL: Set this value to allow the ACPI BIOS

to add a pointer to an OEMB table in the Root System Description Table (RSDT) table.

Note that OEMB table is used to pass POST data to the Embedded and Industrial Computing

21

Chapter 4

Bios Settings

AML code during ACPI O/S operations. Option Disabled Enabled

Description This option disables adding an OEMB table. This option enables adding an OEMB table.

Headless Mode This option is used to update the ACPI FACP table to indicate headless operations. Option Disabled

Enabled

Description This option disables updating the ACPI FACP table to indicate headless operation. This option enables updating the ACPI FACP table to indicate headless operation.

South Bridge ACPI Configuration •• Energy Lake Feature: It allows you to configure Intel’s

Energy Lake power management technology. The Energy Lake technology introduces two main endsuser features: the “Consumer Electronics” (CE)-like device power behavior, and maintaining system state and data integrity during power loss events).

•• It enables or disables the internal I/O APIC and

Multiprocessor Tables. (Disabling the APIC ACPI SCI IRQ may require you to reinstall the operating system.)

•• USB Device Wakeup From S3/S4: It determines how

the system responds to a USB device wake up event. Select enable to acknowledge the wake up event or disable to not acknowledge the wake up event.

•• High Performance Event Timer (HPET): It has been

defined by Intel and Microsoft for accurate control of multimedia events. It is much more accurate than the standard system timers.

•• HPET Memory Address: Select to assign the memory

address of the High Performance Event Timer.

Embedded and Industrial Computing

22

Chapter 4

Bios Settings

Remote Access Configuration You can use this screen to select options for the Remote Access Configuration. Use the up and down keys to select an item. Use the and keys to change the value of the selected option. The settings are described on the followingpages. The screen is shown at the right.

Remote Access You can disable or enable the BIOS remote access feature here. Option Disabled Serial

Description Set this value to prevent the BIOS from using Remote Access.. Set the value for this option to Serial to allow the system to use the remote access feature. The remote access feature requires a dedicated serial port connection.

Serial Port Number Select the serial port you want to use for console redirection. You can set the value for this option to either COM1 or COM2. Option Description 115200 8,n,1 Set this value to allow you to select 115200 as the baud rate (transmitted bits per second) of the serial port. 57600 8,n,1 Set this value to allow you to select 57600 as the baud rate (transmitted bits per second) of the serial port. 19200 8,n,1 Set this value to allow you to select 19200 as the baud rate (transmitted bits per second) of the serial port

Note: For instructions of setting up the remote access on the client program, refer to Appendix B Setting up the Remote Access.

ACPI Aware O/S No

Option

Description This setting should be set if the operating system in use does not comply with the ACPI (Advanced Configuration and Power Interface) specification. DOS®, Windows 3.x®, and Windows NT® are examples of non-ACPI aware operating systems.

Embedded and Industrial Computing

23

Chapter 4 Yes

Bios Settings

This setting should be set if the operating system complies with the ACPI (Advanced Configuration and Power Interface) specification. This is the default setting. Windows 95®, Windows 98® and Windows 2000® are examples of ACPI aware operating systems.

Hyper Threading Technology Hyper-threading is an Intel-proprietary technology used to improve parallelization of computations resulting in more efficient use of processor resources. Enble this option for the OS which supports Hyper Threading Technology and disable this option for the OS which does no support the Hyper Threading Technology.

Embedded and Industrial Computing

24

Chapter 4

Bios Settings

Boot Settings Select the Boot tab from the setup screen to enter the Boot BIOS Setup screen. You can select any of the items in the left frame of the screen, such as Boot Device Priority, to go to the sub menu for that item. You can display an Boot BIOS Setup option by highlighting it using the keys.

Boot Settings Configuration Select this tab to configure the preference of the booting process such as the booting mode and the displayed messages.

Boot Device Priority Select this tab to specify the order in which the system checks for the device to boot from.

Hard Disk Drives Select this tab to view the hard disk drives in the system.

Removable Drives Select this tab to view the removable drives attached to the system.

Embedded and Industrial Computing

25

Chapter 4

Bios Settings

Security Settings Select Security Setup from the Setup main BIOS setup menu. All Security Setup options, such as password protection and virus protection, are described in this section. To access the sub menu for the following items, select the item and press :

Supervisor Password Indicates whether a supervisor password has been set. If the password has been installed, Installed displays. If not, Not Installed displays.

User Password Indicates whether a user password has been set. If the password has been installed, Installed displays. If not, Not Installed displays.

Change Supervisor Password Select this option and press to access the sub menu. You can use the sub menu to change the supervisor password.

Change User Password Select this option and press to access the sub menu. You can use the sub menu to change the user password.

Clear User Password Select this option and press to access the sub menu. You can use the sub menu to clear the user password.

Embedded and Industrial Computing

26

Chapter 4

Bios Settings

Exit Menu Select the Exit tab from the setup screen to enter the Exit BIOS Setup screen. You can display an Exit BIOS Setup option by highlighting it using the keys. All Exit BIOS Setup options are described in this section. The Exit BIOS Setup screen is at right.

Exit Saving Changes When you have completed the system configuration changes, select this option to leave Setup and reboot the computer so the new system configuration parameters can take effect. Select Exit Saving Changes from the Exit menu and press . Save Configuration Changes and Exit Now? [Ok] [Cancel] appears in the window. Select Ok to save changes and exit.

Exit Discarding Changes Select this option to quit Setup without making any permanent changes to the system configuration. Select Exit Discarding Changes from the Exit menu and press .

Discard Changes and Exit Setup Now? [Ok] [Cancel] appears in the window. Select Ok to discard changes and exit. Discard Changes Select Discard Changes from the Exit menu and press .

Load Optimal Defaults It automatically sets all Setup options to a complete set of default settings when you Select this option. The Optimal settings are designed for maximum system performance, but may not work best for all computer applications. In particular, do not use the Optimal Setup options if your computer is experiencing system configuration problems. Select Load Optimal Defaults from the Exit menu and press .

Embedded and Industrial Computing

27

Appendix A Appendix A: Programming Watchdog Timer A watchdog timer is a piece of hardware that can be used to automatically detect system anomalies and reset the processor in case there are any problems. Generally speaking, a watchdog timer is based on a counter that counts down from an initial value to zero. The software selects the counter’s initial value and periodically restarts it. Should the counter reach zero before the software restarts it, the software is presumed to be malfunctioning and the processor’s reset signal is asserted. Thus, the processor will be restarted as if a human operator had cycled the power. For sample watchdog code, see watchdog folder under LEC-7100 Utility on the Driver and Manual CD

Programming Watchdog Timer { int temp, time; if( argc < 2 ) { help(); return -1; } if( strcmp(argv[1], “-wr”) == 0 ) { if( argc != 3 ) { help(); return -1; } write_w83627_reg(0x8, 0xf6, 0); //LDN=8, CRF6, stop timer first //clear status bit write_w83627_reg(0x8, 0xf7, read_w83627_reg(0x8, 0xf7) & 0xef );

Executing through the Command Line:

time = atoi(argv[2]);

Execute the WD.EXE file under DOS (WD.EXE and CWSDPMI. EXE should be placed on same directory), then enter the values from 0~255. The system will reboot automatically according to the time-out you set.

printf(“Setting Watchdog timer for System Reset...\n”);

Watch Dog sample code:

}

#include

else

#include

{

#include

help();

#include

return -1;

#include

}

#define INDEX_PORT 0x2e

return 0;

#define DATA_PORT 0x2f

}

void help()

int set_watchdog(int time)

{

{

printf(“Watchdog timer control for EM-9345\n\n”);

int temp;

printf(“wd.exe -wr xxx (1-255 sec)(Watchdog Control SYSTEM RESET)\n”);

outportb(INDEX_PORT, 0x87);

printf(“\n”); } int main(int argc, char *argv[])

set_watchdog(time); return 0;

delay(1); outportb(INDEX_PORT, 0x87); //Entering W83627HF Configuration temp = read_w83627_reg(0, 0x2b); //LDN=0, CR2B temp &= 0xf3;

Embedded and Industrial Computing

28

Appendix A

Programming Watchdog Timer

temp |= 0x04; write_w83627_reg(0, 0x2b, temp); //set watchdog pin

{For sample watchdog code, see watchdog folder on the Driver and Manual CD

write_w83627_reg(0x8, 0xf6, 0); //LDN=8, CRF6, stop timer first write_w83627_reg(0x8, 0xf5, read_w83627_reg(0x8, 0xf5) & 0xf7); //;set second write_w83627_reg(0x8, 0xf7, read_w83627_reg(0x8, 0xf7) & 0xef ); //;clear status write_w83627_reg(0x8, 0x30) | 0x01); //;enable

0x30,

read_w83627_reg(0x8,

LDN8 temp = time; write_w83627_reg(0x8, 0xf6, temp); //LDN=8, CRF6, set watchdog timer time-out value outportb(INDEX_PORT, 0xaa); //Exit W83627HF Configuration return 0; } int read_w83627_reg(int LDN, int reg) { outportb(INDEX_PORT, 0x07); //LDN register delay(1); outportb(DATA_PORT, LDN); delay(1); outportb(INDEX_PORT, reg); delay(1); return inportb(DATA_PORT); }int write_w83627_reg(int LDN, int reg, int value) { outportb(INDEX_PORT, 0x07); //LDN register delay(1); outportb(DATA_PORT, LDN); delay(1); outportb(INDEX_PORT, reg); delay(1); outportb(DATA_PORT, value); return 0; } Embedded and Industrial Computing

29

Appendix B

Setting up Remote Access

Appendix B: Setting up Remote Access Remote Access lets you monitor and configure a system from a remote terminal computer by re-directing keyboard input and text output through the serial port. This following steps illustrate how to use this feature. 1. Connect one end of the console cable to console port of the system and the other end to serial port of the Remote Client System. 2. Configure the following settings in the BIOS Setup menu for LEC-7100: BIOS > Advanced > Remote Access Configuration > Serial Port Mode > [9600, 8 , n ,1 ] 3. Configure Console Redirection on the client system. The following illustration is an example on Windows platform: a. A. Click the start button, point to Programs > Accessories > Communications and select Hyper Terminal. b. B. Enter any name for the new connection and select any icon. c. Click OK. d. From the “Connect to”. Pull-down menu, select the appropriate Com port on the client system and click OK. e. Select 9600 for the Baud Rate, None. for Flow contorl, 8 for the Data Bit, None for Parity Check, and 1 for the Stop Bit. Note: You will have to enable and configure this feature on the BIOS. Please refer to Remote Access on Chapter 4 BIOS Settings.

Embedded and Industrial Computing

30

Appendix C Appendix C: Digital Input/Output Control on the GPIO port The Digitanl I/O on the rear panel is designed to provide the input and output operations for the system. For sample DIO code, see 4bit-DIO folder under LEC-7100 Utility on the Driver and Manual CD. A DIO sample code: #include

Digital Input/Output Control { outportb(SUPERIO_INDEX, 0x87); delay(1); //delay some time outportb(SUPERIO_INDEX, 0x87); } void exit_sio_config() { outportb(SUPERIO_INDEX, 0xaa); }

#include

unsigned char read_sio_reg(unsigned char bank_no, unsigned char reg_no)

/* This program assume 4 Input and 4 output */

{

/* Digital Input=GP24,25,26,27==> mapping to OUT0~3 */

unsigned char reg_data;{

/* Digital Output=GP60,61,62,63 ==> mapping to IN0~3 */ #define SUPERIO_INDEX 0x2e #define SUPERIO_DATA 0x2f #define BANK_REG 0x07 #define GPIO0 0x01 #define GPIO1 0x02 #define GPIO2 0x04 #define GPIO3 0x08 #define GPIO4 0x10 #define GPIO5 0x20 #define GPIO6 0x40 #define GPIO7 0x80 int print_help(char *argv[]) { printf(“using: %s [i/o] [value]\n”, argv[0]); printf(“Note:all data in hexadecimal format\n”); printf(“eg: %s i ==>read Digital Input pin(3 2 1 0)\n”); printf(“ %s o 8 ==>write 1000 to Output pin(3 2 1 0)\n”); printf(“ %s o 0 ==>write 0000 to Output pin(3 2 1 0)\n”); printf(“ %s o f ==>write 1111 to Output pin(3 2 1 0)\n”); printf(“Program terminated !!!\n”); exit(1); } void enter_sio_config() Embedded and Industrial Computing

enter_sio_config(); outportb(SUPERIO_INDEX, BANK_REG); delay(1); outportb(SUPERIO_DATA, bank_no); delay(1); outportb(SUPERIO_INDEX, reg_no); delay(1); reg_data=inportb(SUPERIO_DATA); exit_sio_config(); return reg_data; } void write_sio_reg(unsigned char bank_no, unsigned char reg_no, unsigned char write_data) { enter_sio_config(); outportb(SUPERIO_INDEX, BANK_REG); delay(1); outportb(SUPERIO_DATA, bank_no); delay(1); outportb(SUPERIO_INDEX, reg_no); delay(1); outportb(SUPERIO_DATA, write_data); exit_sio_config(); } unsigned char Get_DIO_Input_value() 31

Appendix C

Digital Input/Output Control

{

} else {

unsigned char temp1;

if((*argv[1]==’o’)|(*argv[1]==’O’)) {

temp1 = (read_sio_reg(0x08,0xE5) & 0x0F);

io_mode=1; //;1 for write

return temp1;

// try to get the value which want to be write

}

ptr=argv[2];

void Set_DIO_Output_value(unsigned char temp1)

tmp=*ptr;

{

switch (tmp)

write_sio_reg(0x09,0xE5, 0x0F) | temp1);

(read_sio_reg(0x09,0xE5)

&

case ‘0’:

}

Output_value = 0;

void Init_GPIO(void) {

break;

write_sio_reg(0x09,0x30,0x02); //;enable GPIO2

case ‘1’:

function

Output_value = 1;

write_sio_reg(0x08,0x30,0x04); //;enable GPIO6

break;

function

case ‘2’:

write_sio_reg(0x09,0xE4,(read_sio_reg(0x09,0xE4) & ~(GPIO4+GPIO5+GPIO6+GPIO7))); GPI024,25,26,27=output

//;set

Output_value = 2; break; case ‘3’:

write_sio_reg(0x08,0xE4,(read_sio_reg(0x08,0xE4) | (GPIO0+GPIO1+GPIO2+GPIO3))); GPI060,61,62,63=input

{

//;set

Output_value = 3; break;

}

case ‘4’:

main(int argc, char *argv[])

Output_value = 4;

{

break;

int io_mode; //0: read 1:write

case ‘5’:

char *ptr;

Output_value = 5;

unsigned char tmp;

break;

unsigned char Input_value, Output_value;

case ‘6’:

printf(“=================================== ============\n”);

Output_value = 6;

printf(“ Digital IO test program for LEB-2010I Ver:1.0\n” );

case ‘7’:

printf(“=================================== ============\n”);

Output_value = 7;

Init_GPIO(); if ((argc4)) { print_help(argv); //;The parameter over or not enough } if((*argv[1]==’i’)|(*argv[1]==’I’)) { io_mode=0; //;0 for read Embedded and Industrial Computing

break;

break; case ‘8’: Output_value = 8; break; case ‘9’: Output_value = 9; break; 32

Appendix C

Digital Input/Output Control

case ‘a’:

printf(“ write done...\n”);

case ‘A’:

}

Output_value = 10;

}

break; case ‘b’: case ‘B’: Output_value = 11; break; case ‘c’: case ‘C’: Output_value = 12; break; case ‘d’: case ‘D’: Output_value = 13; break; case ‘e’: case ‘E’: Output_value = 14; break; case ‘f’: case ‘F’: Output_value = 15; break; default: print_help(argv); } } else { print_help(argv); } } if(io_mode==0) { Input_value = Get_DIO_Input_value(); printf(“ The Input pin of Digital IO = 0x%x\n”, Input_ value); } else { Set_DIO_Output_value(Output_value

Suggest Documents