background image

21

Programming Watchdog Timer

Embedded and Industrial Computing

Appendix F

    }

    printf(“\t\t Lanner Electronics Inc.  2010-01-06\n”);
    printf(“\t\t Watchdog timer reset for VES-403\n\n”);  
    
    init_Pin_init();
    
    time = atoi(argv[1]);
    
        printf(“\t\t  Setting  WatchDog  time  out  for  System 

Reset....\n”);
    
    set_uhg_watchdog(time);
    
return 0;
}

int set_uhg_watchdog(int time)
{
 

int temp;

 

temp = time;

 

write_w83627uhg_reg(0x08, 0xf6, temp);

 

delay(10);

 

return 0;

init_Pin_init()
{
 

outportb(index_port, 0x87);

 

delay(10);

 

outportb(index_port, 0x87);

 

delay(10);

//w83627uhg not setting place 

write_w83627uhg_

reg(0x8,  0x2b,  read_w83627_reg(0x8,  0x2b)  &  0xF3);  //

rx2b[3-2]=01
//w83627uhg not setting place 

write_w83627uhg_

reg(0x8,  0x2b,  read_w83627_reg(0x8,  0x2b)  |  0x04);  //

rx2b[3-2]=01
 

write_w83627uhg_reg(0x08, 

0x30, 

read_

w83627uhg_reg(0x08, 0x30) | 0x01);

 

delay(10);

 

write_w83627uhg_reg(0x08, 0xf6, 0x00);

 

delay(10);

}

int write_w83627uhg_reg(int ldn, int reg, int value)
{
 

outportb(index_port,0x07);

 

delay(10);

 

outportb(data_port, ldn);

 

delay(10);

 

outportb(index_port, reg);

 

delay(10);

 

outportb(data_port, value);

 

delay(10);

 

return 0; 

}
 
int read_w83627uhg_reg(int ldn, int reg)
{
 

outportb(index_port, 0x07);

 

delay(10);

 

outportb(data_port, ldn);

 

delay(10);

 

outportb(index_port, reg);

 

delay(10);

  return inportb(data_port);

Summary of Contents for LEC-2055

Page 1: ...Embedded Industrial Computing Hardware Platforms for Embedded and Industrial Computing LEC 2055 Preliminary User s Manual Publication date 2011 08 10...

Page 2: ...umes no responsibility for its use nor for any infringements upon the rights of third parties that may result from such use Acknowledgement Intel Pentium and Celeron are registered trademarks of Intel...

Page 3: ...10 Internal Connectors and Jumpers 11 Connectors and Jumpers List 12 Jumper Settings 13 Chapter 4 Hardware Setup 16 Preparing the Hardware Installation 16 Installing the System Memory 16 Installing a...

Page 4: ...ocessor Intel Atom N270 1 6GHz Chipset Intel 945GSE ICH7M System Technology DDR2 SODIMM x1 Memory Max Capacity DDR2 400 533 upp to 2GB Storage IDE CF socket Type I II x1 SATA 2 5 HDD SSD drive bay x1...

Page 5: ...dustrial Computing Package Contents Your package contains the following items LEC 2055 Fanless Embedded System Serial ATA Power Cable P N 080W1N0002001 Drivers and User s Manual CD P N S09OADA01H100 2...

Page 6: ...6 System Components Chapter 2 Embedded and Industrial Computing Chapter 2 System Components System Drawing Mechanical dimensions of the LEC 2055 Unit mm...

Page 7: ...ntel ICH7M Processor ATOM N270 Fintek F81865F H W Monitor WDT RS 232 1x Pin Header PS 2 KB MS Pin Header SATA VGA FSB GbE LAN 2x RTL8111D PCIe x2 IDE DDR2 400 533MHz SO DIMM Mini PCI Express Socket PC...

Page 8: ...rs as described below LINK ACT Yellow On Flashing The port is linking and active in data transmission Off The port is not linking SPEED Green Amber Amber The connection speed is 1000Mbps Green The con...

Page 9: ...provides RS232 serial communication RS 232 COM Port COMB1 COM3 on page 14 R3 VGA Port It connects an external VGA monitor or projector VGA in DB 19 connector VGA1 on page 15 R4 DC In power LEC 2055 su...

Page 10: ...d Industrial Computing Chapter 3 Board Layout External Connectors The following picture highlights the location of system input output connectors Refer to the table 3 1 Connector List for more details...

Page 11: ...onnectors and Jumpers The following picture highlights the location of internal connectors and jumpers Refer to the table 3 1 Connector List for more details PCOM1 CF1 USIM1 USBB1 J1 LEB 2055 DIMM1 VG...

Page 12: ...1 LPC Port 80 Pin Reserved for factory use DIMM1 200 PIN DDR2 SODIMM SOCKET J1 Front Panel Functions Connector P15 JSPIROM1 SPI BIOS Update Pin Header Reserved for factory use KM1 PS 2 Keyboard Mouse...

Page 13: ...OMB1 COM3 It is the RS 232 serial pin header Jumper Settings Serial ATA Connector SATA1 It is for connecting a 2 5 SATA harddisk to be served as your system s storage It can support SATA II which feat...

Page 14: ...nnecting a VGA monitor Antenna Power Connector ATNC1 It supplies power to the wireless signal amplifier if there is one attached to the system CompactFlash Connector CF1 It is for connecting a Compact...

Page 15: ...KE 30 SMB_CLK 2 3 3V 31 PETn0 3 NC 32 SMMB_DATA 4 GND 33 PETp0 5 NC 34 GND 6 1 5V 35 GND 7 CLKREQ 36 USB_D 8 UIM_PWR 37 RSVERD 9 GND 38 USB_D 10 UIM_DATA 38 RSVERD 11 REFCLK 40 GND 12 UIM_CLK 41 RSVER...

Page 16: ...device upside down 2 Unscrew the 4 rubber feet from the bottom cover 3 Open the cover 4 Installing the System Memory The motherboard supports DDR2 memory to meet the higher bandwidth requirements of...

Page 17: ...3G SIM Card Installation In order to insert the SIM card you will have to take 1 off the front panel first To take off the front panel unscrew the 4 screws on the front panel Align the cut corner of t...

Page 18: ...ard disk on the hard disk tray by using 4 2 mounting screws Plug the Serial ATA cable to the hard disk 3 Connect the Serial ATA power and data disk cables to 4 the Serial ATA power and disk connectors...

Page 19: ...ake a hole for the anchor in the surface on the 1 wall Use the following diagram as a guideline for placing the anchors Then press the anchor into the hole until it is flush with 2 the surface You may...

Page 20: ...will reboot automatically according to the time out you set For sample code look into the DOS WD folder Compile and Executing in Linux To run the Watchdog sample code you will need to compile first by...

Page 21: ...w83627uhg not setting place write_w83627uhg_ reg 0x8 0x2b read_w83627_reg 0x8 0x2b 0xF3 rx2b 3 2 01 w83627uhg not setting place write_w83627uhg_ reg 0x8 0x2b read_w83627_reg 0x8 0x2b 0x04 rx2b 3 2 01...

Page 22: ...ll be returned at customer s expense The following conditions are excluded from this 5 warranty Improper or inadequate maintenance by the customer Unauthorized modification misuse or reversed engineer...

Page 23: ...ing by Air Freight Sea Express ___ Others ________________ Item Model Name Serial Number Configuration Item Problem Code Failure Status Problem Code 01 D O A 02 Second Time R M A 03 CMOS Data Lost 04...

Reviews: