Download Print this page

Panasonic PanaXSeries MN103S65G User Manual page 16

Panasonic microcomputer user's manual

Advertisement

/* A port 0 is set as TM0IO (input). */
TM0BR = TM0_COUNT4;
data |= TM0MD_LOAD1;
TM0MD = data;
data |= TM0MD_START1;
TM0MD = data;
data &= ~TM0MD_START1;
TM0MD = data;
data |= TM0MD_ENABLE1;
TM0MD = data;
}
The sample of a 8-bit timer is recorded on attached CD-ROM.
Inclusion directory:program\initial\timecounter\timer8\
program
:timer8evt.c
/* cycles/min ratio setup */
/* count source setup
/* initialize timer LDE=1 */
/* Timer start LDE=0 */
/* Timer permission CNE=1 */
2-39
2-4 A 8-bit 16-bit timer, a peripheral initial
input TMIN0*/

Advertisement

loading