5. Using the Memory Address Map
CNT16-8(FIT)GY, CNT16-8L(FIT)GY
45
Channel settings
- Startup
register
This command controls the corresponding count operation of the channel. The command controls
the count operation by setting the data of corresponding channel to 01h.
Setting "01h" to the setting for each channel starts counting on that channel. Setting "00h" stops
counting.
00h
:
Stop
01h
:
Start
Setting the module start setting (01h) to the module startup register sets the startup registers for all
channels to "01h".
CAUTION
The count data does not change while the count is stopped.
- Status
reset
When a carry-up occurs on a channel count, the data for the corresponding channel in "module data
area", "channel data", and "status" goes to "01h".
The next carry-up does not occur if the "status" for a channel is "01h". Using status reset to output
"01" to the corresponding channel clears the sense and permits the next count carry-up to occur.
00h : No operation
01h : Sense reset
Changes to "00h" when sense reset processing completes.
- Counter
initialization
Resets the counter data of each channel to 0000h.
00h : No operation
01h : Counter initialization
Changes to "00h" when counter initialization completes.
- Preset
counter
value
By setting values, you can set a preset value to the count for each channel.
The preset counter value is stored as a little endian value.
Table 5.3. Preset counter value
D7 D6 D5
D4
D3
D2
D1
D0
+00h A7 A6 A5
A4
A3
A2
A1
A0
+01h A15 A14 A13
A12
A11
A10
A9
A8
Changes to "0000h" when preset processing completes.