參數(shù)資料
型號: GPTRM
英文描述: General-Purpose Timer Reference Manual
中文描述: 通用定時(shí)器參考手冊
文件頁數(shù): 59/90頁
文件大小: 647K
代理商: GPTRM
GPT
REFERENCE MANUAL
APPLICATIONS AND EXAMPLES
MOTOROLA
10-1
SECTION 10APPLICATIONS AND EXAMPLES
Microcontroller applications generally require interfacing to external events and then
provide a response. This response may be based on the timing relationship between
the event and a timing reference. A controller design may also require general-pur-
pose I/O to select certain functions or to monitor the state of sensors such as limit
switches.
Examples in this section show how the GPT can be used in different controller de-
signs.
10.1 Electronic Motor Speed Control
An example of this timing relationship is the tachometer feedback signal in a motor
controller circuit and the controller output signal that drives the motor. An input capture
can automatically record the time of a tachometer pulse as each pulse occurs. This
input capture can be used to determine the velocity and acceleration rate of the motor.
The value of the timer counter is latched into the input capture register each time a
pulse is generated from the tachometer. The velocity can be determined by subtract-
ing two successive input captures. This value multiplied by the time between TCNT
counts gives the time between tach pulses. For example, if the MCU is operating at
16.77 MHz and the prescaler is set to divide by 256, the TCNT will be clocked at a
65536-Hz rate. This gives a time of 15.26 microseconds between each count. A
scheme to drive a motor can be implemented by taking the ratio of the measured ve-
locity in counts and a setpoint velocity in counts. This gives a value that represents the
percentage of error from the setpoint in counts. This percentage of error can be used
by the CPU to compute the value of a control signal used to control the velocity of the
motor.
The tachometer can be any type that produces a digital signal. In
Figure 10-1
an op-
tical tach is used. The number of pulses produced per revolution should be such that
the TCNT does not increment more than 65536 counts at the lowest speed. This keeps
the software from having to consider the effects of the counter rolling over. Also, at the
maximum motor speed, there must be adequate time between tach pulses for the
TCNT to increment. The processor must also have enough time to service the interrupt
before another interrupt occurs.
The output control signal to the motor driver can be a pulse-width modulated (PWM)
signal. In the example, the motor is driven by a switching amplifier. The PWM signal
switches the current on and off through the motor at the PWM signal's periodic rate.
The average motor current is determined by the ratio of on time to off time. The longer
the PWM signal is at logic level one, the higher the average motor current. The per-
centage of error term must be manipulated to take into account motor and load char-
acteristics. The modified error term is used to change the current PWMx value. The
new PWMx value keeps the motor at the proper velocity.
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.
相關(guān)PDF資料
PDF描述
GR1081B Optoelectronic
GR1081C Optoelectronic
GR1082B Optoelectronic
GR1082C Optoelectronic
GR1083B Optoelectronic
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
GPTS203211B 功能描述:SWITCH PUSHBUTTON SPST 1A 30V RoHS:是 類別:開關(guān) >> 按鈕 系列:GPTS 標(biāo)準(zhǔn)包裝:1 系列:A16 類型:標(biāo)準(zhǔn),發(fā)光式 電路:雙刀雙擲 開關(guān)功能:開-瞬時(shí) 額定電流:5A(AC) 額定電壓 - AC:125V 額定電壓 - DC:- 觸動器類型:方形,按鈕 顏色 - 致動器/蓋:黃 發(fā)光類型,顏色:LED,黃 發(fā)光電壓:12 VDC 安裝類型:前面板安裝 端接類型:焊接,快速連接 - 0.110"(2.8mm) 防護(hù)等級:IP65 - 防塵/防油/防水 特點(diǎn):- 面板切口尺寸:圓形 - 直徑 16.00mm 包裝:散裝 工作溫度:-10°C ~ 55°C 機(jī)械壽命:2,000,000 次循環(huán) 電氣壽命:100,000 次循環(huán) 其它名稱:A165LAYM12D2
GPTS203211BR2 制造商:CWIND 制造商全稱:CW Industries 功能描述:PUSH BUTTON SWITCH
GPTS203212B 功能描述:SWITCH PUSHBUTTON SPST 1A 30V RoHS:是 類別:開關(guān) >> 按鈕 系列:GPTS 標(biāo)準(zhǔn)包裝:1 系列:A16 類型:標(biāo)準(zhǔn),發(fā)光式 電路:雙刀雙擲 開關(guān)功能:開-瞬時(shí) 額定電流:5A(AC) 額定電壓 - AC:125V 額定電壓 - DC:- 觸動器類型:方形,按鈕 顏色 - 致動器/蓋:黃 發(fā)光類型,顏色:LED,黃 發(fā)光電壓:12 VDC 安裝類型:前面板安裝 端接類型:焊接,快速連接 - 0.110"(2.8mm) 防護(hù)等級:IP65 - 防塵/防油/防水 特點(diǎn):- 面板切口尺寸:圓形 - 直徑 16.00mm 包裝:散裝 工作溫度:-10°C ~ 55°C 機(jī)械壽命:2,000,000 次循環(huán) 電氣壽命:100,000 次循環(huán) 其它名稱:A165LAYM12D2
GPTS203212BR2 制造商:CWIND 制造商全稱:CW Industries 功能描述:PUSH BUTTON SWITCH
GPTS203312B 功能描述:SWITCH PUSHBUTTON SPST 1A 30V RoHS:是 類別:開關(guān) >> 按鈕 系列:GPTS 標(biāo)準(zhǔn)包裝:1 系列:A16 類型:標(biāo)準(zhǔn),發(fā)光式 電路:雙刀雙擲 開關(guān)功能:開-瞬時(shí) 額定電流:5A(AC) 額定電壓 - AC:125V 額定電壓 - DC:- 觸動器類型:方形,按鈕 顏色 - 致動器/蓋:黃 發(fā)光類型,顏色:LED,黃 發(fā)光電壓:12 VDC 安裝類型:前面板安裝 端接類型:焊接,快速連接 - 0.110"(2.8mm) 防護(hù)等級:IP65 - 防塵/防油/防水 特點(diǎn):- 面板切口尺寸:圓形 - 直徑 16.00mm 包裝:散裝 工作溫度:-10°C ~ 55°C 機(jī)械壽命:2,000,000 次循環(huán) 電氣壽命:100,000 次循環(huán) 其它名稱:A165LAYM12D2