NEC 78K0S/K 1+ Series Application Note page 22

Sample program (16-bit timer/event counter 00) interval timer
Hide thumbs Also See for 78K0S/K 1+ Series:
Table of Contents

Advertisement

(2) Sample program
In the example below, "x" in (1) Register settings is set to "0".
<1> Assembly language (when using the 78K0S/KA1+ and 78K0S/KB1+ microcontrollers)
CLR1
P3.1
CLR1
PM3.1
MOV
CRC00, #00000000B
MOVW
CR000, #99
MOV
PRM00, #00000001B
MOV
TOC00, #00000111B
MOV
TMC00, #00001100B
<2> C language (when using the 78K0S/KA1+ and 78K0S/KB1+ microcontrollers)
P3.1 = 0;
PM3.1 = 0;
CRC00 = 0b00000000;
CR000 = 99;
PRM00 = 0b00000001;
TOC00 = 0b00000111;
TMC00 = 0b00001100;
22
CHAPTER 4 SETTING METHODS
Application Note U18887EJ1V0AN

Advertisement

Table of Contents
loading

This manual is also suitable for:

78k0s/ka1+78k0s/kb1+78k0s/ku1+78k0s/ky1+

Table of Contents