AN07-00180-3E
Initialize the 16-bit free-run timer and 16- bit output compare functions as shown in Table 4-3
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.
Carrier peak
(occurrence of an interrupt)
CPCLRB0 value
0
Time→
Carrier button
Figure 4-7 Operation of the free-run timer
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
addition to that, “ Figure 4-8 U-High output to output comparisons ” shows an exa mple 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
Switching
U-High
U-Low
V-High
V-Low
W-High
W-Low
- 73 -
相关PDF资料
CANADAPT28 KIT ADAPTER CANDEMOBOARD 28PLCC
CAT24AA01WI-GT3 IC EEPROM SERIAL 1KB I2C 8SOIC
CAT24AA02WI-G IC EEPROM SERIAL 2KB I2C 8SOIC
CAT24C01ZI-G IC EEPROM SERIAL 1KB I2C 8MSOP
CAT24C03WI-G IC EEPROM SERIAL 2KB I2C 8SOIC
CAT24C04ZI-G IC EEPROM SERIAL 4KB I2C 8MSOP
CAT24C05YI-G IC EEPROM SERIAL 4KB I2C 8TSSOP
CAT24C08TDI-GT3 8KB I2C SER EEPROM TSOT 23
相关代理商/技术参数
CAN1671-15S 制造商:Techspray 功能描述:TECHSPRAY DUSTER 15 OZ FILL
CAN1747-10S 制造商:Techspray 功能描述:
CAN-24 制造商:Mencom 功能描述:
CAN4311111002451K 制造商:Yageo Corporation 功能描述:ANTENNA BLUETOOTH 2.45GHZ 制造商:Yageo / Phycomp 功能描述:ANTENNA, BLUETOOTH, 2.45GHZ
CAN4311111002701K 制造商:Yageo Corporation 功能描述:
CAN4311112001881K 制造商:Yageo Corporation 功能描述:
CAN4311113011582K 制造商:Yageo Corporation 功能描述:6230 Multilayer Ceramic Chip Antenna 制造商:Yageo Corporation 功能描述:6320 Multilayer Ceramic Chip Antenna
CAN4311115002451K 制造商:Yageo Corporation 功能描述: