SlideShare ist ein Scribd-Unternehmen logo
1 von 17
Chapter 8 : Serial
 Communication Interface
 C28x
  Digital Signal Controller
    TMS320F2812



Technology beyond the Dreams™   Copyright © 2006 Pantech Solutions Pvt
SCI Pin Connections
         TX FIFO_0              (Full Duplex Shown)                TX FIFO_0


         TX FIFO_15                                                TX FIFO_15
       Transmitter-data                                          Transmitter-data
       buffer register                                           buffer register
               8                                                          8

         Transmitter        SCITXD             SCITXD               Transmitter
         shift register                                             shift register



         Receiver           SCIRXD             SCIRXD               Receiver
         shift register                                             shift register
               8                                                          8

        Receiver-data                                              Receiver-data
        buffer register                                            buffer register
         RX FIFO_0                                                 RX FIFO_0


         RX FIFO_15                                                RX FIFO_15


TechnologySCI Device #1
          beyond the Dreams™                             SCI Device #2
                                                      Copyright © 2006 Pantech Solutions Pvt
SCI-A Programmable Data Format
  NRZ (nonreturn to zero) format

                                                                                 Addr/
           Start LSB    2       3           4       5       6       7    MSB           Parity Stop 1 Stop 2
                                                                                 Data


                         This bit present only in Address-bit mode



                                                                             Majority
                                                                             Vote

    SCICLK
    (Internal)
                        1   2       3   4       5   6   7   8   1    2   3   4    5   6   7   8   1   2


    SCIRXD


                             Start Bit                                   LSB of Data

                       Falling Edge Detected                        Note: 8 SCICLK periods per data bit

Technology beyond the Dreams™                                                Copyright © 2006 Pantech Solutions Pvt
Multiprocessor Wake-Up Modes
   • Allows numerous processors to be hooked up to the bus, but transmission
     occurs between only two of them

   • Idle-line or Address-bit modes

   • Sequence of Operation
      1. Potential receivers set SLEEP = 1, which disables RXINT except when an
          address frame is received
      2. All transmissions begin with an address frame
      3. Incoming address frame temporarily wakes up all SCIs on bus
      4. CPUs compare incoming SCI address to their SCI address
      5. Process following data frames only if address matches




Technology beyond the Dreams™                         Copyright © 2006 Pantech Solutions Pvt
Idle-Line Wake-Up Mode
      • Idle time separates blocks of frames

      • Receiver wakes up with falling edge after SCIRXD was high for 10 or more
        bit periods

      • Two transmit address methods
         – deliberate software delay of 10 or more bits
         – set TXWAKE bit to automatically leave exactly 11 idle bits

                                      Idle periods
                                      of less than        Block of Frames
                                      10 bits

  SCIRXD/    Last Data      SP        ST     Addr    SP ST    Data     SP ST     Last Data      SP        ST   Addr   SP
  SCITXD

                         Idle           Address frame     1st data frame                     Idle
                         Period         follows 10 bit                                       Period
                         10 bits                                                             10 bits
                         or greater     or greater idle                                      or greater



Technology beyond the Dreams™                                                  Copyright © 2006 Pantech Solutions Pvt
Address-Bit Wake-Up Mode
    • All frames contain an extra address bit

    • Receiver wakes up when address bit detected

    • Automatic setting of Addr/Data bit in frame by setting TXWAKE = 1
      prior to writing address to SCITXBUF
                                                        Block of Frames


    SCIRXD/   Last Data 0     SP   ST   Addr    1 SP ST      Data   0 SP ST Last Data 0 SP ST      Addr   1 SP
    SCITXD

                                   First frame within   1st data frame
                                                                                   no additional
               Idle Period         block is Address.                               idle bits needed
               length of no        ADDR/DATA                                       beyond stop bits
               significance        bit set to 1



Technology beyond the Dreams™                                             Copyright © 2006 Pantech Solutions Pvt
SCI Summary
   • Asynchronous communications format
   • 65,000+ different programmable baud rates
   • Two wake-up multiprocessor modes
      – Idle-line wake-up & Address-bit wake-up
   • Programmable data word format
      – 1 to 8 bit data word length
      – 1 or 2 stop bits
      – even/odd/no parity
   • Error Detection Flags
      – Parity error; Framing error; Overrun error; Break detection
   • FIFO-buffered transmit and receive
   • Individual interrupts for transmit and receive



Technology beyond the Dreams™                        Copyright © 2006 Pantech Solutions Pvt
SCI-A Registers
   Address      Register              Name
   0x007050     SCICCR          SCI-A commun. control register
   0x007051     SCICTL1         SCI-A control register 1
   0x007052     SCIHBAUD        SCI-A baud register, high byte
   0x007053     SCILBAUD        SCI-A baud register, low byte
   0x007054     SCICTL2         SCI-A control register 2 register
   0x007055     SCIRXST         SCI-A receive status register
   0x007056     SCIRXEMU        SCI-A receive emulation databuffer
   0x007057     SCIRXBUF        SCI-A receive data buffer register
   0x007059     SCITXBUF        SCI-A transmit data buffer register
   0x00705A     SCIFFTX         SCI-A FIFO transmit register
   0x00705B     SCIFFRX         SCI-A FIFO receive register
   0x00705C     SCIFFCT         SCI-A FIFO control register
   0x00705F     SCIPRI          SCI-A priority control register
