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精品综合久久久久久五月天_国产精品一区电影_中文字幕欧美日韩一区二区_亚洲一区二区三区精品动漫
91精品国产91| 草b视频在线观看| 亚洲综合成人婷婷小说| 精品日本一区二区三区在线观看| 久久精品香蕉视频| 成人av在线网址| 高清不卡一区二区三区| 天堂精品视频| 亚洲精品日韩在线观看| 国产精品av在线播放| 久久久久久久久久av| 欧美一区深夜视频| 欧美中在线观看| 欧美一区二区视频在线播放| 国产精品久久久久免费| 精品一区国产| 国产无套粉嫩白浆内谢的出处| 久久国产精品久久久久久久久久| 国产女精品视频网站免费| 欧美日韩国产成人在线| 2019日本中文字幕| 久久一区二区三区av| 国内精品久久久久久| 在线视频一区观看| 国产精品久久久久久av福利 | 欧美日本国产在线| 久久久精品久久久| 成人国产在线看| av一区二区在线看| 国产高清精品一区二区三区| 国产资源第一页| 国产免费观看久久黄| 日韩欧美一区二区三区久久婷婷 | 国产国语videosex另类| 欧美日韩亚洲免费| 国产中文欧美精品| 91国产丝袜在线放| 国产精品男女猛烈高潮激情| 国产精品香蕉视屏| 97久久精品在线| 久久久999免费视频| 国产亚洲精品久久久久久久 | 宅男av一区二区三区| www.欧美免费| 久久在线免费观看视频| 久久久久久久有限公司| 成人免费在线小视频| 女女同性女同一区二区三区91 | 亚洲欧美国产精品桃花| 波霸ol色综合久久| 国产精品久久99久久| 日韩中文在线中文网三级| 99一区二区三区| 久久精品日产第一区二区三区精品版| 国产精品日韩在线播放| 国产黄色激情视频| 久久亚洲精品视频| 日韩免费高清在线观看| 色视频一区二区三区| 久久久久国产精品www| 国产精品999| 国产精品精品视频| 人人爽久久涩噜噜噜网站| 日韩欧美精品一区二区| 色之综合天天综合色天天棕色| 欧美精品成人在线| 日韩精品第一页| 久久综合久久色| 最新欧美日韩亚洲| 麻豆一区二区三区在线观看| 欧美精品激情视频| 激情五月六月婷婷| 久久久噜噜噜久久中文字免| 久久久噜久噜久久综合| 国产成人久久777777| 久久精品国产视频| 欧美一区二区三区四区夜夜大片| 亚洲a∨日韩av高清在线观看| 久久久久久91香蕉国产| 九九精品在线播放| 欧美中文娱乐网| 日韩在线免费视频| 日本久久久久久| 久久久免费高清电视剧观看| 久久免费国产精品1| 久久青草福利网站| 国产精品久久久久久久久久新婚| 久久艳片www.17c.com| 国产精品久久久久久久久粉嫩av| 国产黄色特级片| 亚洲最大av网站| 国产精品一区二区三| 久久久久九九九| 欧美精品xxx| 国产无限制自拍| 美女福利视频一区| 国产精品稀缺呦系列在线| 久久久国产精华液999999 | 国产精品久久久久77777| 欧美日韩第一视频| 精品一区二区日本| 国产精品成人久久久久| 婷婷五月综合缴情在线视频| 日韩精品在在线一区二区中文| 欧美 日韩 国产 激情| 国产日韩欧美黄色| 欧美成人在线影院| 国产主播一区二区三区四区| 91国自产精品中文字幕亚洲| 日韩有码在线观看| 欧美精品一区二区三区在线四季| 好吊色欧美一区二区三区| 国产乱淫av片杨贵妃| 久久久中精品2020中文| 久久久91精品国产| 色一情一乱一乱一区91| 国产在线一区二区三区播放| 91美女片黄在线观| 色欲色香天天天综合网www| 国内精品国产三级国产99| 91精品久久久久久久久中文字幕 | 国产精品丝袜高跟| 黄在线观看网站| 国产日韩欧美自拍| 亚洲国产欧美日韩| 色妞在线综合亚洲欧美| 亚洲一区二区在线播放| 欧美亚州在线观看| 欧美xxxx做受欧美.88| 亚洲bt天天射| 色妞色视频一区二区三区四区| 一道本在线观看视频| 国内精品视频一区| 中文字幕剧情在线观看一区| 欧美日韩日本网| 欧美激情亚洲一区| 久久国产色av免费观看| 亚洲欧美国产精品桃花| 国产欧美日韩最新| 亚洲欧洲日韩精品| 久久久91精品国产| 97久久精品视频| 国模私拍视频一区| 亚洲精品日韩成人| 国产精品久久视频| 国产v综合v亚洲欧美久久| 伊人色综合久久天天五月婷| 中文字幕日韩精品久久| 国产一区二区在线网站| 久热99视频在线观看| 欧美一区二视频在线免费观看| 91免费人成网站在线观看18| 精品国产免费一区二区三区| 欧美亚洲第一页| 日韩少妇与小伙激情| 日本不卡一区二区三区四区| 91国内在线视频| 国模极品一区二区三区| 国产精品成人久久久久| 国产真实乱子伦| 日韩欧美一区二区视频在线播放| 久久偷窥视频| 国产男女激情视频| 欧美精品123| 日本国产欧美一区二区三区| 久久久99精品视频| www.国产二区| 国产中文字幕日韩| 欧美日韩国产精品激情在线播放| 国产成人精品在线视频| 日本久久亚洲电影| 国产精品偷伦视频免费观看国产| 含羞草久久爱69一区| 国产精品视频白浆免费视频| 欧美日韩亚洲在线| 日本乱人伦a精品| 日韩专区第三页| 欧美精品电影在线| 精品蜜桃一区二区三区| 99久久激情视频| 国产日韩精品在线播放| 亚洲日本理论电影| 色中色综合影院手机版在线观看| 97碰在线视频| 国产欧美精品久久久| 久久久久久久久久久国产| 青春草在线视频免费观看| 日韩亚洲综合在线| 国产福利精品av综合导导航| 青青成人在线| 日韩理论片在线观看| 精品久久久久久久久久中文字幕 | 亚洲中文字幕无码av永久| 91久久精品视频| 99久久国产综合精品五月天喷水| 色综合影院在线观看| 久久精品国产欧美亚洲人人爽| 国产一级黄色录像片| 亚洲一区影院| 一区二区三区四区在线视频|