Tms 320 LF 2406 A
Tms 320 LF 2406 A
TMS320LC2406A,TMS320LC2404A,TMS320LC2403A,TMS320LC2402A
                                                                                    DSP CONTROLLERS
                                                                                                                   SPRS145L − JULY 2000 − REVISED SEPTEMBER 2007
PRODUCTION DATA information is current as of publication date.                                                           Copyright  2005, Texas Instruments Incorporated
Products conform to specifications per the terms of Texas Instruments
standard warranty. Production processing does not necessarily include
testing of all parameters.
Table of Contents
REVISION HISTORY
PAGE HIGHLIGHTS
59 Added 1/4 W to second column header in Table 10, Loop Filter Component Values With Damping Factor = 2.0
77 Added Figure 23
       Changed parameter td(WRN) in switching characteristics over recommended operating conditions for an external
101
       memory interface write at 40 MHz [H = 0.5tc(CO)] table
108 Changed MAX value for ICCA in operating characteristics over recommended operating condition ranges table
description
      The TMS320LF240xA and TMS320LC240xA devices, new members of the TMS320C24x generation of
      digital signal processor (DSP) controllers, are part of the TMS320C2000 platform of fixed-point DSPs. The
      240xA devices offer the enhanced TMS320 DSP architectural design of the C2xx core CPU for low-cost,
      low-power, and high-performance processing capabilities. Several advanced peripherals, optimized for digital
      motor and motion control applications, have been integrated to provide a true single-chip DSP controller. While
      code-compatible with the existing C24x DSP controller devices, the 240xA offers increased processing
      performance (40 MIPS) and a higher level of peripheral integration. See the TMS320x240xA Device Summary
      section for device-specific features.
      The 240xA generation offers an array of memory sizes and different peripherals tailored to meet the specific
      price/performance points required by various applications. Flash devices of up to 32K words offer a
      cost-effective reprogrammable solution for volume production. The 240xA devices offer a password-based
      “code security” feature which is useful in preventing unauthorized duplication of proprietary code stored in
      on-chip Flash/ROM. Note that Flash-based devices contain a 256-word boot ROM to facilitate in-circuit
      programming. The 240xA family also includes ROM devices that are fully pin-to-pin compatible with their Flash
      counterparts.
      All 240xA devices offer at least one event manager module which has been optimized for digital motor control
      and power conversion applications. Capabilities of this module include center- and/or edge-aligned PWM
      generation, programmable deadband to prevent shoot-through faults, and synchronized analog-to-digital
      conversion. Devices with dual event managers enable multiple motor and/or converter control with a single
      240xA DSP controller. Select EV pins have been provided with an “input-qualifier” circuitry, which minimizes
      inadvertent pin-triggering by glitches.
      The high-performance, 10-bit analog-to-digital converter (ADC) has a minimum conversion time of 375 ns and
      offers up to 16 channels of analog input. The autosequencing capability of the ADC allows a maximum of
      16 conversions to take place in a single conversion session without any CPU overhead.
      A serial communications interface (SCI) is integrated on all devices to provide asynchronous communication
      to other devices in the system. For systems requiring additional communication interfaces, the 2407A, 2406A,
      2404A, and 2403A offer a 16-bit synchronous serial peripheral interface (SPI). The 2407A, 2406A, and 2403A
      offer a controller area network (CAN) communications module that meets 2.0B specifications. To maximize
      device flexibility, functional pins are also configurable as general-purpose inputs/outputs (GPIOs).
      To streamline development time, JTAG-compliant scan-based emulation has been integrated into all devices.
      This provides non-intrusive real-time capabilities required to debug digital control systems. A complete suite
      of code-generation tools from C compilers to the industry-standard Code Composer Studio debugger
      supports this family. Numerous third-party developers not only offer device-level development tools, but also
      system-level design and development support.
                                         ÈÈÈÈÈÈÈ
                                                     32 Words                                    XINT2/ADCSOC/IOPD0
                                         ÈÈÈÈÈÈÈÈÈÈÈÈÈÈ
                                                                                                 SCITXD/IOPA0
                                                                                  SCI            SCIRXD/IOPA1
                                         ÈÈÈÈÈÈÈÈÈÈÈÈÈÈ
                                                                                                 SPISIMO/IOPC2
                                           SARAM (2K Words)
                                                                                                 SPISOMI/IOPC3
                                         ÈÈÈÈÈÈÈÈÈÈÈÈÈÈ
                                                                                  SPI            SPICLK/IOPC4
                                         ÈÈÈÈÈÈÈÈÈÈÈÈÈÈ
                                                                                                 SPISTE/IOPC5
                                TP1
                                                                                                 CANTX/IOPC6
                                         ÈÈÈÈÈÈÈÈÈÈÈÈÈÈ
                               TP2             Flash/ROM                          CAN            CANRX/IOPC7
                           VCCP(5V)           (32K Words:
                                         ÈÈÈÈÈÈÈ
                                             4K/12K/12K/4K)
                                                                                  WD
                                         ÈÈÈÈÈÈÈ
                                                                                                 Port A(0−7) IOPA[0:7]
                             A0−A15                                                              Port B(0−7) IOPB[0:7]
                                         ÈÈÈÈÈÈÈ
                            D0−D15                                              Digital I/O      Port C(0−7) IOPC[0:7]
                                         ÈÈÈÈÈÈÈ
                          PS, DS, IS                                          (Shared With       Port D(0) IOPD[0]
                                R/W                                            Other Pins)       Port E(0−7) IOPE[0:7]
                                         ÈÈÈÈÈÈÈ
                                 RD                                                              Port F(0−6) IOPF[0:6]
                                                                                                 TRST
                                         ÈÈÈÈÈÈÈ
                             READY
                                             External Memory
                              STRB               Interface                                       TDO
                                         ÈÈÈÈÈÈÈ
                                 WE                                                              TDI
                           ENA_144                                            JTAG Port          TMS
ÈÈÈÈÈÈÈ TCK
                                         ÈÈÈÈÈÈÈÈÈÈÈÈÈÈ
                            VIS_OE                                                               EMU0
                         W/R / IOPC0                                                             EMU1
                                                ÈÈÈÈÈÈÈ
                           PDPINTA                                                               PDPINTB
                                                ÈÈÈÈÈÈÈ
                    CAP1/QEP1/IOPA3                                                              CAP4/QEP3/IOPE7
                    CAP2/QEP2/IOPA4                                                              CAP5/QEP4/IOPF0
                                                ÈÈÈÈÈÈÈ
                         CAP3/IOPA5                                                              CAP6/IOPF1
                        PWM1/IOPA6                                                               PWM7/IOPE1
                                                ÈÈÈÈÈÈÈ
                        PWM2/IOPA7
                                             Event Manager A               Event Manager B
                                                                                                 PWM8/IOPE2
                                                ÈÈÈÈÈÈÈ
                        PWM3/IOPB0         D 3 × Capture Input            D 3 × Capture Input    PWM9/IOPE3
                        PWM4/IOPB1         D 6 × Compare/PWM              D 6 × Compare/PWM      PWM10/IOPE4
                                                ÈÈÈÈÈÈÈ
                        PWM5/IOPB2           Output                         Output               PWM11/IOPE5
                                           D 2 × GP                       D 2 × GP
                                                ÈÈÈÈÈÈÈ
                        PWM6/IOPB3                                                               PWM12/IOPE6
                                             Timers/PWM                     Timers/PWM
                 T1PWM/T1CMP/IOPB4                                                               T3PWM/T3CMP/IOPF2
                                                ÈÈÈÈÈÈÈ
                 T2PWM/T2CMP/IOPB5                                                               T4PWM/T4CMP/IOPF3
                                                ÈÈÈÈÈÈÈ
                        TDIRA/IOPB6                                                              TDIRB/IOPF4
                      TCLKINA/IOPB7                                                              TCLKINB/IOPF5
                ÈÈÈ
                ÈÈÈ
                             Indicates optional modules.
                             The memory size and peripheral selection of these modules change for different 240xA devices.
pinouts
                                                                                                                                                                PGE PACKAGE†
                                                                                                                                                                  (TOP VIEW)
TCLKINB/ IOPF5
                                                                                                                                                                                                                                                                             BOOT_EN/XF ‡
                                                                                                                                                                                                                                                     XTAL1/CLKIN
                                                                                                                                                                                                                                                                                                    BIO/ IOPC1
                                                                                                   PDPINTB
ENA_144
                                                                                                                                                                                                                                                                                                                                                   ADCIN08
                                                                                                                                                                                                                                                                                                                                                             ADCIN00
                                                                                                                                                                                                                                                                                                                                                                       ADCIN09
                                                                                                                                                                                                                                                                                                                                                                                 ADCIN01
                                                                                                                                                                                                                                                                                                                                                                                            ADCIN10
                                                                                                                                                                                                                                                                                                                                     VREFLO
                                                                                                                                                                                                                                                                                                                                     VREFHI
                                                                                                                                                                                                                                                                                            READY
                                                                                                                                                                                                                                                                                                                 MP/MC
                                                                                                                                                                                                                                             XTAL2
                                                                                                                                                               IOPF6
                                                                            V SSO
V SSO
                                                                                                                                                                                                                                                                                                                             V CCA
                                                                VDDO
                                                                                                                                                                                                                                                                                                                 V SSA
                                                                                                                                                                                           V SS
                                                                                                                                                                       VDD
                                TMS
TDO
                                                                                                                      TCK
                                                                                     TDI
                                                                                                                                                   RS
                                                 D6
D5
D4
D3
D2
D1
D0
                                                                                                                                                                                                                                                                                                                                                                       111
                                144
                                                 143
                                                                142
                                                                      141
                                                                             140
                                                                                     139
                                                                                            138
                                                                                                   137
                                                                                                                136
                                                                                                                      135
                                                                                                                                     134
                                                                                                                                                   133
                                                                                                                                                         132
                                                                                                                                                               131
                                                                                                                                                                       130
                                                                                                                                                                             129
                                                                                                                                                                                           128
                                                                                                                                                                                                  127
                                                                                                                                                                                                                126
                                                                                                                                                                                                                               125
                                                                                                                                                                                                                                             124
                                                                                                                                                                                                                                                     123
                                                                                                                                                                                                                                                                   122
                                                                                                                                                                                                                                                                                 121
                                                                                                                                                                                                                                                                                            120
                                                                                                                                                                                                                                                                                                    119
                                                                                                                                                                                                                                                                                                                 118
                                                                                                                                                                                                                                                                                                                       117
                                                                                                                                                                                                                                                                                                                              116
                                                                                                                                                                                                                                                                                                                                     115
                                                                                                                                                                                                                                                                                                                                            114
                                                                                                                                                                                                                                                                                                                                                   113
                                                                                                                                                                                                                                                                                                                                                             112
                                                                                                                                                                                                                                                                                                                                                                                 110
                                                                                                                                                                                                                                                                                                                                                                                           109
                   TRST    1                                                                                                                                                                                                                                                                                                                                                                              108   ADCIN11
             TDIRB/IOPF4   2                                                                                                                                                                                                                                                                                                                                                                              107   ADCIN02
                   VSSO    3                                                                                                                                                                                                                                                                                                                                                                              106   ADCIN12
                   VDDO    4                                                                                                                                                                                                                                                                                                                                                                              105   ADCIN03
                     D7    5                                                                                                                                                                                                                                                                                                                                                                              104   ADCIN13
      T4PWM/T4CMP/IOPF3    6                                                                                                                                                                                                                                                                                                                                                                              103   ADCIN04
                PDPINTA    7                                                                                                                                                                                                                                                                                                                                                                              102   ADCIN05
      T3PWM/T3CMP/IOPF2    8                                                                                                                                                                                                                                                                                                                                                                              101   ADCIN14
                     D8    9                                                                                                                                                                                                                                                                                                                                                                              100   ADCIN06
                  PLLF2    10                                                                                                                                                                                                                                                                                                                                                                              99   ADCIN07
                   PLLF    11                                                                                                                                                                                                                                                                                                                                                                              98   ADCIN15
                PLLVCCA    12                                                                                                                                                                                                                                                                                                                                                                              97   VIS_OE
                     D9    13                                                                                                                                                                                                                                                                                                                                                                              96   STRB
             TDIRA/IOPB6   14                                                                                                                                                                                                                                                                                                                                                                              95   VDDO
                    D10    15                                                                                                                                                                                                                                                                                                                                                                              94   VSSO
      T1PWM/T1CMP/IOPB4    16                                                                                                                                                                                                                                                                                                                                                                              93   RD
                    D11    17                                                                                                                                                                                                                                                                                                                                                                              92   R/W
      T2PWM/T2CMP/IOPB5    18                                                                                                                             TMS320LF2407A PGE                                                                                                                                                                                                                                91   EMU1/OFF
               W/R/IOPC0   19                                                                                                                                                                                                                                                                                                                                                                              90   EMU0
                    D12    20                                                                                                                                                                                                                                                                                                                                                                              89   WE
      XINT2/ADCSOC/IOPD0   21                                                                                                                                                                                                                                                                                                                                                                              88   CAP4/QEP3/IOPE7
                    D13    22                                                                                                                                                                                                                                                                                                                                                                              87   DS
             XINT1/IOPA2   23                                                                                                                                                                                                                                                                                                                                                                              86   VDD
                    D14    24                                                                                                                                                                                                                                                                                                                                                                              85   VSS
            SCITXD/IOPA0   25                                                                                                                                                                                                                                                                                                                                                                              84   PS
            SCIRXD/IOPA1   26                                                                                                                                                                                                                                                                                                                                                                              83   CAP1/QEP1/IOPA3
                    D15    27                                                                                                                                                                                                                                                                                                                                                                              82   IS
                    VSS    28                                                                                                                                                                                                                                                                                                                                                                              81   CAP5/QEP4/IOPF0
                    VDD    29                                                                                                                                                                                                                                                                                                                                                                              80   A0
           SPISIMO/IOPC2   30                                                                                                                                                                                                                                                                                                                                                                              79   CAP2/QEP2/IOPA4
                    A15    31                                                                                                                                                                                                                                                                                                                                                                              78   A1
           SPISOMI/IOPC3   32                                                                                                                                                                                                                                                                                                                                                                              77   VDDO
            SPISTE/IOPC5   33                                                                                                                                                                                                                                                                                                                                                                              76   VSSO
                    A14    34                                                                                                                                                                                                                                                                                                                                                                              75   CAP3/IOPA5
            SPICLK/IOPC4   35                                                                                                                                                                                                                                                                                                                                                                              74   A2
                   TMS2    36                                                                                                                                                                                                                                                                                                                                                                              73   CLKOUT/IOPE0
                                37
                                                 38
                                                                39
                                                                      40
                                                                            41
                                                                                     42
                                                                                            43
                                                                                                  44
                                                                                                                45
                                                                                                                      46
                                                                                                                                     47
                                                                                                                                                   48
                                                                                                                                                         49
                                                                                                                                                               50
                                                                                                                                                                       51
                                                                                                                                                                             52
                                                                                                                                                                                           53
                                                                                                                                                                                                  54
                                                                                                                                                                                                                55
                                                                                                                                                                                                                               56
                                                                                                                                                                                                                                             57
                                                                                                                                                                                                                                                     58
                                                                                                                                                                                                                                                                   59
                                                                                                                                                                                                                                                                                 60
                                                                                                                                                                                                                                                                                            61
                                                                                                                                                                                                                                                                                                    62
                                                                                                                                                                                                                                                                                                                 63
                                                                                                                                                                                                                                                                                                                       64
                                                                                                                                                                                                                                                                                                                             65
                                                                                                                                                                                                                                                                                                                                     66
                                                                                                                                                                                                                                                                                                                                            67
                                                                                                                                                                                                                                                                                                                                                   68
                                                                                                                                                                                                                                                                                                                                                             69
                                                                                                                                                                                                                                                                                                                                                                       70
                                                                                                                                                                                                                                                                                                                                                                                 71
                                                                                                                                                                                                                                                                                                                                                                                           72
                                                                                                                                                                                                                                                                                                                                                               CAP6/ IOPF1
                                                                                                                                                                                                                                                                                                                              PWM7/ IOPE1
                                                                                                                                     PWM4/ IOPB1
                                                 PWM12/ IOPE6
                                                                                                                                                                                                                                                                   PWM9/ IOPE3
                                                                                                                A11
                                                                                                                                                   V SS
                                                                                                                                                               VDD
                                                                             V SSO
TP1
TP2
                                                                                                                                                                                                                                                                                                                                    V SSO
                                                                A13
                                                                                     VDDO
                                                                                            A12
A10
A9
A8
                                                                                                                                                                                                                                                A7
                                                                                                                                                                                                                                             V CCP
A6
A5
                                                                                                                                                                                                                                                                                                                                            VDDO
                                                                                                                                                                                                                                                                                                                                                   A4
                                                                                                                                                                                                                                                                                                                                                                                 A3
                                TCLKINA/ IOPB7
PWM6/ IOPB3
PWM5/ IOPB2
PWM3/ IOPB0
CANRX/ IOPC7
                                                                                                                                                                                                                                                                                                                                                                                           CANTX/ IOPC6
                                                                                                                      PWM11/ IOPE5
PWM10/ IOPE4
                                                                                                                                                                                                                                                                                            PWM8/ IOPE2
                                                                                                                                                                                                  PWM2/ IOPA7
PWM1/ IOPA6
pinouts (continued)
                                                                       PZ PACKAGE†
                                                                        ( TOP VIEW )
CAP4/QEP3/ IOPE7
CAP1/QEP1/ IOPA3
                                              CAP2/QEP2/ IOPA4
                                              CAP5/QEP4/ IOPF0
                                              CLKOUT/IOPE0
                                              CAP3/ IOPA5
                                              EMU1/ OFF
                                              ADCIN02
                                              ADCIN12
                                              ADCIN03
                                              ADCIN13
                                              ADCIN04
                                              ADCIN05
                                              ADCIN14
                                              ADCIN06
                                              ADCIN07
                                              ADCIN15
                                              ADCIN11