Technology beyond the Dreams™                Copyright © 2006 Pantech Solutions Pvt
SCI-A Communication Control Register
       Communications Control Register (SCICCR) – 0x007050


           7          6           5           4           3             2             1           0
        STOP      EVEN/ODD     PARITY LOOP BACK ADDR/IDLE          SCI             SCI          SCI
        BITS      PARITY       ENABLE ENABLE    MODE               CHAR2           CHAR1        CHAR0



      0 = 1 Stop bit          0 = Disabled         0 = Idle-line mode       # of data bits = (binary + 1)
      1 = 2 Stop bits         1 = Enabled          1 = Addr-bit mode        e.g. 110b gives 7 data bits
                     0 = Odd              0 = Disabled
                     1 = Even             1 = Enabled




Technology beyond the Dreams™ Control Register (SCICCR) – 0x007750]
             [SCI-B Communications                  Copyright © 2006 Pantech Solutions Pvt
SCI-A Control Register 1
      Control Register 1 (SCICTL1) – 0x007051
         7             6           5           4             3        2           1             0

      reserved      RX ERR       SW         reserved    TXWAKE      SLEEP       TXENA        RXENA
                    INT ENA      RESET




                                                                                           0 = receiver disabled
                                                                                           1 = receiver enabled
                                                                             0 = transmitter disabled
                                                                             1 = transmitter enabled

                                                                 0 = sleep mode disabled
                                                                 1 = sleep mode enabled
                                           Transmitter wakeup method select
                                           1 = wakeup mode depends on SCICCR.3
                                           0 = no wakeup mode
                              Write 0 = Reset SCI
                              Write 1 = release from Reset
                 0 = Receive Error Interrupt disabled
                 1 = Receive Error Interrupt enabled

Technology beyond the Dreams™ 0x007751]
 [SCI-B Control Register 1 (SCICTL1) –                                    Copyright © 2006 Pantech Solutions Pvt
16

                          SCI-A Baud Rate
                BRR = 0      ,
                                          LSPCLK
                                                                 SCI baud rate =
                                         (BRR + 1) x 8
           BRR = 1 to 65535          ,
                                               LSPCLK


            Baud-Select MSbyte Register (SCIHBAUD) – 0x007052
            7         6          5         4           3     2           1            0
         BAUD15    BAUD14   BAUD13       BAUD12   BAUD11   BAUD10     BAUD9        BAUD8
         (MSB)


            Baud-Select LSbyte Register (SCILBAUD) – 0x007053
            7         6          5         4           3     2           1            0

          BAUD7    BAUD6     BAUD5       BAUD4    BAUD3    BAUD2      BAUD1        BAUD0
                                                                                   (LSB)




 [SCI-B Baud-Select MSbyte Register (SCIHBAUD) – 0x007752]
 [SCI-B Baud-Select LSbyte Register (SCILBAUD) – 0x007753]
Technology beyond the Dreams™                                 Copyright © 2006 Pantech Solutions Pvt
SCI-A Control Register 2
                             SCICTL2 @ 0x007054
      15 - 8         7       6                   5-2                            1          0
      reserved             TX                    reserved                    RX/BK      TX
                  TXRDY
                           EMPTY                                             INT ENA    INT ENA




                                   SCI RX/BK INT ENA
                                    0 = Disable RXRDY/BRKDT interrupt
                                    1 = Enable RXRDY/BRKDT interrupt
                 SCI TX EMPTY
                   0 = TXBUF or shift register are loaded with data
                   1 = Transmit buffer and shift register both empty
  SCI TX READY
                                                            SCI TX INT ENA
   0 = SCITXBUF is full
                                                             0 = Disable TXRDY interrupt
   1 = SCITXBUF is empty
                                                             1 = Enable TXRDY interrupt

Technology beyond the Dreams™ 0x007754]
 [SCI-B Control Register 2(SCICTL2) –                       Copyright © 2006 Pantech Solutions Pvt
SCI-A Receiver Status Register
                                           SCIRXST @ 0x007055
           7              6          5           4           3          2            1            0
        RX          RXRDY         BRKDT          FE          OE         PE       RXWAKE        reserved
        ERROR




                                                                                     1 = Receiver wakeup
                                                                                     condition detected

                                                                   1 = Parity Error detected


                                                        1 = Overrun Error detected

                                           1 = Framing Error detected

                              1 = Break condition occurred
                              0 = no break condition
                0 = no new character in SCIRXBUF
                1 = new character in SCIRXBUF
 0 = No error flags set
 1 = Error flag(s) set
                                         [SCI-B Receiver Status Register (SCIRXST) – 0x007755]

Technology beyond the Dreams™                                                Copyright © 2006 Pantech Solutions Pvt
SCI-A FIFO Transmit Register
                                   SCIFFTX @ 0x00705A
             SCI FIFO                              TX FIFO Status (read-only)
             Enhancements                                00000           TX FIFO empty
                0 = disable             TX FIFO Reset
                                                    00001                TX FIFO has 1 word
                1 = enable         0 = reset (pointer to 0)
                                                       00010             TX FIFO has 2 words
                                   1 = enable operation00011     .       TX FIFO.has 3 words.
    SCI Reset                                                    .
                                                                 .               .
                                                                                 .               .
                                                                                                 .
 0 = reset                                               10000           TX FIFO has 16 words
 1 = enable operation
                15       14         13        12        11           10         9          8
                                 TXFIFO
            SCIRST    SCIFFENA             TXFFST4   TXFFST3   TXFFST2      TXFFST1    TXFFST0
                                 RESET

                7        6          5         4         3            2          1          0
                      TXFFINT
            TXFFINT           TXFFIENA TXFFIL4       TXFFIL3   TXFFIL2      TXFFIL1    TXFFIL0
                      CLR




    TX FIFO              TX FIFO            TX FIFO              TX FIFO Interrupt Level
    Interrupt            Interrupt          Interrupt
    Flag (read-only)     Flag Clear         (on match)           Interrupt when TXFFST4-0
     0 = not occurred     0 = no effect     Enable               and TXFFIL4-0 match
     1 = occurred         1 = clear          0 = disable
                                             1 = enable
Technology beyond the Dreams™                                        Copyright © 2006 Pantech Solutions Pvt
SCI-A FIFO Receive Register
                                 SCIFFRX @ 0x00705B RX FIFO Status (read-only)
 RX FIFO          RX FIFO                               00000       RX FIFO empty
 Overflow         Overflow              RX FIFO Reset00001          RX FIFO has 1 word
 Flag (read-only) Flag Clear      0 = reset (pointer to00010
                                                        0)          RX FIFO has 2 words
  0 = no overflow   0 = no effect 1 = enable operation 00011    .   RX FIFO.has 3 words.
  1 = overflow      1 = clear                                   .
                                                                .            .
                                                                             .              .
                                                                                            .
                                                        10000       RX FIFO has 16 words


              15       14      13     12      11      10      9       8
            RXFF-   RXFF-   RXFIFO
                                   RXFFST4 RXFFST3 RXFFST2 RXFFST1 RXFFST0
            OVF     OVF CLR RESET

               7      6       5       4       3       2       1       0
                   RXFFINT
           RXFFINT         RXFFIEN RXFFIL4 RXFFIL3 RXFFIL2 RXFFIL1 RXFFIL0
                   CLR




    RX FIFO             RX FIFO          RX FIFO          RX FIFO Interrupt Level
    Interrupt           Interrupt        Interrupt
    Flag (read-only)    Flag Clear       (on match)        Interrupt when RXFFST4-0
     0 = not occurred   0 = no effect    Enable            and RXFFIL4-0 match
     1 = occurred       1 = clear         0 = disable
                                          1 = enable
Technology beyond the Dreams™                               Copyright © 2006 Pantech Solutions Pvt
SCI-A FIFO Control Register
                             SCIFFCT @ 0x00705C
 Auto Baud        Auto Baud
 detection        detection        CDC calibrate ‘A’
 Flag (read-only) Flag Clear     0 = disabled auto-baud alignment
  0 = not complete   0 = no effect    1 = enables auto-baud alignment
  1 = complete       1 = clear


               15      14        13       12     11       10         9          8
                     ABD
            ABD               CDC     reserved
                     CLR

               7        6        5        4      3        2          1          0




                                        FFTXDLY
                            Time delay between every transfer from FIFO
                            to transmit shift register
                            in number of SCI baud clock cycles
                            ( 0 to 255 )
Technology beyond the Dreams™                             Copyright © 2006 Pantech Solutions Pvt
SCI Example 1: transmit a text - string
     Lab 8: Basic SCI Communication
     Send a string from DSP to a PC’s COM-port.
     Connect the RS232 - Connector of the board with a standard DB9 - cable
      ( 1:1 ) to a serial port of the PC (COM1or COM2).
     DSP shall transmit a string from the DSP to the PC periodically.
     No SCI interrupt services in this lab
     After transmission of the first character we just poll the transmission ready
      flag (TXEMPTY) before loading the next character into the transmit buffer -
      and wait again.
     The Windows-Hyper Terminal program is used as the counterpart from the
      PC’s-side and must be initialized properly for correct function(Baud rate,
      Parity, no protocol).




Technology beyond the Dreams™                           Copyright © 2006 Pantech Solutions Pvt

Weitere ähnliche Inhalte

Was ist angesagt?

LINUX RS232程式設計
LINUX RS232程式設計LINUX RS232程式設計
LINUX RS232程式設計艾鍗科技
 
Message Signaled Interrupts
Message Signaled InterruptsMessage Signaled Interrupts
Message Signaled InterruptsAnshuman Biswal
 
GPS-320FW
GPS-320FWGPS-320FW
GPS-320FWenenxx
 
Webinar: Wearables - Apresentando um diagrama de blocos e componentes chaves
Webinar: Wearables - Apresentando um diagrama de blocos e componentes chavesWebinar: Wearables - Apresentando um diagrama de blocos e componentes chaves
Webinar: Wearables - Apresentando um diagrama de blocos e componentes chavesEmbarcados
 
Technical s7889
Technical s7889Technical s7889
Technical s7889huslen_du
 
Altera Cyclone IV FPGA Customer Presentation
Altera Cyclone IV FPGA Customer PresentationAltera Cyclone IV FPGA Customer Presentation
Altera Cyclone IV FPGA Customer PresentationAltera Corporation
 
Blueoptics bo56jxx660d 10gbase cwdm sfp+ transceiver 60km singlemode lc duple...
Blueoptics bo56jxx660d 10gbase cwdm sfp+ transceiver 60km singlemode lc duple...Blueoptics bo56jxx660d 10gbase cwdm sfp+ transceiver 60km singlemode lc duple...
Blueoptics bo56jxx660d 10gbase cwdm sfp+ transceiver 60km singlemode lc duple...CBO GmbH
 
Continuum PCAP
Continuum PCAP Continuum PCAP
Continuum PCAP rwachsman
 
SiLLis: Simplified Language for Listener
SiLLis: Simplified Language for ListenerSiLLis: Simplified Language for Listener
SiLLis: Simplified Language for Listenerpaolograssi
 
xbee pro digi-mesh 2.4 oem rf modules
xbee pro  digi-mesh  2.4 oem rf modulesxbee pro  digi-mesh  2.4 oem rf modules
xbee pro digi-mesh 2.4 oem rf modulesSyamim Sempoi
 
Sevana Voice Impairments Detection Library
Sevana Voice Impairments Detection LibrarySevana Voice Impairments Detection Library
Sevana Voice Impairments Detection LibrarySevana Oü
 
QPACE QCD Parallel Computing on the Cell Broadband Engine™ (Cell/B.E.)
QPACE QCD Parallel Computing on the Cell Broadband Engine™ (Cell/B.E.)QPACE QCD Parallel Computing on the Cell Broadband Engine™ (Cell/B.E.)
QPACE QCD Parallel Computing on the Cell Broadband Engine™ (Cell/B.E.)Heiko Joerg Schick
 
Microprocessor based system design
Microprocessor based system designMicroprocessor based system design
Microprocessor based system designTHANDAIAH PRABU
 
Adv. FPGA Motor Control--EBV & Univ. of Koln: Embedded World 2010
Adv. FPGA Motor Control--EBV & Univ. of Koln: Embedded World 2010Adv. FPGA Motor Control--EBV & Univ. of Koln: Embedded World 2010
Adv. FPGA Motor Control--EBV & Univ. of Koln: Embedded World 2010Altera Corporation
 
IRJET- Design and Characteristics of LIZARD Stream Cipher IP Core
IRJET- Design and Characteristics of LIZARD Stream Cipher IP CoreIRJET- Design and Characteristics of LIZARD Stream Cipher IP Core
IRJET- Design and Characteristics of LIZARD Stream Cipher IP CoreIRJET Journal
 
Blueoptics bo56hxx610d 8gbase-cwdm sfp+ transceiver 10km singlemode lc duplex...
Blueoptics bo56hxx610d 8gbase-cwdm sfp+ transceiver 10km singlemode lc duplex...Blueoptics bo56hxx610d 8gbase-cwdm sfp+ transceiver 10km singlemode lc duplex...
Blueoptics bo56hxx610d 8gbase-cwdm sfp+ transceiver 10km singlemode lc duplex...CBO GmbH
 
Security In Dect
Security In DectSecurity In Dect
Security In DectMarc Seeger
 
Unl intro presentation fin
Unl intro presentation finUnl intro presentation fin
Unl intro presentation fineucariot
 

Was ist angesagt? (20)

LINUX RS232程式設計
LINUX RS232程式設計LINUX RS232程式設計
LINUX RS232程式設計
 
Pic base a_1
Pic base a_1Pic base a_1
Pic base a_1
 
Message Signaled Interrupts
Message Signaled InterruptsMessage Signaled Interrupts
Message Signaled Interrupts
 
GPS-320FW
GPS-320FWGPS-320FW
GPS-320FW
 
Webinar: Wearables - Apresentando um diagrama de blocos e componentes chaves
Webinar: Wearables - Apresentando um diagrama de blocos e componentes chavesWebinar: Wearables - Apresentando um diagrama de blocos e componentes chaves
Webinar: Wearables - Apresentando um diagrama de blocos e componentes chaves
 
Technical s7889
Technical s7889Technical s7889
Technical s7889
 
Altera Cyclone IV FPGA Customer Presentation
Altera Cyclone IV FPGA Customer PresentationAltera Cyclone IV FPGA Customer Presentation
Altera Cyclone IV FPGA Customer Presentation
 
Np unit iv i
Np unit iv iNp unit iv i
Np unit iv i
 
Blueoptics bo56jxx660d 10gbase cwdm sfp+ transceiver 60km singlemode lc duple...
Blueoptics bo56jxx660d 10gbase cwdm sfp+ transceiver 60km singlemode lc duple...Blueoptics bo56jxx660d 10gbase cwdm sfp+ transceiver 60km singlemode lc duple...
Blueoptics bo56jxx660d 10gbase cwdm sfp+ transceiver 60km singlemode lc duple...
 
Continuum PCAP
Continuum PCAP Continuum PCAP
Continuum PCAP
 
SiLLis: Simplified Language for Listener
SiLLis: Simplified Language for ListenerSiLLis: Simplified Language for Listener
SiLLis: Simplified Language for Listener
 
xbee pro digi-mesh 2.4 oem rf modules
xbee pro  digi-mesh  2.4 oem rf modulesxbee pro  digi-mesh  2.4 oem rf modules
xbee pro digi-mesh 2.4 oem rf modules
 
Sevana Voice Impairments Detection Library
Sevana Voice Impairments Detection LibrarySevana Voice Impairments Detection Library
Sevana Voice Impairments Detection Library
 
QPACE QCD Parallel Computing on the Cell Broadband Engine™ (Cell/B.E.)
QPACE QCD Parallel Computing on the Cell Broadband Engine™ (Cell/B.E.)QPACE QCD Parallel Computing on the Cell Broadband Engine™ (Cell/B.E.)
QPACE QCD Parallel Computing on the Cell Broadband Engine™ (Cell/B.E.)
 
Microprocessor based system design
Microprocessor based system designMicroprocessor based system design
Microprocessor based system design
 
Adv. FPGA Motor Control--EBV & Univ. of Koln: Embedded World 2010
Adv. FPGA Motor Control--EBV & Univ. of Koln: Embedded World 2010Adv. FPGA Motor Control--EBV & Univ. of Koln: Embedded World 2010
Adv. FPGA Motor Control--EBV & Univ. of Koln: Embedded World 2010
 
IRJET- Design and Characteristics of LIZARD Stream Cipher IP Core
IRJET- Design and Characteristics of LIZARD Stream Cipher IP CoreIRJET- Design and Characteristics of LIZARD Stream Cipher IP Core
IRJET- Design and Characteristics of LIZARD Stream Cipher IP Core
 
Blueoptics bo56hxx610d 8gbase-cwdm sfp+ transceiver 10km singlemode lc duplex...
Blueoptics bo56hxx610d 8gbase-cwdm sfp+ transceiver 10km singlemode lc duplex...Blueoptics bo56hxx610d 8gbase-cwdm sfp+ transceiver 10km singlemode lc duplex...
Blueoptics bo56hxx610d 8gbase-cwdm sfp+ transceiver 10km singlemode lc duplex...
 
Security In Dect
Security In DectSecurity In Dect
Security In Dect
 
Unl intro presentation fin
Unl intro presentation finUnl intro presentation fin
Unl intro presentation fin
 

Ähnlich wie SCI F28x

xa-zynq-7000-product-table (1)
xa-zynq-7000-product-table (1)xa-zynq-7000-product-table (1)
xa-zynq-7000-product-table (1)Angela Suen
 
Raspberry Pi I/O控制與感測器讀取
Raspberry Pi I/O控制與感測器讀取Raspberry Pi I/O控制與感測器讀取
Raspberry Pi I/O控制與感測器讀取艾鍗科技
 
8051 serial communication
8051 serial communication8051 serial communication
8051 serial communicationasteriskbimal
 
8051 serial communication
8051 serial communication8051 serial communication
8051 serial communicationeo9
 
I2 c and mpu6050 basics
I2 c and mpu6050 basicsI2 c and mpu6050 basics
I2 c and mpu6050 basicsironstein1994
 
8051 serial communication
8051 serial communication8051 serial communication
8051 serial communicationcanh phan
 
AVR Fundamentals
AVR FundamentalsAVR Fundamentals
AVR FundamentalsVinit Vyas
 
I2C And SPI Part-23
I2C And  SPI Part-23I2C And  SPI Part-23
I2C And SPI Part-23Techvilla
 
Internet protocol
Internet protocolInternet protocol
Internet protocolOnline
 
BRKRST-3068 Troubleshooting Catalyst 2K and 3K.pdf
BRKRST-3068  Troubleshooting Catalyst 2K and 3K.pdfBRKRST-3068  Troubleshooting Catalyst 2K and 3K.pdf
BRKRST-3068 Troubleshooting Catalyst 2K and 3K.pdfssusercbaa33
 
Network Allies 1553/Arinc PC Tablet
Network Allies 1553/Arinc PC TabletNetwork Allies 1553/Arinc PC Tablet
Network Allies 1553/Arinc PC Tabletpaulh54
 
ds894-zynq-ultrascale-plus-overview
ds894-zynq-ultrascale-plus-overviewds894-zynq-ultrascale-plus-overview
ds894-zynq-ultrascale-plus-overviewAngela Suen
 
ACIT - CCNA Training Course Topic - Switch Stp ACIT
ACIT - CCNA Training Course Topic - Switch Stp ACITACIT - CCNA Training Course Topic - Switch Stp ACIT
ACIT - CCNA Training Course Topic - Switch Stp ACITSleek International
 
Live B tech Projects & Industrial Training @Technogroovy
Live B tech Projects & Industrial Training @Technogroovy Live B tech Projects & Industrial Training @Technogroovy
Live B tech Projects & Industrial Training @Technogroovy Technogroovy India
 

Ähnlich wie SCI F28x (20)

Spi f28x
Spi f28xSpi f28x
Spi f28x
 
lesson01.ppt
lesson01.pptlesson01.ppt
lesson01.ppt
 
Fpga technology
Fpga technologyFpga technology
Fpga technology
 
8051 zigbee interface
8051 zigbee interface8051 zigbee interface
8051 zigbee interface
 
xa-zynq-7000-product-table (1)
xa-zynq-7000-product-table (1)xa-zynq-7000-product-table (1)
xa-zynq-7000-product-table (1)
 
Raspberry Pi I/O控制與感測器讀取
Raspberry Pi I/O控制與感測器讀取Raspberry Pi I/O控制與感測器讀取
Raspberry Pi I/O控制與感測器讀取
 
8051 serial communication
8051 serial communication8051 serial communication
8051 serial communication
 
8051 serial communication
8051 serial communication8051 serial communication
8051 serial communication
 
Rf module
Rf moduleRf module
Rf module
 
Architecture of pentium family
Architecture of pentium familyArchitecture of pentium family
Architecture of pentium family
 
I2 c and mpu6050 basics
I2 c and mpu6050 basicsI2 c and mpu6050 basics
I2 c and mpu6050 basics
 
8051 serial communication
8051 serial communication8051 serial communication
8051 serial communication
 
AVR Fundamentals
AVR FundamentalsAVR Fundamentals
AVR Fundamentals
 
I2C And SPI Part-23
I2C And  SPI Part-23I2C And  SPI Part-23
I2C And SPI Part-23
 
Internet protocol
Internet protocolInternet protocol
Internet protocol
 
BRKRST-3068 Troubleshooting Catalyst 2K and 3K.pdf
BRKRST-3068  Troubleshooting Catalyst 2K and 3K.pdfBRKRST-3068  Troubleshooting Catalyst 2K and 3K.pdf
BRKRST-3068 Troubleshooting Catalyst 2K and 3K.pdf
 
Network Allies 1553/Arinc PC Tablet
Network Allies 1553/Arinc PC TabletNetwork Allies 1553/Arinc PC Tablet
Network Allies 1553/Arinc PC Tablet
 
ds894-zynq-ultrascale-plus-overview
ds894-zynq-ultrascale-plus-overviewds894-zynq-ultrascale-plus-overview
ds894-zynq-ultrascale-plus-overview
 
ACIT - CCNA Training Course Topic - Switch Stp ACIT
ACIT - CCNA Training Course Topic - Switch Stp ACITACIT - CCNA Training Course Topic - Switch Stp ACIT
ACIT - CCNA Training Course Topic - Switch Stp ACIT
 
Live B tech Projects & Industrial Training @Technogroovy
Live B tech Projects & Industrial Training @Technogroovy Live B tech Projects & Industrial Training @Technogroovy
Live B tech Projects & Industrial Training @Technogroovy
 

Mehr von Pantech ProLabs India Pvt Ltd

Choosing the right processor for embedded system design
Choosing the right processor for embedded system designChoosing the right processor for embedded system design
Choosing the right processor for embedded system designPantech ProLabs India Pvt Ltd
 

Mehr von Pantech ProLabs India Pvt Ltd (20)

Registration process
Registration processRegistration process
Registration process
 
Choosing the right processor for embedded system design
Choosing the right processor for embedded system designChoosing the right processor for embedded system design
Choosing the right processor for embedded system design
 
Brain Computer Interface
Brain Computer InterfaceBrain Computer Interface
Brain Computer Interface
 
Electric Vehicle Design using Matlab
Electric Vehicle Design using MatlabElectric Vehicle Design using Matlab
Electric Vehicle Design using Matlab
 
Image processing application
Image processing applicationImage processing application
Image processing application
 
Internet of Things using Raspberry Pi
Internet of Things using Raspberry PiInternet of Things using Raspberry Pi
Internet of Things using Raspberry Pi
 
Internet of Things Using Arduino
Internet of Things Using ArduinoInternet of Things Using Arduino
Internet of Things Using Arduino
 
Brain controlled robot
Brain controlled robotBrain controlled robot
Brain controlled robot
 
Brain Computer Interface-Webinar
Brain Computer Interface-WebinarBrain Computer Interface-Webinar
Brain Computer Interface-Webinar
 
Development of Deep Learning Architecture
Development of Deep Learning ArchitectureDevelopment of Deep Learning Architecture
Development of Deep Learning Architecture
 
Future of AI
Future of AIFuture of AI
Future of AI
 
Gate driver design and inductance fabrication
Gate driver design and inductance fabricationGate driver design and inductance fabrication
Gate driver design and inductance fabrication
 
Brainsense -Brain computer Interface
Brainsense -Brain computer InterfaceBrainsense -Brain computer Interface
Brainsense -Brain computer Interface
 
Median filter Implementation using TMS320C6745
Median filter Implementation using TMS320C6745Median filter Implementation using TMS320C6745
Median filter Implementation using TMS320C6745
 
Introduction to Code Composer Studio 4
Introduction to Code Composer Studio 4Introduction to Code Composer Studio 4
Introduction to Code Composer Studio 4
 
Waveform Generation Using TMS320C6745 DSP
Waveform Generation Using TMS320C6745 DSPWaveform Generation Using TMS320C6745 DSP
Waveform Generation Using TMS320C6745 DSP
 
Interfacing UART with tms320C6745
Interfacing UART with tms320C6745Interfacing UART with tms320C6745
Interfacing UART with tms320C6745
 
Switch & LED using TMS320C6745 DSP
Switch & LED using TMS320C6745 DSPSwitch & LED using TMS320C6745 DSP
Switch & LED using TMS320C6745 DSP
 
Led blinking using TMS320C6745
Led blinking using TMS320C6745Led blinking using TMS320C6745
Led blinking using TMS320C6745
 
Introduction to tms320c6745 dsp
Introduction to tms320c6745 dspIntroduction to tms320c6745 dsp
Introduction to tms320c6745 dsp
 

Kürzlich hochgeladen

Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 

Kürzlich hochgeladen (20)

Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 

SCI F28x

  • 1. Chapter 8 : Serial Communication Interface C28x Digital Signal Controller TMS320F2812 Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt
  • 2. SCI Pin Connections TX FIFO_0 (Full Duplex Shown) TX FIFO_0 TX FIFO_15 TX FIFO_15 Transmitter-data Transmitter-data buffer register buffer register 8 8 Transmitter SCITXD SCITXD Transmitter shift register shift register Receiver SCIRXD SCIRXD Receiver shift register shift register 8 8 Receiver-data Receiver-data buffer register buffer register RX FIFO_0 RX FIFO_0 RX FIFO_15 RX FIFO_15 TechnologySCI Device #1 beyond the Dreams™ SCI Device #2 Copyright © 2006 Pantech Solutions Pvt
  • 3. SCI-A Programmable Data Format NRZ (nonreturn to zero) format Addr/ Start LSB 2 3 4 5 6 7 MSB Parity Stop 1 Stop 2 Data This bit present only in Address-bit mode Majority Vote SCICLK (Internal) 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 1 2 SCIRXD Start Bit LSB of Data Falling Edge Detected Note: 8 SCICLK periods per data bit Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt
  • 4. Multiprocessor Wake-Up Modes • Allows numerous processors to be hooked up to the bus, but transmission occurs between only two of them • Idle-line or Address-bit modes • Sequence of Operation 1. Potential receivers set SLEEP = 1, which disables RXINT except when an address frame is received 2. All transmissions begin with an address frame 3. Incoming address frame temporarily wakes up all SCIs on bus 4. CPUs compare incoming SCI address to their SCI address 5. Process following data frames only if address matches Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt
  • 5. Idle-Line Wake-Up Mode • Idle time separates blocks of frames • Receiver wakes up with falling edge after SCIRXD was high for 10 or more bit periods • Two transmit address methods – deliberate software delay of 10 or more bits – set TXWAKE bit to automatically leave exactly 11 idle bits Idle periods of less than Block of Frames 10 bits SCIRXD/ Last Data SP ST Addr SP ST Data SP ST Last Data SP ST Addr SP SCITXD Idle Address frame 1st data frame Idle Period follows 10 bit Period 10 bits 10 bits or greater or greater idle or greater Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt
  • 6. Address-Bit Wake-Up Mode • All frames contain an extra address bit • Receiver wakes up when address bit detected • Automatic setting of Addr/Data bit in frame by setting TXWAKE = 1 prior to writing address to SCITXBUF Block of Frames SCIRXD/ Last Data 0 SP ST Addr 1 SP ST Data 0 SP ST Last Data 0 SP ST Addr 1 SP SCITXD First frame within 1st data frame no additional Idle Period block is Address. idle bits needed length of no ADDR/DATA beyond stop bits significance bit set to 1 Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt
  • 7. SCI Summary • Asynchronous communications format • 65,000+ different programmable baud rates • Two wake-up multiprocessor modes – Idle-line wake-up & Address-bit wake-up • Programmable data word format – 1 to 8 bit data word length – 1 or 2 stop bits – even/odd/no parity • Error Detection Flags – Parity error; Framing error; Overrun error; Break detection • FIFO-buffered transmit and receive • Individual interrupts for transmit and receive Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt
  • 8. SCI-A Registers Address Register Name 0x007050 SCICCR SCI-A commun. control register 0x007051 SCICTL1 SCI-A control register 1 0x007052 SCIHBAUD SCI-A baud register, high byte 0x007053 SCILBAUD SCI-A baud register, low byte 0x007054 SCICTL2 SCI-A control register 2 register 0x007055 SCIRXST SCI-A receive status register 0x007056 SCIRXEMU SCI-A receive emulation databuffer 0x007057 SCIRXBUF SCI-A receive data buffer register 0x007059 SCITXBUF SCI-A transmit data buffer register 0x00705A SCIFFTX SCI-A FIFO transmit register 0x00705B SCIFFRX SCI-A FIFO receive register 0x00705C SCIFFCT SCI-A FIFO control register 0x00705F SCIPRI SCI-A priority control register Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt
  • 9. SCI-A Communication Control Register Communications Control Register (SCICCR) – 0x007050 7 6 5 4 3 2 1 0 STOP EVEN/ODD PARITY LOOP BACK ADDR/IDLE SCI SCI SCI BITS PARITY ENABLE ENABLE MODE CHAR2 CHAR1 CHAR0 0 = 1 Stop bit 0 = Disabled 0 = Idle-line mode # of data bits = (binary + 1) 1 = 2 Stop bits 1 = Enabled 1 = Addr-bit mode e.g. 110b gives 7 data bits 0 = Odd 0 = Disabled 1 = Even 1 = Enabled Technology beyond the Dreams™ Control Register (SCICCR) – 0x007750] [SCI-B Communications Copyright © 2006 Pantech Solutions Pvt
  • 10. SCI-A Control Register 1 Control Register 1 (SCICTL1) – 0x007051 7 6 5 4 3 2 1 0 reserved RX ERR SW reserved TXWAKE SLEEP TXENA RXENA INT ENA RESET 0 = receiver disabled 1 = receiver enabled 0 = transmitter disabled 1 = transmitter enabled 0 = sleep mode disabled 1 = sleep mode enabled Transmitter wakeup method select 1 = wakeup mode depends on SCICCR.3 0 = no wakeup mode Write 0 = Reset SCI Write 1 = release from Reset 0 = Receive Error Interrupt disabled 1 = Receive Error Interrupt enabled Technology beyond the Dreams™ 0x007751] [SCI-B Control Register 1 (SCICTL1) – Copyright © 2006 Pantech Solutions Pvt
  • 11. 16 SCI-A Baud Rate BRR = 0 , LSPCLK SCI baud rate = (BRR + 1) x 8 BRR = 1 to 65535 , LSPCLK Baud-Select MSbyte Register (SCIHBAUD) – 0x007052 7 6 5 4 3 2 1 0 BAUD15 BAUD14 BAUD13 BAUD12 BAUD11 BAUD10 BAUD9 BAUD8 (MSB) Baud-Select LSbyte Register (SCILBAUD) – 0x007053 7 6 5 4 3 2 1 0 BAUD7 BAUD6 BAUD5 BAUD4 BAUD3 BAUD2 BAUD1 BAUD0 (LSB) [SCI-B Baud-Select MSbyte Register (SCIHBAUD) – 0x007752] [SCI-B Baud-Select LSbyte Register (SCILBAUD) – 0x007753] Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt
  • 12. SCI-A Control Register 2 SCICTL2 @ 0x007054 15 - 8 7 6 5-2 1 0 reserved TX reserved RX/BK TX TXRDY EMPTY INT ENA INT ENA SCI RX/BK INT ENA 0 = Disable RXRDY/BRKDT interrupt 1 = Enable RXRDY/BRKDT interrupt SCI TX EMPTY 0 = TXBUF or shift register are loaded with data 1 = Transmit buffer and shift register both empty SCI TX READY SCI TX INT ENA 0 = SCITXBUF is full 0 = Disable TXRDY interrupt 1 = SCITXBUF is empty 1 = Enable TXRDY interrupt Technology beyond the Dreams™ 0x007754] [SCI-B Control Register 2(SCICTL2) – Copyright © 2006 Pantech Solutions Pvt
  • 13. SCI-A Receiver Status Register SCIRXST @ 0x007055 7 6 5 4 3 2 1 0 RX RXRDY BRKDT FE OE PE RXWAKE reserved ERROR 1 = Receiver wakeup condition detected 1 = Parity Error detected 1 = Overrun Error detected 1 = Framing Error detected 1 = Break condition occurred 0 = no break condition 0 = no new character in SCIRXBUF 1 = new character in SCIRXBUF 0 = No error flags set 1 = Error flag(s) set [SCI-B Receiver Status Register (SCIRXST) – 0x007755] Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt
  • 14. SCI-A FIFO Transmit Register SCIFFTX @ 0x00705A SCI FIFO TX FIFO Status (read-only) Enhancements 00000 TX FIFO empty 0 = disable TX FIFO Reset 00001 TX FIFO has 1 word 1 = enable 0 = reset (pointer to 0) 00010 TX FIFO has 2 words 1 = enable operation00011 . TX FIFO.has 3 words. SCI Reset . . . . . . 0 = reset 10000 TX FIFO has 16 words 1 = enable operation 15 14 13 12 11 10 9 8 TXFIFO SCIRST SCIFFENA TXFFST4 TXFFST3 TXFFST2 TXFFST1 TXFFST0 RESET 7 6 5 4 3 2 1 0 TXFFINT TXFFINT TXFFIENA TXFFIL4 TXFFIL3 TXFFIL2 TXFFIL1 TXFFIL0 CLR TX FIFO TX FIFO TX FIFO TX FIFO Interrupt Level Interrupt Interrupt Interrupt Flag (read-only) Flag Clear (on match) Interrupt when TXFFST4-0 0 = not occurred 0 = no effect Enable and TXFFIL4-0 match 1 = occurred 1 = clear 0 = disable 1 = enable Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt
  • 15. SCI-A FIFO Receive Register SCIFFRX @ 0x00705B RX FIFO Status (read-only) RX FIFO RX FIFO 00000 RX FIFO empty Overflow Overflow RX FIFO Reset00001 RX FIFO has 1 word Flag (read-only) Flag Clear 0 = reset (pointer to00010 0) RX FIFO has 2 words 0 = no overflow 0 = no effect 1 = enable operation 00011 . RX FIFO.has 3 words. 1 = overflow 1 = clear . . . . . . 10000 RX FIFO has 16 words 15 14 13 12 11 10 9 8 RXFF- RXFF- RXFIFO RXFFST4 RXFFST3 RXFFST2 RXFFST1 RXFFST0 OVF OVF CLR RESET 7 6 5 4 3 2 1 0 RXFFINT RXFFINT RXFFIEN RXFFIL4 RXFFIL3 RXFFIL2 RXFFIL1 RXFFIL0 CLR RX FIFO RX FIFO RX FIFO RX FIFO Interrupt Level Interrupt Interrupt Interrupt Flag (read-only) Flag Clear (on match) Interrupt when RXFFST4-0 0 = not occurred 0 = no effect Enable and RXFFIL4-0 match 1 = occurred 1 = clear 0 = disable 1 = enable Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt
  • 16. SCI-A FIFO Control Register SCIFFCT @ 0x00705C Auto Baud Auto Baud detection detection CDC calibrate ‘A’ Flag (read-only) Flag Clear 0 = disabled auto-baud alignment 0 = not complete 0 = no effect 1 = enables auto-baud alignment 1 = complete 1 = clear 15 14 13 12 11 10 9 8 ABD ABD CDC reserved CLR 7 6 5 4 3 2 1 0 FFTXDLY Time delay between every transfer from FIFO to transmit shift register in number of SCI baud clock cycles ( 0 to 255 ) Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt
  • 17. SCI Example 1: transmit a text - string  Lab 8: Basic SCI Communication  Send a string from DSP to a PC’s COM-port.  Connect the RS232 - Connector of the board with a standard DB9 - cable ( 1:1 ) to a serial port of the PC (COM1or COM2).  DSP shall transmit a string from the DSP to the PC periodically.  No SCI interrupt services in this lab  After transmission of the first character we just poll the transmission ready flag (TXEMPTY) before loading the next character into the transmit buffer - and wait again.  The Windows-Hyper Terminal program is used as the counterpart from the PC’s-side and must be initialized properly for correct function(Baud rate, Parity, no protocol). Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt