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

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

Advertisement

CHAPTER 5 OPERATION CHECK USING SYSTEM SIMULATOR SM+
[Supplement 1] The changes in the data value of the CR000 register can be checked by using the SM+ watch
function.
<1> Click the [Watch] button in the source window to open the [Watch] window.
<2> Click [Add] to open the [Add Watch] window. (At this time, the [Watch] window is kept opened.)
<3> Enter "CR000" in the [Name] field and click the [OK] button after checking "Dec" under Radix. "CR000"
will be registered in the [Watch] window and the [Add Watch] window will be closed.
Click the [Watch] button.
<4> Execute the program and click the [SW] button in the I/O panel window. Check that the data value of
CR000 in the [Watch] window changes, depending on the number of [SW] button inputs.
Number of [SW] Button Inputs
0
1
2
3
Note The lighting patterns from the zeroth switch input are repeated after the fourth switch input.
Click
Note
CR000: 62
CR000: 31
CR000: 15
CR000: 7
Application Note U18887EJ1V0AN
CR000 is
registered.
This is an example of the screen after
CPU reset. The data value of CR000 is
as follows after CPU reset.
• CR000: 0
Data Value in [Watch] Window
Enter "CR000" and click
the [OK] button after
checking "Dec".
33

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents