- 9 -
Appendix
C language Code
/*-----
Include Header Area -----*/
#include "math.h"
#include "stdio.h"
#include "dos.h"
/*-----
routing, sub-routing -----*/
void main()
{
outportb(0x2e, 0x87); /* initial IO port twice */
outportb(0x2e, 0x87);
outportb(0x2e, 0x2B); /* select CR2B */
outportb(0x2e+1, 0x00); /* update CR2B bit4 to 00h */
/* Set PIN89 as WDTO */
outportb(0x2e, 0x07); /* point to logical device selector */
outportb(0x2e+1, 0x08); /* select logical device 8 */
outportb(0x2e, 0x30); /* select CR30 */
outportb(0x2e+1, 0x01); /* update CR30 to 01h */
outportb(0x2e, 0xf0); /* select CRF0 */
outportb(0x2e+1, 0x00); /* update CRF0 to 00h */
outportb(0x2e, 0xf); /* select CRF to set timer unit */
outportb(0x2e+1, 0x00); /* update CRF bit2, 0:sec; 1:Min. */
outportb(0x2e, 0xF6); /* select CRF6 */
outportb(0x2e+1, 0x0); /* update CRF6 to 0h ( sec) */
outportb(0x2e, 0xAA); /* stop program W83627HF, Exit */
}
Summary of Contents for EmModule-621E
Page 1: ...EmModule 621E PC 104 CPU Module User s Manual Version 1 0 2009 11 85 85...
Page 2: ...This page is intentionally left blank...
Page 5: ...Introduction 1 Chapter 1 Introduction Chapter 1 Introduction...
Page 11: ...Introduction 1 10 Board Dimensions Unit mm...
Page 12: ...Introduction Unit mm...
Page 13: ...Installation 2 Chapter 2 Installation Chapter 2 Installation...
Page 29: ...25 BIOS 3 Chapter 3 BIOS Chapter 3 BIOS...
Page 47: ...43 BIOS 3 8 PC Health Status Current CPU Temperature CPU MEM VCore VCC3 5V 12V VBAT V 5VSB...
Page 57: ...53 Appendix 4 Chapter 4 Appendix Chapter 4 Appendix...
Page 64: ...60 Appendix This page is intentionally left blank...