參數(shù)資料
型號: AN2821
英文描述: eTPU Host Interface
中文描述: eTPU主機(jī)接口
文件頁數(shù): 7/24頁
文件大?。?/td> 546K
代理商: AN2821
Host Interface Software
eTPU Host Interface, Rev. .1
Freescale Semiconductor
7
initiating the eTPU function execution by issuing a host service request. Once the host service request for
initialization is recognized, the eTPU will transition to the initialization state.
Unlike in the host CPU, the eTPU function parameters passed from host are not placed on the stack.
Instead, memory in the function frame is allocated to accommodate every function parameter. The host
passes the eTPU function parameters by writing directly to the eTPU function frame. The host needs to
know the function frame for each channel, as well as the data type and address offset for every parameter.
The function frame can be obtained by reading the eTPU channel base address register. The eTPU_C
compiler provides the host interface macros to export the offset of each function parameter; use them in
#pragma write
directives to export this information.
The function parameters can be 8-bit, 16-bit, or 32-bit. The eTPU compiler can allocate function
parameters at 8-, 16-, 24-, or 32-bit boundaries. To pass 8-bit or 16-bit parameters, the host can directly
write to eTPU data memory.
Most eTPU data registers and timers are 24-bit. To pass 24-bit eTPU function parameters, the host needs
to pass a 32-bit parameter to the eTPU. Since the host cannot access eTPU data memory on the 24-bit
boundary, the host code needs to realign the parameter to the 32-bit address boundary before writing it to
the function frame. It is the responsibility of the host to ensure the function parameters are within proper
range. It is also the responsibility of the host when writing the 24-bit parameter to ensure that the upper
byte on the function frame is not corrupted. Similarly, when reading a 24 bit return value from the function
frame, the host code must mask the upper byte before returning the correct 24 bit value. To simplify the
interface code, it is recommended to access the 24-bit function parameter by using PSE memory space. An
example of the eTPU function initialization is listed in
Code Example 7
(
etpu_pwm_init()
).
4.5
eTPU and Host Interactive Control
Once the eTPU function is initialized, it will start execution based on the initial parameters and
input/output conditions. The eTPU function can provide the API for the host application code to update
the function parameter or change the control mode. Similarly, the host software has to provide proper logic
to handle the eTPU interrupt or DMA requests.
The software to handle the host and eTPU interaction has to cross between two different compilers. When
the host initiates the eTPU function, the data flows from the host to eTPU. This behavior is the same as
the “call by value” protocol in the standard C syntax. Sometimes “call by reference” is desired to access
eTPU function internal variables. Since the data flow for “call by reference” has to cross both compilers,
it is not directly supported by the compilers. However, the behavior of the “call by reference” can be
implemented in the host interface software. The host interface software can pass a reference to the API
function to access the eTPU function internal variables. An example of the “call by reference”
implementation is shown in both
Code Example 1
and
Code Example 7
(
etpu_pwm_getStartTime()
)
Some eTPU functions require host or DMA service. The eTPU software can write the CIRC bits in the
channel interrupt and data transfer request register to send the request to the host or DMA. The interrupt
service routine must be added and the DMA channel must be configured in the host code to respond to the
eTPU request.
The host interface software has to provide functions to update eTPU function parameters or change the
control mode during the normal operation. Similar to the function initialization API, the interface API
相關(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 功能描述:罩類、盒類及殼類產(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 等級: 材料:Acrylonitrile Butadiene Styrene (ABS) 顏色:Red
AN-2821-A 功能描述:BOX ALUM NATURAL 6.89"L X 3.15"W 制造商:bud industries 系列:AN-A 零件狀態(tài):有效 容器類型:帶安裝法蘭的盒子 大小/尺寸:6.890" 長 x 3.150" 寬(175.01mm x 80.01mm) 高度:2.360"(59.94mm) 面積(L x W):21.7"(140cm) 設(shè)計:包含蓋 材料:金屬 - 鋁 顏色:自然色 厚度:0.070"(1.78mm) 特性:PCB 支座,防水 等級:IP67, IP68, NEMA 4X,6,6P,12,13 材料可燃性等級:- 發(fā)貨信息:從 Digi-Key 運送 重量: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):有效 容器類型:帶安裝法蘭的盒子 大小/尺寸:6.890" 長 x 3.150" 寬(175.01mm x 80.01mm) 高度:2.360"(59.94mm) 面積(L x W):21.7"(140cm) 設(shè)計:包含蓋 材料:金屬 - 鋁 顏色:黑 厚度:0.070"(1.78mm) 特性:PCB 支座,防水 等級:IP67, IP68, NEMA 4X,6,6P,12,13 材料可燃性等級:- 發(fā)貨信息:從 Digi-Key 運送 重量:1.4 磅(635g) 標(biāo)準(zhǔn)包裝:1
AN-2821B 功能描述:BOX NEMA 4 ALUM 6.89X3.15X2.36 RoHS:是 類別:盒,外殼,支架 >> 箱 系列:AN 產(chǎn)品目錄繪圖:SR Series Standard 特色產(chǎn)品:Customize Your Enclosure 標(biāo)準(zhǔn)包裝:1 系列:S 容器 - 類型:盒 尺寸/尺寸:3.600" L x 2.250" W(91.44mm x 57.15mm) 高度:1.500"(38.10mm) 面積 (L x W):8.10"(52.3cm) 設(shè)計:手持,分叉式雙側(cè) 材質(zhì):塑料 - ABS 顏色:杏黃 厚度:0.100"(2.54mm) 特點:PCB 支座 額定值:IP40,NEMA 1 材料可燃性額定值:UL94 HB 裝運信息:從 Digi-Key 運送 重量: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) 其它名稱:111-I ALMOND111-IA111-IALMONDSR111-IA
AN-2821-B 功能描述:罩類、盒類及殼類產(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 等級: 材料:Acrylonitrile Butadiene Styrene (ABS) 顏色:Red