參數(shù)資料
型號(hào): AN2848
英文描述: Programming the eTPU
中文描述: 編程的eTPU
文件頁(yè)數(shù): 8/16頁(yè)
文件大?。?/td> 528K
代理商: AN2848
Programming the eTPU, Rev. 0
Function Design – Software
Freescale Semiconductor
8
The host compiler and linker do not require special features to use the eTPU information.
Information is provided in C compatible files and the subsequent compilation of the host project
can provide all the information for code passing and reference resolution.
The compiler compiles directly to eTPU microcode, often producing one microcode instruction
for multiple source instructions.
The mapping of entry addresses for service requests from the host or the channel hardware is
compiled from C statements in the eTPU source.
The new coding standard allows direct access to registers and other resources in the eTPU engine,
enabling the user to write “Assembly C” which provides the data flow analysis of a compiler in a
low level, assembly-like language.
Further information on the eTPU_C compiler can be obtained from Byte Craft.
A Simulator for the eTPU is available from Ash Ware, Inc. of Beaverton, Oregon. Ash Ware has had
extensive experience with simulation for the TPU, and cooperated during the development of the silicon
by co-validating the simulator. Most experienced users find that the Ash Ware stand-alone simulator is the
best way to develop their initial eTPU software. When systems require tight coupling of the eTPU and the
CPU, a full system simulator is also available for later stages of the project. For further information, please
contact Ash Ware.
5
Function Design – Software
Simple functions like the PWM described above do not require an eTPU. By simply reloading a down
counter, the hardware can sustain a PWM without service by a programmed engine. Suppose now that the
user wants not just a PWM, but a PWM implemented sine wave modulated by a feedback signal. For
example, the channel could produce a 40 kHz PWM waveform which is modulated by a 400 Hz sine wave
whose amplitude is driven by a control loop parameter. A low-pass filter and amplifier would be all that
was required to reproduce the desired 400 Hz signal. This means that the duty cycle of each period would
be determined by a sine value times an externally determined amplitude.
While a special piece of hardware could be designed to implement this function, the eTPU can handle it
quite well in software. The complete details of such a system are beyond the scope of this application note,
but it is instructive to look at the necessary design strategy. The engine in the eTPU could be given the
following equation:
HighTime =
(Amp * sin(2*PulseNumber/(PWM_frequency/Modulation_frequency))/MaxAmp
This works on a spreadsheet, and given a floating point and trig library, the compiler could produce code
for it. However, no sensible designer would write the algorithm in this way. The point is that the correct
design approach is to look through the requirement at the CPU executing the code and to design a optimal
algorithm within the constraints of the system.
相關(guān)PDF資料
PDF描述
AN2897 Using the eTPU Angle Clock
AN2904FHQ AN2904FHQ - Sound input/output interface IC for digital still camera
AN2933 Understanding the eTPU Channel Hardware
AN30210A Analog IC
AN304 Single Differential Amplifier
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
AN-2850 功能描述:罩類(lèi)、盒類(lèi)及殼類(lèi)產(chǎn)品 3.54 x 1.42 x 1.18" NATURAL FINISH ALUM RoHS:否 制造商:Bud Industries 產(chǎn)品:Boxes 外部深度:6.35 mm 外部寬度:6.35 mm 外部高度:2.56 mm NEMA 額定值: IP 等級(jí): 材料:Acrylonitrile Butadiene Styrene (ABS) 顏色:Red
AN-2850-A 功能描述:BOX ALUM NATURAL 3.54"L X 1.42"W 制造商:bud industries 系列:AN-A 零件狀態(tài):有效 容器類(lèi)型:帶安裝法蘭的盒子 大小/尺寸:3.540" 長(zhǎng) x 1.420" 寬(89.92mm x 36.07mm) 高度:1.180"(29.97mm) 面積(L x W):5.03"(32.5cm) 設(shè)計(jì):包含蓋 材料:金屬 - 鋁 顏色:自然色 厚度:0.110"(2.79mm) 特性:PCB 支座,防水 等級(jí):IP67, IP68, NEMA 4X,6,6P,12,13 材料可燃性等級(jí):- 發(fā)貨信息:從 Digi-Key 運(yùn)送 重量:0.375 磅(170.1g) 標(biāo)準(zhǔn)包裝:1
AN-2850-AB 功能描述:BOX ALUM BLACK 3.54"L X 1.42"W 制造商:bud industries 系列:AN-A 零件狀態(tài):有效 容器類(lèi)型:帶安裝法蘭的盒子 大小/尺寸:3.540" 長(zhǎng) x 1.420" 寬(89.92mm x 36.07mm) 高度:1.180"(29.97mm) 面積(L x W):5.03"(32.5cm) 設(shè)計(jì):包含蓋 材料:金屬 - 鋁 顏色:黑 厚度:0.110"(2.79mm) 特性:PCB 支座,防水 等級(jí):IP67, IP68, NEMA 4X,6,6P,12,13 材料可燃性等級(jí):- 發(fā)貨信息:從 Digi-Key 運(yùn)送 重量:0.375 磅(170.1g) 標(biāo)準(zhǔn)包裝:1
AN-2850-B 功能描述:罩類(lèi)、盒類(lèi)及殼類(lèi)產(chǎn)品 3.54 x 1.42 x 1.18" BLACK ALUMINUM RoHS:否 制造商:Bud Industries 產(chǎn)品:Boxes 外部深度:6.35 mm 外部寬度:6.35 mm 外部高度:2.56 mm NEMA 額定值: IP 等級(jí): 材料:Acrylonitrile Butadiene Styrene (ABS) 顏色:Red
AN-2851 功能描述:罩類(lèi)、盒類(lèi)及殼類(lèi)產(chǎn)品 2.52 x 2.28 x 1.38" NATURAL FINISH ALUM RoHS:否 制造商:Bud Industries 產(chǎn)品:Boxes 外部深度:6.35 mm 外部寬度:6.35 mm 外部高度:2.56 mm NEMA 額定值: IP 等級(jí): 材料:Acrylonitrile Butadiene Styrene (ABS) 顏色:Red