V DDO
                                              V DDO
                                              V SSO
                                              V SSO
                                              EMU0
                                              V DD
                                              V SS
                                             75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51
                                 ADCIN10    76                                                                     50     CANTX/IOPC6‡
                                 ADCIN01    77                                                                     49     CANRX/IOPC7‡
                                ADCIN09     78                                                                     48     CAP6/IOPF1
                                ADCIN00     79                                                                     47     VDDO
                                 ADCIN08    80                                                                     46     VSSO
                                  VREFLO    81                                                                     45     PWM7/IOPE1
                                  VREFHI    82                                                                     44     TP2
                                    VCCA    83                                                                     43     PWM8/IOPE2
                                     VSSA   84                                                                     42     TP1
                               BIO/IOPC1    85                                                                     41     PWM9/IOPE3
                            BOOT_EN/XF§     86                                                                     40     VCCP¶
                             XTAL1/CLKIN    87
                                                              TMS320LC2404A PZ                                     39     PWM1/IOPA6
                                   XTAL2    88                TMS320LC2406A PZ                                     38     PWM10/IOPE4
                           TCLKINB/IOPF5    89                TMS320LF2406A PZ                                     37     PWM2/IOPA7
                                      VSS   90                                                                     36     PWM3/IOPB0
                                     VDD    91                                                                     35     VDD
                                  IOPF6     92                                                                     34     VSS
                                     RS     93                                                                     33     PWM4/IOPB1
                                    TCK     94                                                                     32     PWM11/IOPE5
                                PDPINTB     95                                                                     31     PWM5/IOPB2
                                     TDI    96                                                                     30     VDDO
                                   VSSO     97                                                                     29     VSSO
                                   VDDO     98                                                                     28     PWM6/IOPB3
                                    TDO     99                                                                     27     PWM12/IOPE6
                                    TMS     100                                                                    26     TCLKINA/IOPB7
                                                  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
                                                     SCIRXD/ IOPA1
                                                    SPISIMO/IOPC2
                                                    SPISOMI/ IOPC3
                                                              V SSO
                                                          PLLVCCA
                                                             V DDO
                                                          PDPINTA
                                                               TRST
                                                      TDIRB/ IOPF4
T4PWM/T4CMP/ IOPF3
T3PWM/T3CMP/ IOPF2
                                                                V SS
                                                      TDIRA/ IOPB6
                                              T1PWM/T1CMP/ IOPB4
                                              T2PWM/T2CMP/ IOPB5
                                                             IOPC0
                                              XINT2/ADCSOC/ IOPD0
V DD
                                                     SPISTE/ IOPC5
                                                     SPICLK/ IOPC4
                                                             PLLF2
                                                               PLLF
                                                       XINT1/ IOPA2
                                                     SCITXD/ IOPA0
TMS2
pinouts (continued)
                                                             PAG PACKAGE†‡
                                                               (TOP VIEW)
                                              XINT2/ADCSOC/IOPD0
                                              T2PWM/T2CMP/IOPB5
                                              T1PWM/T1CMP/IOPB4
                                              SPISOMI/IOPC3
                                              SPISIMO/IOPC2
                                              SCIRXD/IOPA1
                                              SPICLK/IOPC4
SCITXD/IOPA0
                                               PDPINTA
                                              PLLV CCA
                                               TRST
                                              PLLF2
                                              VDDO
                                              TMS2
                                              VSSO
                                              PLLF
                                              48 47 46 45 44 4342 41 40 39 38 37 36 35 34 33
               TCLKINA/IOPB7             49                                                         32        TMS
                 PWM6/IOPB3              50                                                         31        TDO
                         VSSO            51                                                         30        TDI
                         VDDO            52                                                         29        TCK
                 PWM5/IOPB2              53                                                         28        RS
                 PWM4/IOPB1              54                                                         27        VDD
                          VSS            55                                                         26        VSS
                          VDD            56                TMS320LF2403A PAG                        25        XTAL2
                 PWM3/IOPB0              57                TMS320LC2403A PAG                        24        XTAL1/CLKIN
                 PWM2/IOPA7              58                TMS320LC2402A PAG                        23        BOOT_EN/XF§
                 PWM1/IOPA6              59                                                         22        VSSA
                        VCCP¶            60                                                         21        VCCA
                          TP1            61                                                         20        VREFHI
                          TP2            62                                                         19        VREFLO
                CANRX/IOPC7              63                                                         18        ADCIN00
                CANTX/IOPC6              64                                                         17        ADCIN01
                                               1   2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
                                                                   ADCIN03
                                                                   ADCIN07
                                                                   ADCIN06
                                                                   ADCIN05
                                                                   ADCIN04
                                                                   ADCIN02
                                                          VSS
                                                CLKOUT/IOPE0
EMU0
                                                                     VDDO
                                                                     VSSO
                                                          VDD
                                                   CAP3/IOPA5
                                              CAP2/QEP2/IOPA4
                                              CAP1/QEP1/IOPA3
EMU1/ OFF
pinouts (continued)
                                                              PG PACKAGE†
                                                               (TOP VIEW)
                                       XINT2/ADCSOC/ IOPD0
                                       T2PWM/T2CMP/ IOPB5
                                       T1PWM/T1CMP/ IOPB4
                                       TCLKINA/ IOPB7
                                       SCIRXD/ IOPA1
                                       SCITXD/ IOPA0
                                       PWM6/ IOPB3
PLLV CCA
                                                                                          PDPINTA
                                       IOPC4
                                       IOPC3
                                       IOPC2
                                                                                  PLLF2
                                       TMS2
                                                                                                  TRST
                                                                                          VDDO
                                       VSSO
                                                                                          VSSO
                                                                                  PLLF
                                       51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33
                 VDDO             52                                                                     32   TMS
          PWM5/IOPB2              53                                                                     31   TDO
          PWM4/IOPB1              54                                                                     30   TDI
                  VSS             55                                                                     29   TCK
                  VDD             56                                                                     28   RS
          PWM3/IOPB0              57                                                                     27   VDD
                                                        TMS320LC2402A PG
          PWM2/IOPA7              58                                                                     26   VSS
                                                        TMS320LF2402A PG
          PWM1/IOPA6              59                                                                     25   XTAL2
                VCCP§             60                                                                     24   XTAL1/CLKIN
                  TP1             61                                                                     23   BOOT_EN/XF‡
                  TP2             62                                                                     22   VSSA
               IOPC7              63                                                                     21   VCCA
               IOPC6              64                                                                     20   VREFHI
                                       1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1718 19
                                              ADCIN07
                                              ADCIN06
                                              ADCIN05
                                              ADCIN04
                                              ADCIN03
                                              ADCIN02
                                              ADCIN01
                                              ADCIN00
                                                   VDDO
                                            CAP3/IOPA5
                                       CAP2/QEP2/ IOPA4
                                       CAP1/QEP1/ IOPA3
                                                    VSS
                                               V REFLO
                                             EMU1/ OFF
                                         CLKOUT /IOPE0
EMU0
                                                   VSSO
                                                    VDD
pin functions
        The TMS320LF2407A device is the superset of all the 240xA devices. All signals are available on the 2407A
        device. Table 2 lists the signals available in the 240xA generation of devices.
memory maps
     Hex                Program                  Hex                     Data                       Hex                 I/O
    0000                                        0000                                               0000
                                                               Memory-Mapped
                  Flash Sector 0 (4K)
                                                005F    Registers/Reserved Addresses
            Interrupt Vectors (0000−003Fh)
            Reserved † (0040−0043h)
            User code begins at 0044h
                                                0060
                                                007F
                                                0080
                                                00FF
                                                       ÈÈÈÈÈÈÈÈÈ
                                                              On-Chip DARAM B2
                                                       ÈÈÈÈÈÈÈÈÈ        Illegal
    0FFF
    1000
                                                0100
                                                01FF
                                                0200
                                                       ÈÈÈÈÈÈÈÈÈ      Reserved
                                                       ÈÈÈÈÈÈÈÈÈ
                 Flash Sector 1 (12K)           0300         On-Chip DARAM (B1)¶
                                                03FF
                                                       ÈÈÈÈÈÈÈÈÈ
                                                0400
                                                                      Reserved
                                                04FF
                                                       ÈÈÈÈÈÈÈÈÈ
                                                       ÉÉÉÉÉÉÉÉÉ
    3FFF                                        0500                    Illegal
    4000                                        07FF
                                                       ÉÉÉÉÉÉÉÉÉ
                                                0800              SARAM (2K)                                         External
                                                       ÉÉÉÉÉÉÉÉÉ
                                                       ÈÈÈÈÈÈÈÈÈ
                                                               Internal (DON = 1)
                                                               Reserved (DON=0)
                                                       ÈÈÈÈÈÈÈÈÈ
                 Flash Sector 2 (12K)           0FFF
                                                1000
ÈÈÈÈÈÈÈÈÈ Illegal
                                                       ÈÈÈÈÈÈÈÈÈ
    6FFF                                        6FFF
     7000                                       7000      Peripheral Memory-Mapped
                  Flash Sector 3 (4K)
                                                         Registers (System, WD, ADC,
    7FFF
    8000
            ÉÉÉÉÉÉÉÉÉ
            ÉÉÉÉÉÉÉÉÉ
                      SARAM (2K)
                   Internal (PON = 1)
                                                7FFF
                                                8000
                                                         SCI, SPI, CAN, I/O, Interrupts)
    87FF
    8800    ÉÉÉÉÉÉÉÉÉ
                   External (PON=0)
                                                                                                          ÈÈÈÈÈÈÈÈÈ
                                                                                                   FEFF
                                                                                                   FF00
                        External
                                                                       External
                                                                                                   FF0E
                                                                                                          ÈÈÈÈÈÈÈÈÈ  Reserved
                                                                                                          ÈÈÈÈÈÈÈÈÈ
                                                                                                   FF0F    Flash Control Mode Register
    FDFF
    FE00
                 Reserved‡ (CNF = 1)
                                                                                                   FF10
                                                                                                          ÈÈÈÈÈÈÈÈÈ
                                                                                                          ÈÈÈÈÈÈÈÈÈ
                                                                                                                     Reserved
                  External (CNF = 0)                                                               FFFE
    FEFF
    FF00                                                                                                  Wait-State Generator Control
            On-Chip DARAM (B0)‡ (CNF = 1)
                  External (CNF = 0)                                                                           Register (On-Chip)
                                                                                ÉÉÉ
    FFFF                                        FFFF                                               FFFF
                                                                                ÈÈÈ
             On-Chip Flash Memory (Sectored) − if MP/MC = 0
             External Program Memory − if MP/MC = 1
                                                                                ÈÈÈ
                                                                                            Reserved or Illegal
NOTE A: Boot ROM: If the boot ROM is enabled, then addresses 0000−00FF in the program space will be occupied by boot ROM.
† Addresses 0040h−0043h in on-chip program memory are reserved for code security passwords.
‡ When CNF = 1, addresses FE00h−FEFFh and FF00h−FFFFh are mapped to the same physical block (B0) in program-memory space. For
  example, a write to FE00h has the same effect as a write to FF00h. For simplicity, addresses FE00h−FEFFh are referred to as reserved when
  CNF = 1.
§ When CNF = 0, addresses 0100h−01FFh and 0200h−02FFh are mapped to the same physical block (B0) in data-memory space. For example,
  a write to 0100h has the same effect as a write to 0200h. For simplicity, addresses 0100h−01FFh are referred to as reserved.
¶ Addresses 0300h−03FFh and 0400h−04FFh are mapped to the same physical block (B1) in data-memory space. For example, a write to 0400h
  has the same effect as a write to 0300h. For simplicity, addresses 0400h−04FFh are referred to as reserved.
                                                                                                   ÈÈÈÈÈÈÈÈÈÈ
   Hex                Program                   Hex                     Data                      Hex                 I/O
  0000                                         0000                                              0000
                                                                                                   ÈÈÈÈÈÈÈÈÈÈ
                                                              Memory-Mapped
                Flash Sector 0 (4K)
                                              005F     Registers/Reserved Addresses
          Interrupt Vectors (0000−003Fh)
          Reserved † (0040−0043h)
          User code begins at 0044h
                                              0060
                                              007F
                                              0080ÈÈÈÈÈÈÈÈÈÈ
                                                  ÈÈÈÈÈÈÈÈÈÈ
                                                             On-Chip DARAM B2
                                                                       Illegal                     ÈÈÈÈÈÈÈÈÈÈ
                                                                                                   ÈÈÈÈÈÈÈÈÈÈ
                                                  ÈÈÈÈÈÈÈÈÈÈ                                       ÈÈÈÈÈÈÈÈÈÈ
                                              00FF
 0FFF                                         0100                   Reserved
                                                                                                   ÈÈÈÈÈÈÈÈÈÈ
 1000                                         01FF
                                              0200    On-Chip DARAM (B0)§ (CNF = 0)
                                              02FF         Reserved (CNF = 1)
                                                                                                   ÈÈÈÈÈÈÈÈÈÈ
                                                  ÈÈÈÈÈÈÈÈÈÈ                                       ÈÈÈÈÈÈÈÈÈÈ
               Flash Sector 1 (12K)           0300          On-Chip DARAM (B1)¶
                                              03FF
                                                  ÈÈÈÈÈÈÈÈÈÈ                                       ÈÈÈÈÈÈÈÈÈÈ
                                              0400                   Reserved
                                              04FF
                                                  ÈÈÈÈÈÈÈÈÈÈ
                                                  ÉÉÉÉÉÉÉÉÉÉ                                       ÈÈÈÈÈÈÈÈÈÈ
 3FFF                                         0500                     Illegal
 4000                                         07FF
                                                  ÉÉÉÉÉÉÉÉÉÉ                                       ÈÈÈÈÈÈÈÈÈÈ
                                              0800
                                                                 SARAM (2K)                                         Illegal
                                                  ÉÉÉÉÉÉÉÉÉÉ
                                                  ÈÈÈÈÈÈÈÈÈÈ                                       ÈÈÈÈÈÈÈÈÈÈ
                                                              Internal (DON = 1)
               Flash Sector 2 (12K)                          Reserved (DON = 0)
                                                  ÈÈÈÈÈÈÈÈÈÈ                                       ÈÈÈÈÈÈÈÈÈÈ
                                              0FFF
                                              1000
                                                  ÈÈÈÈÈÈÈÈÈÈ                                       ÈÈÈÈÈÈÈÈÈÈ
                                                                       Illegal
                                              6FFF
                                                                                                   ÈÈÈÈÈÈÈÈÈÈ
 6FFF                                         7000       Peripheral Memory-Mapped
                                                  ÈÈÈÈÈÈÈÈÈÈ                                       ÈÈÈÈÈÈÈÈÈÈ
 7000                                                   Registers (System, WD, ADC,
                Flash Sector 3 (4K)                     SCI, SPI, CAN, I/O, Interrupts)
     ÉÉÉÉÉÉÉÉÉÉ
     ÈÈÈÈÈÈÈÈÈÈ Reserved (PON=0)
                                                  ÈÈÈÈÈÈÈÈÈÈ                                       ÈÈÈÈÈÈÈÈÈÈ
     ÈÈÈÈÈÈÈÈÈÈ                                   ÈÈÈÈÈÈÈÈÈÈ                                       ÈÈÈÈÈÈÈÈÈÈ
 87FF
 8800
     ÈÈÈÈÈÈÈÈÈÈ
     ÈÈÈÈÈÈÈÈÈÈ
                                                  ÈÈÈÈÈÈÈÈÈÈ
                                                  ÈÈÈÈÈÈÈÈÈÈ
                                                                       Illegal
                                                                                                   ÈÈÈÈÈÈÈÈÈÈ
                                                                                                 FF0F   Flash Control Mode Register
 FDFF
 FE00
                                                  ÈÈÈÈÈÈÈÈÈÈ                                       ÈÈÈÈÈÈÈÈÈÈ
                                                                                                 FF10
                                                  ÈÈÈÈÈÈÈÈÈÈ                                       ÈÈÈÈÈÈÈÈÈÈ
                     Reserved‡                                                                                    Reserved
                                                                                                 FFFE
                                                  ÈÈÈÈÈÈÈÈÈÈ                                       ÈÈÈÈÈÈÈÈÈÈ
 FEFF
 FF00
                                                  ÈÈÈÈÈÈÈÈÈÈ                                       ÈÈÈÈÈÈÈÈÈÈ
         On-Chip DARAM (B0)‡ (CNF = 1)                                                                            Reserved
               External (CNF = 0)
                                                  ÈÈÈÈÈÈÈÈÈÈ                                       ÈÈÈÈÈÈÈÈÈÈ
 FFFF                                         FFFF                                               FFFF
                                                          ÉÉÉ
                                                          ÉÉÉ
                                                          ÈÈÈ
           On-Chip Flash Memory (Sectored)                                                          SARAM (See Table 1 for details.)
NOTE A: Boot ROM: If the boot ROM is enabled, then addresses 0000−00FF in the program space will be occupied by boot ROM.
† Addresses 0040h−0043h in program memory are reserved for code security passwords.
‡ When CNF = 1, addresses FE00h−FEFFh and FF00h−FFFFh are mapped to the same physical block (B0) in program-memory space. For
  example, a write to FE00h has the same effect as a write to FF00h. For simplicity, addresses FE00h−FEFFh are referred to as reserved.
§ When CNF = 0, addresses 0100h−01FFh and 0200h−02FFh are mapped to the same physical block (B0) in data-memory space. For example,
  a write to 0100h has the same effect as a write to 0200h. For simplicity, addresses 0100h−01FFh are referred to as reserved.
¶ Addresses 0300h−03FFh and 0400h−04FFh are mapped to the same physical block (B1) in data-memory space. For example, a write to 0400h
  has the same effect as a write to 0300h. For simplicity, addresses 0400h−04FFh are referred to as reserved.
                                                                                                         ÈÈÈÈÈÈÈÈÈ
                                                Hex                     Data                       Hex                  I/O
   Hex                 Program
                                               0000                                               0000
                                                                                                         ÈÈÈÈÈÈÈÈÈ
                                                              Memory-Mapped
  0000          Flash Sector 0 (4K)
                                              005F     Registers/Reserved Addresses
                                                      ÈÈÈÈÈÈÈÈÈ                                          ÈÈÈÈÈÈÈÈÈ
          Interrupt Vectors (0000−003Fh)
                                              0060           On-Chip DARAM B2
          Reserved † (0040−0043h)             007F
                                                      ÈÈÈÈÈÈÈÈÈ                                          ÈÈÈÈÈÈÈÈÈ
           User code begins at 0044h          0080
 0FFF                                                                  Illegal
         ÈÈÈÈÈÈÈÈÈ                                                                                       ÈÈÈÈÈÈÈÈÈ
                                              01FF
 4000                                         0200     On-Chip DARAM (B0)§ (CNF = 0)
         ÈÈÈÈÈÈÈÈÈ
         ÈÈÈÈÈÈÈÈÈ
                                              02FF          Reserved (CNF = 1)
                                                                                                         ÈÈÈÈÈÈÈÈÈ
                                                                                                         ÈÈÈÈÈÈÈÈÈ
                                                      ÈÈÈÈÈÈÈÈÈ
                                              0300          On-Chip DARAM (B1)¶
                                              03FF
         ÈÈÈÈÈÈÈÈÈ                                    ÈÈÈÈÈÈÈÈÈ
                                                      ÉÉÉÉÉÉÉÉÉ                                          ÈÈÈÈÈÈÈÈÈ
                                              0500                     Illegal
                                              07FF
         ÈÈÈÈÈÈÈÈÈ
         ÉÉÉÉÉÉÉÉÉ                                    ÉÉÉÉÉÉÉÉÉ                                          ÈÈÈÈÈÈÈÈÈ
                                                              Internal (DON = 1)
                                                             Reserved (DON = 0)
         ÈÈÈÈÈÈÈÈÈ
         ÉÉÉÉÉÉÉÉÉ                                    ÉÉÉÉÉÉÉÉÉ
                                                      ÈÈÈÈÈÈÈÈÈ                                          ÈÈÈÈÈÈÈÈÈ
 7FFF
 8000                                         09FF
                SARAM (512 words)
         ÉÉÉÉÉÉÉÉÉ
         ÈÈÈÈÈÈÈÈÈ                                    ÈÈÈÈÈÈÈÈÈ                                          ÈÈÈÈÈÈÈÈÈ
                Reserved (PON = 0)            0FFF
 81FF                                         1000
         ÈÈÈÈÈÈÈÈÈ                                                                                       ÈÈÈÈÈÈÈÈÈ
 87FF                                         7000       Peripheral Memory-Mapped
 8800
         ÈÈÈÈÈÈÈÈÈ                            8000
                                                      ÈÈÈÈÈÈÈÈÈ                                          ÈÈÈÈÈÈÈÈÈ
         ÈÈÈÈÈÈÈÈÈ                                    ÈÈÈÈÈÈÈÈÈ                                          ÈÈÈÈÈÈÈÈÈ
         ÈÈÈÈÈÈÈÈÈ                                    ÈÈÈÈÈÈÈÈÈ                                          ÈÈÈÈÈÈÈÈÈ
                         Illegal                                                                  FEFF
                                                                                                  FF00
         ÈÈÈÈÈÈÈÈÈ
         ÈÈÈÈÈÈÈÈÈ                                    ÈÈÈÈÈÈÈÈÈ
                                                      ÈÈÈÈÈÈÈÈÈ                                          ÈÈÈÈÈÈÈÈÈ
                                                                       Illegal                    FF0F     Flash Control Mode Register
 FDFF
                                                      ÈÈÈÈÈÈÈÈÈ                                          ÈÈÈÈÈÈÈÈÈ
 FE00
                                                                                                  FF10
                                                      ÈÈÈÈÈÈÈÈÈ                                          ÈÈÈÈÈÈÈÈÈ
                       Reserved‡                                                                                     Reserved
                                                                                                  FFFE
                                                      ÈÈÈÈÈÈÈÈÈ                                          ÈÈÈÈÈÈÈÈÈ
  FEFF
  FF00
                                                      ÈÈÈÈÈÈÈÈÈ                                          ÈÈÈÈÈÈÈÈÈ
         On-Chip DARAM (B0)‡ (CNF = 1)                                                                               Reserved
              Reserved (CNF = 0)
 FFFF                                         FFFF
                                                      ÈÈÈÈÈÈÈÈÈ                                   FFFF
                                                                                                         ÈÈÈÈÈÈÈÈÈ
                                                              ÉÉÉ
                                                              ÉÉÉ
                                                              ÈÈÈ
           On-Chip Flash Memory (Sectored)                                                               SARAM (See Table 1 for details.)
NOTE A: Boot ROM: If the boot ROM is enabled, then addresses 0000−00FF in the program space will be occupied by boot ROM.
† Addresses 0040h−0043h in program memory are reserved for code security passwords.
‡ When CNF = 1, addresses FE00h−FEFFh and FF00h−FFFFh are mapped to the same physical block (B0) in program-memory space. For
  example, a write to FE00h has the same effect as a write to FF00h. For simplicity, addresses FE00h−FEFFh are referred to as reserved.
§ When CNF = 0, addresses 0100h−01FFh and 0200h−02FFh are mapped to the same physical block (B0) in data-memory space. For example,
  a write to 0100h has the same effect as a write to 0200h. For simplicity, addresses 0100h−01FFh are referred to as reserved.
¶ Addresses 0300h−03FFh and 0400h−04FFh are mapped to the same physical block (B1) in data-memory space. For example, a write to 0400h
  has the same effect as a write to 0300h. For simplicity, addresses 0400h−04FFh are referred to as reserved.
                                                               ÈÈÈÈÈÈÈÈÈÈ
                                                  Hex                     Data                      Hex                  I/O
     Hex                Program
                                                 0000                                              0000
                                                               ÈÈÈÈÈÈÈÈÈÈ
                                                                 Memory-Mapped
  0000            Flash Sector 0 (4K)
                                                 005F     Registers/Reserved Addresses
                                                    ÈÈÈÈÈÈÈÈÈÈ ÈÈÈÈÈÈÈÈÈÈ
            Interrupt Vectors (0000−003Fh)
                                                 0060           On-Chip DARAM B2
            Reserved † (0040−0043h)              007F
                                                    ÈÈÈÈÈÈÈÈÈÈ ÈÈÈÈÈÈÈÈÈÈ
            User code begins at 0044h            0080
 0FFF                                                                    Illegal
     ÈÈÈÈÈÈÈÈÈÈ                                                ÈÈÈÈÈÈÈÈÈÈ
                                                 01FF
 2000                                            0200    On-Chip DARAM (B0)§ (CNF = 0)
     ÈÈÈÈÈÈÈÈÈÈ
     ÈÈÈÈÈÈÈÈÈÈ
                                                 02FF
                                                               ÈÈÈÈÈÈÈÈÈÈ
                                                              Reserved (CNF = 1)
                                                               ÈÈÈÈÈÈÈÈÈÈ
                                                    ÈÈÈÈÈÈÈÈÈÈ
                                                 0300         On-Chip DARAM (B1)¶
                                                 03FF
     ÈÈÈÈÈÈÈÈÈÈ
     ÉÉÉÉÉÉÉÉÉÉ                                     ÉÉÉÉÉÉÉÉÉÉ ÈÈÈÈÈÈÈÈÈÈ
                                                                 Internal (DON = 1)
                                                                Reserved (DON = 0)
     ÈÈÈÈÈÈÈÈÈÈ
     ÉÉÉÉÉÉÉÉÉÉ                                     ÉÉÉÉÉÉÉÉÉÉ
                                                    ÈÈÈÈÈÈÈÈÈÈ ÈÈÈÈÈÈÈÈÈÈ
 7FFF
 8000                                            09FF
                 SARAM (512 words)
     ÉÉÉÉÉÉÉÉÉÉ
     ÈÈÈÈÈÈÈÈÈÈ                                     ÈÈÈÈÈÈÈÈÈÈ ÈÈÈÈÈÈÈÈÈÈ
                 Reserved (PON = 0)              0FFF
 81FF                                            1000
     ÈÈÈÈÈÈÈÈÈÈ                                                ÈÈÈÈÈÈÈÈÈÈ
 87FF                                            7000       Peripheral Memory-Mapped
 8800
     ÈÈÈÈÈÈÈÈÈÈ                                     ÈÈÈÈÈÈÈÈÈÈ
                                                 8000
                                                               ÈÈÈÈÈÈÈÈÈÈ
     ÈÈÈÈÈÈÈÈÈÈ
     ÈÈÈÈÈÈÈÈÈÈ                                     ÈÈÈÈÈÈÈÈÈÈ ÈÈÈÈÈÈÈÈÈÈ
                                                    ÈÈÈÈÈÈÈÈÈÈ ÈÈÈÈÈÈÈÈÈÈ
                          Illegal                                                                  FEFF
                                                                                                   FF00
     ÈÈÈÈÈÈÈÈÈÈ
     ÈÈÈÈÈÈÈÈÈÈ                                     ÈÈÈÈÈÈÈÈÈÈ
                                                    ÈÈÈÈÈÈÈÈÈÈ ÈÈÈÈÈÈÈÈÈÈ
                                                                          Illegal                  FF0F     Flash Control Mode Register
 FDFF
                                                    ÈÈÈÈÈÈÈÈÈÈ ÈÈÈÈÈÈÈÈÈÈ
 FE00
                                                                                                   FF10
                                                    ÈÈÈÈÈÈÈÈÈÈ ÈÈÈÈÈÈÈÈÈÈ
                        Reserved‡                                                                                     Reserved
                                                                                                   FFFE
                                                    ÈÈÈÈÈÈÈÈÈÈ ÈÈÈÈÈÈÈÈÈÈ
  FEFF
  FF00
                                                    ÈÈÈÈÈÈÈÈÈÈ ÈÈÈÈÈÈÈÈÈÈ
           On-Chip DARAM (B0)‡ (CNF = 1)                                                                              Reserved
                Reserved (CNF = 0)
 FFFF
                                                    ÈÈÈÈÈÈÈÈÈÈ ÈÈÈÈÈÈÈÈÈÈ
                                                 FFFF                                              FFFF
                                                             ÉÉÉ
                                                             ÉÉÉ
                                                             ÈÈÈ
            On-Chip Flash Memory (Sectored)                                                               SARAM (See Table 1 for details.)
NOTE A: Boot ROM: If the boot ROM is enabled, then addresses 0000−00FF in the program space will be occupied by boot ROM.
† Addresses 0040h−0043h in program memory are reserved for code security passwords.
‡ When CNF = 1, addresses FE00h−FEFFh and FF00h−FFFFh are mapped to the same physical block (B0) in program-memory space. For
  example, a write to FE00h has the same effect as a write to FF00h. For simplicity, addresses FE00h−FEFFh are referred to as reserved.
§ When CNF = 0, addresses 0100h−01FFh and 0200h−02FFh are mapped to the same physical block (B0) in data-memory space. For example,
  a write to 0100h has the same effect as a write to 0200h. For simplicity, addresses 0100h−01FFh are referred to as reserved.
¶ Addresses 0300h−03FFh and 0400h−04FFh are mapped to the same physical block (B1) in data-memory space. For example, a write to 0400h
  has the same effect as a write to 0300h. For simplicity, addresses 0400h−04FFh are referred to as reserved.
                                                                                         ÈÈÈÈÈÈÈÈÈÈ
                                                                                     005F
                                                                                     0060
                                                                                                     On-Chip DARAM B2
                                                                                         ÈÈÈÈÈÈÈÈÈÈ
                                                                                     007F
                                                                                     0080                  Illegal
                                                                                         ÈÈÈÈÈÈÈÈÈÈ
                                                                                     00FF
                                                                                     0100                Reserved
                                                                                     01FF
                                                                                     0200    On-Chip DARAM (B0)§ (CNF = 0)
                               On-Chip ROM (32K)
                                                                                                  Reserved (CNF = 1)
                                                                                     02FF
                                                                                         ÈÈÈÈÈÈÈÈÈÈ
                         Interrupt Vectors (0000−003Fh)                              0300            On-Chip DARAM (B1)¶
                         Reserved † (0040−0043h)                                     03FF
                                                                                         ÈÈÈÈÈÈÈÈÈÈ
                         User code begins at 0044h                                   0400                Reserved
                                                                                     04FF
                                                                                         ÈÈÈÈÈÈÈÈÈÈ
                                                                                         ÉÉÉÉÉÉÉÉÉÉ
                                                                                     0500                  Illegal
                                                                                     07FF
                                                                                         ÉÉÉÉÉÉÉÉÉÉ
                                                                                     0800
                                                                                                         SARAM (2K)
                                                                                         ÉÉÉÉÉÉÉÉÉÉ
                                                                                         ÈÈÈÈÈÈÈÈÈÈ
                7FBF                                                                                  Internal (DON = 1)
                                                                                                     Reserved (DON = 0)
                                                                                         ÉÉÉÉÉÉÉÉÉÉ
                                                                                         ÈÈÈÈÈÈÈÈÈÈ
                7FC0                                                                0FFF
                                                                                    1000
                   ÉÉÉÉÉÉÉÉÉÉ                                                            ÈÈÈÈÈÈÈÈÈÈ
                                     Reserved
                                                                                                           Illegal
                7FFF
                   ÉÉÉÉÉÉÉÉÉÉ
                                                                                    6FFF
                8000               SARAM (2K)                                       7000
                                                                                               Peripheral Memory-Mapped
                   ÉÉÉÉÉÉÉÉÉÉ
                                Internal (PON = 1)                                            Registers (System, WD, ADC,
                               Reserved (PON = 0)
                   ÉÉÉÉÉÉÉÉÉÉ
                   ÈÈÈÈÈÈÈÈÈÈ                                                            ÈÈÈÈÈÈÈÈÈÈ
                87FF                                                                          SCI, SPI, CAN, I/O, Interrupts)
                                                                                    7FFF
                   ÈÈÈÈÈÈÈÈÈÈ                                                            ÈÈÈÈÈÈÈÈÈÈ
                8800                                                                8000
                   ÈÈÈÈÈÈÈÈÈÈ
                   ÈÈÈÈÈÈÈÈÈÈ                                                            ÈÈÈÈÈÈÈÈÈÈ
                                                                                         ÈÈÈÈÈÈÈÈÈÈ
                   ÈÈÈÈÈÈÈÈÈÈ                                                            ÈÈÈÈÈÈÈÈÈÈ
                                     Reserved
                                      Illegal
                   ÈÈÈÈÈÈÈÈÈÈ
                   ÈÈÈÈÈÈÈÈÈÈ                                                            ÈÈÈÈÈÈÈÈÈÈ
                                                                                         ÈÈÈÈÈÈÈÈÈÈ        Illegal
                   ÈÈÈÈÈÈÈÈÈÈ
                FDFF
                                                                                         ÈÈÈÈÈÈÈÈÈÈ
                                                                                         ÈÈÈÈÈÈÈÈÈÈ
                FE00
                                                                                         ÈÈÈÈÈÈÈÈÈÈ
                                     Reserved‡
                                                                                         ÈÈÈÈÈÈÈÈÈÈ
                FEFF
                FF00
                                                                                         ÈÈÈÈÈÈÈÈÈÈ
                        On-Chip DARAM (B0)‡ (CNF = 1)
                             Reserved (CNF = 0)
                FFFF                                                                FFFF
                                                                                         ÈÈÈÈÈÈÈÈÈÈ
                 On-Chip ROM                                                             ÉÉÉ
                                                                                         ÉÉÉ          SARAM (See Table 1 for details.)
† Addresses 0040h−0043h in program memory are reserved for code security passwords.
                                                                                         ÈÈÈ
                                                                                         ÈÈÈ
                                                                                                      Reserved or Illegal
‡ When CNF = 1, addresses FE00h−FEFFh and FF00h−FFFFh are mapped to the same physical block (B0) in program-memory space. For
  example, a write to FE00h has the same effect as a write to FF00h. For simplicity, addresses FE00h−FEFFh are referred to as reserved.
§ When CNF = 0, addresses 0100h−01FFh and 0200h−02FFh are mapped to the same physical block (B0) in data-memory space. For example,
  a write to 0100h has the same effect as a write to 0200h. For simplicity, addresses 0100h−01FFh are referred to as reserved.
