91精品综合久久久久久五月天_国产精品一区电影_中文字幕欧美日韩一区二区_亚洲一区二区三区精品动漫

DSP and CAN bus transmission speed and the integration of remote

Abstract: hardware system built into the structure of understanding to master the hardware, software, programming-based algorithm is developed from the main set into parts with simple and complete features, reflects the advantages of chip technology. SoC class TMS320LF2407DSP chip speed and distance transmission applications simple integrated design also reflects this.

Speed measurement is to control the project's basic problems. In many cases, long-distance transmission speed signals required. To achieve this is to use one of the main SoC (System on Chip) chip. It brought extensive changes in peripheral hardware and software on the concept. Hardware system built into the understanding of the hardware control, software programming algorithm is developed from the main into Bujian for master, with simple, integrated features, reflecting the advantages of chip technology. SoC class TMS320LF2407DSP chip speed and distance transmission applications simple integrated design also reflects this.

A related system architecture

TMS320LF2407 brought about by some event manager and the CAN controller module for the remote transmission speed and convenience provided. TMS320LF2407 have two event manager EVA and EVB, each three capture units. Corresponding to six to capture input pins CAPX (on EVA, X = 1,2,3; on the EVB, X = 4,5,6). 6 capture input pins, respectively QEPl/IOPA3, QEP2/IOPA4, IOPA5, QEP3/IOPE37, QEP4 / IOPFO and IOPFl share. When the capture input pins CAPX on the selected transition is detected, the selected GP timer count value is captured and stored in a two deep FIFO stack.

TMS320LF2407 the CAN controller module including a mailbox and the corresponding control / status registers. A total of six E-mail: 2 to receive mail (MBOX0, 1), 2 Tx-mail (MBOX4, 5), 2 which could be configured to receive or send mail (MBOX2, 3). TM $ 320LF2407 the CAN controller module fully supports CAN2.0B agreement.

Typically, the output speed sensor system is a digital speed pulse signal. Therefore, we can capture this added to the TMS320LF2407DSP chip pin. TMS320LF2407 chip capture unit using the input pulse cycle measurement, then the built-in CAN CAN bus controller unit to issue periodic signal, to achieve integration of speed and distance delivery.

2 System Configuration

2.1 Capture Unit and the configuration of the corresponding timer

TM $ 320LF2407 capture unit working principle is: to enter the pulse rising edge, falling edge or rising edge falling edge as the boundary, the corresponding timer count to measure the cycle count value is captured into the corresponding capture of a two deep stack FIF0 in. Therefore, to capture and involve the configuration of the two parts of the timer operation. Need to configure the capture operation are: the I / O port control register reuse MCRx (x = A, B, or c) in the corresponding pin is configured to capture input; in the capture control register CAPCONA / B select (enable) capture unit, select (enable) the corresponding timer and edge select (rising, falling or rising edge falling edge); in interrupt flag register EVA / BIFRX and interrupt mask register EVA / BIMRX set interrupt situation. Need to configure the timer operation are: a single general-purpose timer TXCNT cleared; in the overall general-purpose timer control register GPTCONA / B to set the appropriate operation and the timer counting direction; cycle control in a single general-purpose timer compare register is set TXPR cycle; in a single general-purpose timer control register TXCON set count mode of operation.

Abstract: hardware system built into the understanding of control of hardware, software, programming-based algorithm is developed from the main set into parts with simple and complete features, reflects the advantages of chip technology. SoC class TMS320LF2407DSP chip speed and distance transmission applications simple integrated design also reflects this.

Cycle control register TXPR comparative period is set to be greater than the input pulse cycle. Without knowing the input pulse signal period of the case, should be set to maximum. When the measurement period exceeds the maximum capture time, use the method together with the software timer overflow count solution.

2.2 out capture and transmission cycle

Capture FIFO stack stored in the capture cycle of disruption and check out there two ways. Capture Unit event manager where the interrupt latency time of 20 CPu cycles (typical), or 25 CPU cycles (the minimum protection), or 8 cPU cycle (single interrupt), or l6 a CPU cycles (not considering the memory space). In the specific design, the interrupt latency time is set to a certain value. Interrupt handler in the usual case of a short, interrupted by the interrupt latency time to time to make the main. In order to expand the system, even a single peripheral, it is to use interrupt method is better, instead of query methods.

2.3 CAN controller module and bit timer configuration

CAN controller module configuration including the initialization-mail, digital timer settings and data transceiver. See the contents of [1]. Here to introduce bit timer settings.

Bit timer setting determines bus transmission signal baud rate, is the core of CAN controller module configuration issue. TMS320LF2407 two-bit control register BCRl and BCR2. They must be CAN controller is in reset mode (ie, CCR = 1) can be configured. Bit control register BCR2 including the baud rate prescaler bit BRP [7-0], the time used to determine the CAN controller chip TQ, as the benchmark for digital control of time. Bit control register BCR2 including synchronization jump width select bit SJW [1-0], the sampling frequency select bit SAM [7], including propagation delay time (PROG SEG) and the phase delay time 1 (PHASE SEGl) time Section 1 TSEGl [3-0], decided to phase delay time 2 (PHASE SEG2) time period 2 TSEG2 [2-0].

Design Example 3

In this case the basic settings are selected Capture Unit 4 (CAP4) of the input pulse width of the capture, event manager EVB common timer 3 on the pulse count. Capture count out from the FIFO stack sent to the temporary register CAP4TEMP, in order to facilitate expansion. And then sent on the 3rd from CAP4TEMP mail sent by CANTX/IOPC6 and CANRX/IOPC7
3.1 Capture Unit for the CAN controller interrupt and query method

First of all, for system initialization, including the related interrupt, clear flag bit, 20MHz system clock to be able to capture the unit contains the first four interrupts INT4, and then capture module initialization and CAN controller initialization. Before the description of the content. As the capture unit is an interrupt from the capture FIFO stack will take a capture cycle value of the operation unit in the capture interrupt handler to; and CAN controller is in check form, to capture the main program loop check mark. Confirmed after capture, remove from the temporary register CAP4TEMP capture cycle value sent to the mailbox 3. It is worth mentioning that, due to capture cycle value of 16-bit data, it needs to transmit data is 2 bytes. So send the controller MSGCTRL3 the DL = 2. This process flow shown in Figure 2.

DSP and CAN bus transmission speed and the integration of remote

3.2 Capture Unit CAN controller, interrupt handling, including the information sent

As mentioned earlier, when the CAN controller is in query modalities, CAN controller's operating procedures are complex, but also in the main program is not conducive to the main program of expansion and increased peripheral; therefore CAN controller can send the information to set in Capture interrupt processing unit, so the main program becomes very simple. In this case, the capture unit to capture interrupt handler also include periodic removal and CAN messages. By reducing and recycling judge, CAN messaging simple. Capture Unit interrupt handler as follows:

CAP4_ISR
LDP # DP EVB
LACL CAP4FIFO; take to capture the value stack
LDP DP_USER
SACL CAP4TEMP; capture values into the temporary register
LDP # DP EVB
SPLK # 0, T3CNT; clear T3 counts, to re-count
LDP # DP_CAN
SPLK # 0000H, MDER;-mail not to be able to
SPLK # 0100H, MCR; CDR = I, the data change request
LDP # 5
LACL CAP4TEMP; take to capture the value
LDP # DP_CAN2
SACL MBX3A; to capture the value moved to the mailbox 3
LDP # DP_CAN
SPLK # 0880H, MCR; DBO = 1, CDR = 0, ABO = 1, STM = 0
SPLK # 08H, MDER; MD3 = 0, ME3 = 1, 3 to send the enable mailbox
LDP # DP CAN
SPLK # 0020H, TCR; mail send a request 3
W_TA3 LDP # DP_CAN
BIT TCR, 2; Email 3 Send response TA3 (bit 13) = 1
BCND W_TA3, NTC; wait to send response
LDP # DP_CAN
SPLK # 2000h, TCR; send the response was a reduction TA3
CLRC INTM; open break
RET

4 Conclusion

Analysis and design of that class TMS320LF407 using SoC chip features, the corresponding unit properly configured, will be simple, effective way to achieve speed faster control functions, Tixian the control, reflecting the control implementation Fangfa an inevitable developing trend. Debug application notes, the method is correct and effective

Declined comment

