Mitsubishi — 10.2 High-speed Timers

Chapter 10 High-speed Counters and High-speed Timers  Function block 10.2 High-speed Timers The setting of high-speed counters is described below. Example 1: Using C20s in general mode 1. Users have to select the general mode, and enable the timer, that is, they have to write K4 into K1SM208. 2. C208 is enabled. The interval between the rising edge of a pulse received through X0.2 and the falling edge of the pulse is measured. The interval is written into C209. (Unit: 0.01 microseconds) X0.2 t1 t2 t C209 C209 General mode Unit:

0.01 μs 10-5 Number Counter Mode of measuring time External Storage Device Setting value signal device 0 C200 K1SM200 Bit 3 Bit 2 Bit 1 Bit 0 Enabling Selecting - - a timer a mode Bit 2: Enabling a timer Bit 0: (1) 0: General mode (The interval between the rising edge of a pulse and the falling edge of the pulse is measured.) (2) 1: Cyclic mode (The interval between the rising edge of a pulse and the rising edge of the next pulse is measured.) X0.0 C201 1 C204 K1SM204 X0.1 C205 2 C208 K1SM208 X0.2 C209 3 C212 K1SM212 X0.3 C213 Bit 3 Bit 2 Bit 1 Bit 0 Enabling a timer - Selecting a mode