參數(shù)資料
型號(hào): AN2821
英文描述: eTPU Host Interface
中文描述: eTPU主機(jī)接口
文件頁(yè)數(shù): 5/24頁(yè)
文件大?。?/td> 546K
代理商: AN2821
Host Interface Software
eTPU Host Interface, Rev. .1
Freescale Semiconductor
5
4.2
eTPU Module Initialization
At the power up initialization, the eTPU peripheral hardware is configured by the host. The eTPU module
initialization includes the following steps:
1. Initialize eTPU global registers
— eTPU MISC Compare Register (ETPU_MISCCMPR)
— eTPU Module Configuration Register (ETPU_MCR)
— eTPU Time Base Configuration Register (ETPU_TBCR)
— eTPU STAC Bus Configuration Register (ETPU_STACR)
— eTPU Engine Configuration Register (ETPU_ECR)
2. Load eTPU code from flash memory to eTPU code RAM
3. Copy initial values of eTPU code global variables to eTPU data memory
Most of the information required to configure the eTPU global registers are not dependent on the eTPU
software implementation (i.e., time base, clock frequency, entry table address, etc.). The configuration
information is determined during the host peripheral configuration and resource allocation. Only the MISC
value depends on the actual eTPU software implementation; it has to be exported to the host program after
the eTPU code is compiled. The eTPU_C compiler provides a macro (
::ETPUmisc
) to calculate the MISC
value of the eTPU code image (see
Code Example 3
).
The eTPU code image is generated when the eTPU C program is compiled. To use this code in the host
program, the eTPU code image can be exported as an array of constant values. The eTPU_C compiler
provides a macro (
::ETPUcode
) to generate and export the eTPU code image (see
Code Example 3
). The
eTPU code image constant array is suitable to be included in the host source code. The host compiler
locates the eTPU code image array in the flash memory at host source code compile time. Since the eTPU
micro-engine can only fetch micro-instructions out of eTPU code memory (RAM), at the power up
initialization, the eTPU code image has to be loaded to eTPU code memory.
As it is in the standard C syntax, when the eTPU code is compiled, the global variables are allocated to the
eTPU data memory and the initial values are assigned to the corresponding memory locations. The
standard C syntax requires that all global variables are declared outside of any function. For eTPU, this
means that all global variables have to be declared outside of any execution thread. Since only the code in
a thread can be executed on eTPU, the global variable initial value assignment statements will not be
executed. The global variables cannot be initialized in the eTPU code; they must be initialized by the host.
The software statements have to be added to the host code to initialize the eTPU global variables. The
initialization values have to be exported from the eTPU compiler to host compiler. The eTPU_C compiler
provides a macro (
::ETPUglobalimage
) to capture initial values for all global variables and exports them as
a constant array (
Code Example 4
). At power up initialization, the global variable initial values are loaded
to the eTPU data memory for global variables.
The host interface macros have to be added to the eTPU code in
#pragma write
statements to export
the eTPU software information to the host compiler (
Code Example 3
). These statements will generate
header files that contain the MISC value, eTPU code image and global variable memory image (
Code
Example 4
).
相關(guān)PDF資料
PDF描述
AN2848 Programming the eTPU
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
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
AN-2821 功能描述:罩類(lèi)、盒類(lèi)及殼類(lèi)產(chǎn)品 6.89 x 3.15 x 2.36 NATURAL FINISH RoHS:否 制造商:Bud Industries 產(chǎn)品:Boxes 外部深度:6.35 mm 外部寬度:6.35 mm 外部高度:2.56 mm NEMA 額定值: IP 等級(jí): 材料:Acrylonitrile Butadiene Styrene (ABS) 顏色:Red
AN-2821-A 功能描述:BOX ALUM NATURAL 6.89"L X 3.15"W 制造商:bud industries 系列:AN-A 零件狀態(tài):有效 容器類(lèi)型:帶安裝法蘭的盒子 大小/尺寸:6.890" 長(zhǎng) x 3.150" 寬(175.01mm x 80.01mm) 高度:2.360"(59.94mm) 面積(L x W):21.7"(140cm) 設(shè)計(jì):包含蓋 材料:金屬 - 鋁 顏色:自然色 厚度:0.070"(1.78mm) 特性:PCB 支座,防水 等級(jí):IP67, IP68, NEMA 4X,6,6P,12,13 材料可燃性等級(jí):- 發(fā)貨信息:從 Digi-Key 運(yùn)送 重量:1.4 磅(635g) 標(biāo)準(zhǔn)包裝:1
AN-2821-AB 功能描述:BOX ALUM BLACK 6.89"L X 3.15"W 制造商:bud industries 系列:AN-A 零件狀態(tài):有效 容器類(lèi)型:帶安裝法蘭的盒子 大小/尺寸:6.890" 長(zhǎng) x 3.150" 寬(175.01mm x 80.01mm) 高度:2.360"(59.94mm) 面積(L x W):21.7"(140cm) 設(shè)計(jì):包含蓋 材料:金屬 - 鋁 顏色:黑 厚度:0.070"(1.78mm) 特性:PCB 支座,防水 等級(jí):IP67, IP68, NEMA 4X,6,6P,12,13 材料可燃性等級(jí):- 發(fā)貨信息:從 Digi-Key 運(yùn)送 重量:1.4 磅(635g) 標(biāo)準(zhǔn)包裝:1
AN-2821B 功能描述:BOX NEMA 4 ALUM 6.89X3.15X2.36 RoHS:是 類(lèi)別:盒,外殼,支架 >> 箱 系列:AN 產(chǎn)品目錄繪圖:SR Series Standard 特色產(chǎn)品:Customize Your Enclosure 標(biāo)準(zhǔn)包裝:1 系列:S 容器 - 類(lèi)型:盒 尺寸/尺寸:3.600" L x 2.250" W(91.44mm x 57.15mm) 高度:1.500"(38.10mm) 面積 (L x W):8.10"(52.3cm) 設(shè)計(jì):手持,分叉式雙側(cè) 材質(zhì):塑料 - ABS 顏色:杏黃 厚度:0.100"(2.54mm) 特點(diǎn):PCB 支座 額定值:IP40,NEMA 1 材料可燃性額定值:UL94 HB 裝運(yùn)信息:從 Digi-Key 運(yùn)送 重量:0.137 磅(62.14g) 相關(guān)產(chǎn)品:SR6005-ND - SCREW NO.4X 3/8 H/L PANSRPS-11-ND - GASKET 3.63 X 2.27 INCHSR52-ND - BOX RUBBER FEET FOR "A" SERIESSR410-ND - PC BOARD COPPER CLADSR310-ND - PC BOARD .1" STD HORIZ GRIDSR50-ND - RUBBER FEET (1XX,2XX) 其它名稱(chēng):111-I ALMOND111-IA111-IALMONDSR111-IA
AN-2821-B 功能描述:罩類(lèi)、盒類(lèi)及殼類(lèi)產(chǎn)品 6.89 x 3.15 x 2.36 BLACK FINISH RoHS:否 制造商:Bud Industries 產(chǎn)品:Boxes 外部深度:6.35 mm 外部寬度:6.35 mm 外部高度:2.56 mm NEMA 額定值: IP 等級(jí): 材料:Acrylonitrile Butadiene Styrene (ABS) 顏色:Red