參數(shù)資料
型號: AN2821
英文描述: eTPU Host Interface
中文描述: eTPU主機接口
文件頁數(shù): 2/24頁
文件大小: 546K
代理商: AN2821
eTPU Host Interface, Rev. .1
Overview
Freescale Semiconductor
2
hardware works. Coding in C, the programmer can focus more on the application logic and leave the
mechanics of the eTPU programming to the compiler (i.e., register usage and tracking, parameter packing,
micro-instruction packing, etc.). With the help of the eTPU simulator and debugger, eTPU software can
be developed much like the software for the host CPU. Productivity of software development can be
significantly improved.
The introduction of the eTPU C compiler also changes the way the host interfaces to the eTPU functions.
With the help of the compiler, the same symbol can be referenced by the both eTPU and host software.
The host software can interface with eTPU functions via API functions, instead of accessing physical
memory locations and registers. For each eTPU function, a host interface API function can now be
developed as a part of the eTPU C program. The host application can call these API functions to interface
with the eTPU. The references to these API functions and symbols for parameters are resolved at compile
time. The implementation details of the eTPU functions are hidden from the host application. This design
improves the flexibility of the eTPU functions’ implementation and the portability of the host application
code. This application note discusses how to build the host interface for eTPU functions.
2
Overview
Host interface software adds another layer of abstraction between the host CPU and eTPU. The host
interface API functions hide the complexity of the interaction between the host CPU and eTPU, providing
a simple interface for host applications. Ideally, every eTPU function shall have one or more host interface
API functions.
The interface software between host and eTPU facilitates three major tasks:
1. eTPU hardware initialization – configure eTPU peripheral hardware
2. eTPU function initialization – pass initial parameters and initiate function execution
3. eTPU function run time interactive control – update function parameters and handle handshaking
Once the eTPU peripheral and eTPU functions are initialized, each eTPU function can start to execute with
initial function parameters. The host interface API functions need to be provided for interactive control
(i.e., parameters updating and control mode changing, etc.). To update the parameter or change control
mode, the host is responsible for passing updated parameters to the eTPU functions, and then informing
the eTPU that the function parameters have changed. If a coherent change of function parameters is
required, the logic has to be built in the eTPU functions to ensure the coherency. For some eTPU functions,
the interaction between host and eTPU is an essential part of the operation. In both host and eTPU
software, the logic is needed to handle the handshaking between host and eTPU. The interaction between
the eTPU and host can be encapsulated in the host interface API functions.
The host code and eTPU code are compiled by different compilers. The host compiler is normally used to
build a single code image for both host and eTPU. In order to build eTPU code and host code together, the
eTPU software building information (i.e. eTPU code image) has to be exported to the host compiler. The
symbol information has to be exported from the eTPU compiler to the host compiler as well. For the Byte
Craft eTPU compiler, the mechanism is implemented as a set of host interface macros. In the eTPU code,
these macros are inserted to generate proper executable and symbol information for the host compiler.
The host interface design process will be illustrated in the eTPU PWM driver example in the Appendices.
相關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
相關代理商/技術參數(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) 設計:包含蓋 材料:金屬 - 鋁 顏色:自然色 厚度:0.070"(1.78mm) 特性:PCB 支座,防水 等級:IP67, IP68, NEMA 4X,6,6P,12,13 材料可燃性等級:- 發(fā)貨信息:從 Digi-Key 運送 重量:1.4 磅(635g) 標準包裝: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) 設計:包含蓋 材料:金屬 - 鋁 顏色:黑 厚度:0.070"(1.78mm) 特性:PCB 支座,防水 等級:IP67, IP68, NEMA 4X,6,6P,12,13 材料可燃性等級:- 發(fā)貨信息:從 Digi-Key 運送 重量:1.4 磅(635g) 標準包裝:1
AN-2821B 功能描述:BOX NEMA 4 ALUM 6.89X3.15X2.36 RoHS:是 類別:盒,外殼,支架 >> 箱 系列:AN 產(chǎn)品目錄繪圖:SR Series Standard 特色產(chǎn)品:Customize Your Enclosure 標準包裝: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) 設計:手持,分叉式雙側 材質:塑料 - ABS 顏色:杏黃 厚度:0.100"(2.54mm) 特點:PCB 支座 額定值:IP40,NEMA 1 材料可燃性額定值:UL94 HB 裝運信息:從 Digi-Key 運送 重量:0.137 磅(62.14g) 相關產(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