Example 2 - Fujitsu F2MC-16L Series User Manual

Hide thumbs Also See for F2MC-16L Series:
Table of Contents

Advertisement

}
}
7.2.2.

Example 2

/*
*/
#include "global.h"
#include "tinybios.h"
#include <ctype.h>
#include <samples\mb906fm.h>
#undef EXTERN
#define EXTERN
#include <samples\ic.h>
#include <samples\tb.h>
#include <samples\low.h>
#undef EXTERN
#define EXTERN extern
#define TBMAX
interr*/
#define TBLEV
#define POLLCTR 100000L;
extern __interrupt void start(void);
void Poll(void);
__interrupt void Timer(void);
void initWDT(void);
void SetClk(BYTE cks);
/* some global variables to work with symbols */
BYTE LEDhex[] ={0xC0, 0xF9, 0xA4, 0xB0, 0x99, 0x92, 0x82, 0xD8,
0x80, 0x90, 0x88, 0x83, 0xC6, 0xA1, 0x86, 0x8E};
long ctr;
int keep = 0;
const char Msg[] = "\15\12\t------------------------------------------"
"\15\12\t
"\15\12\t------------------------------------------\15\12"
"\15\12\t
"\15\12\t
"\15\12\t 0-9,A-F: upper 4 bits of value
"\15\12\15\12Press any key"
"\15\12\t Write/Verify 64K block with: ";
void Poll(void)
{
int ch;
if (bios_poll()) {
switch(ch = bios_get()) {
case 'K':
case 'k':
- 56 -
FUJITSU MB90675-Evaluation Board - User Manual
Example for searching bad addresses
8
6
ESC: Monitor Reset
K: keep bad address&value "
case 27:
bios_res();
break;
keep ^= 0xFFFF;
break;
/* number of timebase timer
/* level of tb interrupt */
MemTest at page 8"
© FUJITSU Mikroelektronik GmbH 1996
"
"

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb90675 series

Table of Contents