FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    The use of TMS320F206 16-bit DSP design PROFIBUS-DP slave

     

    please Click hereto get our dipole antenna

    SPC3 chip agreement

    SPC3 is dedicated to the development of intelligent communication from the station chip, which supports the PROFIBUS-DP protocol. Figure 1 shows the SPC3 structure, and its main properties are as follows: 44 feet, PQFP package; automatically detect the baud rate on the PROFIBUS, from 9. 6kbps to 12Mbps; RS-485 transmission; complete PROFIBUS-DP protocol; integrated monitoring time device; 5V DC power supply.

    SPC3 has an integrated 1. 5KB dual-port RAM, the address space from 00H to 5FFH. To 8 bytes for the internal unit, divided into 192 sections. According to the function can be divided into three regions:

    00H to 015H to set the registers and status indicators. 016H to 03FH for the parameter configuration area, and length of BUF pointer in this locale. 040H to 5FFH area for the user, to receive applications from the IO and master data. The BUF's configuration, including the length and BUF initial address of SPC3 must be in "offline" status to complete; in operation, in addition to variable-length input and output BUF, other configurations can not be changed. In addition, SPC3 internally also integrates a watchdog timer, can work in three different conditions: the baud rate monitoring, control and DP baud rate control.

    please Click hereto get our dipole antenna

    TMS320F206

    TMS320F206 is 16-bit fixed-point DSP, computing rate of 40MIPS. It uses static CMOS integrated circuit manufacturing process, the structure of the 'C5x, based on a modified Harvard architecture, there is a program bus and three data bus, pipelining, a parallel 32bit arithmetic logic unit, 16 × 16bit parallel hardware multiply , on-chip memory, on-chip peripherals and highly specialized instruction set. On-chip resources include: an internal clock generator, external clock source × 1, × 2, × 4 and / 2 to generate the CPU clock; chip also RAM4.5KB, FLASH32KB, can be suitable for many engineering applications, 32KB FLASH can be used as program memory, the system design and debugging a great deal of convenience; three external interrupt INT1, INT2, INT; 1 synchronous serial port and an asynchronous serial port; a software programmable timer; four independent programmable I / O pins, an output pin XF and 1 input pin B IO; JTAG emulation interface, scan, used to implement online simulation test.

    Hardware system structure

    Figure 2 shows the PROFIBUS-DP slave hardware block diagram of the system by the MAX125, TMS320F206, SPC3, EPM7128SQC100, DS1286, HK1225, external RAM and address DIP switches to form a PROFIBUS-DP slave, for railway signal power failure diagnosis. Three-phase AC voltage and current signals by the MAX125 synchronous sampling, DSP algorithms through certain data processing and data computing, and then integrated the relevant switch signal of the diagnosis, control of electrical equipment. While according to the requirements of the PROFIBUS master the necessary data and fault information through the protocol chip SPC3 to the Master. Also the main station from the station by SPC3 settings and remote control of electrical equipment.

     

    As a complete integrated SPC3 DP protocol, the standard diagnostic information from the SPC3 automatically formed and transmitted, so the user will communicate with the DP master to the information stored in the buffer can be specified; when the user needs to receive the information coming from the main station , they only need access to the specified buffer.

    please Click hereto get our dipole antenna

    TMS320F206 intelligent software design

    Data acquisition, data processing, fault diagnosis, and record the necessary information to complete the program in TMS320F206. For continuous monitoring of the system, data acquisition using interrupt method, continuous data collection. Fault information is used for soft interrupt method, the fault alarm information as soon as possible to the SPC3 diagnostics buffer in order to wait for the main station in time for polling. Figure 4 shows the system's main program flow chart.
     
     
     
    葡萄牙语
    英语
    西班牙语
    Software Operation of SPC3

    As TMS320F206 faster, data exchange with the SPC3 consistent speed is required. We set the F206 software to make the waiting time to match the speed of the two. The design of the structure type SPC3 register using the method of its operation. First, define a 1. 5KB dual-port RAM structure corresponding to the type of data "SPC3", then F206 register header file defines a "SPC3" type of register "spc3", so you can be flexible to facilitate the operation. Software written in C, SPC3 initialization part of the procedure is as follows:

    Header file "spc3" register

    # define spc3 (* ((volatile SPC3) 0xE800))
    / * SPC3 alluding to the global data space 0xE800 * /
    / / Initialization:
    GREG = GLOBAL 16K; / * mapped to the 16KB global data space * /

    spc3. mode_ reg0_ L = 0x00d3;
    spc3. mode _reg0 _H = 0x0003; / * set the work of SPC3 * /
    spc3. is reg. mask [0] = 0x001e;
    spc3. is reg. mask [1] = 0x002d; / * set the SPC3 interrupt source, set the output data processing hardware interrupts for the SPC3 * /
    spc3. r len diag buf [0] = 16;
    spc3. r len diag buf [1] = 16;
    spc3. r len p rm buf = 10;
    spc3. r len cfg buf = 2;
    spc3. r len read cfg buf = 2;
    spc3. r len din buf = 244;
    spc3. r len dout buf = 244; / * initialize the buffer length of the / *
    UserInputBufferPtr = DPS2 GET D IN BUF PTR (); / / Get the address of the first input buffer
    UserDiagBufferPtr = DPS2 GET D IAG BUF PTR (); / / Get the address of the first diagnostic buffer
    UserDiagFlag = TRUE;
    ......

    In this paper, operation speed, 16-bit DSP designed a PROF IBUS2DP intelligent slaves, which makes the application of more extensive field bus.

    please Click hereto get our dipole antenna

    8-bit design using TMS320F206 SPC3 8-bit data line low, and mapped to the global data space; will also DS1286, HK1225 digital input and digital output is mapped to the global data space. This, DSP for their operation, as easy as operating an external RAM. Programming in 16-bit DSP for SPC3, DS1286, HK1225 write operation, the first to write low-high 8-bit 8-bit write.
    please Click hereto get our dipole antenna

    System software

    PROFIBUS-DP slave (ie, fault diagnosis of terminal units) to complete the main data acquisition, data processing, fault diagnosis and the necessary energy parameters and fault information according to the requirements of the master station to the main station, and from the master station to station the assignment.

    SPC3 communication software design

    Design parameters will be seen as a power input of data from the station, the main station from the station's assignment as the output data, while the diagnostic process as an external fault information. For the master assignment using SPC3 interrupt handling means in order to achieve real-time. In addition, the parameters of the messages, configuration messages are SPC3 interrupt processing program to complete. SPC3 interrupt program flow chart shown in Figure 3.
     

     

     

     

     

    List all Question

    Nickname

    Email

    Questions

    Our other product:

    Professional FM Radio Station Equipment Package

     



     

    Hotel IPTV Solution

     


      Enter email  to get a surprise

      fmuser.org

      es.fmuser.org
      it.fmuser.org
      fr.fmuser.org
      de.fmuser.org
      af.fmuser.org ->Afrikaans
      sq.fmuser.org ->Albanian
      ar.fmuser.org ->Arabic
      hy.fmuser.org ->Armenian
      az.fmuser.org ->Azerbaijani
      eu.fmuser.org ->Basque
      be.fmuser.org ->Belarusian
      bg.fmuser.org ->Bulgarian
      ca.fmuser.org ->Catalan
      zh-CN.fmuser.org ->Chinese (Simplified)
      zh-TW.fmuser.org ->Chinese (Traditional)
      hr.fmuser.org ->Croatian
      cs.fmuser.org ->Czech
      da.fmuser.org ->Danish
      nl.fmuser.org ->Dutch
      et.fmuser.org ->Estonian
      tl.fmuser.org ->Filipino
      fi.fmuser.org ->Finnish
      fr.fmuser.org ->French
      gl.fmuser.org ->Galician
      ka.fmuser.org ->Georgian
      de.fmuser.org ->German
      el.fmuser.org ->Greek
      ht.fmuser.org ->Haitian Creole
      iw.fmuser.org ->Hebrew
      hi.fmuser.org ->Hindi
      hu.fmuser.org ->Hungarian
      is.fmuser.org ->Icelandic
      id.fmuser.org ->Indonesian
      ga.fmuser.org ->Irish
      it.fmuser.org ->Italian
      ja.fmuser.org ->Japanese
      ko.fmuser.org ->Korean
      lv.fmuser.org ->Latvian
      lt.fmuser.org ->Lithuanian
      mk.fmuser.org ->Macedonian
      ms.fmuser.org ->Malay
      mt.fmuser.org ->Maltese
      no.fmuser.org ->Norwegian
      fa.fmuser.org ->Persian
      pl.fmuser.org ->Polish
      pt.fmuser.org ->Portuguese
      ro.fmuser.org ->Romanian
      ru.fmuser.org ->Russian
      sr.fmuser.org ->Serbian
      sk.fmuser.org ->Slovak
      sl.fmuser.org ->Slovenian
      es.fmuser.org ->Spanish
      sw.fmuser.org ->Swahili
      sv.fmuser.org ->Swedish
      th.fmuser.org ->Thai
      tr.fmuser.org ->Turkish
      uk.fmuser.org ->Ukrainian
      ur.fmuser.org ->Urdu
      vi.fmuser.org ->Vietnamese
      cy.fmuser.org ->Welsh
      yi.fmuser.org ->Yiddish

       
  •  

    FMUSER Wirless Transmit Video And Audio More Easier !

  • Contact

    Address:
    No.305 Room HuiLan Building No.273 Huanpu Road Guangzhou China 510620

    E-mail:
    [email protected]

    Tel / WhatApps:
    +8618078869184

  • Categories

  • Newsletter

    FIRST OR FULL NAME

    E-mail

  • paypal solution  Western UnionBank OF China
    E-mail:[email protected]   WhatsApp:+8618078869184   Skype:sky198710021 Chat with me
    Copyright 2006-2020 Powered By www.fmuser.org

    Contact Us