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精品综合久久久久久五月天_国产精品一区电影_中文字幕欧美日韩一区二区_亚洲一区二区三区精品动漫
国产欧美精品一区二区三区 | 日韩在线三区| 欧美激情伊人电影| 久久久久久国产| 亚洲激情电影在线| 日本午夜精品电影| 欧美在线视频观看| 国语自产精品视频在线看| 精品少妇人欧美激情在线观看 | 欧美最大成人综合网| 日韩免费高清在线观看| 青青草国产免费| 欧美激情 国产精品| 黄色91av| 北条麻妃在线一区| 久久久久久久久久久久久国产精品| 日韩在线观看免费高清| 国产精品日韩一区二区三区| 色综合久久久888| 亚洲一区三区视频在线观看| 日韩免费av一区二区| 狠狠干 狠狠操| 国产精品一区二区三区不卡| 久久久人人爽| 国产精品视频xxxx| 精品国产一二| 午夜免费日韩视频| 精品无人乱码一区二区三区的优势 | 精品国产一区二区三区四区精华| 亚洲一区二区不卡视频| 日韩人妻一区二区三区蜜桃视频| 黄页免费在线观看视频| 99精品人妻少妇一区二区| 久久国产成人精品国产成人亚洲| 国产精品看片资源| 热99精品只有里视频精品| 欧美激情视频网| 亚洲日本精品国产第一区| 日韩中文字幕一区二区| 韩国视频理论视频久久| 91精品久久久久久久久久久久久 | 97成人精品视频在线观看| 久久国产精品99久久久久久丝袜| 国产精品久久久久久久久久ktv| 亚洲综合欧美日韩| 欧美少妇在线观看| 91国产在线播放| 欧美乱妇高清无乱码| 日本精品视频网站| 99视频在线免费| 欧美成年人视频网站欧美| 奇米精品一区二区三区| 国产欧美日韩中文| 日韩视频永久免费观看| 亚洲影视中文字幕| 国模精品娜娜一二三区| 日韩一区二区三区在线播放| 亚洲五码在线观看视频| 免费看黄色a级片| 色999日韩欧美国产| 亚洲精品天堂成人片av在线播放| 国语精品中文字幕| 国产成人无码一二三区视频| 亚洲乱码一区二区三区| 国产区一区二区| 国产精品美女黄网| 青青在线免费观看视频| 99热一区二区三区| 精品免费国产| 欧美日本韩国一区二区三区| 久久精品一区二区三区不卡免费视频| 在线播放 亚洲| 国产亚洲综合视频| 久久亚洲精品视频| 裸模一区二区三区免费| 国产精品我不卡| 欧美在线观看日本一区| 国产成人aa精品一区在线播放| 亚洲欧洲一区二区福利| 国产精品一区二区免费在线观看| 国产精品黄色av| 韩国精品一区二区三区六区色诱| 日韩在线免费视频| 日韩毛片在线免费看| 久久精品国产理论片免费| 无码中文字幕色专区| 8050国产精品久久久久久| 亚洲xxxx在线| 久久综合九色综合88i| 午夜精品视频网站| 国产成人综合精品在线| 日本一区二区三不卡| 色噜噜狠狠色综合网图区| 热久久美女精品天天吊色| 久草资源站在线观看| 日韩av在线一区二区三区| 久久99精品久久久久久久久久| 欧美一区二区视频97| 国产精品97在线| 日本不卡免费新一二三区| 久久久久久久久网| 红桃av在线播放| 久久福利网址导航| av资源一区二区| 午夜免费电影一区在线观看| 久久本道综合色狠狠五月| 欧美精品免费观看二区| 欧美精品一区三区| 国产精品999| 欧美一区二三区| 国产精品精品一区二区三区午夜版| 国产日韩精品一区二区| 中文视频一区视频二区视频三区| 97精品久久久| 欧美怡春院一区二区三区| 国产精品国产精品| 99视频网站| 日韩久久久久久久| 久久五月情影视| 国产精品自拍合集| 视频一区不卡| 国产精品久久久久久久久久三级 | 国产激情综合五月久久| 日韩精品最新在线观看| 国产精品国产一区二区| 阿v天堂2017| 欧美一级电影久久| 中文字幕在线亚洲三区| 久久久久久欧美| 国产精品影片在线观看| 日韩精品在线观看av| 久久99热这里只有精品国产| 久久精品视频91| 国产伦精品一区二区三区视频孕妇| 日本一区二区在线视频| 另类美女黄大片| 91久久伊人青青碰碰婷婷| 欧美日韩国产高清视频| 在线天堂一区av电影| 爽爽爽爽爽爽爽成人免费观看| 国产美女作爱全过程免费视频| 日韩欧美视频网站| 亚洲一区制服诱惑| 国产精品国模在线| 久久久久这里只有精品| 国产欧美在线播放| 欧美乱大交xxxxx潮喷l头像| 亚洲www在线观看| 欧美日韩aaaa| 久久久精品影院| 久久艹国产精品| av动漫在线播放| 狠狠色综合网站久久久久久久| 亚洲精品久久久久久一区二区| 国产精品久久久久av福利动漫 | 草莓视频一区| 国内视频一区二区| 青青草视频在线视频| 午夜精品一区二区在线观看 | 97成人在线视频| 国产欧美丝袜| 欧美中文字幕第一页| 午夜探花在线观看| 一区二区三区av| 精品国产乱码久久久久久蜜柚| 国产成人精品优优av| 久久婷婷五月综合色国产香蕉| 成人精品视频99在线观看免费| 免费不卡亚洲欧美| 男人亚洲天堂网| 欧美视频在线观看视频| 青青影院一区二区三区四区| 欧美一级免费视频| 色999日韩自偷自拍美女| 亚洲一区二区三区四区在线播放 | 国产妇女馒头高清泬20p多| 国产视频一区二区三区四区| 欧美日韩一区二区在线免费观看| 天天综合狠狠精品| 亚洲欧美久久久久一区二区三区| 麻豆一区二区在线观看| 国产精品福利片| 国产精品久久久91| 国产精品久久久久aaaa九色| 国产精品人成电影在线观看| 国产精品天天狠天天看| 久久久久久久久久久久久久久久av| 久久国产精品-国产精品| 久草热久草热线频97精品| 久久艹中文字幕| 久久久久久网站| 久久精品久久精品亚洲人| 久久久久亚洲精品国产| 日韩亚洲欧美中文在线| 精品国产一区二区三区在线观看 | 国内一区在线| 国产原创精品| 免费看黄色a级片| 国产精品自拍小视频| 91精品国产成人|