Fujitsu F2MC-16L Series User Manual page 57

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

Advertisement

default:
}
}
__interrupt void Timer(void)
{
static int tctr = 0;
if (!TBTC_TBOF)
if (!(tctr++ % 2))
TBTC_TBR = 0;
Poll();
}
void initWDT(void)
{
__set_vect(0x22, Timer, 0xFF);
ICR11 = TBLEV;
TBTC = 0x9b;
cycl*/
}
void setClk(BYTE cks)
{
CKSCR_MCS = 1;
CKSCR_CS0 = cks & 1;
CKSCR_CS1 = cks>>1 & 1;
CKSCR_MCS = 0;
while (CKSCR_MCM);
}
void main(void)
{
int eflg, ch, keep2;
unsigned errctr = 0, tmp;
union {BYTE __far * fptr;
} addr;
__set_vect(8, start, 0x88);
setClk(3);
initWDT();
__set_il(7);
__EI();
LEDDISP0 = 0xFF;LEDDISP1 = 0xFF;
while (1) {
bios_str(Msg);
addr.fptr = (WORD __far *)0xF80000L;
for (ctr = 0; ctr <= 0xff; ctr++) {
bios_hexb((BYTE)ctr);
bios_str("\b\b");
© FUJITSU Mikroelektronik GmbH 1996
FUJITSU MB90675-Evaluation Board - User Manual
if (isdigit(ch)) {
ch = ch-'0';
ctr &= 0xf; ctr |= ch << 4;
} else if (isxdigit(ch)) {
ch
ctr &= 0xf; ctr |= ch << 4;
} else
bios_put(7);
}
return;
USERLED ^= 1;
WORD ctr ;
= (ch&0xdf) -'A'+0xA;
/* switch every 4. occurr.*/
/* anywhere in this module*/
/* level, no EI2OS */
/* reset vector */
/* PLL clock 16 MHz */
/* Init timer interrupt */
/* ILM setting */
/* enable interrupts */
/* clear LED displays */
/* test byte */
/* ding dong */
/* no request */
/* enable, reset, 2^19
/* switch off PLL */
/* switch PLL on */
- 57 -

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb90675 series

Table of Contents