Figure 4-7 Operation Of The Free-Run Timer; Table 4-5 Correspondence Between The Output Compare Values And The Switchings - Fujitsu FR Family FR60 Lite User Manual

32-bit microcontroller bits pot red can motor board
Hide thumbs Also See for FR Family FR60 Lite:
Table of Contents

Advertisement

Initialize the 16-bit free-run timer and 16-bit output compare functions as shown in "Table 4-3
Description of the timer control registers and setting values", "Table 4-4 Description of the output
compare registers and setting values".
After the initialization, running the 16-bit free-run timer starts a count up using the value configured to
CPCLRB0 as the carrier peak as shown in "Figure 4-7 Operation of the free-run timer". When the carrier
peak is reached, an interrupt takes place, and according to information about the hall elements on that
occasion, the outputs are switched on/off through comparisons with the output compare values.
After that, a countdown to the carrier bottom (0) is performed. When the count reaches 0, a count up
starts again, and this sequence is repeated.
CPCLRB0 value
0
The output compare values are respectively configured by OCCPB0-5. According to the values, the
outputs of U-High, U-Low, V-High, V-Low, W-High, and W-Low are turned on/off by the macro. " Table
4-5 Correspondence between the output compare values and the switchings" shows their association. In
addition to that, "Figure 4-8 U-High output to output comparisons" shows an example of the U-High
output.

Table 4-5 Correspondence between the output compare values and the switchings

Register name
OCCPB0
OCCPB1
OCCPB2
OCCPB3
OCCPB4
OCCPB5
Carrier peak
(occurrence of an interrupt)

Figure 4-7 Operation of the free-run timer

Switching
U-High
U-Low
V-High
V-Low
W-High
W-Low
- 73 -
Carrier button
AN07-00180-3E
Time→

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb91f267n

Table of Contents