Machine Vision MIRU130 Board
66
Watchgod Timer
A.3 Sample Program
//**************************************************************
//** **
//** Copyright(C) 2018, Axiomtek co., Ltd **
//** **
//** All Rights Reserved. **
//** **
//**************************************************************
#include <pc.h>
#include <stdio.h>
#define SIO_Index_Port 0x2E
#define SIO_Data_Port 0x2F
#define SIO_Enter_Configuration_Mode 0x01
#define SIO_Entry_key 0x55
#define SIO_LDN_SEL_REGISTER 0x07
#define SIO_LogicalDevice_GPIO 0x07
#define SIO_Offset_Countdown_Type 0x72
#define SIO_Offset_Countdown_Timer 0x73
#define SIO_Countdown_Type_Second 0xC0
#define SIO_Countdown_Type_Minute 0x40
#define SIO_Exit_Configuration_Mode 0x02
void main() {
int CountdownType=0;
int WDTtimer=0;
printf("Input Watch Dog Timer type, 1:Second ; 2:Minute :");
scanf("%d",&CountdownType);
printf("\nInput Timer to countdown:");
scanf("%d",&WDTtimer);
printf("Start to countdown...");
//
// Enter Configuration Mode
//
outportw(SIO_Index_Port,0x87);
outportw(SIO_Index_Port,SIO_Enter_Configuration_Mode);
outportw(SIO_Index_Port,SIO_Entry_key);
outportw(SIO_Index_Port,SIO_Entry_key);
//
// Select Logical device : GPIO
//
outportw(SIO_Index_Port,SIO_LDN_SEL_REGISTER);
outportw(SIO_Data_Port,SIO_LogicalDevice_GPIO);
Summary of Contents for MIRU130
Page 1: ...MIRU130 Machine Vision SBC with AMD RYZENTM Embedded V1605B V1807B User s Manual ...
Page 6: ...vi This page is intentionally left blank ...
Page 10: ...Machine Vision MIRU130 Board 4 Introduction This page is intentionally left blank ...
Page 12: ...Machine Vision MIRU130 Board 6 Board and Pin Assignments Bottom View Side View ...
Page 13: ...Machine Vision MIRU130 Board Board and Pin Assignments 7 2 2 Board Layout Top View ...
Page 14: ...Machine Vision MIRU130 Board 8 Board and Pin Assignments Bottom View ...
Page 34: ...Machine Vision MIRU130 Board 28 I O Connection 5V Voltage Type ...
Page 38: ...Machine Vision MIRU130 Board 32 Operating This page is intentionally left blank ...
Page 40: ...Machine Vision MIRU130 Board 34 Hardware Description 5 4 I O Port Address Map ...
Page 42: ...Machine Vision MIRU130 Board 36 Hardware Description ...
Page 43: ...Machine Vision MIRU130 Board Hardware Description 37 ...
Page 44: ...Machine Vision MIRU130 Board 38 Hardware Description ...
Page 45: ...Machine Vision MIRU130 Board Hardware Description 39 ...
Page 61: ...Machine Vision MIRU130 Board AMI BIOS Setup Utility 55 Console Redirection Settings ...