¶ Addresses 0300h−03FFh and 0400h−04FFh are mapped to the same physical block (B1) in data-memory space. For example, a write to 0400h
  has the same effect as a write to 0300h. For simplicity, addresses 0400h−04FFh are referred to as reserved.
                                                                                           ÈÈÈÈÈÈÈÈÈ
                                                                                    005F
                                On-Chip ROM (16K)                                   0060
                                                                                    007F           On-Chip DARAM B2
                                                                                                        Reserved
                                                                                    0200    On-Chip DARAM (B0)§ (CNF = 0)
                3FBF                                                                             Reserved (CNF = 1)
                                                                                    02FF
                3FC0
                    ÈÈÈÈÈÈÈÈÈÈ                                                             ÈÈÈÈÈÈÈÈÈ
                                                                                    0300           On-Chip DARAM (B1)¶
                                      Reserved                                      03FF
                    ÈÈÈÈÈÈÈÈÈÈ                                                             ÈÈÈÈÈÈÈÈÈ
                 3FFF                                                               0400                Reserved
                 4000                                                               04FF
                    ÈÈÈÈÈÈÈÈÈÈ
                    ÉÉÉÉÉÉÉÉÉÉ                                                             ÈÈÈÈÈÈÈÈÈ
                                                                                           ÉÉÉÉÉÉÉÉÉ
                                      Reserved                                      0500                  Illegal
                7FFF                                                                07FF
                    ÉÉÉÉÉÉÉÉÉÉ                                                             ÉÉÉÉÉÉÉÉÉ
                8000                                                                0800
                                   SARAM (1K)                                                           SARAM (1K)
                    ÉÉÉÉÉÉÉÉÉÉ
                    ÈÈÈÈÈÈÈÈÈÈ                                                             ÉÉÉÉÉÉÉÉÉ
                                                                                           ÈÈÈÈÈÈÈÈÈ
                                Internal (PON = 1)                                                   Internal (DON = 1)
                               Reserved (PON = 0)                                                   Reserved (DON = 0)
                    ÈÈÈÈÈÈÈÈÈÈ                                                             ÉÉÉÉÉÉÉÉÉ
                                                                                           ÈÈÈÈÈÈÈÈÈ
                83FF                                                                0BFF
                8400                                                                0C00
                    ÈÈÈÈÈÈÈÈÈÈ                                                             ÈÈÈÈÈÈÈÈÈ
                                                                                                          Illegal
                                                                                    6FFF
                    ÈÈÈÈÈÈÈÈÈÈ
                                                                                    7000
                                                                                               Peripheral Memory-Mapped
                    ÈÈÈÈÈÈÈÈÈÈ
                                                                                              Registers (System, WD, ADC,
                    ÈÈÈÈÈÈÈÈÈÈ                                                             ÈÈÈÈÈÈÈÈÈ
                                                                                                SCI, SPI, I/O, Interrupts)
                                                                                    7FFF
                                                                                    8000
                    ÈÈÈÈÈÈÈÈÈÈ                                                             ÈÈÈÈÈÈÈÈÈ
                    ÈÈÈÈÈÈÈÈÈÈ                                                             ÈÈÈÈÈÈÈÈÈ
                                      Reserved
                    ÈÈÈÈÈÈÈÈÈÈ                                                             ÈÈÈÈÈÈÈÈÈ
                    ÈÈÈÈÈÈÈÈÈÈ
                    ÈÈÈÈÈÈÈÈÈÈ                                                             ÈÈÈÈÈÈÈÈÈ
                    ÈÈÈÈÈÈÈÈÈÈ                                                             ÈÈÈÈÈÈÈÈÈ
                                                                                           ÈÈÈÈÈÈÈÈÈ      Illegal
                FDFF
                    ÈÈÈÈÈÈÈÈÈÈ                                                             ÈÈÈÈÈÈÈÈÈ
                                                                                           ÈÈÈÈÈÈÈÈÈ
                FE00
                                                                                           ÈÈÈÈÈÈÈÈÈ
                                      Reserved‡
                                                                                           ÈÈÈÈÈÈÈÈÈ
                 FEFF
                 FF00
                                                                                           ÈÈÈÈÈÈÈÈÈ
                        On-Chip DARAM (B0)‡ (CNF = 1)
                             Reserved (CNF = 0)
                FFFF                                                                FFFF
                                                                                           ÈÈÈÈÈÈÈÈÈ
                 On-Chip ROM                                                               ÉÉ
                                                                                           ÉÉ       SARAM (See Table 1 for details.)
† Addresses 0040h−0043h in program memory are reserved for code security passwords.
                                                                                           ÈÈ
                                                                                           ÈÈ
                                                                                                    Reserved or Illegal
‡ When CNF = 1, addresses FE00h−FEFFh and FF00h−FFFFh are mapped to the same physical block (B0) in program-memory space. For
  example, a write to FE00h has the same effect as a write to FF00h. For simplicity, addresses FE00h−FEFFh are referred to as reserved.
§ When CNF = 0, addresses 0100h−01FFh and 0200h−02FFh are mapped to the same physical block (B0) in data-memory space. For example,
  a write to 0100h has the same effect as a write to 0200h. For simplicity, addresses 0100h−01FFh are referred to as reserved.
¶ Addresses 0300h−03FFh and 0400h−04FFh are mapped to the same physical block (B1) in data-memory space. For example, a write to 0400h
  has the same effect as a write to 0300h. For simplicity, addresses 0400h−04FFh are referred to as reserved.
                                                                                     ÈÈÈÈÈÈÈÈÈÈ
                                                                                005F
                           Interrupt Vectors (0000−003Fh)                       0060           On-Chip DARAM B2
                                                                                     ÈÈÈÈÈÈÈÈÈÈ
                                                                                007F
                           Reserved † (0040−0043h)                              0080
                           User code begins at 0044h                                                  Illegal
                                                                                     ÈÈÈÈÈÈÈÈÈÈ
                                                                                00FF
                                                                                0100                 Reserved
                                                                                01FF
                                                                                0200    On-Chip DARAM (B0)§ (CNF = 0)
                3FBF
                                                                                02FF         Reserved (CNF = 1)
                3FCO
                         ÈÈÈÈÈÈÈÈÈ                                                   ÈÈÈÈÈÈÈÈÈÈ
                                      Reserved                                  0300          On-Chip DARAM (B1)¶
                 3FFF                                                           03FF
                         ÈÈÈÈÈÈÈÈÈ                                                   ÈÈÈÈÈÈÈÈÈÈ
                 4000                                                           0400                 Reserved
                                                                                04FF
                         ÈÈÈÈÈÈÈÈÈ                                                   ÈÈÈÈÈÈÈÈÈÈ
                                                                                     ÉÉÉÉÉÉÉÉÉÉ
                                                                                0500                  Illegal
                                     Reserved                                   07FF
                         ÈÈÈÈÈÈÈÈÈ
                         ÈÈÈÈÈÈÈÈÈ
                                                                                0800
                                                                                     ÉÉÉÉÉÉÉÉÉÉSARAM (512 words)
                 7FFF
                         ÉÉÉÉÉÉÉÉÉ
                         ÉÉÉÉÉÉÉÉÉ
                                                                                     ÉÉÉÉÉÉÉÉÉÉ
                                                                                     ÉÉÉÉÉÉÉÉÉÉ
                                                                                                Internal (DON = 1)
                                                                                     ÈÈÈÈÈÈÈÈÈÈ
                 8000                                                                          Reserved (DON = 0)
                               SARAM (512 words)                                09FF
                         ÉÉÉÉÉÉÉÉÉ                                                   ÈÈÈÈÈÈÈÈÈÈ
                                Internal (PON = 1)                              0A00
                               Reserved (PON = 0)                                                    Reserved
                         ÉÉÉÉÉÉÉÉÉ
                         ÈÈÈÈÈÈÈÈÈ                                                   ÈÈÈÈÈÈÈÈÈÈ
                 81FF                                                           0FFF
                 8200                                                           1000
                         ÈÈÈÈÈÈÈÈÈ                                                   ÈÈÈÈÈÈÈÈÈÈ
                                                                                                      Illegal
                                                                                6FFF
                         ÈÈÈÈÈÈÈÈÈ
                                                                                7000       Peripheral Memory-Mapped
                         ÈÈÈÈÈÈÈÈÈ                                                   ÈÈÈÈÈÈÈÈÈÈ
                                                                                          Registers (System, WD, ADC,
                                                                                               SCI, I/O, Interrupts)
                         ÈÈÈÈÈÈÈÈÈ                                                   ÈÈÈÈÈÈÈÈÈÈ
                                                                                7FFF
                                      Reserved                                  8000
                         ÈÈÈÈÈÈÈÈÈ
                         ÈÈÈÈÈÈÈÈÈ                                                   ÈÈÈÈÈÈÈÈÈÈ
                         ÈÈÈÈÈÈÈÈÈ                                                   ÈÈÈÈÈÈÈÈÈÈ
                                                                                     ÈÈÈÈÈÈÈÈÈÈ
                         ÈÈÈÈÈÈÈÈÈ                                                   ÈÈÈÈÈÈÈÈÈÈ
                         ÈÈÈÈÈÈÈÈÈ                                                   ÈÈÈÈÈÈÈÈÈÈ
                FDFF
                                                                                                      Illegal
                FE00
                FEFF
                                      Reserved‡
                                                                                     ÈÈÈÈÈÈÈÈÈÈ
                                                                                     ÈÈÈÈÈÈÈÈÈÈ
                                                                                     ÈÈÈÈÈÈÈÈÈÈ
                FF00
                         On-Chip DARAM (B0)‡ (CNF = 1)
                              Reserved (CNF = 0)
                                                                                     ÈÈÈÈÈÈÈÈÈÈ
                                                                                     ÈÈÈÈÈÈÈÈÈÈ
                                                                                       ÉÉÉ
                FFFF
                                                                                FFFF
           On-Chip ROM
                                                                                       ÉÉÉ                 SARAM (See Table 1 for details.)
†
                                                                                       ÈÈÈ
                                                                                       ÈÈÈ                 Reserved or Illegal
  Addresses 0040h−0043h in program memory are reserved for code security passwords.
‡ When CNF = 1, addresses FE00h−FEFFh and FF00h−FFFFh are mapped to the same physical block (B0) in program-memory space. For
  example, a write to FE00h has the same effect as a write to FF00h. For simplicity, addresses FE00h−FEFFh are referred to as reserved.
§ When CNF = 0, addresses 0100h−01FFh and 0200h−02FFh are mapped to the same physical block (B0) in data-memory space. For example,
  a write to 0100h has the same effect as a write to 0200h. For simplicity, addresses 0100h−01FFh are referred to as reserved.
¶ Addresses 0300h−03FFh and 0400h−04FFh are mapped to the same physical block (B1) in data-memory space. For example, a write to 0400h
  has the same effect as a write to 0300h. For simplicity, addresses 0400h−04FFh are referred to as reserved.
                                                                                        ÈÈÈÈÈÈÈÈÈ
                          Interrupt Vectors (0000−003Fh)                         005F
                          Reserved † (0040−0043h)                                0060            On-Chip DARAM B2
                                                                                        ÈÈÈÈÈÈÈÈÈ
                                                                                 007F
                          User code begins at 0044h                              0080                 Illegal
                17BF
                                                                                 00FF
                    ÈÈÈÈÈÈÈÈÈÈ                                                          ÈÈÈÈÈÈÈÈÈ
                17C0                Reserved                                     0100
                17FF                                                                                 Reserved
                    ÈÈÈÈÈÈÈÈÈÈ
                                                                                 01FF
                1800                Reserved                                     0200    On-Chip DARAM (B0)§ (CNF = 0)
                    ÈÈÈÈÈÈÈÈÈÈ
                7FFF                                                                          Reserved (CNF = 1)
                8000                                                             02FF
                    ÈÈÈÈÈÈÈÈÈÈ                                                          ÈÈÈÈÈÈÈÈÈ
                                    Reserved                                     0300
                87FF                                                                            On-Chip DARAM (B1)¶
                                                                                 03FF
                    ÈÈÈÈÈÈÈÈÈÈ                                                          ÈÈÈÈÈÈÈÈÈ
                8800                                                             0400                Reserved
                                                                                 04FF
                    ÈÈÈÈÈÈÈÈÈÈ                                                          ÈÈÈÈÈÈÈÈÈ
                                                                                 0500                 Illegal
                                                                                 07FF
                    ÈÈÈÈÈÈÈÈÈÈ                                                          ÈÈÈÈÈÈÈÈÈ
                                                                                 0800
                                                                                                     Reserved
                    ÈÈÈÈÈÈÈÈÈÈ                                                          ÈÈÈÈÈÈÈÈÈ
                                                                                 0FFF
                                                                                 1000
                    ÈÈÈÈÈÈÈÈÈÈ                                                          ÈÈÈÈÈÈÈÈÈ
                                                                                                       Illegal
                                                                                 6FFF
                    ÈÈÈÈÈÈÈÈÈÈ
                    ÈÈÈÈÈÈÈÈÈÈ
                                                                                 7000       Peripheral Memory-Mapped
                                                                                   ÈÈÈÈÈÈÈÈÈ
                                                                                           Registers (System, WD, ADC,
                                                                                                SCI, I/O, Interrupts)
                    ÈÈÈÈÈÈÈÈÈÈ                                                     ÈÈÈÈÈÈÈÈÈ
                                                                                 7FFF
                                    Reserved                                     8000
                    ÈÈÈÈÈÈÈÈÈÈ
                    ÈÈÈÈÈÈÈÈÈÈ                                                     ÈÈÈÈÈÈÈÈÈ
                    ÈÈÈÈÈÈÈÈÈÈ                                                     ÈÈÈÈÈÈÈÈÈ
                                                                                   ÈÈÈÈÈÈÈÈÈ
                    ÈÈÈÈÈÈÈÈÈÈ
                    ÈÈÈÈÈÈÈÈÈÈ                                                     ÈÈÈÈÈÈÈÈÈ
                    ÈÈÈÈÈÈÈÈÈÈ                                                     ÈÈÈÈÈÈÈÈÈ
                    ÈÈÈÈÈÈÈÈÈÈ                                                     ÈÈÈÈÈÈÈÈÈ
                                                                                   ÈÈÈÈÈÈÈÈÈ
                                                                                                       Illegal
                FDFF
                    ÈÈÈÈÈÈÈÈÈÈ                                                     ÈÈÈÈÈÈÈÈÈ
                                                                                   ÈÈÈÈÈÈÈÈÈ
                FE00
                                                                                   ÈÈÈÈÈÈÈÈÈ
                                     Reserved‡
                                                                                   ÈÈÈÈÈÈÈÈÈ
                 FEFF
                 FF00
                                                                                   ÈÈÈÈÈÈÈÈÈ
                        On-Chip DARAM (B0)‡ (CNF = 1)
                             Reserved (CNF = 0)
                FFFF
                                                                                   ÈÈÈÈÈÈÈÈÈ
                                                                                 FFFF
                                                                          ÈÈÈÈÈÈÈÈÈ
        Hex
        0000
        005F
                     Memory-Mapped Registers
                          and Reserved
                                                                          ÈÈÈÈÈÈÈÈÈ      Illegal              7000−700F
                  ÈÈÈÈÈÈÈÈÈ
        0060                                                                   System Configuration and
                        On-Chip DARAM B2                                                                      7010−701F
        007F                                                                       Control Registers
                  ÈÈÈÈÈÈÈÈÈ
        0080
                               Illegal
                                                                              Watchdog Timer Registers        7020−702F
                                                                          ÈÈÈÈÈÈÈÈÈ
        00FF
        0100
                                                                          ÈÈÈÈÈÈÈÈÈ
                              Reserved                                                   Illegal              7030−703F
                                                                          ÈÈÈÈÈÈÈÈÈ
        01FF                                                                               SPI                7040−704F
        0200
                                                                          ÈÈÈÈÈÈÈÈÈ
                                                                                           SCI                7050−705F
                        On-Chip DARAM B0
                                                                                         Illegal
                                                                          ÈÈÈÈÈÈÈÈÈ
        02FF                                                                                                  7060−706F
        0300
                        On-Chip DARAM B1
                                                                          ÈÈÈÈÈÈÈÈÈ
                                                                              External-Interrupt Registers    7070−707F
        03FF
        0400                                                                             Illegal              7080−708F
                  ÈÈÈÈÈÈÈÈÈ
                              Reserved
        04FF                                                                  Digital I/O Control Registers   7090−709F
        0500
                  ÈÈÈÈÈÈÈÈÈ    Illegal
                                                                          ÈÈÈÈÈÈÈÈÈ
                                                                                ADC Control Registers         70A0−70BF
                                                                          ÈÈÈÈÈÈÈÈÈ
        07FF
        0800                                                                             Illegal              70C0−70FF
                  ÈÈÈÈÈÈÈÈÈ                                               ÈÈÈÈÈÈÈÈÈ
                            SARAM (2K)
        0FFF                                                                    CAN Control Registers         7100−710E
                  ÈÈÈÈÈÈÈÈÈ                                               ÈÈÈÈÈÈÈÈÈ
        1000
                               Illegal                                                   Illegal              710F−71FF
                                                                          ÈÈÈÈÈÈÈÈÈ
        6FFF
        7000                                                                          CAN Mailbox             7200−722F
                      Peripheral Frame 1 (PF1)
                                                                          ÈÈÈÈÈÈÈÈÈ
        73FF                                                                             Illegal
        7400                                                                                                  7230−73FF
                  ÈÈÈÈÈÈÈÈÈ
                      Peripheral Frame 2 (PF2)
        743F                                                                     Event Manager − EVA
                  ÈÈÈÈÈÈÈÈÈ
        7440                   Illegal
        74FF                                                                       General-Purpose
                                                                                                              7400−7408
                  ÈÈÈÈÈÈÈÈÈ
        7500                                                                        Timer Registers
                      Peripheral Frame 3 (PF3)                                    Compare, PWM, and
                  ÈÈÈÈÈÈÈÈÈ
        753F                                                                                                  7411−7419
        7540                                                                      Deadband Registers
                               Illegal
        77EF                                                                  Capture and QEP Registers       7420−7429
        77F0
                                                                          ÈÈÈÈÈÈÈÈÈ
                     Code Security Passwords                                  Interrupt Mask, Vector and
        77F3                                                                                                  742C−7431
                                                                                    Flag Registers
       ÈÈÈÈÈÈÈÈÈ                                                          ÈÈÈÈÈÈÈÈÈ
        77F4
                              Reserved
        77FF                                                                              Illegal
       ÈÈÈÈÈÈÈÈÈ
                                                                                                              7432−743F
        7800
        7FFF                   Illegal
        8000                                                                     Event Manager − EVB
                              External†
    ÈÈÈÈ
        FFFF                                                                       General-Purpose
                                                                                                              7500−7508
    ÈÈÈÈ
                                                                                    Timer Registers
                      “Illegal” indicates that access to
                                                                                  Compare, PWM, and
    ÈÈÈÈ
        Illegal       these addresses causes a                                                                7511−7519
                                                                                  Deadband Registers
                      nonmaskable interrupt (NMI).
                                                                              Capture and QEP Registers       7520−7529
                      “Reserved” indicates addresses that                     Interrupt Mask, Vector, and
       Reserved
                      are reserved for test.                                         Flag Registers           752C−7531
                    CAP1INT                                                                     INT4
                    CAP2INT
                    CAP3INT                Level 4
                    CAP4INT               IRQ GEN
                    CAP5INT
                    CAP6INT
                    SPIINT
                    RXINT
                                           Level 5                                              INT5
                    TXINT                 IRQ GEN
                 CANMBINT
                 CANERINT
                     ADCINT                                                                     INT6
                                           Level 6
                  XINT1                   IRQ GEN
      XINT2                                                                                     IACK
