Download Print this page

Panasonic MICROCOMPUTER MN103S Application Note page 19

Panasonic laptop - computer user manual
Hide thumbs Also See for MICROCOMPUTER MN103S:

Advertisement

asm ("
nop\n");
asm ("
nop\n");
TM1MD = TM1MD | 0x80;
while(1){
}
}
/*----------------------------------------------
Operation initial setting
----------------------------------------------*/
void initialize(void)
{
asm ("
and
0xF0FF,PSW\n");
asm ("
nop\n");
asm ("
nop\n");
CPUM
= 0x0000;
}
/*-----------------------------------------------
Timer 1 underflow
-----------------------------------------------*/
void int_timer1(void)
{
if(P4OUT & 0x10){
P4OUT = 0x00;
}
else{
P4OUT = 0x10;
}
}
/* Start the counter */
/* Disable all maskable interrupts */
/* Set normal mode */
/* Set P44 Low(VSS level) */
/* Set P44 High(VDD level) */
Chapter 3
Microcomputer Basics 1
8-bit timer operation
III−43

Advertisement

loading