91精品综合久久久久久五月天_国产精品一区电影_中文字幕欧美日韩一区二区_亚洲一区二区三区精品动漫
日本不卡一区| 亚洲一区三区电影在线观看| 色婷婷综合成人| 久久的精品视频| 亚洲影视中文字幕| 精品欧美一区二区三区久久久| 国产免费一区二区三区在线能观看 | 欧美一区二区三区在线免费观看 | 国产精品av电影| 中文字幕人妻熟女人妻洋洋| 欧美日本韩国在线| 日韩中文字幕免费| 人人爽久久涩噜噜噜网站| 国产高清自拍一区| 亚洲欧洲另类精品久久综合| 国产熟女高潮视频| 精品久久久久久一区| 好吊色欧美一区二区三区四区| www.日韩系列| 韩国精品一区二区三区六区色诱| 国产精品爽黄69| 欧美成人一区二区在线| 国产精品视频公开费视频| 欧美成人精品免费| 国产精品久久..4399| 精品网站在线看| 不卡av电影在线观看| 国内精品视频在线| 精品国产综合久久| 麻豆精品视频| 国产精品久久久久久av下载红粉| 欧美极品视频一区二区三区| 久久精品国产欧美亚洲人人爽| 欧美亚洲第一页| 国产精品露出视频| 国产亚洲欧美另类一区二区三区| 欧美成人性色生活仑片| 国产免费一区视频观看免费| 久久久久久国产精品久久| 国产精品一区二区久久精品| 亚洲综合自拍一区| 久久久一本精品99久久精品66| 日韩av123| 久久久国产成人精品| 欧美国产亚洲一区| 久久亚洲综合国产精品99麻豆精品福利 | 亚洲色欲久久久综合网东京热| 97国产在线视频| 欧美一级免费在线观看| 精品国产一区久久久| 精品日韩欧美| 亚洲熟妇av日韩熟妇在线| 国产高清精品一区二区三区| 青青青青在线视频| 久久精品亚洲精品| 国产欧美精品日韩| 色欲av无码一区二区人妻| 久久视频这里只有精品| 国产精品专区第二| 日本不卡免费新一二三区| 国产精品乱码| 99免费视频观看| 日韩国产在线一区| 精品卡一卡二| 91av免费看| 欧美精品色婷婷五月综合| 欧美日韩不卡合集视频| 久久婷婷国产综合尤物精品| 欧美精品一区二区视频| 欧美精品一区三区| 91精品国产91久久久久久| 欧美日韩视频免费| 一本大道熟女人妻中文字幕在线| 久久av免费观看| 国产一区高清视频| 日本乱人伦a精品| 精品国产乱码久久久久久丨区2区 精品国产乱码久久久久久郑州公司 | 色综合久久久888| 国产精品福利网| 国产精品男女猛烈高潮激情| 91高清视频免费| 成人欧美一区二区| 国产日韩二区| 国产欧美一区二区在线播放| 国产一区二区久久久| 激情视频在线观看一区二区三区| 日韩精品一区二区三区四| 日韩a∨精品日韩在线观看| 日本一区高清不卡| 日本精品一区二区三区在线播放视频| 亚洲a∨一区二区三区| 亚洲在线第一页| 欧美一区二区视频在线| 婷婷精品国产一区二区三区日韩 | 国产精品久久一区| 久久精品视频中文字幕| 久久国产精品一区二区三区| 久色视频在线播放| 久久精品国产一区二区三区不卡| 国产成人av网| 日韩一区二区精品视频| 久久久av网站| 久久这里只有精品99| 精品国产福利| 真实国产乱子伦对白视频| 久久久久国产精品免费| 国产99午夜精品一区二区三区| 欧美老少配视频| 中文字幕在线中文| 婷婷五月综合缴情在线视频| 色狠狠久久av五月综合|| 日本一区免费在线观看| 人妻av无码专区| 欧美 日韩 国产在线| 蜜桃视频日韩| 国产伦精品一区二区三| 99国产盗摄| 国产成人精品久久二区二区| 精品国产区一区二区三区在线观看| 国产精品无码免费专区午夜| 欧美精品在线免费播放| 亚洲一区精品视频| 无码少妇一区二区三区芒果| 日日噜噜噜夜夜爽爽| 欧美亚洲国产精品| 国产日韩精品电影| 91精品国产99| 精品国产一区二区三区久久狼黑人| 国产精品久久久久久久美男 | 欧美精品第三页| 国产麻花豆剧传媒精品mv在线 | 国产精品久久久久久久久久久新郎| 色综合久久88| 日本人妻伦在线中文字幕| 欧美日韩亚洲一| 国产精品自拍片| 久久99热只有频精品91密拍| 国产精品久久久久7777| 亚洲v国产v在线观看| 日韩精品一区二区免费| 国产一二三区在线播放| 国产成人精品福利一区二区三区 | 日韩人妻一区二区三区蜜桃视频| 激情小说综合区| 91免费福利视频| 久久久av一区| 亚洲va欧美va在线观看| 国内精品久久影院| 久久人人爽人人| 精品乱码一区| 日韩精品无码一区二区三区| 成人免费视频97| 久久视频在线看| 午夜美女久久久久爽久久| 免费观看国产成人| 国产对白在线播放| 精品国产一区二区三| 茄子视频成人免费观看| 99爱精品视频| 国产精品免费一区二区| 视频一区二区在线| 俄罗斯精品一区二区三区| 国产精品久久久久久久久久久久 | 亚洲图色在线| 韩国一区二区av| 国产成人a亚洲精v品无码| 伊人久久在线观看| 国产又大又硬又粗| 北条麻妃在线一区二区| 婷婷五月色综合| 成人黄色av网站| 精品国产乱码久久久久久108| 日韩免费毛片视频| 不卡日韩av| 欧美精品免费在线观看| 欧美日韩国产高清视频| 国产成人精品久久亚洲高清不卡| 九九热精品视频国产| 韩日午夜在线资源一区二区| 久草免费福利在线| 三年中文高清在线观看第6集| 成人免费毛片网| 欧美精品国产精品日韩精品| 欧美极品一区| 精品国产一区二区三区久久狼黑人 | 欧美日韩在线不卡一区| 久久久久久美女| 日韩在线第三页| 国产精品91久久| 伊人久久大香线蕉av一区| 精品一区在线播放| 国产精品嫩草影院久久久| 日本成熟性欧美| 久久精品国产一区二区三区不卡| 偷拍视频一区二区| 91高清免费视频| 亚洲啊啊啊啊啊| 久久最新免费视频| 天天久久人人| 久久久精品动漫|