2 / 2 6 / 2 0 0 2 2 : 0 6 P M 2 / 2 6 / 2 0 0 2
1 4 3
N M I L - 9 0 0 3 R E A L T I M E C L O C K
C S A M P L E P R O G R A M
#include c:\NMIY0031\clib\common51.c
#include c:\NMIY0031\clib\syslib51.c
#include c:\NMIY0031\clib\stdio.h
#include c:\NMIY0031\clib\alloc.c
#include c:\NMIY0031\clib\peekpoke.c
#include c:\NMIY0031\clib\getchar.c
#include c:\NMIY0031\clib\fgetc.c
#include c:\NMIY0031\clib\fgets.c
#include c:\NMIY0031\clib\fprintf.c
#include c:\NMIY0031\clib\fputc.c
#include c:\NMIY0031\clib\fputs.c
#include c:\NMIY0031\clib\fscanf.c
#include c:\NMIY0031\clib\is.c
#include c:\NMIY0031\clib\atoi.c
#include c:\NMIY0031\clib\itoa.c
#include c:\NMIY0031\clib\itoab.c
#include c:\NMIY0031\clib\puts.c
#include c:\NMIY0031\clib\strlen.c
#include c:\NMIY0031\clib\reverse.c
#include c:\NMIY0031\clib\ungetc.c
#include c:\NMIY0031\clib\utoi.c
#define SEC_1_ADR
0xFFE0 /* register addresses */
#define SEC_10_ADR 0xFFE1
#define MIN_1_ADR
0xFFE2
#define MIN_10_ADR
0xFFE3
#define HOUR_1_ADR 0xFFE4
#define HOUR_10_ADR 0xFFE5
#define DAY_1_ADR
0xFFE6
#define DAY_10_ADR
0xFFE7
#define MONTH_1_ADR 0xFFE8
#define MONTH_10_ADR 0xFFE9
#define YEAR_1_ADR 0xFFEA
#define YEAR_10_ADR 0xFFEB
#define DOW_ADR
0xFFEC
#define REG_D
0xFFED
#define REG_E
0xFFEE
#define REG_F
0xFFEF
/**************************************************************************************/
/*
*/
/* This program demonstrates use of the NMIL-9003 clock card
*/
/* with the NMIY-0031 processor card as controller using the
*/
/* Vertical Stacking Connector.
*/
/*
*/
/* The base address of the clock card is selected as 0xFFE0.
*/
/* the NMIL-9003 requires sixteen consecutive data addresses.
*/
/* This sample is coded for reading clarity in displaying the
*/
/* register manipulation for setting and reading the clock.
*/
/*
*/
/* The clock is set from and read to MaxTerm to demonstrate */
/* interactive use. Memory used in programming was 32Kb in */
/* U3 and U4. U3 is set for shared program and memory.
*/
/*
*/
/* Systems not using 32Kb memory devices could use the keypad
*/
/* and LCD to conserve memory use.
*/
/*
*/
/**************************************************************************************/
Summary of Contents for NMIY-0031
Page 1: ...2 2 6 2 0 0 2 2 0 6 P M 1 NMIY 0031 Single Board Computer Covers NMIY 0031 V1 0 4 22 96 ...
Page 2: ...2 2 6 2 0 0 2 2 0 6 P M 2 ...
Page 6: ...2 2 6 2 0 0 2 2 0 6 P M 6 ...
Page 8: ...2 2 6 2 0 0 2 2 0 6 P M 8 ...
Page 14: ...2 2 6 2 0 0 2 2 0 6 P M 1 4 ...
Page 30: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 3 0 ...
Page 32: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 3 2 ...
Page 50: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 5 0 ...
Page 52: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 5 2 ...
Page 54: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 5 4 ...
Page 56: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 5 6 ...
Page 58: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 5 8 ...
Page 60: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 6 0 ...
Page 62: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 6 2 ...
Page 68: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 6 8 ...
Page 70: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 7 0 ...
Page 72: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 7 2 ...
Page 76: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 7 6 ...
Page 82: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 8 2 ...
Page 84: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 8 4 ...
Page 86: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 8 6 ...
Page 88: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 8 8 ...
Page 90: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 9 0 ...
Page 102: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 0 2 ...
Page 108: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 0 8 ...
Page 110: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 1 0 ...
Page 114: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 1 4 ...
Page 118: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 1 8 ...
Page 126: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 2 6 ...
Page 128: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 2 8 ...
Page 134: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 3 4 ...
Page 148: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 4 8 ...
Page 150: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 5 0 ...
Page 152: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 5 2 ...
Page 154: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 5 4 ...
Page 156: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 5 6 ...
Page 168: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 6 8 ...
Page 170: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 7 0 ...
Page 172: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 7 2 ...
Page 174: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 7 4 ...
Page 178: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 7 8 ...