Figure 9. Peripheral Interrupt Expansion (PIE) Module Block Diagram for Hardware-Generated Interrupts
New peripheral interrupts and vectors with respect to the F243/F241 devices.
New peripheral interrupts and vectors with respect to the F243/F241 devices.
scan-based emulation
      TMS320x2xx devices incorporate scan-based emulation logic for code-development and hardware-
      development support. Scan-based emulation allows the emulator to control the processor in the system without
      the use of intrusive cables to the full pinout of the device. The scan-based emulator communicates with the x2xx
      by way of the IEEE 1149.1-compatible (JTAG) interface. The x240xA DSPs do not include boundary scan. The
      scan chain of these devices is useful for emulation function only.
                                        IS
                                       DS
                                       PS
                                                                                                                MUX
                                  R/W                                          XTAL1
                                 STRB                                          CLKOUT
                                                                                                                                                                                                               Program Bus
                                READY                                          XTAL2                            NPAR
                                                                                                                                                                                              Data Bus
                                   XF
                                                           Control
                                                                                    16               PC         PAR        MSTACK                   MUX
                                                                               RD
                                        RS                                     WE
                                                                                                                                                  Stack 8 × 16
                                 MP/MC
                              XINT[1−2]
                                                 2
                                                                                                FLASH EEPROM/
                                                                                                    ROM                                                   Program Control
                                                                                                                                                              (PCTRL)
                                                                               16
                                                                     MUX
               A15−A0
                                                16                                                                                                                16
                                                                               16
                                                                                                           16
                                                                                                                                                                            16
                                                                     MUX
                D15−D0
                                                16
                                                                                                16                                                                               Data Bus
                                                                               16          16
                                   Data Bus
                                                                                                          16
                                                                                                                                                     16
                                                                           3                                                       9        7                      16
                                                                                                                                            LSB                                           16              16
                                                                                                     AR0(16)                                from
                                                                                                     AR1(16)                DP(9)           IR                         16
                                                                                                                                                                                          MUX
                                                                                                     AR2(16)
                                                                                                                                                     MUX                                                 16
                                                               ARP(3)                                AR3(16)
                                                                                3                                                  9
                                                                           3                         AR4(16)
                                                                                                     AR5(16)                                                                 TREG0(16)
                                                               ARB(3)                                AR6(16)
                                                                                                                                                                                 Multiplier
                                                                                                     AR7(16)
32 32
                                                                                                                16
                                                                                                                                                                                   MUX
                                                                                                     ARAU(16)           MUX
                                                                                                                                                                                         32
                                                                                                                                                                   CALU(32)
                                                                                                                                              32
                                  16          Memory Map
                                               Register
                                                                                             MUX                        MUX                                                      32
                                               IMR (16)
                                                IFR (16)
                                                                                          Data/Prog                     Data
                                                                                                                                                                                                               Program Bus
                                                                                                                                                   C ACCH(16)          ACCL(16)
                                              GREG (16)                                    DARAM                      DARAM
                                                                                         B0 (256 × 16)               B2 (32 × 16)                                                32
                                                                                                                  B1 (256 × 16)
                                                                                                                                                                 OSCALE (0−7)
                                                                                             MUX                              16
                                                                                                                                             16                                  16
                                                                                             16
            15                  13      12       11        10        9         8                                                                         0
 ST0                 ARP                OV      OVM         1     INTM                                             DP
            15                  13      12       11        10        9         8        7        6         5        4        3         2        1        0
 ST1                 ARB               CNF       TC       SXM       C          1        1        1         1       XF        1         1            PM
    FIELD                                                                          FUNCTION
                 Auxiliary register pointer buffer. When the ARP is loaded into ST0, the old ARP value is copied to the ARB except during an LST
ARB
                 instruction. When the ARB is loaded by way of an LST #1 instruction, the same value is also copied to the ARP.
                 Auxiliary register (AR) pointer. ARP selects the AR to be used in indirect addressing. When the ARP is loaded, the old ARP value
ARP              is copied to the ARB register. ARP can be modified by memory-reference instructions when using indirect addressing, and by the
                 LARP, MAR, and LST instructions. The ARP is also loaded with the same value as ARB when an LST #1 instruction is executed.
                 Carry bit. C is set to 1 if the result of an addition generates a carry, or reset to 0 if the result of a subtraction generates a borrow.
                 Otherwise, C is reset after an addition or set after a subtraction, except if the instruction is ADD or SUB with a 16-bit shift. In these
C                cases, ADD can only set and SUB can only reset the carry bit, but cannot affect it otherwise. The single-bit shift and rotate
                 instructions also affect C, as well as the SETC, CLRC, and LST #1 instructions. Branch instructions have been provided to branch
                 on the status of C. C is set to 1 on a reset.
                 On-chip RAM configuration control bit. If CNF is set to 0, the reconfigurable data dual-access RAM blocks are mapped to data
CNF              space; otherwise, they are mapped to program space. The CNF can be modified by the SETC CNF, CLRC CNF, and LST #1
                 instructions. RS sets the CNF to 0.
multiplier
     The TMS320x240xA devices use a 16 x 16-bit hardware multiplier that is capable of computing a signed or an
     unsigned 32-bit product in a single machine cycle. All multiply instructions, except the MPYU (multiply unsigned)
     instruction, perform a signed multiply operation. That is, two numbers being multiplied are treated as
     2s-complement numbers, and the result is a 32-bit 2s-complement number. There are two registers associated
     with the multiplier, as follow:
     D 16-bit temporary register (TREG) that holds one of the operands for the multiplier
     D 32-bit product register (PREG) that holds the product
     Four product-shift modes (PM) are available at the PREG output (PSCALE). These shift modes are useful for
     performing multiply/accumulate operations, performing fractional arithmetic, or justifying fractional products.
     The PM field of status register ST1 specifies the PM shift mode, as shown in Table 6.
     The product can be shifted one bit to compensate for the extra sign bit gained in multiplying two 16-bit
     2s-complement numbers (MPY instruction). A four-bit shift is used in conjunction with the MPY instruction with
     a short immediate value (13 bits or less) to eliminate the four extra sign bits gained in multiplying a 16-bit number
     by a 13-bit number. Finally, the output of PREG can be right-shifted 6 bits to enable the execution of up to
     128 consecutive multiply/accumulates without the possibility of overflow.
     The LT (load TREG) instruction normally loads TREG to provide one operand (from the data bus), and the MPY
     (multiply) instruction provides the second operand (also from the data bus). A multiplication also can be
     performed with a 13-bit immediate operand when using the MPY instruction. Then, a product is obtained every
     two cycles. When the code is executing multiple multiplies and product sums, the CPU supports the pipelining
     of the TREG load operations with CALU operations using the previous product. The pipeline operations that
     run in parallel with loading the TREG include: load ACC with PREG (LTP); add PREG to ACC (LTA); add PREG
     to ACC and shift TREG input data (DMOV) to next address in data memory (LTD); and subtract PREG from ACC
     (LTS).
     Two multiply/accumulate instructions (MAC and MACD) fully utilize the computational bandwidth of the
     multiplier, allowing both operands to be processed simultaneously. The data for these operations can be
     transferred to the multiplier each cycle by way of the program and data buses. This facilitates single-cycle
     multiply/accumulates when used with the repeat (RPT) instruction. In these instructions, the coefficient
     addresses are generated by program address generation (PAGEN) logic, while the data addresses are
     generated by data address generation (DAGEN) logic. This allows the repeated instruction to access the values
     from the coefficient table sequentially and step through the data in any of the indirect addressing modes.
     The MACD instruction, when repeated, supports filter constructs (weighted running averages) so that as the
     sum-of-products is executed, the sample data is shifted in memory to make room for the next sample and to
     throw away the oldest sample.
multiplier (continued)
      The MPYU instruction performs an unsigned multiplication, which greatly facilitates extended-precision
      arithmetic operations. The unsigned contents of TREG are multiplied by the unsigned contents of the addressed
      data memory location, with the result placed in PREG. This process allows the operands of greater than 16 bits
      to be broken down into 16-bit words and processed separately to generate products of greater than 32 bits. The
      SQRA (square / add) and SQRS (square/subtract) instructions pass the same value to both inputs of the
      multiplier for squaring a data memory value.
      After the multiplication of two 16-bit numbers, the 32-bit product is loaded into the 32-bit product register
      (PREG). The product from PREG can be transferred to the CALU or to data memory by way of the SPH (store
      product high) and SPL (store product low) instructions. Note: the transfer of PREG to either the CALU or data
      bus passes through the PSCALE shifter, and therefore is affected by the product shift mode defined by PM. This
      is important when saving PREG in an interrupt-service-routine context save as the PSCALE shift effects cannot
      be modeled in the restore operation. PREG can be cleared by executing the MPY #0 instruction. The product
      register can be restored by loading the saved low half into TREG and executing a MPY #1 instruction. The high
      half, then, is loaded using the LPH instruction.
central arithmetic logic unit
      The TMS320x240xA central arithmetic logic unit (CALU) implements a wide range of arithmetic and logical
      functions, the majority of which execute in a single clock cycle. This ALU is referred to as central to differentiate
      it from a second ALU used for indirect-address generation called the auxiliary register arithmetic unit (ARAU).
      Once an operation is performed in the CALU, the result is transferred to the accumulator (ACC) where additional
      operations, such as shifting, can occur. Data that is input to the CALU can be scaled by ISCALE when coming
      from one of the data buses (DRDB or PRDB) or scaled by PSCALE when coming from the multiplier.
      The CALU is a general-purpose ALU that operates on 16-bit words taken from data memory or derived from
      immediate instructions. In addition to the usual arithmetic instructions, the CALU can perform Boolean
      operations, facilitating the bit-manipulation ability required for a high-speed controller. One input to the CALU
      is always provided from the accumulator, and the other input can be provided from the product register (PREG)
      of the multiplier or the output of the scaling shifter (that has been read from data memory or from the ACC). After
      the CALU has performed the arithmetic or logical operation, the result is stored in the accumulator.
      The TMS320x240xA devices support floating-point operations for applications requiring a large dynamic range.
      The NORM (normalization) instruction is used to normalize fixed-point numbers contained in the accumulator
      by performing left shifts. The four bits of the TREG define a variable shift through the scaling shifter for the
      LACT/ADDT/SUBT (load/add to/subtract from accumulator with shift specified by TREG) instructions. These
      instructions are useful in floating-point arithmetic where a number needs to be denormalized — that is,
      floating-point to fixed-point conversion. They are also useful in the execution of an automatic gain control (AGC)
      going into a filter. The BITT (bit test) instruction provides testing of a single bit of a word in data memory based
      on the value contained in the four LSBs of TREG.
      The CALU overflow saturation mode can be enabled/disabled by setting/resetting the OVM bit of ST0. When
      the CALU is in the overflow saturation mode and an overflow occurs, the overflow flag is set and the accumulator
      is loaded with either the most positive or the most negative value representable in the accumulator, depending
      on the direction of the overflow. The value of the accumulator at saturation is 07FFFFFFFh (positive) or
      080000000h (negative). If the OVM (overflow mode) status register bit is reset and an overflow occurs, the
      overflowed results are loaded into the accumulator with modification. (Note that logical operations cannot result
      in overflow.)
      The CALU can execute a variety of branch instructions that depend on the status of the CALU and the
      accumulator. These instructions can be executed conditionally based on any meaningful combination of these
      status bits. For overflow management, these conditions include OV (branch on overflow) and EQ (branch on
      accumulator equal to zero). In addition, the BACC (branch to address in accumulator) instruction provides the
      ability to branch to an address specified by the accumulator (computed goto). Bit test instructions (BIT and
      BITT), which do not affect the accumulator, allow the testing of a specified bit of a word in data memory.
internal memory
        The TMS320x240xA devices are configured with the following memory modules:
        D    Dual-access random-access memory (DARAM)
        D    Single-access random-access memory (SARAM)
        D    Flash
        D    ROM
        D    Boot ROM
dual-access RAM (DARAM)
        There are 544 words × 16 bits of DARAM on the 240xA devices. The 240xA DARAM allows writes to and reads
        from the RAM in the same cycle. The DARAM is configured in three blocks: block 0 (B0), block 1 (B1), and
        block 2 (B2). Block 1 contains 256 words and Block 2 contains 32 words, and both blocks are located only in
        data memory space. Block 0 contains 256 words, and can be configured to reside in either data or program
        memory space. The SETC CNF (configure B0 as program memory) and CLRC CNF (configure B0 as data
        memory) instructions allow dynamic configuration of the memory maps through software.
        When using on-chip RAM, the 240xA runs at full speed with no wait states. The ability of the DARAM to allow
        two accesses to be performed in one cycle, coupled with the parallel nature of the 240xA architecture, enables
        the device to perform three concurrent memory accesses in any given machine cycle. Externally, the READY
        line or on-chip software wait-state generator can be used to interface the 2407A to slower, less expensive
        external memory.
single-access RAM (SARAM)
        There are 2K words × 16 bits of SARAM on some of the 240xA devices.† The PON and DON bits select SARAM
        (2K) mapping in program space, data space, or both. See Table 19 for details on the SCSR2 register and the
        PON and DON bits. At reset, these bits are 11, and the on-chip SARAM is mapped in both the program and data
        spaces. The SARAM (starting at 8000h in program memory) is accessible in external memory space (for 2407A
        only), if the on-chip SARAM is not enabled.
flash EEPROM
        Flash EEPROM provides an attractive alternative to masked program ROM. Like ROM, Flash is nonvolatile.
        However, it has the advantage of “in-target” reprogrammability. The LF2407A incorporates one 32K  16-bit
        Flash EEPROM module in program space. The Flash module has multiple sectors that can be individually
        protected while erasing or programming. The sector size is non-uniform and partitioned as 4K/12K/12K/4K
        sectors.
        Unlike most discrete Flash memory, the LF240xA Flash does not require a dedicated state machine, because
        the algorithms for programming and erasing the Flash are executed by the DSP core. This enables several
        advantages, including: reduced chip size and sophisticated, adaptive algorithms. For production programming,
        the IEEE Standard 1149.1‡ (JTAG) scan port provides easy access to the on-chip RAM for downloading the
        algorithms and Flash code. This Flash requires 5 V for programming (at VCCP pin only) the array. The Flash runs
        at zero wait state while the device is powered at 3.3 V.
ROM
        The LC240xA devices contain mask-programmable ROM located in program memory space. Customers can
        arrange to have this ROM programmed with contents unique to any particular application. See Table 1 for the
        ROM memory capacity of each LC240xA device.
                                                     PERIPHERALS
       The integrated peripherals of the TMS320x240xA are described in the following subsections:
       D   Two event-manager modules (EVA, EVB)
       D   Enhanced analog-to-digital converter (ADC) module
       D   Controller area network (CAN) module
       D   Serial communications interface (SCI) module
       D   Serial peripheral interface (SPI) module
       D   PLL-based clock module
       D   Digital I/O and shared pin functions
       D   External memory interfaces (LF2407A only)
       D   Watchdog (WD) timer module
                               16                    3
         16
                  16
                                    EV Control Registers                                                                     ADC Start of
                                     and Control Logic                                                                       Conversion
                                                                                                                               TDIRA†
                  16                                                                                                         TCLKINA
                                 GP Timer 1
                                                                                               Prescaler                      CLKOUT
                                                                                                                              (Internal)
                  16
                                                                  T1CON[4,5]               T1CON[8,9,10]
                                                                SVPWM                                                          PWM1
                  16           Full-Compare              3       State           3       Deadband          3   Output
                                    Units                       Machine                    Units               Logic
                                                                                                                               PWM6
                                                                                                                             TCLKINA
                  16                                                                              Prescaler
                                 GP Timer 2                                                                                   CLKOUT
                                                                                                                              (Internal)
                                                          T2CON[4,5]                             T2CON[8,9,10]
                                            16
                                                                              TDIRA
                                    16
DIR Clock
                                                                                      QEP              CAPCONA[14,13]
                                     MUX                                             Circuit
                                                                                                       2
                                                                                                                        2   CAP1/QEP1
                                                                                     2
                   16                                                                                                       CAP2/QEP2
                               Capture Units
                                                                                                                              CAP3
         16
† 2402A devices do not support external direction control. TDIR is not available.
PWM characteristics
      Characteristics of the PWMs are as follows:
      D   16-bit registers
      D   Programmable deadband for the PWM output pairs, from 0 to 12 µs
      D   Minimum deadband width of 25 ns
      D   Change of the PWM carrier frequency for PWM frequency wobbling as needed
      D   Change of the PWM pulse widths within and after each PWM period as needed
      D   External-maskable power and drive-protection interrupts
      D   Pulse-pattern-generator circuit, for programmable generation of asymmetric, symmetric, and four-space
          vector PWM waveforms
      D   Minimized CPU overhead using auto-reload of the compare and period registers
      D   The PWM pins are driven to a high-impedance state when the PDPINTx pin is driven low and after PDPINTx
          signal qualification. The PDPINTx pin (after qualification) is reflected in bit 8 of the COMCONx register.
          −    PDPINTA pin status is reflected in bit 8 of COMCONA register.
          −    PDPINTB pin status is reflected in bit 8 of COMCONB register.
capture unit
      The capture unit provides a logging function for different events or transitions. The values of the selected GP
      timer counter is captured and stored in the two-level-deep FIFO stacks when selected transitions are detected
      on capture input pins, CAPx (x = 1, 2, or 3 for EVA; and x = 4, 5, or 6 for EVB). The capture unit consists of three
      capture circuits.
      Capture units include the following features:
      D   One 16-bit capture control register, CAPCONx (R/W)
      D   One 16-bit capture FIFO status register, CAPFIFOx
      D   Selection of GP timer 1/2 (for EVA) or 3/4 (for EVB) as the time base
      D   Three 16-bit 2-level-deep FIFO stacks, one for each capture unit
      D   Three capture input pins (CAP1/2/3 for EVA, CAP4/5/6 for EVB)—one input pin per capture unit. [All inputs
          are synchronized with the device (CPU) clock. In order for a transition to be captured, the input must hold
          at its current level to meet two rising edges of the device clock. The input pins CAP1/2 and CAP4/5 can also
          be used as QEP inputs to the QEP circuit.]
      D User-specified transition (rising edge, falling edge, or both edges) detection
      D Three maskable interrupt flags, one for each capture unit
quadrature-encoder pulse (QEP) circuit
      Two capture inputs (CAP1 and CAP2 for EVA; CAP4 and CAP5 for EVB) can be used to interface the on-chip
      QEP circuit with a quadrature encoder pulse. Full synchronization of these inputs is performed on-chip.
      Direction or leading-quadrature pulse sequence is detected, and GP timer 2/4 is incremented or decremented
      by the rising and falling edges of the two input signals (four times the frequency of either input pulse).
                                                          10-Bit
                  ADCIN07
                                                           ADC                         Result Reg 7      70AFh
                                                          Module                       Result Reg 8      70B0h
                  ADCIN08                              (375 ns MIN)
                  ADCIN15
                                                                                       Result Reg 15     70B7h
      To obtain the specified accuracy of the ADC, proper board layout is critical. To the best extent possible, traces
      leading to the ADCINn pins should not run in close proximity to the digital signal paths. This is to minimize
      switching noise on the digital lines from getting coupled to the ADC inputs. Furthermore, proper isolation
      techniques must be used to isolate the ADC module power pins (such as VCCA, VREFHI, and VSSA) from the
      digital supply. Unused ADC inputs should be connected to analog ground for improved accuracy and ESD
      protection.
CAN Module
CANRX
                                                                                         SCI TX Interrupt
                                        TXWAKE        SCITXBUF.7−0
                                                                                      TXRDY         TX INT ENA
       Frame Format and Mode          SCICTL1.3       Transmitter-Data                                              TXINT
                                                                                     SCICTL2.7                                External
                                                      Buffer Register                                                       Connections
                Parity                                                                                SCICTL2.0
                                                                                     TX EMPTY
          Even/Odd Enable                                    8
                                                                                     SCICTL2.6
         SCICCR.6 SCICCR.5               WUT
                                                         TXSHF                         TXENA
                                                                                                           SCITXD
                                                         Register                                                             SCITXD
                                                                                      SCICTL1.1
                      SCIHBAUD. 15 −8
                                                                                            SCI Priority Level
                         Baud Rate                                                                       1
                          MSbyte                                                            Level 5 Int.
                          Register                                                                       0
     Internal                                                                               Level 1 Int.
      Clock                                                                                          SCI TX
                       SCILBAUD. 7 −0                                                                Priority
                                                          RXSHF                                            SCIRXD
                                                         Register                                                             SCIRXD
                      RXWAKE
                     SCIRXST.1
                  SCICTL1.6                    SCICTL1.0
                                                                 8                       SCI RX Interrupt
                                                                                      RXRDY         RX/BK INT ENA
                                                   Receiver-Data
                                                                                     SCIRXST.6
                                                      Buffer
                   RX Error
                                                                                                                    RXINT
                                                     Register                                          SCICTL2.1
                                                                                      BRKDT
       SCIRXST.7       SCIRXST.4 −2                SCIRXBUF.7−0                      SCIRXST.5
RX Error FE OE PE
           SPIRXBUF.15 −0
                                                          Receiver             Overrun
                                                         Overrun Flag          INT ENA
             SPIRXBUF                                                                                         SPI Priority
           Buffer Register                                    SPISTS.7                                                                   0 Level 1
                                                                                                  To CPU           SPIPRI.6
                                                                             SPICTL.4                                                      INT
                    SPITXBUF.15 −0                                                                                                       1 Level 5
         16                                                                                                                                INT
                      SPITXBUF
                    Buffer Register                                             SPI INT
                                                         SPI INT FLAG            ENA                                                                   External
                                                                                                                                                     Connections
                                                              SPISTS.6
                                 16
                                                                             SPICTL.0
M M
             SPIDAT
                                                                                                         S
           Data Register                                             S        SW1                                                                    SPISIMO
                                                                                                         M
               SPIDAT.15 −0                                          M
                                                                                                         S
                                                                     S        SW2                                                                    SPISOMI
                     Talk
                 SPICTL.1
                                                                                                                                                     SPISTE†
                         State Control
                                                                                                               Master/Slave
                                                            XTAL1/CLKIN
                                               Cb1
             RESONATOR/
                CRYSTAL
                                                            XTAL2              Fin
                                                                                            PLL                   CLKOUT
                                               Cb2
PLLF
                                                 R1
                               C2                               XTAL
                                                                OSC
                                                                                           3-bit
                                                   C1
                                                                                         PLL Select
                                                            PLLF2
                                                                                       (SCSR1.[11:9])
                                                            NOTE:
                  The bootloader sets the PLL to x2 or x4 option. If the bootloader is used, the value of CLKIN used
                  should not force CLKOUT to exceed the maximum rated device speed. See the “Boot ROM” section
                  for more details.
                Cb1                                      Cb2
        (see Note A)                                     (see Note A)
                                     (a)                                                                (b)
NOTE A: TI recommends that customers have the resonator/crystal vendor characterize the operation of their device with the DSP chip. The
        resonator/crystal vendor has the equipment and expertise to tune the tank circuit. The vendor can also advise the customer regarding
        the proper tank component values that will ensure start-up and stability over the entire operating range.
loop filter
      The PLL module uses an external loop filter circuit for jitter minimization. The components for the loop filter
      circuit are R1, C1, and C2. The capacitors (C1 and C2) must be non-polarized. This loop filter circuit is connected
      between the PLLF and PLLF2 pins (see Figure 16). For examples of component values of R1, C1, and C2 at
      a specified oscillator frequency (XTAL1), see Table 10.
                         Table 10. Loop Filter Component Values With Damping Factor = 2.0
  XTAL1/CLKIN FREQUENCY
                                   R1 (Ω) (± 5% TOLERANCE) 1/4 W            C1 (µF) (± 20% TOLERANCE)          C2 (µF) (± 20% TOLERANCE)
           (MHz)
                4                                  4.7                                    3.9                              0.082
                5                                  5.6                                    2.7                              0.056
                6                                  6.8                                    1.8                              0.039
                7                                  8.2                                    1.5                              0.033
                8                                  9.1                                     1                               0.022
                9                                  10                                    0.82                              0.015
               10                                  11                                    0.68                              0.015
               11                                  12                                    0.56                              0.012
               12                                  13                                    0.47                               0.01
               13                                  15                                    0.39                              0.0082
               14                                  15                                    0.33                              0.0068
               15                                  16                                    0.33                              0.0068
               16                                  18                                    0.27                              0.0056
               17                                  18                                    0.22                              0.0047
               18                                  20                                    0.22                              0.0047
               19                                  22                                    0.18                              0.0039
               20                                  24                                    0.15                              0.0033
low-power modes
      The 240xA has an IDLE instruction. When executed, the IDLE instruction stops the clocks to all circuits in the
      CPU, but the clock output from the CPU continues to run. With this instruction, the CPU clocks can be shut down
      to save power while the peripherals (clocked with CLKOUT) continue to run. The CPU exits the IDLE state if
      it is reset, or, if it receives an interrupt request.
clock domains
        All 240xA-based devices have two clock domains:
        1. CPU clock domain − consists of the clock for most of the CPU logic
        2. System clock domain − consists of the peripheral clock (which is derived from CLKOUT of the CPU) and
           the clock for the interrupt logic in the CPU.
        When the CPU goes into IDLE mode, the CPU clock domain is stopped while the system clock domain continues
        to run. This mode is also known as IDLE1 mode. The 240xA CPU also contains support for a second IDLE mode,
        IDLE2. By asserting IDLE2 to the 240xA CPU, both the CPU clock domain and the system clock domain are
        stopped, allowing further power savings. A third low-power mode, HALT mode, the deepest, is possible if the
        oscillator and WDCLK are also shut down when in IDLE2 mode.
        Two control bits, LPM1 and LPM0, specify which of the three possible low-power modes is entered when the
        IDLE instruction is executed (see Table 11). These bits are located in the System Control and Status
        Register 1 (SCSR1), and they are described in the TMS320LF/LC240xA DSP Controllers Reference Guide:
        System and Peripherals (literature number SPRU357).
                                            Table 11. Low-Power Modes Summary
                               LPMx BITS       CPU        SYSTEM
                                                                          WDCLK          PLL       OSC     FLASH        EXIT
     LOW-POWER MODE             SCSR1         CLOCK       CLOCK
                                                                          STATUS       STATUS     STATUS   POWER      CONDITION
                                 [13:12]      DOMAIN      DOMAIN
     CPU running normally          XX            On           On             On           On       On       On             —
                                                                                                                      Peripheral
                                                                                                                       Interrupt,
        IDLE1 − (LPM0)             00            Off          On             On           On       On       On     External Interrupt,
                                                                                                                        Reset,
                                                                                                                      PDPINTA/B
                                                                                                                        Wakeup
                                                                                                                       Interrupts,
        IDLE2 − (LPM1)             01            Off          Off            On           On       On       On     External Interrupt,
                                                                                                                         Reset,
                                                                                                                      PDPINTA/B
†   The Flash must be powered down by the user code prior to entering LPM2. For more details, see the TMS320LF/LC240xA DSP Controllers
    Reference Guide: System and Peripherals (literature number SPRU357).
In Out
                                                   Primary
                                                  Function         Pin
                                                  or I/O Pin
A summary of shared pin configurations and associated bits is shown in Table 12.
                           000
                             001
                                 010
      WDPS                       011
     WDCR.2 −0                   100
      2 1 0                      101
                               110
      WDCR.6               111
       WDDIS                                                                                                        WDFLAG
                                                       WDCNTR.7 −0
                                                                                                                    WDCR.7       Reset Flag
                                                      8-Bit Watchdog
                                                         Counter                      One-Cycle                                      Internal
                                                                                        Delay           PS/257                        Pullup
                                                            CLR
                                                                                                                                                RS Pin
     WDKEY.7 −0                                                                                                                       System
                                         Bad Key                                                                                      Reset
      Watchdog          55 + AA                                                                                                       Request
                                       Good Key                    WDCHK2−0
      Reset Key         Detector
       Register
                                                                   WDCR.5 −3†
                                                                                                                 Bad WDCR Key
                                                                                       3
                                                                                       3
                         System Reset
                                                                      1 0 1
                                                                    (Constant
                                                                      Value)
†   Writing to bits WDCR.5 −3 with anything but the correct pattern (101) generates a system reset.
development support
         Texas Instruments (TI) offers an extensive line of development tools for the x240xA generation of DSPs,
         including tools to evaluate the performance of the processors, generate code, develop algorithm
         implementations, and fully integrate and debug software and hardware modules.
         The following products support development of x240xA-based applications:
         Software Development Tools:
         Assembler/linker
         Simulator
         Optimizing ANSI C compiler
         Application algorithms
         C/Assembly debugger and code profiler
         Hardware Development Tools:
         Emulator XDS510 (supports x24x multiprocessor system debug)
         TMS320LF2407 EVM (Evaluation module for 2407 DSP)
         See Table 15 and Table 16 for complete listings of development support tools for the x240xA. For information
         on pricing and availability, contact the nearest TI field sales office or authorized distributor.
                                             Table 15. Development Support Tools
               DEVELOPMENT TOOL                                             PLATFORM                             PART NUMBER
                                                                 Software
    Code Composer Studio v.2.2                                               PC                                 TMDSCCS2000-1
                                                    Hardware − Emulation Debug Tools
    XDS510PP Pod (Parallel Port) with JTAG cable                             PC                                  TMDS3P701014
      The LF2407 Evaluation Module (EVM) provide designers of motor and motion control applications with a
      complete and cost-effective way to take their designs from concept to production. These tools offer both a
      hardware and software development environment and include:
      D     Flash-based LF240xA evaluation board
      D     Code Generation Tools
      D     Assembler/Linker
      D     C Compiler
      D     Source code debugger
      D     C24x Debugger
      D     Code Composer IDE
      D     XDS510PP JTAG-based emulator
      D     Sample applications code
      D     Universal 5-V DC power supply
      D     Documentation and cables
device and development support tool nomenclature
      To designate the stages in the product development cycle, TI assigns prefixes to the part numbers of all
      TMS320 DSP devices and support tools. Each TMS320 DSP commercial family member has one of three
      prefixes: TMX, TMP, or TMS. Texas Instruments recommends two of three possible prefix designators for its
      support tools: TMDX and TMDS. These prefixes represent evolutionary stages of product development from
      engineering prototypes (TMX / TMDX) through fully qualified production devices/tools (TMS / TMDS).
      Device development evolutionary flow:
          TMX     Experimental device that is not necessarily representative of the final device’s electrical specifications
          TMP     Final silicon die that conforms to the device’s electrical specifications but has not completed quality
                  and reliability verification
          TMS     Fully qualified production device
                                                                                           PACKAGE TYPE†‡
                      DEVICE FAMILY                                                        PG = 64-pin QFP
                                                                                           PAG = 64-pin TQFP
                      320 = TMS320 DSP Family                                             PGE = 144-pin plastic LQFP
                                                                                           PZ = 100-pin plastic LQFP
                                                                                           VF = 32-pin plastic LQFP
                                                                                     DEVICE
                      TECHNOLOGY                                                      240xA DSP
                                                                                              2407A§
                      LC = ROM (3.3 V)                                                        2406A§
                      LF = Flash EEPROM (3.3 V)                                               2404A
                                                                                              2403A
                                                                                              2402A
                                                                                              2401A
documentation support
      Extensive documentation supports all of the TMS320 DSP family generations of devices from product
      announcement through applications development. The types of documentation available include: data sheets,
      such as this document, with design specifications; complete user’s guides for all devices and development
      support tools; and hardware and software applications. Useful reference documentation includes:
      D User Guides
          −    TMS320LF/LC240xA DSP Controllers Reference Guide: System and Peripherals (literature number
               SPRU357)
          −    Manual Update Sheet for TMS320LF/LC240xA DSP Controllers Reference Guide: System and
               Peripherals (SPRU357) [literature number SPRZ015]
          −    TMS320C240 DSP Controllers CPU, System, and Instruction Set Reference Guide
               (literature number SPRU160)
      D Data Sheets
          −    TMS320LF2407A, TMS320LF2406A, TMS320LF2403A, TMS320LF2402A, TMS320LC2406A,
               TMS320LC2404A, TMS320LC2402A DSP Controllers (literature number SPRS145)
          −    TMS320LF2407, TMS320LF2406, TMS320LF2402 DSP Controllers (literature number SPRS094)
          −    TMS320LF2401A DSP Controller (literature number SPRS161)
      D Application Reports
          −    3.3-V DSP for Digital Motor Control (literature number SPRA550)
      To receive copies of TMS320 DSP literature, contact the Literature Response Center at 800-477-8924.
      A series of DSP textbooks is published by Prentice-Hall and John Wiley & Sons to support digital signal
      processing research and education. The TMS320 DSP newsletter, Details on Signal Processing, is published
      quarterly and distributed to update TMS320 DSP customers on product information.
      Updated information on the TMS320 DSP controllers can be found on the worldwide web at:
      http://www.ti.com.
      To send comments regarding this TMS320x240xA data sheet (literature number SPRS145), use the
      comments@books.sc.ti.com email address, which is a repository for feedback. For questions and support,
      contact the Product Information Center listed at the http://www.ti.com/sc/docs/pic/home.htm site.
                             100
                             90
                             80
                             70
              Current (mA)
                             60
                   I DD
                             50
                             40
                             30
                             20
                             10
                              0
                               0   5      10       15           20       25       30          35   40   45
                                                     CLKOUT Frequency (MHz)
Figure 21. LF2407A Typical Current Consumption (With Peripheral Clocks Enabled)
                             100
                             90
                             80
                             70
              Current (mA)
                             60
                   I DD
                             50
                             40
                             30
                             20
                             10
                              0
                               0   5      10       15           20       25       30          35   40   45
                                                     CLKOUT Frequency (MHz)
Figure 22. LC2406A Typical Current Consumption (With Peripheral Clocks Enabled)
      Figure 23 shows the connection between the DSP and JTAG header for a single-processor configuration. If the
      distance between the JTAG header and the DSP is greater than 6 inches, the emulation signals must be
      buffered. If the distance is less than 6 inches, buffering is typically not needed. Figure 23 shows the simpler,
      no-buffering situation. For the pullup/pulldown resistor values, see the pin description section. For details on
      buffering JTAG signals and multiple processor connections, see TMS320F/C24x DSP Controllers CPU and
      Instruction Set Reference Guide (literature number SPRU160).
6 inches or less
VDDO VDDIO
                                                                             13                            5
                                 EMU0                                             EMU0                PD
                                                                             14
                                 EMU1                                             EMU1
                                                                              2                            4
                                  TRST                                            TRST             GND
                                                                              1                            6
                                  TMS                                             TMS              GND
                                                                              3                            8
                                    TDI                                           TDI              GND
                                                                              7                            10
                                  TDO                                             TDO              GND
                                                                             11                            12
                                   TCK                                            TCK              GND
                                                                              9
                                                                                  TCK_RET
                            DSP
                                                                                        JTAG Header
Figure 23. Emulator Connection Without Signal Buffering for the DSP
EVA 6.1
EVB 6.1
ADC 3.7†
SCI 1.9
                                          SPI                                             1.3
                    †   This number represents the current drawn by the digital portion of the ADC module.
                        Turning off the clock to the ADC module results in the elimination of the current drawn
                        by the analog portion of the ADC (ICCA) as well.
IOL
                                   Tester Pin
                                   Electronics
                                                                            50 Ω                 Output
                              VLOAD                                                              Under
                                                                                                 Test
                                                                            CT
IOH
                                                                                              20%
                                                                                              0.4 V (VOL)
                                                                                              10%
                                                                                              0.8 V (VIL)
     Lowercase subscripts and their meanings:                             Letters and symbols and their meanings:
     a             access time                                             H            High
     c             cycle time (period)                                     L            Low
     d             delay time                                              V            Valid
     f             fall time                                               X            Unknown, changing, or don’t care level
     h             hold time                                               Z            High impedance
     r             rise time
     su            setup time
     t             transition time
     v             valid time
     w             pulse duration (width)
switching characteristics over recommended operating conditions [H = 0.5 tc(CO)] (see Figure 27)
                               PARAMETER                                             PLL MODE                MIN    TYP             MAX         UNIT
    tc(CO)            Cycle time, CLKOUT                                      ×4   mode†                       25                                ns
    tf(CO)            Fall time, CLKOUT                                                                               4                          ns
    tr(CO)            Rise time, CLKOUT                                                                               4                          ns
    tw(COL)           Pulse duration, CLKOUT low                                                             H −3    H               H +3        ns
    tw(COH)           Pulse duration, CLKOUT high                                                            H −3    H               H +3        ns
    tt                Transition time, PLL synchronized after RS pin high                                                     4096tc(Cl)         ns
†    Input frequency should be adjusted (CLK PS bits in SCSR1 register) such that CLKOUT = 40 MHz maximum, 4 MHz minimum.
                                                                                           tc(CI)
                                                  tw(CIH)
                                                                                            tf(Cl)                   tr(Cl)
                                                                                                         tw(CIL)
     XTAL1/CLKIN
                                                   tw(COH)
                                                                                                                                   tf(CO)
                                               tc(CO)                                  tw(COL) tr(CO)
CLKOUT
Figure 27. CLKIN-to-CLKOUT Timing with PLL and External Clock in ×4 Mode
 RS timing
 timing requirements for a reset [H = 0.5tc(CO)] (see Figure 28 and Figure 29)
                                                                                                                MIN   NOM             MAX      UNIT
     tw(RSL)          Pulse duration, stable CLKIN to RS high                                              8tc(CI)†                            cycles
     tw(RSL2)         Pulse duration, RS low                                                                8tc(CI)                            cycles
     tp               PLL lock-up time                                                                                            4096tc(CI)   cycles
     td(EX)           Delay time, reset vector executed after PLL lock time                                            36H                      ns
 †   During power-on reset, the device can continue to hold the RS pin low for another 128 CLKIN cycles.
VDD/VDDO
                                                                                tp                     td(EX)
                                                     tw(RSL)
               RS
CLKIN
      XTAL1
(See Note B)               tOSCST
                        (See Note C)
BOOT_EN/XF BOOT_EN XF
CLKOUT
      Address/
         Data/                                                                                                   Address/Data/Control Valid
       Control
 NOTES: A. Be certain that the emulation logic is reset before de-asserting the device reset. That is, TRST of the device is not driven high before
           the device reset is de-asserted. This is applicable to XDS510, XDS510PP, and XDS510PP+ class of emulators. New
           generation emulators such as SPI515 and XDS510 USB emulators have built-in protection mechanism to take care of this
           requirement.
        B. XTAL1 refers to the internal oscillator clock if on-chip oscillator is used.
        C. tOSCST is the oscillator start-up time, which is dependent on crystal/resonator and board design.
        D. All I/Os contain a clamp to VDD. Inputs of approximately 0.7 V above VDD will cause the I/O to sink current. I/Os containing pullups
           or pulldowns will always sink/source a small amount of current once powered.
RS timing (continued)
                                                                                                        td(EX)
                                                                                  tp
                                            tw(RSL2)
          RS
CLKIN
XTAL1†
BOOT_EN                                                                          BOOT_EN                                    XF
     /XF
CLKOUT
                                                       Hi-Z
          I/Os                                                                                                       Code-Dependent
Address/
   Data/                                                                                                         Address/Data/Control Valid
 Control
†   XTAL1 refers to internal oscillator clock if on-chip oscillator is used.
RS timing (continued)
switching characteristics over recommended operating conditions for a reset [H = 0.5tc(CO)]
(see Figure 30)
                                                   PARAMETER                                                                MIN             MAX    UNIT
    tw(RSL1)          Pulse duration, RS   low†                                                                       128tc(CI)                     ns
    td(EX)            Delay time, reset vector executed after PLL lock time                                                 36H                     ns
    tp                PLL lock time (input cycles)                                                                                    4096tc(CI)    ns
†   The parameter tw(RSL1) refers to the time RS is an output.
                                                                                                            td(EX)
                                                                                    tp
                                            tw(RSL1)
             RS
CLKIN
XTAL1†
BOOT_EN                                                                             BOOT_EN                                     XF
     /XF
CLKOUT
                                                           Hi-Z
             I/Os                                                                                                        Code-Dependent
Address/
   Data/                                                                                                             Address/Data/Control Valid
 Control
†   XTAL1 refers to internal oscillator clock if on-chip oscillator is used.
td(WAKE−A)
A0−A15
CLKOUT
WAKE INT†
td(IDLE−COH)
A0−A15
CLKOUT
         WAKE INT†
                                                                                               td(WAKE−A)
†   WAKE INT can be any valid interrupt or RESET.
                                        Figure 32. IDLE2 Entry and Exit Timing − LPM1
                                                                                                                             td(EX)
                                                                                                              tp
              A0−A15
                                               td(IDLE−OSC)
                                           td(IDLE−COH)
              CLKOUT
                                                                td(WAKE−OSC)
                                                                                                        tw(RSL)
RESET
                                                                                   tOSC†
                                                                                                          tp
CLKIN
CLKOUT‡
tw(PDP−WAKE)
PDPINTx
td(PDP-PWM)HZ
PWM
td(INT)
CLKOUT
td(XF)
XF
tsu(BIO)CO th(BIO)CO
                BIO,
              MP/MC
PWM timing
         PWM refers to all PWM outputs on EVA and EVB.
CLKOUT
                                         td(PWM)CO
                                                                         tw(PWM)
PWMx
CLKOUT
tw(TMRDIR)
TMRDIR†
CLKOUT
tw(CAP)
CAPx
interrupt timing
          INT refers to XINT1 and XINT2. PDP refers to PDPINTx.
CLKOUT
tw(PDP)
PDPINTx
td(PDP-PWM)HZ
PWM†
tw(INT)
XINT1, XINT2
td(INT)
          †    PWM refers to all the PWM pins in the device (i.e., PWMn and TnPWM pins). The state of the PWM pins after PDPINTx is taken
               high depends on the state of the FCOMPOE bit.
CLKOUT
td(GPO)CO
GPIO
                                                                                                    tr(GPO)
                                                  tf(GPO)
CLKOUT
tw(GPI)
GPIO
                                                   SPI master mode external timing parameters (clock phase = 0)†‡ (see Figure 42)
                                                                                                                        SPI WHEN (SPIBRR + 1) IS EVEN                       SPI WHEN (SPIBRR + 1)
                                                       NO.                                                                   OR SPIBRR = 0 OR 2                            IS ODD AND SPIBRR > 3                   UNIT
                                                                                                                              MIN               MAX                  MIN                            MAX
                                                        1      tc(SPC)M          Cycle time, SPICLK                          4tc(CO)          128tc(CO)             5tc(CO)                     127tc(CO)           ns
                                                                                                                                                                                                                                                                                                      DSP CONTROLLERS
                                                                                 SPICLK high (clock polarity = 1)
                                                   † The MASTER / SLAVE bit (SPICTL.2) is set and the CLOCK PHASE bit (SPICTL.3) is cleared.
                                                   ‡ tc = system clock cycle time = 1/CLKOUT = tc(CO)
                                                   § The active edge of the SPICLK signal referenced is controlled by the CLOCK POLARITY bit (SPICCR.6).
   91
TMS320LF2407A, TMS320LF2406A, TMS320LF2403A, TMS320LF2402A
TMS320LC2406A, TMS320LC2404A, TMS320LC2403A, TMS320LC2402A
DSP CONTROLLERS
SPRS145L − JULY 2000 − REVISED SEPTEMBER 2007
                   SPICLK
         (clock polarity = 1)
                                                        4
                                                                                5
                                                             Master In Data
                     SPISOMI
                                                             Must Be Valid
SPISTE†
         †   The SPISTE signal is active before the SPI communication stream starts; the SPISTE signal remains active until the SPI
             communication stream is complete.
                                                                                                                                                                                                                                                                                                       DSP CONTROLLERS
                                                       11§                                                                                                                                                           ns
                                                                                        Valid time, SPISOMI data
                                                             tv(SPCL-SOMI)M             valid after SPICLK low          0.25tc(SPC)M −10                        0.5tc(SPC)M −10
                                                                                        (clock polarity = 1)
                                                   † The MASTER / SLAVE bit (SPICTL.2) is set and the CLOCK PHASE bit (SPICTL.3) is set.
                                                   ‡ tc = system clock cycle time = 1/CLKOUT = tc(CO)
                                                   § The active edge of the SPICLK signal referenced is controlled by the CLOCK POLARITY bit (SPICCR.6).
   93
TMS320LF2407A, TMS320LF2406A, TMS320LF2403A, TMS320LF2402A
TMS320LC2406A, TMS320LC2404A, TMS320LC2403A, TMS320LC2402A
DSP CONTROLLERS
SPRS145L − JULY 2000 − REVISED SEPTEMBER 2007
                    SPICLK
         (clock polarity = 1)
10
11
                                                                     Master In Data
                     SPISOMI
                                                                     Must Be Valid
SPISTE†
             †   The SPISTE signal is active before the SPI communication stream starts; the SPISTE signal remains active until the SPI
                 communication stream is complete.
SPI slave mode external timing parameters (clock phase = 0)†‡ (see Figure 44)
    NO.                                                                                                 MIN             MAX          UNIT
    12    tc(SPC)S          Cycle time, SPICLK                                                       4tc(CO)‡                         ns
          tw(SPCH)S         Pulse duration, SPICLK high (clock polarity = 0)                         0.5tc(SPC)S −10   0.5tc(SPC)S
    13§                                                                                                                               ns
          tw(SPCL)S         Pulse duration, SPICLK low (clock polarity = 1)                          0.5tc(SPC)S −10   0.5tc(SPC)S
          tw(SPCL)S         Pulse duration, SPICLK low (clock polarity = 0)                          0.5tc(SPC)S −10   0.5tc(SPC)S
    14§                                                                                                                               ns
          tw(SPCH)S         Pulse duration, SPICLK high (clock polarity = 1)                         0.5tc(SPC)S −10   0.5tc(SPC)S
                            Delay time, SPICLK high to SPISOMI valid
          td(SPCH-SOMI)S                                                                           0.375tc(SPC)S −10
    15§                     (clock polarity = 0)                                                                                      ns
          td(SPCL-SOMI)S    Delay time, SPICLK low to SPISOMI valid (clock polarity = 1)           0.375tc(SPC)S −10
                            Valid time, SPISOMI data valid after SPICLK low
          tv(SPCL-SOMI)S                                                                               0.75tc(SPC)S
                            (clock polarity =0)
    16§                                                                                                                               ns
                            Valid time, SPISOMI data valid after SPICLK high
          tv(SPCH-SOMI)S                                                                               0.75tc(SPC)S
                            (clock polarity =1)
          tsu(SIMO-SPCL)S   Setup time, SPISIMO before SPICLK low (clock polarity = 0)                     0
    19§                                                                                                                               ns
          tsu(SIMO-SPCH)S   Setup time, SPISIMO before SPICLK high (clock polarity = 1)                    0
                            Valid time, SPISIMO data valid after SPICLK low
          tv(SPCL-SIMO)S                                                                                 0.5tc(SPC)S
                            (clock polarity = 0)
    20§                                                                                                                               ns
                            Valid time, SPISIMO data valid after SPICLK high
          tv(SPCH-SIMO)S                                                                                 0.5tc(SPC)S
                            (clock polarity = 1)
† The MASTER / SLAVE bit (SPICTL.2) is cleared and the CLOCK PHASE bit (SPICTL.3) is cleared.
‡ tc = system clock cycle time = 1/CLKOUT = tc(CO)
§ The active edge of the SPICLK signal referenced is controlled by the CLOCK POLARITY bit (SPICCR.6).
13
14
                  SPICLK
       (clock polarity = 1)
                                                        15
                                                                                 16
19
20
                                                               SPISIMO Data
                   SPISIMO
                                                               Must Be Valid
SPISTE†
          †   The SPISTE signal must be active before the SPI communication stream starts; the SPISTE signal must remain active until
              the SPI communication stream is complete.
SPI slave mode external timing parameters (clock phase = 1)†‡ (see Figure 45)
    NO.                                                                                                  MIN           MAX          UNIT
    12    tc(SPC)S          Cycle time, SPICLK                                                         8tc(CO)                       ns
          tw(SPCH)S         Pulse duration, SPICLK high (clock polarity = 0)                        0.5tc(SPC)S −10   0.5tc(SPC)S
    13§                                                                                                                              ns
          tw(SPCL)S         Pulse duration, SPICLK low (clock polarity = 1)                         0.5tc(SPC)S −10   0.5tc(SPC)S
          tw(SPCL)S         Pulse duration, SPICLK low (clock polarity = 0)                         0.5tc(SPC)S −10   0.5tc(SPC)S
    14§                                                                                                                              ns
          tw(SPCH)S         Pulse duration, SPICLK high (clock polarity = 1)                        0.5tc(SPC)S −10   0.5tc(SPC)S
          tsu(SOMI-SPCH)S   Setup time, SPISOMI before SPICLK high (clock polarity = 0)              0.125tc(SPC)S
    17§                                                                                                                              ns
          tsu(SOMI-SPCL)S   Setup time, SPISOMI before SPICLK low (clock polarity = 1)               0.125tc(SPC)S
                            Valid time, SPISOMI data valid after SPICLK high
          tv(SPCH-SOMI)S                                                                              0.75tc(SPC)S
                            (clock polarity =0)
    18§                                                                                                                              ns
                            Valid time, SPISOMI data valid after SPICLK low
          tv(SPCL-SOMI)S                                                                              0.75tc(SPC)S
                            (clock polarity =1)
          tsu(SIMO-SPCH)S   Setup time, SPISIMO before SPICLK high (clock polarity = 0)                     0
    21§                                                                                                                              ns
          tsu(SIMO-SPCL)S   Setup time, SPISIMO before SPICLK low (clock polarity = 1)                      0
                            Valid time, SPISIMO data valid after SPICLK high
          tv(SPCH-SIMO)S                                                                                0.5tc(SPC)S
                            (clock polarity = 0)
    22§                                                                                                                              ns
                            Valid time, SPISIMO data valid after SPICLK low
          tv(SPCL-SIMO)S                                                                                0.5tc(SPC)S
                            (clock polarity = 1)
† The MASTER / SLAVE bit (SPICTL.2) is cleared and the CLOCK PHASE bit (SPICTL.3) is set.
‡ tc = system clock cycle time = 1/CLKOUT = tc(CO)
§ The active edge of the SPICLK signal referenced is controlled by the CLOCK POLARITY bit (SPICCR.6).
13
14
                   SPICLK
        (clock polarity = 1)
17
18
21
22
SPISTE†
        †   The SPISTE signal must be active before the SPI communication stream starts; the SPISTE signal must remain active until
            the SPI communication stream is complete.
tsu(A)RD Setup time, address valid before RD strobe active low H−7 ns
CLKOUT
td(COL−CNTL)
td(COL−CNTH)
 PS, DS,
      IS
                       td(COL−A)RD
                                                      td(COL−A)RD
th(A)COL
th(A)COL
A[0:15]
                                       td(COH−RDL)
                                                                                 td(COL−RDH)
ta(A)
td(COH−RDL)
td(COL−RDH)
th(A)RD
RD
                                                                                        th(AIV−D)
                                                                    tsu(A)RD
                                                       ta(A)
                                                                                    tsu(D)RD
                                                                                       th(D)RD
                                                     ta(RD)                                                 tsu(D)RD
             td(WRN)
                                                                                                                   th(D)RD
      W/R
R/W
D[0:15]
td(COL−SL)
td(COL−SH)
STRB
      CLKOUT
                                 td(COH−CNTL)
                                                                                                                          td(COH−CNTH)
                                                                                                                 td(COH−CNTL)
   PS, DS, IS
                                 td(COH−A)W
                                                                                 th(A)COLW
A[0:15]
                                 td(COH−RWL)
                                                                                                                           td(COH−RWH)
                                        tsu(A)W
          R/W
td(WRN)
W/R
                                                              td(COL−WH)                                 td(COL−WH)
                                       td(COL−WL)
                                                                                       td(COL−WL)
           WE
                                                                                                                               tdis(W-D)
                                     ten(D)COL
                                                                                         ten(D)COL
                                           tsu(D)W
                                                                                             tsu(D)W
                                                                        th(D)W
                                                                                                                      th(D)W
D[0:15]
                                                                                       td(COL−SL)
                 td(COL−SL)
                                                                  td(COL−SH)                             td(COL−SH)
STRB
ENA_144
CLKOUT
2H 2H
VIS_OE
NOTE A: VIS_OE will be visible at pin 97 of LF2407A when ENA_144 is high along with BVIS bits (10,9 of WSGR register − FFFFh@I/O) set to
        10 or 11. CLKOUT and VIS_OE indicate internal memory write cycles (program/data). During VIS_OE cycles, the external bus will be
        driven. CLKOUT is to be used along with VIS_OE for trace capabilities.
                                    Figure 47. Memory Interface Write/Write Timings
timing requirements for an external memory interface ready-on-read (see Figure 48)
                                                                                                                     MIN    MAX     UNIT
th(RDY)COH         Hold time, READY after CLKOUT high                                                                 −3             ns
tsu(D)RD           Setup time, read data before RD strobe inactive high                                                 8            ns
tv(RDY)ARD         Valid time, READY after address valid on read                                                              −2     ns
tsu(RDY)COH        Setup time, READY before CLKOUT high                                                               22             ns
CLKOUT
                                                                          Wait Cycle
 PS, DS, IS
td(COL−A)RD
A[0:15]
RD
tsu(D)RD
D[0:15]
STRB
tv(RDY)ARD
th(RDY)COH
READY†
tsu(RDY)COH
† The WSGR register must be programmed before the READY pin can be used. See the READY pin description for more details.
timing requirements for an external memory interface ready-on-read with one software wait state
and one external wait state (see Figure 49)
                                                                                                                 MIN     MAX   UNIT
 th(RDY)COH         Hold time, READY after CLKOUT high                                                         H − 2.5          ns
 tsu(RDY)COH        Setup time, READY before CLKOUT high                                                       H − 9.5          ns
 td(COL-A)RD        Delay time, CLKOUT low to address valid                                                                8    ns
CLKOUT
PS, DS, IS
td(COL-A)RD
A[0:15]
W/R
R/W
D[0:15]
STRB
                                                                                                  th(RDY)COH
                                                  tsu(RDY)COH
READY
RD
                     Figure 49. Ready-on-Read Timings With One Software Wait (SW) State and
                                          One External Wait (EXW) State
CLKOUT
                                                          Wait Cycle
    PS, DS, IS
td(COH−A)W
A[0:15]
WE
tsu(D)W
D[0:15]
STRB
                                    tv(RDY)AW
                                                tsu(RDY)COH
                                                             th(RDY)COH
READY
timing requirements for an external memory interface ready-on-write with one software wait state
and one external wait state (see Figure 51)
                                                                                                        MIN     MAX   UNIT
 th(RDY)COH        Hold time, READY after CLKOUT high                                                 H − 2.5          ns
 tsu(RDY)COH       Setup time, READY before CLKOUT high                                               H − 9.5          ns
 td(COH-A)W        Delay time, CLKOUT high to address valid                                                      10    ns
CLKOUT
PS, DS, IS
td(COH−A)W
A[0:15]
                                          tsu(RDY)COH
                                                                                         th(RDY)COH
READY
R/W
WE
D[0:15]
STRB
                    Figure 51. Ready-on-Write Timings With One Software Wait (SW) State and
                                         One External Wait (EXW) State
tc(AD)
Bit Converted 9 8 7 6 5 4 3 2 1 0
ADC Clock
                                     Á
        Analog Input
                                     Á Á
                                       Á                                  tw(C)
EOC/Convert
                                                       tw(SH)
       Internal Start/
       Sample Hold
                                              td(SOC−SH)
    Start of Convert
                                                                                          td(EOC)
                                                                     tw(SHC)
XFR to RESULTn
                                                                                                        td(ADCINT)
ADC Interrupt
                  Table 18. Differences Between LF240xA (Flash) Devices and LC240xA (ROM) Devices
                  FEATURE                     LF2406A         LC2406A        LC2404A        LF2403A       LC2403A           LF2402A      LC2402A
    On-chip Flash or ROM (see Note 1)            32K              32K           16K            16K           16K              8K              6K
    Single-Access RAM (SARAM)
                                                  2K              2K             1K            512           512              512             —
    (16-bit words)
    Boot ROM                                     Yes              —              —             Yes           Yes              Yes             —
    Event Managers                            EVA, EVB        EVA, EVB       EVA, EVB          EVA           EVA             EVA              EVA
    ADC Channels                                  16              16             16             8             8                8               8
    SPI                                          Yes              Yes           Yes            Yes§          Yes§             —               —
    CAN                                          Yes              Yes            —             Yes           Yes              —               —
    GPIO Pins                                     41              41             41             21            21              21              21
    BIO Pin                                      Yes              Yes           Yes             —             —               —               —
    TDIRx Pin                                    Yes              Yes           Yes             —             —               —               —
    External Interrupts                            5               5              5             3             3                3               3
    Access to External Memory   Spaces¶      See Note 2     See Note 3      See Note 3     See Note 2    See Note 3     See Note 2      See Note 3
    VCCP Pin Functionality                      VCCP        No Connect      No Connect        VCCP       No Connect          VCCP        No Connect
                                               100-pin         100-pin         100-pin        64-pin        64-pin           64-pin        64-pin
    Packaging
                                                 PZ              PZ              PZ            PAG           PAG              PG          PG, PAG
§The SPISTE pin is not available on the LF2403A. See the SPI Slave Mode Operation in LF2403A section.
¶Application code should NOT access Illegal/Reserved addresses.
NOTES: 1. The last 64 words of ROM are reserved for TI internal testing. User code should not occupy these locations. See the device memory
              map for details.
          2. Access to external Program, Data, and I/O space is considered illegal and would assert an NMI.
          3. The external Program and I/O spaces are implemented as “reserved” addresses and any access will not assert an NMI. However,
              the external data memory space is illegal.
Indicates change with respect to the F243/F241, C242 device register maps.
0xx02h WADDR
0xx03h WDATA
                  —             —               —               —                —                 —                —             —
    0xx04h                                                                                                                                 TCR
                  —             —               —               —                —                 —                —             —
                  —             —               —               —                —                 —                —             —
    0xx05h                                                                                                                                 ENAB
                  —             —               —               —                —                 —                —             —
                  —             —               —               —                —                 —                —             —
    0xx06h                                                                    SECT 4             SECT 3          SECT 2        SECT 1      SECT
                  —             —               —               —
                                                                              ENABLE             ENABLE          ENABLE        ENABLE
                                                                I/O MEMORY SPACE
                  —             —               —               —                —                 —                —             —
    0FF0Fh                                                                                                                                 FCMR
                  —             —               —               —                —                 —                —             —
                                                 WAIT-STATE GENERATOR CONTROL REGISTER
                  —             —               —               —                —               BVIS.1           BVIS.0        ISWS.2
    0FFFFh                                                                                                                                 WSGR
                ISWS.1        ISWS.0         DSWS.2          DSWS.1           DSWS.0             PSWS.2          PSWS.1        PSWS.0
MECHANICAL DATA
        Table 20 through Table 23 provide the typical thermal resistance characteristics for each mechanical
        package.
                                Table 20. Typical Thermal Resistance Characteristics
                                                for the PAG Package
                                 PARAMETER                   DESCRIPTION                         °C / W
                                      ΘJA                  Junction-to-ambient                    42
                                      ΘJC                    Junction-to-case                      7
                                      Ψjt               Junction-to-top of package                0.5
The following mechanical package diagram(s) reflect the most current released mechanical data available
for the designated device(s).
www.ti.com 10-Dec-2020
PACKAGING INFORMATION
        Orderable Device           Status   Package Type Package Pins Package            Eco Plan          Lead finish/          MSL Peak Temp        Op Temp (°C)          Device Marking       Samples
                                     (1)                 Drawing        Qty                  (2)           Ball material                 (3)                                     (4/5)
                                                                                                                 (6)
       TMS320LF2402APGA           ACTIVE         QFP           PG       64      66    RoHS & Green            NIPDAU            Level-4-260C-72 HR         -40 to 85    320LF2402APGA
                                                                                                                                                                        TMS
      TMS320LF2402APGAR           ACTIVE         QFP           PG       64     400    RoHS & Green            NIPDAU            Level-4-260C-72 HR         -40 to 85    320LF2402APGA
                                                                                                                                                                        TMS
       TMS320LF2402APGS            NRND          QFP           PG       64      66    RoHS & Green            NIPDAU            Level-4-260C-72 HR         -40 to 125   320LF2402APGS
                                                                                                                                                                        TMS
      TMS320LF2403APAG4           ACTIVE         TQFP         PAG       64     160    RoHS & Green            NIPDAU           Level-3-260C-168 HR         -40 to 85    LF2403APAGA
                                                                                                                                                                        TMS320
      TMS320LF2403APAGA           ACTIVE         TQFP         PAG       64     160    RoHS & Green            NIPDAU           Level-3-260C-168 HR         -40 to 85    LF2403APAGA
                                                                                                                                                                        TMS320
      TMS320LF2403APAGS           ACTIVE         TQFP         PAG       64     160    RoHS & Green            NIPDAU           Level-3-260C-168 HR         -40 to 125   LF2403APAGS
                                                                                                                                                                        TMS320
       TMS320LF2406APZA           ACTIVE         LQFP          PZ      100      90    RoHS & Green            NIPDAU           Level-2-260C-1 YEAR         -40 to 85    320LF2406APZA
                                                                                                                                                                        TMS
      TMS320LF2406APZAG4          ACTIVE         LQFP          PZ      100      90    RoHS & Green            NIPDAU           Level-2-260C-1 YEAR         -40 to 85    320LF2406APZA
                                                                                                                                                                        TMS
      TMS320LF2406APZAR           ACTIVE         LQFP          PZ      100    1000    RoHS & Green            NIPDAU           Level-2-260C-1 YEAR         -40 to 85    320LF2406APZA
                                                                                                                                                                        TMS
       TMS320LF2406APZS           ACTIVE         LQFP          PZ      100      90    RoHS & Green            NIPDAU           Level-2-260C-1 YEAR         -40 to 125   320LF2406APZS
                                                                                                                                                                        TMS
      TMS320LF2407APGEA           ACTIVE         LQFP         PGE      144      60    RoHS & Green            NIPDAU           Level-1-260C-UNLIM          -40 to 85    320LF2407APGEA
                                                                                                                                                                        TMS
      TMS320LF2407APGEG4          ACTIVE         LQFP         PGE      144      60    RoHS & Green            NIPDAU           Level-1-260C-UNLIM          -40 to 85    320LF2407APGEA
                                                                                                                                                                        TMS
      TMS320LF2407APGES           ACTIVE         LQFP         PGE      144      60    RoHS & Green            NIPDAU           Level-1-260C-UNLIM          -40 to 125   320LF2407APGES
                                                                                                                                                                        TMS
(1)
   The marketing status values are defined as follows:
ACTIVE: Product device recommended for new designs.
LIFEBUY: TI has announced that the device will be discontinued, and a lifetime-buy period is in effect.
NRND: Not recommended for new designs. Device is in production to support existing customers, but TI does not recommend using this part in a new design.
PREVIEW: Device has been announced but is not in production. Samples may or may not be available.
OBSOLETE: TI has discontinued the production of the device.
                                                                                         Addendum-Page 1
                                                                                                                                                     PACKAGE OPTION ADDENDUM
www.ti.com 10-Dec-2020
(2)
   RoHS: TI defines "RoHS" to mean semiconductor products that are compliant with the current EU RoHS requirements for all 10 RoHS substances, including the requirement that RoHS substance
do not exceed 0.1% by weight in homogeneous materials. Where designed to be soldered at high temperatures, "RoHS" products are suitable for use in specified lead-free processes. TI may
reference these types of products as "Pb-Free".
RoHS Exempt: TI defines "RoHS Exempt" to mean products that contain lead but are compliant with EU RoHS pursuant to a specific EU RoHS exemption.
Green: TI defines "Green" to mean the content of Chlorine (Cl) and Bromine (Br) based flame retardants meet JS709B low halogen requirements of <=1000ppm threshold. Antimony trioxide based
flame retardants must also meet the <=1000ppm threshold requirement.
(3)
      MSL, Peak Temp. - The Moisture Sensitivity Level rating according to the JEDEC industry standard classifications, and peak solder temperature.
(4)
      There may be additional marking, which relates to the logo, the lot trace code information, or the environmental category on the device.
(5)
   Multiple Device Markings will be inside parentheses. Only one Device Marking contained in parentheses and separated by a "~" will appear on a device. If a line is indented then it is a continuation
of the previous line and the two combined represent the entire Device Marking for that device.
(6)
   Lead finish/Ball material - Orderable Devices may have multiple material finish options. Finish options are separated by a vertical ruled line. Lead finish/Ball material values may wrap to two
lines if the finish value exceeds the maximum column width.
Important Information and Disclaimer:The information provided on this page represents TI's knowledge and belief as of the date that it is provided. TI bases its knowledge and belief on information
provided by third parties, and makes no representation or warranty as to the accuracy of such information. Efforts are underway to better integrate information from third parties. TI has taken and
continues to take reasonable steps to provide representative and accurate information but may not have conducted destructive testing or chemical analysis on incoming materials and chemicals.
TI and TI suppliers consider certain information to be proprietary, and thus CAS numbers and other limited information may not be available for release.
In no event shall TI's liability arising out of such information exceed the total purchase price of the TI part(s) at issue in this document sold by TI to Customer on an annual basis.
                                                                                                Addendum-Page 2
                                                                                                                     MECHANICAL DATA
                                                                     0,45
                         1,00                                                        0,20 M
                                                                     0,25
                   51                                                          33
52 32
                                                                                                             14,20   18,00
                                                                                                 12,00 TYP
                                                                                                             13,80   17,20
64 20
                    1                                                           19
                                                                                                                                  0,15 NOM
                                            18,00 TYP
                                               20,20
                                               19,80
                                               24,00
                                               23,20
                                                                                                                              Gage Plane
                                                                                                                  0,25
                                                                                              0,10 MIN
            2,70 TYP                                                                                                                  0°– 10°
                                                                                                                  1,10
                                                                                                                  0,70
                                                                                                     Seating Plane
                                                                   0,27
                         0,50                                                    0,08 M
                                                                   0,17
                          75                                  51
76 50
                           1                                  25
                                       12,00 TYP                                                                     Gage Plane
                                       14,20
                                             SQ
                                       13,80
                                       16,20                                                            0,25
                                             SQ                                          0,05 MIN                                 0°– 7°
                                       15,80
                  1,45                                                                                    0,75
                  1,35                                                                                    0,45
Seating Plane
4040149 /B 11/96
                                                      0,27
                0,50                                               0,08 M
                                                      0,17
                       48                        33
49 32
64 17
0,13 NOM
                       1                         16
                                7,50 TYP
                                                                                                              Gage Plane
                                10,20
                                      SQ
                                9,80
                                12,20                                                               0,25
                                      SQ                                        0,05 MIN
                                11,80                                                                                      0°– 7°
               1,05
               0,95                                                                                0,75
                                                                                                   0,45
                                                                    Seating Plane
4040282 / C 11/96
108 73
109 72
                                                                                                0,27
                                                                                                               0,08 M
                                                                                                0,17
0,50
                   1                                                      36
                                                                                                                         Gage Plane
                                        17,50 TYP
                                         20,20 SQ
                                         19,80                                                                 0,25
                                         22,20                                             0,05 MIN                                   0°– 7°
                                               SQ
                                         21,80
                                                                                                               0,75
                                                                                                               0,45
            1,45
            1,35
Seating Plane
4040147 / C 10/96
TI PROVIDES TECHNICAL AND RELIABILITY DATA (INCLUDING DATASHEETS), DESIGN RESOURCES (INCLUDING REFERENCE
DESIGNS), APPLICATION OR OTHER DESIGN ADVICE, WEB TOOLS, SAFETY INFORMATION, AND OTHER RESOURCES “AS IS”
AND WITH ALL FAULTS, AND DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING WITHOUT LIMITATION ANY
IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT OF THIRD
PARTY INTELLECTUAL PROPERTY RIGHTS.
These resources are intended for skilled developers designing with TI products. You are solely responsible for (1) selecting the appropriate
TI products for your application, (2) designing, validating and testing your application, and (3) ensuring your application meets applicable
standards, and any other safety, security, or other requirements. These resources are subject to change without notice. TI grants you
permission to use these resources only for development of an application that uses the TI products described in the resource. Other
reproduction and display of these resources is prohibited. No license is granted to any other TI intellectual property right or to any third
party intellectual property right. TI disclaims responsibility for, and you will fully indemnify TI and its representatives against, any claims,
damages, costs, losses, and liabilities arising out of your use of these resources.
TI’s products are provided subject to TI’s Terms of Sale (www.ti.com/legal/termsofsale.html) or other applicable terms available either on
ti.com or provided in conjunction with such TI products. TI’s provision of these resources does not expand or otherwise alter TI’s applicable
warranties or warranty disclaimers for TI products.
                             Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
                                            Copyright © 2020, Texas Instruments Incorporated