Part Number Hot Search : 
JW100A1 JW100A1 20H90 E130A SBT605G FS500F 40040 5332H5
Product Description
Full Text Search
 

To Download TMS370C080 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 1 post office box 1443 ? houston, texas 772511443  cmos/ eeprom/ eprom technologies on a single device mask-rom devices for high-volume production one-time-programmable (otp) eprom devices for low-volume production reprogrammable eprom devices for prototyping purposes  internal system memory configurations on-chip program memory versions rom: 4k bytes eprom: 16k bytes data eeprom: 256 bytes static ram: 128 or 256 bytes usable as registers  flexible operating features low-power modes: standby and halt commercial, industrial, and automotive temperature ranges clock options divide-by-1 (2 mhz 5 mhz sysclk) pll divide-by-4 (0.5 mhz 5 mhz sysclk) supply voltage (v cc ) 5 v 10%  16-bit general purpose timer software configurable as a 16-bit event counter, or a 16-bit pulse accumulator, or a 16-bit input capture functions, or two compare registers, or a self-contained pulse width modulation (pwm) function  on-chip 24-bit watchdog timer eprom / otp device: standard watchdog mask-rom devices: hard watchdog, simple counter, or standard watchdog  flexible interrupt handling two s/w programmable interrupt levels global- and individual-interrupt masking programmable rising- or falling-edge detect individual interrupt vectors  tms370 series compatibility register-to-register architecture 256 general-purpose registers 14 powerful addressing modes instructions upwardly compatible with all tms370 devices  cmos/ package/ttl compatible i / o pins 40-pin plastic dual-in-line packages / 32 bidirectional pins, 1 input pin 44-pin plastic leaded chip carrier (lcc) packages/ 34 bidirectional pins, 1 input pin  workstation / pc-based development system c compiler and c source debugger real-time in-circuit emulation extensive breakpoint / trace capability multi-window user interface microcontroller programmer production data information is current as of publication date. products conform to specifications per the terms of texas instruments standard warranty. production processing does not necessarily include testing of all parameters. copyright ? 1997, texas instruments incorporated please be aware that an important notice concerning availability, standard warranty, and use in critical applications of texas instruments semiconductor products and disclaimers thereto appears at the end of this data sheet. n package ( top view ) fz and fn packages ( top view ) mc xtal2/clkin xtal1 b7 b6 b5 nc b4 c7 c6 nc 39 38 37 36 35 34 33 32 31 30 29 18 19 7 8 9 10 11 12 13 14 15 16 17 int1 int2 int3 v cc nc a7 a6 v ss a5 a4 a3 20 21 22 23 b0 b1 b2 b3 54 321 6 44 reset c5 c4 c3 c2 c1 c0 d5 t1evt t1pwm t1ic/cr a2 a1 a0 d7 d4 d3 d6 42 41 40 43 24 25 26 27 28 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 c2 c3 c4 c5 reset int1 int2 int3 nc v cc a7 a6 a5 a4 a3 a2 a1 a0 d7 d4 c1 c0 b0 b1 b2 b3 mc xtal2/clkin xtal1 b7 b6 b5 b4 v ss t1ic/cr t1pwm t1evt d5 d6 d3
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 2 post office box 1443 ? houston, texas 772511443 pin descriptions pins type2 name pdip (40) lcc (44) type2 description a0 a1 a2 a3 a4 a5 a6 a7 18 17 16 15 14 13 12 11 20 19 18 17 16 15 13 12 i/o port a is a general-purpose bidirectional i / o port. b0 b1 b2 b3 b4 b5 b6 b7 38 37 36 35 28 29 30 31 43 42 41 40 32 34 35 36 i/o port b is a general-purpose bidirectional i / o port. c0 c1 c2 c3 c4 c5 c6 c7 39 40 1 2 3 4 e e 44 1 2 3 4 5 30 31 i/o port c is a general-purpose bidirectional i / o port. d3 d4 d5 d6 d7 21 20 23 22 19 23 22 25 24 21 i/o port d is a general-purpose bidirectional i / o port. d3 is also configurable as sysclk. int1 int2 int3 6 7 8 7 8 9 i i/o i/o external (non-maskable or maskable) interrupt / general-purpose input pin external maskable interrupt input / general-purpose bidirectional pin external maskable interrupt input / general-purpose bidirectional pin t1ic / cr t1pwm t1evt 26 25 24 28 27 26 i/o timer1 input capture / counter reset input pin / general-purpose bidirectional pin timer1 pwm output pin / general-purpose bidirectional pin timer1 external event input pin / general-purpose bidirectional pin reset 5 6 i/o system reset bidirectional pin: as input pin, reset initializes the microcontroller; as open-drain output, reset indicates that an internal failure was detected by the watchdog or oscillator fault circuit. mc 34 39 i mode control pin; enables eeprom write-protection override (wpo) mode, also eprom v pp xtal2 / clkin xtal1 33 32 38 37 i o internal oscillator crystal input / external clock source input internal oscillator output for crystal v cc 10 10 positive supply voltage v ss 27 14 ground reference for digital logic nc 9 11, 29, 33 these pins have no connection to the internal die. 2 i = input, o = output
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 3 post office box 1443 ? houston, texas 772511443 functional block diagram interrupts t1ic/cr t1evt t1pwm v system control clock options: divide-by-4 or divide-by-1 (pll) ram 128 or 256 bytes cpu port a port d timer 1 watchdog int1 int2 int3 xtal1 xtal2/ clkin mc reset ss v cc program memory rom: 4k bytes eprom: 16k bytes data eeprom 0 or 256 bytes port b port c 2 5 8 8 8/6 2 for the 40-pin devices, there are only six pins for port c. description the TMS370C080, tms370c380, tms370c686, and se370c686 devices are members of the tms370 family of single-chip 8-bit microcontrollers. unless otherwise noted, the term tms370cx8x refers to these devices. the tms370 family provides cost-effective real-time system control through integration of advanced peripheral-function modules and various on-chip memory configurations. the tms370cx8x family of devices is implemented using high-performance silicon-gate cmos eprom and eeprom technologies. low-operating power, wide operating temperature range, and noise immunity of cmos technology coupled with the high performance and extensive on-chip peripheral functions make the tms370cx8x devices attractive for system designs for automotive electronics, industrial motors, computer peripheral controls, telecommunications, and consumer applications. all tms370cx8x devices contain the following on-chip peripheral modules:  one 24-bit general-purpose watchdog timer  one 16-bit general-purpose timer with an 8-bit prescaler
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 4 post office box 1443 ? houston, texas 772511443 description (continued) table 1 provides a memory configuration overview of the tms370cx8x devices. table 1. memory configurations device program memory (bytes) data memory (bytes) packages 44-pin plcc/clcc, rom eprom ram eeprom or 40-pin pdip TMS370C080 4k e 128 256 n pdip tms370c380a 4k e 128 e fn plcc tms370c686a e 16k 256 e fn plcc se370c686a 2 e 16k 256 e fz clcc 2 system evaluators and development are for use only in prototype environment and their reliability has not been characterized. the suffix letter (a) appended to the device names shown in the device column of table 1 and table 2 indicates the configuration of the device. rom or eprom devices have different configurations as indicated in table 2. rom devices with the suffix letter a are configured through a programmable contact during manufacture. for a detailed description of the differences between the TMS370C080 and tms370cx8xa contact options (as indicated by the suffix letter nomenclature), refer to appendix a of the tms370 microcontroller family user's guide (literature number spnu127). for a detailed description of the differences between the TMS370C080 and the tms370cx8xa contact options (as indicated by the suffix letter nomenclature), refer to appendix a of the tms370 microcontroller family user's guide (literature number spnu127). table 2. suffix letter configuration device 3 watchdog timer clock low-power mode eprom a standard divide-by-4 (standard oscillator) enabled standard rom a hard divide-by-4 or divide-by-1 (pll) enabled or disabled simple rom without a standard divide-by-4 (standard oscillator) enabled 3 refer to the adevice numbering conventionso section for device nomenclature and to the adevice part numberso section for orderi ng. the 4k bytes of mask-programmable rom in the associated tms370c380 device is replaced in the tms370c686 with 16k bytes of eprom. all other on-chip peripherals are identical. the one-time programmable (otp) (tms370c686) device and reprogrammable (se370c686) device are available. the 4k-byte (TMS370C080) mask-programmable rom device relies on the 68-pin (tms370c758) development devices and a converter socket (part # tmds37788otp) for prototyping and programming purposes. tms370c686 otp devices are available in plastic packages. this microcontroller is effective to use for immediate production updates for other members of the tms370cx8x family or for low-volume production runs when the mask charge or cycle time for the low-cost mask rom devices is not practical. the se370c686 has a windowed ceramic package to allow reprogramming of the program eprom memory during the development / prototyping phase of design. the se370c686 devices allow quick updates to breadboards and prototype systems while iterating initial designs. the tms370cx8x family provides two low-power modes (standby and halt) for applications where low-power consumption is critical. both modes stop all cpu activity (that is, no instructions are executed). in the standby mode, the internal oscillator and the general-purpose timer remain active. in the halt mode, all device activity is stopped. the device retains all ram data and peripheral configuration bits throughout both low-power modes.
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 5 post office box 1443 ? houston, texas 772511443 description (continued) the tms370cx8x features advanced register-to-register architecture that allows direct arithmetic and logical operations without requiring an accumulator (for example, add r24, r47; add the contents of register 24 to the contents of register 47 and store the result in register 47). the tms370cx8x family is fully instruction-set-compatible, providing easy transition between members of the tms370 8-bit microcontroller family. the tms370cx8x family provides the system designer with economical, efficient solutions to real-time control applications. the tms370 family compact development tool (cdt ? ) solves the challenge of efficiently developing the software and hardware required to design the tms370cx8x into an ever-increasing number of complex applications. the application source code can be written in assembly and c languages, and the output code can be generated by the linker. the tms370 family cdt development tool communicates through a standard rs-232-c interface with an existing personal computer. this allows the designer to use familiar personal computer editors and software utilities. precise real-time, in-circuit emulation and extensive symbolic debug and analysis tools ensure efficient software and hardware implementation as well as reducing the time-to-market cycle. the tms370cx8x family together with the tms370 family cdt370, software tools, the se370c686 and se370c758 (fz package) reprogrammable devices, comprehensive product documentation, and customer support provide a complete solution to the needs of the system designer. central processing unit (cpu) the cpu on the tms370cx8x device is the high-performance 8-bit tms370 cpu module. the 'x8x implements an efficient register-to-register architecture that eliminates the conventional accumulator bottleneck. the complete 'x8x instruction map is shown in table 15 in the tms370cx8x instruction set overview section. the '370cx8x cpu architecture provides the following components:  cpu registers: a stack pointer that points to the last entry in the memory stack a status register that monitors the operation of the instructions and contains the global interrupt-enable bits a program counter (pc) that points to the memory location of the next instruction to be executed  a memory map that includes: 128- or 256-byte general-purpose ram that can be used for data memory storage, program instructions, general purpose register, or the stack a peripheral file that provides access to all internal peripheral modules, system-wide control functions, and eeprom / eprom programming control 256-byte eeprom module, that provides in-circuit programmability and data retention in power-off conditions 4k-byte rom or 16k-byte eprom program memory cdt is a trademark of texas instruments incorporated.
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 6 post office box 1443 ? houston, texas 772511443 central processing unit (cpu) (continued) figure 1 illustrates the cpu registers and memory blocks. reserved 2 peripheral file not available 3 offfh 1000h 1f00h 1fffh 2000h 3fffh 4000h interrupts and reset vectors; trap vectors 104fh 1050h 1effh reserved 2 7fffh 0 ram (includes up to 256-byte registers file) 0 15 program counter 7 legend: z=zero ie1=level 1 interrupt enable c=carry v=overflow n=negative ie2=level 2 interrupt enable ie1 ie2 z n c 0 1 2 3 4 5 6 7 v status register (st) stack pointer (sp) r0(a) r1(b) r3 r127 0000h 0001h 0002h 007fh r255 0003h r2 00ffh 256-byte data eeprom 16k-byte eprom (4000h 7fffh) 7fc0h 7fbfh 128-byte ram (0000h007fh) 007fh 0080h 00ffh 0100h 256-byte ram (0000h00ffh) 0000h 6fffh 7000h 4k-byte rom (7000h 7fffh) 2 reserved means the address space is reserved for future expansion. 3 not available means the address space is not accessible. figure 1. programmer's model stack pointer (sp) the sp is an 8-bit cpu register. stack operates as a last-in, first-out, read / write memory. typically, the stack is used to store the return address on subroutine calls as well as the status register (st) contents during interrupt sequences. the sp points to the last entry or top of the stack. the sp is incremented automatically before data is pushed onto the stack and decremented after data is popped from the stack. the stack can be placed anywhere in the on-chip ram.
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 7 post office box 1443 ? houston, texas 772511443 central processing unit (cpu) (continued) status register the st monitors the operation of the instructions and contains the global interrupt-enable bits. the st includes four status bits (condition flags) and two interrupt-enable bits.  the four status bits indicate the outcome of the previous instruction; conditional instructions (for example, the conditional-jump instructions) use the status bits to determine program flow.  the two interrupt-enable bits control the two interrupt levels. the st, status-bit notation, and status-bit definitions are shown in table 3. table 3. status registers 7 6 5 4 3 2 1 0 c n z v ie2 ie1 reserved reserved rw-0 rw-0 rw-0 rw-0 rw-0 rw-0 r = read, w = write, 0 = value after reset program counter (pc) the contents of the pc point to the memory location of the next instruction to be executed. the pc consists of two 8-bit registers in the cpu: the program counter high (pch), and the program counter low (pcl). these registers contain the most significant byte (msbyte) and least significant byte (lsbyte) of a 16-bit address. during reset, the contents of the reset vector (7ffeh, 7fffh) are loaded into the pc. the pch (msbyte of the pc) is loaded with the contents of memory location 7ffeh, and the pcl (lsbyte of the pc) is loaded with the contents of memory location 7fffh. figure 2 shows this operation using an example value of 6000h as the contents of the reset vector. memory program counter (pc) 60 00 pch pcl 60 00 0000h 7ffeh 7fffh figure 2. program counter after reset memory map the tms370cx8x architecture is based on the von neuman architecture, in which the program memory and data memory share a common address space. all peripheral input / output is memory-mapped in this same common address space. as shown in figure 3, the tms370cx8x provides memory-mapped ram, rom, data eeprom, i / o pins, peripheral functions, and system-interrupt vectors. the peripheral file contains all i / o port control, peripheral status and control, eeprom, eprom, and system-wide control functions. the peripheral file consists of 256 contiguous addresses located from 1000h to 10ffh and is divided logically into 16 peripheral file frames of 16 bytes each. each on-chip peripheral is
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 8 post office box 1443 ? houston, texas 772511443 tms370cx8x cpu (continued) assigned to a separate frame through which peripheral control and data information is passed. the tms370cx8x has its on-chip peripherals and system control assigned to peripheral file frames 1 through 4, addresses 1010h through 104fh. 256-byte ram (register file / stack) 128-byte ram (register file / stack) reserved 2 peripheral file reserved 2 256-byte data eeprom not available 3 7fc0h trap 15 0 7fe0h reserved 7ff4h interrupt 3 interrupt 2 interrupt 1 reset 1010h 1020h reserved 2 system control 1030h 1040h reserved vectors 7fdfh 7ff3h 7ff5h 101fh 102fh 103fh 104fh not available 3 digital port control timer 1 reserved 2 7ffah 7ffbh 7ffch 7ffdh 7ffeh 7fffh 0000h 0080h 007fh 1000h 104fh 1050h 1effh 1f00h 1fffh 2000h 3fffh 4000h 6fffh 7000h ffffh 0fffh 16k-byte eprom (4000h - 7fffh) 4k-byte rom (7000h - 7fffh) interrupts and reset vectors; trap vectors 7fbfh 7fc0h 7fffh 8000h 7ff6h 7ff7h 7ff8h 7ff9h peripheral file control registers 0100h 00ffh timer 1 peripheral control 1000h 100fh 2 reserved means that the address space is reserved for future expansion, means the address space is not accessible. 3 not available means that the address space is not accessible. figure 3. tms370cx8x memory map ram/ register file (rf) locations within the ram address space can serve as the rf, general-purpose read / write memory, program memory, or the stack instructions. the TMS370C080 and tms370c380 contain 128 bytes of internal ram memory mapped beginning at location 0000h (r0) and continuing through location 007fh (r127), which is shown in table 4 along with 'x86 devices. table 4. ram memory map 'x80 'x86 ram size 128 bytes 256 bytes memory mapped 0000h 007fh 0000h 00ffh the first two registers, r0 and r1, are also called register a and b, respectively. some instructions implicitly use register a or b; for example, the instruction load sp (ldsp) assumes that the value to be loaded into the stack pointer is contained in register b. registers a and b are the only registers cleared on reset.
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 9 post office box 1443 ? houston, texas 772511443 peripheral file (pf) the tms370cx8x control registers contain all the registers necessary to operate the system and peripheral modules on the device. the instruction set includes some instructions that access the pf directly. these instructions designate the register by the number of the pf relative to 1000h, preceded by p0 for a hexadecimal designator or p for a decimal designator. for example, the system-control register 0 (sccr0) is located at address 1010h; its peripheral file hexadecimal designator is p010, and its decimal designator is p16. table 5 shows the tms370cx8x pf address map. table 5. tms370cx8x peripheral file address map address range peripheral file designator description 1000h 100fh p000 p00f reserved 1010h 101fh p010 p01f system and eprom / eeprom control registers 1020h 102fh p020 p02f digital i / o port control registers 1030h 103fh p030 p03f reserved 1040h 104fh p040 p04f timer 1 registers 1050h 10ffh p050 p0ff reserved data eeprom the TMS370C080 device, containing 256 bytes of data eeprom, has a memory mapped beginning at location 1f00h and continuing through location 1fffh. writing to the data eeprom module is controlled by the data eeprom control register (deectl) and the write-protection register (wpr). programming algorithm examples are available in the tms370 family user's guide (literature number spnu127) or the tms370 family data manual (literature number spns014b). the data eeprom features include the following:  programming: bit-, byte-, and block-write / erase modes internal charge pump circuitry. no external eeprom programming voltage supply is needed. control register: data eeprom programming is controlled by the data eeprom control register (deectl) located in the pf frame beginning at location p01a. see table 6. in-circuit programming capability. there is no need to remove the device to program.  write-protection. writes to the data eeprom are disabled during the following conditions. reset. all programming of the data eeprom module is halted. write-protection active. there is one write-protect bit per 32-byte eeprom block. low-power mode operation  write-protection can be overridden by applying 12 v to mc. table 6. data eeprom and program eprom control registers memory map address symbol name p01a deectl data eeprom control register p01b e reserved p01c epctl program eprom control register
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 10 post office box 1443 ? houston, texas 772511443 program eprom 2 the tms370c686 device contains 16k bytes of eprom memory, mapped beginning at location 4000h and continuing through location 7fffh as shown in figure 3. reading the program eprom modules is identical to reading other internal memory. during programming, the eprom is controlled by the eprom control register (epctl). the program eprom module features include:  programming in-circuit programming capability if v pp is applied to mc control register eprom programming is controlled by the eprom control register (epctl) located in the peripheral file (pf) frame at location p01c as shown in table 6.  write-protection writes to the program eprom are disabled under the following conditions reset all programming to the eprom module is halted low-power modes 13 v not applied to mc program rom 2 the program rom consists of 4k bytes of mask-programmable read-only memory. the program rom is used for permanent storage of data or instructions. programming of the mask rom is performed at the time of device fabrication. system reset the system-reset operation ensures an orderly start-up sequence for the tms370cx8x cpu-based device. there are up to three different actions that can cause the system to reset the device. two of these actions are generated internally, while one (reset pin) is controlled externally. these actions are as follows:  watchdog (wd) timer. a watchdog-generated reset occurs if an improper value is written to the wd key register, or if the re-initialization does not occur before the watchdog timer timeout . see the tms370 user's guide (literature number spnu127) for more information.  oscillator reset. reset occurs when the oscillator operates outside of the recommended operating range. see the tms370 user's guide (literature number spnu127) for more information.  external reset pin. a low-level signal can trigger an external reset. to ensure a reset, the external signal should be held low for one sysclk cycle. signals of less than one sysclk can generate a reset. see the tms370 user's guide (literature number spnu127) for more information. once a reset source is activated, the external reset pin is driven (active) low for a minimum of eight sysclk cycles. this allows the 'x8x device to reset external system components. additionally, if a cold start (v cc is off for several hundred milliseconds) condition or oscillator failure occurs, or the reset pin is held low, then the reset logic holds the device in a reset state for as long as these actions are active. after a reset, the program can check the oscillator-fault flag (osc flt flag, sccr0.4), the cold-start flag (cold start, sccr0.7) and the watchdog reset (wd ovrfl int flag, t1ctl2.5) to determine the source of the reset. a reset does not clear these flags. table 7 depicts the reset sources. 2 memory addresses 7fe0h through 7febh are reserved for texas instruments incorporated, and 7ff4h through 7ff5h along with 7ff8h through 7fffh are reserved for interrupt and reset vectors. trap vectors, used with trap0 through trap15 instructions, are loca ted between addresses 7fc0h and 7fdfh.
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 11 post office box 1443 ? houston, texas 772511443 system reset (continued) table 7. reset sources register address pf bit no. control bit source of reset sccr0 1010h p010 7 cold start cold (power-up) sccr0 1010h p010 4 osc flt flag oscillator out of range t1ctl2 104ah p04a 5 wd ovrfl int flag watchdog timer timeout once a reset is activated, the following sequence of events occurs: 1. the cpu registers are initialized: st = 00h, sp = 01h (reset state). 2. register a and b are initialized to 00h (no other ram is changed). 3. the contents of the lsbyte of the reset vector (07ffh) are read and stored in the pcl. 4. the contents of the msbyte of the reset vector (07feh) are read and stored in the pch. 5. program execution begins with an opcode-fetch from the address pointed to the pc. the reset sequence takes 20 sysclk cycles from the time the reset pulse is released until the first opcode fetch. during a reset, ram contents (except for registers a and b) remain unchanged, and the module control register bits are initialized to their reset state.
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 12 post office box 1443 ? houston, texas 772511443 interrupts the tms370 family software-programmable interrupt structure permits flexible on-chip and external interrupt configurations to meet real-time interrupt-driven application requirements. the hardware-interrupt structure incorporates two priority levels as shown in figure 4. interrupt level 1 has a higher priority than interrupt level 2. the two priority levels can be masked independently by the global interrupt mask bits (ie1 and ie2) of the st. timer1 cpu nmi logic enable ie1 ie2 level 1 int level 2 int t1 pri priority overflow compare1 ext edge compare2 input capture1 watchdog ext int 3 int3 pri int 3 status reg ext int1 int1 pri int1 ext int 2 int2 pri int 2 figure 4. interrupt control each system interrupt is configured independently to either the high- or low-priority chain by the application program during system initialization. within each interrupt chain, the interrupt priority is fixed by the position of the system interrupt. however, since each system interrupt is selectively configured on either the high- or low-priority-interrupt chain, the application program can elevate any system interrupt to the highest priority. arbitration between the two priority levels is performed within the cpu. arbitration within each of the priority chains is performed within the peripheral modules to support interrupt expansion for future modules. pending interrupts are serviced upon completion of current instruction execution, depending on their interrupt mask and priority conditions. the tms370cx8x has four hardware-system interrupts (plus reset ) as shown in table 8. each system interrupt has a dedicated vector located in program memory through which control is passed to the interrupt service routines. a system interrupt may have multiple interrupt sources. all of the interrupt sources are individually maskable by local interrupt-enable control bits in the associated peripheral file. each interrupt source flag bit is individually readable for software polling or to determine which interrupt source generated the associated system interrupt.
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 13 post office box 1443 ? houston, texas 772511443 interrupts (continued) one of the system interrupts is generated by on-chip peripheral functions, and three external interrupts are supported. software configuration of the external interrupts is performed through the int1, int2, and int3 control registers in peripheral file frame 1. each external interrupt is individually software configurable for input polarity (rising or falling edge) for ease of system interface. external interrupt int1 is software configurable as either a maskable or non-maskable interrupt. when int1 is configured as non-maskable, it cannot be masked by the individual or global enable mask bits. the int1 nmi bit is protected during non-privileged operation. it, therefore, should be configured during the initialization sequence following reset. to maximize pin flexibility, external interrupts int2 and int3 can be software-configured as general-purpose input / output pins if the interrupt function is not required (int1 can be similarly configured as an input pin). table 8. hardware system interrupts interrupt source interrupt flag system interrupt vector address priority 2 external reset watchdog overflow oscillator fault detect cold start wd ovrfl int flag osc flt flag reset 3 7ffeh, 7fffh 1 external int1 int1 flag int1 3 7ffch, 7ffdh 2 external int2 int2 flag int2 3 7ffah, 7ffbh 3 external int3 int3 flag int3 3 7ff8h, 7ff9h 4 timer 1 overflow timer 1 compare 1 timer 1 compare 2 timer 1 external edge timer 1 input capture 1 watchdog overflow t1 ovrfl int flag t1c1 int flag t1c2 int flag t1edge int flag t1ic1 int flag wd ovrfl int flag t1int 7ff4h, 7ff5h 5 2 relative priority within an interrupt level 3 release microcontroller from standby and halt low-power modes release microcontroller from standby low-power mode privileged operation and eeprom write-protection override the tms370cx8x family is designed with significant flexibility to enable the designer to software-configure the system and peripherals to meet the requirements of a variety of applications. the nonprivileged mode of operation ensures the integrity of the system configuration once it is defined for an application. following a hardware reset, the tms370cx8x operates in the privileged mode, where all peripheral file registers have unrestricted read / write access, and the application program configures the system during the initialization sequence following reset. as the last step of system initialization, the privilege disable bit (sccr2.0) is set to 1 to enter the nonprivileged mode, thus disabling write operations to specific configuration-control bits within the pf. table 9 displays the system-configuration bits, which are write-protected during the nonprivileged mode and must be configured by software prior to exiting the privileged mode.
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 14 post office box 1443 ? houston, texas 772511443 privileged operation and eeprom write-protection override (continued) table 9. privilege bits register 2 control bit name location control bit sccro p010.5 p010.6 pf auto wait osc power sccr1 p011.2 p011.4 memory disable autowait disable sccr2 p012.0 p012.1 p012.3 p012.4 p012.6 p012.7 privilege disable int1 nmi cpu stest bus stest pwrdwn / idle halt / standby t1pri p04f.6 p04f.7 t1 priority t1 stest 2 the privilege bits are shown in a bold typeface in the peripheral file frame 1 section. the wpo mode provides an external hardware method of overriding the write-protection registers (wprs) of data eeprom on the TMS370C080. wpo mode is entered by applying a 12-v input to the mc pin after the reset pin input goes high (logic 1). the high voltage on the mc pin during the wpo mode is not the programming voltage for the data eeprom or program eprom. all eeprom programming voltages are generated on-chip. the wpo mode provides hardware-system-level capability to modify the content of the data eeprom while the device remains in the application but only while requiring a 12-v external input on the mc pin (normally not available in the end application except in a service or diagnostic environment). low-power and idle modes the tms370cx8x devices have two low-power modes (standby and halt) and an idle mode. for mask-rom devices, low-power modes can be disabled permanently through a programmable contact at the time when the mask is manufactured. the standby and halt low-power modes significantly reduce power consumption by reducing or stopping the activity of the various on-chip peripherals when processing is not required. each of the low-power modes is entered by executing the idle instruction when the pwrdwn / idle bit in sccr2 has been set to 1. the halt / standby bit in sccr2 controls the low-power mode selection. in the standby mode (halt / standby = 0), all cpu activity and most peripheral module activity is stopped; however, the oscillator, internal clocks, and timer 1 remain active. system processing is suspended until a qualified interrupt (hardware reset , external interrupt on int1, int2, int3, or timer 1 interrupt) is detected. in the halt mode (halt / standby = 1), the tms370cx8x is placed in its lowest power-consumption mode. the oscillator and internal clocks are stopped, causing all internal activity to be halted. system activity is suspended until a qualified interrupt (hardware reset , external interrupt on the int1, int2, or int3) is detected. the power-down mode-selection bits are summarized in table 10.
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 15 post office box 1443 ? houston, texas 772511443 low-power and idle modes (continued) table 10. low-power / idle control bits power-down control bits pwrdwn / idle (sccr2.6) halt / standby (sccr2.7) mode selected 1 0 standby 1 1 halt 0 x 2 idle 2 don't care when low-power modes are disabled through a programmable contact in the mask-rom devices, writing to the sccr2.6-7 bits is ignored. in addition, if an idle instruction is executed when low-power modes are disabled through a programmable contact, the device always enters the idle mode. to provide a method for always exiting low-power modes for mask-rom devices, int1 is enabled automatically as a nonmaskable interrupt (nmi) during low-power modes when the hard watchdog mode is selected. this means that the nmi is generated always, regardless of the interrupt enable flags. the following information is preserved throughout both the standby and halt modes: ram (register file), cpu registers (sp, pc, and st), i / o pin direction and output data, and status registers of all on-chip peripheral functions. since all cpu instruction processing is stopped during the standby and halt modes, the clocking of the wd timer is inhibited. clock modules the 'x8x family provides two clock options that are referred to as divide-by-1 (phase-locked loop) and divide-by-4 (standard oscillator). both the divide-by-1 and divide-by-4 options are configurable during the manufacturing process of a tms370 microcontroller. the 'x8x masked rom devices offer both options to meet system engineering requirements. only one of the two clock options is allowed on each rom device. the '686a eprom has only the divide-by-4. the divide-by-1 clock module option provides the capability for reduced electromagnetic interference (emi) with no added cost. the divide-by-1 provides a one-to-one match of the external resonator frequency (clkin) to the internal system clock (sysclk) frequency, whereas the divide-by-4 option produces a sysclk which is one-fourth of the frequency of the external resonator. inside of the divide-by-1 module, the frequency of the external resonator is multiplied by four, and the clock module then divides the resulting signal by four to provide the four-phased internal system clock signals. the resulting sysclk is equal to the resonator frequency. these are formulated as follows: divide-by-4 option : sysclk  external resonator frequency 4  clkin 4 divide-by-1 option : sysclk  external resonator frequency  4 4  clkin the main advantage of choosing a divide-by-1 oscillator is the improved emi performance. the harmonics of low-speed resonators extend through fewer of the emissions spectrum than the harmonics of faster resonators. the divide-by-1 provides the capability of reducing the resonator speed by four times, and this results in a steeper decay of emissions produced by the oscillator.
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 16 post office box 1443 ? houston, texas 772511443 system configuration registers table 11 contains system-configuration, control functions, and registers for controlling eeprom programming. the privileged bits are shown in bold typeface in shaded areas. table 11. peripheral file frame 1: system-configuration registers pf bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg p010 cold start osc power pf auto wait osc flt flag mc pin wpo mc pin data e m p/ m c mode sccr0 p011 e e e auto wait disable e memory disable e e sccr1 p012 halt / standby pwrdwn / idle e bus stest cpu stest e int1 nmi privilege disable sccr2 p013 to p016 reserved p017 int1 flag int1 pin data e e e int1 polarity int1 priority int1 enable int1 p018 int2 flag int2 pin data e int2 data dir int2 data out int2 polarity int2 priority int2 enable int2 p019 int3 flag int3 pin data e int3 data dir int3 data out int3 polarity int3 priority int3 enable int3 p01a busy e e e e ap w1w0 exe deectl p01b reserved p01c busy vpps e e e e w0 exe epctl p01d p01e p01f reserved
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 17 post office box 1443 ? houston, texas 772511443 digital port-control registers peripheral file frame 2 contains the digital i/o pin configuration and control registers. table 12 shows the specific addresses, registers, and control bits within this peripheral file frame. table 13 shows the port-configuration register setup. table 12. peripheral file frame 2: digital port-control registers pf bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 p020 reserved aport1 p021 port a control register 2 (must be 0) aport2 p022 port a data adata p023 port a direction adir p024 reserved bport1 p025 port b control register 2 (must be 0) bport2 p026 port b data bdata p027 port b direction bdir p028 reserved cport1 p029 port c control register 2 (must be 0) cport2 p02a port c data cdata p02b port c direction cdir p02c port d control register 1 (must be 0) e e e dport1 p02d port d control register 2 (must be 0) 2 e e e dport2 p02e port d data e e e ddata p02f port d direction e e e ddir 2 to configure pin d3 as sysclk, set port d control register 2 = 08h. table 13. port-configuration register setup port pin abcd 00q1 abcd 00y0 a 0 7 data out q data in y b 0 7 data out q data in y c 0 7 data out q data in y d 3 7 data out q data in y a = port x control register 1 b = port x control register 2 c = data d = direction
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 18 post office box 1443 ? houston, texas 772511443 programmable timer 1 the programmable timer 1 (t1) module of the tms370cx8x provides the designer with the enhanced timer resources required to perform real-time system control. the t1 module contains the general-purpose timer and the watchdog (wd) timer. the two independent 16-bit timers, t1 and wd timer, allow program selection of input clock sources (real-time, external event, or pulse accumulate) with multiple 16-bit registers (input capture and compare) for special timer function control. the timer 1 module includes three external device pins that can be used for multiple counter functions (operation-mode dependent), or used as general-purpose i/o pins. the t1 module block diagram is shown in figure 5. t1ic/cr edge select 16-bit counter t1evt mux mux 16-bit register t1pwm pwm toggle 16 16-bit watchdog counter (aux. timer) interrupt logic capt/comp 16-bit register compare interrupt logic 8-bit prescaler figure 5. timer 1 block diagram  three timer1 i/o pins t1ic/cr: t1 input capture / counter-reset input pin, or general-purpose bidirectional i/o pin t1pwm: t1 pulse-width-modulation (pwm) output pin, or general-purpose bidirectional i/o pin t1evt: t1 event input pin, or general-purpose bidirectional i/o pin  two operational modes: dual-compare mode: provides pwm signal capture/compare mode: provides input capture pin  one 16-bit general-purpose resettable counter  one 16-bit compare register with associated compare logic  one 16-bit capture/compare register, which, depending on the mode of operation, operates as either capture or compare registers.  one 16-bit wd counter can be used as an event counter, a pulse accumulator, or an interval timer if wd feature is not needed.  prescaler/clock sources that determines one of eight clock sources for general-purpose timer
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 19 post office box 1443 ? houston, texas 772511443 programmable timer 1 (continued)  selectable edge-detection circuitry that, depending on the mode of operation, senses active transitions on the input capture pins (t1ic/cr)  interrupts that can be generated on the occurrence of: a capture a compare equal a counter overflow an external-edge detection  sixteen t1 module control registers located in the pf frame beginning at address p040 the t1 module control registers are illustrated in table 14.
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 20 post office box 1443 ? houston, texas 772511443 programmable timer 1 (continued) table 14. timer 1 module register memory map pf bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg mode: dual-compare and capture/compare p040 bit 15 t1counter msbyte bit 8 t1cntr p041 bit 7 t1 counter lsbyte bit 0 p042 bit 15 compare register msbyte bit 8 t1c p043 bit 7 compare register lsbyte bit 0 p044 bit 15 capture/compare register msbyte bit 8 t1cc p045 bit 7 capture/compare register lsbyte bit 0 p046 bit 15 watchdog counter msbyte bit 8 wdcntr p047 bit 7 watchdog counter lsbyte bit 0 p048 bit 7 watchdog reset key bit 0 wdrst p049 wd ovrfl tap sel 2 wd input select2 2 wd input select1 2 wd input select0 2 e t1 input select2 t1 input select1 t1 input select0 t1ctl1 p04a wd ovrfl rst ena 2 wd ovrfl int ena wd ovrfl int flag t1 ovrfl int ena t1 ovrfl int flag e e t1 sw reset t1ctl2 mode: dual-compare p04b t1edge int flag t1c2 int flag t1c1 int flag e e t1edge int ena t1c2 int ena t1c1 int ena t1ctl3 p04c t1 mode=0 t1c1 out ena t1c2 out ena t1c1 rst ena t1cr out ena t1edge polarity t1cr rst ena t1edge det ena t1ctl4 mode: capture/compare p04b t1edge int flag e t1c1 int flag e e t1edge int ena e t1c1 int ena t1ctl3 p04c t1 mode = 1 t1c1 out ena e t1c1 rst ena e t1edge polarity e t1edge det ena t1ctl4 mode: dual-compare and capture/compare p04d e e e e t1evt data in t1evt data out t1evt function t1evt data dir t1pc1 p04e t1pwm data in t1pwm data out t1pwm function t1pwm data dir t1ic/cr data in t1ic/cr data out t1ic/cr function t1ic/cr data dir t1pc2 p04f t1 stest t1 priority e e e e e e t1pri 2 once the wd ovrfl rst ena bit is set, these bits cannot be changed until a reset; this applies only to the standard watchdog and to simple counter. in the hard watchdog, these bits can be modified at any time; the wd input select2 bits are ignored.
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 21 post office box 1443 ? houston, texas 772511443 programmable timer 1 (continued) figure 6 shows the timer 1 capture/compare mode block diagram. the annotations on the diagram identify the register and the bit(s) in the pf. for example, the actual address of t1ctl2.0 is 104ah, bit 0, in the t1ctl2 register . t1ctl4.2 16 compare= edge select t1ic/cr t1edge polarity t1edge det ena prescale clock source 16-bit counter msb lsb t1cntr.15 0 reset t1c1 rst ena t1 sw reset t1ctl2.0 t1ctl4.4 t1pc2.3-0 t1ctl4.0 t1edge int flag t1edge int ena t1ctl3.7 t1ctl3.2 t1 ovrfl int flag t1 ovrfl int ena t1ctl2.3 t1ctl2.4 t1c1 int flag t1c1 int ena t1ctl3.5 t1ctl3.0 t1c1 out ena t1pwm t1ctl4.6 toggle t1pc2.7-4 16-bit capt / comp register msb lsb t1cc.15-0 t1c.15-0 16-bit compare msb lsb register t1 priority t1pri.6 level 1 int level 2 int 0 1 figure 6. capture/compare mode
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 22 post office box 1443 ? houston, texas 772511443 programmable timer 1 (continued) figure 7 shows the timer 1 dual-compare mode block diagram. the annotations on the diagram identify the register and the bit(s) in the peripheral frame. for example, the actual address of t1ctl2.0 is 104ah, bit 0, in the t1ctl2 register . t1ctl4.1 t1ctl4.4 prescaler clock source 16-bit counter 16-bit 16 compare= compare= reset t1c1 rst ena t1 sw reset edge select t1edge det ena output enable capt/comp register msb lsb msb lsb t1cr out ena t1ic/cr t1edge polarity toggle 16-bit compare msb lsb register t1cc.15-0 t1c1 int flag t1ctl3.0 t1ctl3.5 t1c1 int ena t1c2 int flag t1ctl3.1 t1ctl3.6 t1c2 int ena t1 ovrfl int flag t1ctl2.4 t1ctl2.3 t1 ovrfl int ena t1edge int flag t1ctl3.2 t1ctl3.7 t1edge int ena t1 priority t1c2 out ena t1c1 out ena t1ctl4.3 t1ctl4.6 t1ctl4.5 t1pwm t1pc2.7-4 t1pri.6 t1c.15-0 t1cntr.15-0 t1ctl2.0 t1cr rst ena t1pc2.3-0 t1ctl4.0 t1ctl4.2 level 1 int level 2 int 0 1 figure 7. dual-compare mode
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 23 post office box 1443 ? houston, texas 772511443 programmable timer 1 (continued) the tms370cx8x device includes a 24-bit wd timer, contained in the t1 module, which can be programmed as an event counter, pulse accumulator, or interval timer if the watchdog function is not used. the wd function is to monitor software and hardware operation and to implement a system reset when the wd counter is not properly serviced (wd counter overflow or wd counter is re-initialized by an incorrect value). the wd can be configured as one of three mask options as follows: standard watchdog, hard wd, or simple counter.  standard watchdog configuration (see figure 8) for eprom and mask-rom devices: watchdog mode ten different wd overflow rates ranging from 6.55 ms to 3.35 s at 5-mhz sysclk a wd reset key (wdrst) register is used to clear the watchdog counter (wdcntr) when a correct value is written. generates a system reset if an incorrect value is written to the watchdog reset key or if the counter overflows a watchdog overflow flag (wd ovrfl int flag) bit that indicates whether the wd timer initiated a system reset non-watchdog mode watchdog timer can be configured as an event counter, pulse accumulator or an interval timer 16-bit watchdog counter reset prescaler clock watchdog-reset key wd ovrfl tap sel wd ovrfl rst ena system reset t1ctl1.7 wdrst.7-0 wdcntr.15-0 t1ctl2.7 t1ctl2.5 wd ovrfl int ena interrupt t1ctl2.6 wd ovrfl int flag figure 8. standard watchdog
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 24 post office box 1443 ? houston, texas 772511443 programmable timer 1 (continued)  hard watchdog configuration (see figure 9) for mask-rom devices: eight different wd overflow rates ranging from 26.2 ms to 3.35 s at 5-mhz sysclk a wd reset key (wdrst) register is used to clear the watchdog counter (wdcntr) when a correct value is written. generates a system reset if an incorrect value is written to the wdrst or if the counter overflows. a wd overflow flag (wd ovrfl int flag) bit that indicates whether the wd timer initiated a system reset. automatic activation of the wd timer upon power-up reset int1 is enabled as a nonmaskable interrupt during low-power modes. 16-bit watchdog counter reset prescaler clock watchdog-reset key wd ovrfl tap sel system reset t1ctl1.7 wdrst.7-0 wdcntr.15-0 t1ctl2.5 wd ovrfl int flag figure 9. hard watchdog
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 25 post office box 1443 ? houston, texas 772511443 programmable timer 1 (continued)  simple counter configuration (see figure 10) for mask-rom devices only simple counter can be configured as an event counter, pulse accumulator or an internal timer. 16-bit watchdog counter reset prescaler clock watchdog-reset key wd ovrfl tap sel t1ctl1.7 wdrst.7-0 wdcntr.15-0 t1ctl2.5 wd ovfl int flag wd ovrfl int ena interrupt t1ctl2.6 figure 10. simple counter instruction set overview table 15 provides an opcode-to-instruction cross reference of all 73 instructions and 274 opcodes of the `370cx8x instruction set. the numbers at the top of this table represent the most significant nibble (msn) of the opcode while the numbers at the left side of the table represent the least significant nibble (lsn). the instruction of these two opcode nibbles contains the mnemonic, operands, and byte / cycle particular to that opcode. for example, the opcode b5h points to the clr a instruction. this instruction contains one byte and executes in eight sysclk cycles.
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 t emp l ate r e l ease d ate: 7 11 94 26 post office box 1443 houston, texas 772511443 ? table 15. tms370 family opcode/instruction map 2 msn 01 2 3 4 5 6 7 8 9 a b c d e f 0 jmp #ra 2/7 incw #ra,rd 3/11 mov ps,a 2/8 clrc / tst a 1/9 mov a,b 1/9 mov a,rd 2/7 trap 15 1/14 ldst n 2/6 1 jn ra 2/5 mov a,pd 2/8 mov b,pd 2/8 mov rs,pd 3/10 mov ps,b 2/7 mov b,rd 2/7 trap 14 1/14 mov #ra[sp],a 2/7 2 jz ra 2/5 mov rs,a 2/7 mov #n,a 2/6 mov rs,b 2/7 mov rs,rd 3/9 mov #n,b 2/6 mov b,a 1/8 mov #n,rd 3/8 mov ps,rd 3/10 dec a 1/8 dec b 1/8 dec rd 2/6 trap 13 1/14 mov a,*ra[sp] 2/7 3 jc ra 2/5 and rs,a 2/7 and #n,a 2/6 and rs,b 2/7 and rs,rd 3/9 and #n,b 2/6 and b,a 1/8 and #n,rd 3/8 and a,pd 2/9 and b,pd 2/9 and #n,pd 3/10 inc a 1/8 inc b 1/8 inc rd 2/6 trap 12 1/14 cmp *n[sp],a 2/8 4 jp ra 2/5 or rs,a 2/7 or #n,a 2/6 or rs,b 2/7 or rs,rd 3/9 or #n,b 2/6 or b,a 1/8 or #n,rd 3/8 or a,pd 2/9 or b,pd 2/9 or #n,pd 3/10 inv a 1/8 inv b 1/8 inv rd 2/6 trap 11 1/14 extend inst,2 opcodes l s n 5 jpz ra 2/5 xor rs,a 2/7 xor #n,a 2/6 xor rs,b 2/7 xor rs,rd 3/9 xor #n,b 2/6 xor b,a 1/8 xor #n,rd 3/8 xor a,pd 2/9 xor b,pd 2/9 xor #n,pd 3/10 clr a 1/8 clr b 1/8 clr rn 2/6 trap 10 1/14 n 6 jnz ra 2/5 btjo rs,a,ra 3/9 btjo #n,a,ra 3/8 btjo rs,b,ra 3/9 btjo rs,rd,ra 4/11 btjo #n,b,ra 3/8 btjo b,a,ra 2/10 btjo #n,rd,ra 4/10 btjo a,pd,ra 3/11 btjo b,pd,ra 3/10 btjo #n,pd,ra 4/11 xchb a 1/10 xchb a / tst b 1/10 xchb rn 2/8 trap 9 1/14 idle 1/6 7 jnc ra 2/5 btjz rs.,a,ra 3/9 btjz #n,a,ra 3/8 btjz rs,b,ra 3/9 btjz rs,rd,ra 4/11 btjz #n,b,ra 3/8 btjz b,a,ra 2/10 btjz #n,rd,ra 4/10 btjz a,pd,ra 3/10 btjz b,pd,ra 3/10 btjz #n,pd,ra 4/11 swap a 1/11 swap b 1/11 swap rn 2/9 trap 8 1/14 mov #n,pd 3/10 8 jv ra 2/5 add rs,a 2/7 add #n,a 2/6 add rs,b 2/7 add rs,rd 3/9 add #n,b 2/6 add b,a 1/8 add #n,rd 3/8 movw #16,rd 4/13 movw rs,rd 3/12 movw #16[b],rpd 4/15 push a 1/9 push b 1/9 push rd 2/7 trap 7 1/14 setc 1/7 9 jl ra 2/5 adc rs,a 2/7 adc #n,a 2/6 adc rs,b 2/7 adc rs,rd 3/9 adc #n,b 2/6 adc b,a 1/8 adc #n,rd 3/8 jmpl lab 3/9 jmpl *rp 2/8 jmpl *lab[b] 3/11 pop a 1/9 pop b 1/9 pop rd 2/7 trap 6 1/14 rts 1/9 a jle ra 2/5 sub rs,a 2/7 sub #n,a 2/6 sub rs,b 2/7 sub rs,rd 3/9 sub #n,b 2/6 sub b,a 1/8 sub #n,rd 3/8 mov & lab,a 3/10 mov *rp,a 2/9 mov *lab[b],a 3/12 djnz a,#ra 2/10 djnz b,#ra 2/10 djnz rd,#ra 3/8 trap 5 1/14 rti 1/12 b jhs ra 2/5 sbb rs,a 2/7 sbb #n,a 2/6 sbb rs,b 2/7 sbb rs,rd 3/9 sbb #n,b 2/6 sbb b,a 1/8 sbb #n,rd 3/8 mov a, & lab 3/10 mov a, *rp 2/9 mov a,*lab[b] 3/12 compl a 1/8 compl b 1/8 compl rd 2/6 trap 4 1/14 push st 1/8 2 all conditional jumps (opcodes 01-0f), btjo, btjz, and djnz instructions use two additional cycles if the branch is taken. the btjo, btjz, and djnz instructions have a relative address as the last operand. l
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 post office box 1443 houston, texas 772511443 ? 27 table 15. tms370 family opcode/instruction map 2 (continued) msn 01 2 3 4 5 6 7 8 9 a b c d e f c jnv ra 2/5 mpy rs,a 2/46 mpy #n,a 2/45 mpy rs,b 2/46 mpy rs,rd 3/48 mpy #n,b 2/45 mpy b,a 1/47 mpy #n,rs 3/47 br lab 3/9 br *rp 2/8 br *lab[b] 3/11 rr a 1/8 rr b 1/8 rr rd 2/6 trap 3 1/14 pop st 1/8 l s d jge ra 2/5 cmp rs,a 2/7 cmp #n,a 2/6 cmp rs,b 2/7 cmp rs,rd 3/9 cmp #n,b 2/6 cmp b,a 1/8 cmp #n,rd 3/8 cmp & lab,a 3/11 cmp *rp,a 2/10 cmp *lab[b],a 3/13 rrc a 1/8 rrc b 1/8 rrc rd 2/6 trap 2 1/14 ldsp 1/7 s n e jg ra 2/5 dac rs,a 2/9 dac #n,a 2/8 dac rs,b 2/9 dac rs,rd 3/11 dac #n,b 2/8 dac b,a 1/10 dac #n,rd 3/10 call lab 3/13 call *rp 2/12 call *lab[b] 3/15 rl a 1/8 rl b 1/8 rl rd 2/6 trap 1 1/14 stsp 1/8 f jlo ra 2/5 dsb rs,a 2/9 dsb #n,a 2/8 dsb rs,b 2/9 dsb rs,rd 3/11 dsb #n,b 2/8 dsb b,a 1/10 dsb #n,rd 3/10 callr lab 3/15 callr *rp 2/14 callr *lab[b] 3/17 rlc a 1/8 rlc b 1/8 rlc rd 2/6 trap 0 1/14 nop 1/7 second byte of two-byte instructions (f4xx): f4 8 movw *n[rn] 4/15 div rn.a 3/14-63 f4 9 jmpl *n[rn] 4/16 legend: * = indirect addressing operand prefix & = direct addressing operand prefix f4 a mov *n[rn],a 4/17 # = immediate operand #16 = immediate 16-bit number lab = 16-label i di t 8 bit b f4 b mov a,*n[rn] 4/16 n = immediate 8-bit number pd = peripheral register containing destination type pn = peripheral register ps = peri p heral register containing source byte f4 c br *n[rn] 4/16 ps = peri heral register containing source byte ra = relative address rd = register containing destination type rn = re g ister file f4 d cmp *n[rn],a 4/18 rn register file rp = register pair rpd = destination register pair rps = source register pair f4 e call *n[rn] 4/20 rs = register containing source byte f4 f callr *n[rn] 4/22 2 all conditional jumps (opcodes 01-0f), btjo, btjz, and djnz instructions use two additional cycles if the branch is taken. the btjo, btjz, and djnz instructions have a relative address as the last operand.
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 28 post office box 1443 ? houston, texas 772511443 development system support the tms370 family development support tools include an assembler, a c compiler, a linker, cdt and an eeprom/ uveprom programmer.  assembler/ linker (part no. tmds374085002 for pc) includes extensive macro capability provides high-speed operation includes format conversion utilities for popular formats  ansi c compiler (part no. tmds374085502 for pc, part no. tmds374055509 for hp700 ? , sun-3 ? or sun-4 ? ) generates assembly code for the tms370 that can be inspected easily improves code execution speed and reduces code size with optional optimizer pass enables direct reference to the tms370's port registers by using a naming convention provides flexibility in specifying the storage for data objects interfaces c functions and assembly functions easily includes assembler and linker  cdt370 (compact development tool) real-time in-circuit emulation base (part number edscdt370 for pc, requires cable) cable for 40-pin dip (part no. edstrg40dil8x) cable for 44-pin plcc (part no. edstrg44plcc8x) provides eeprom and eprom programming support allows inspection and modification of memory locations includes compatibility to upload / download program and data memory executes programs and software routines includes 1 024-sample trace buffer includes single-step executable instructions uses software breakpoints to halt program execution at selected address provides timers for analyzing total and average time in routines contains an eight-line logic probe for adding visibility of external signals to the breakpoint qualifier and to trace display  microcontroller programmer base (part no. tmds3760500a for pc, requires programmer head) single unit head for 44-pin plcc (part no. tmds3780510a) single unit head for 40-pin dip (part no. tmds3780511a) pc-based, window / function-key-oriented user interface for ease of use and rapid learning environment  converter socket (part no. tmds37788otp) hp700 is a trademark of hewlett-packard company. sun-3 and sun-4 are trademarks of sun microsystems, incorporated.
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 29 post office box 1443 ? houston, texas 772511443 device numbering conventions figure 11 illustrates the numbering and symbol nomenclature for the tms370cx8x family. 6 370 8 6 c prefix: tms = standard prefix for fully qualified devices se = system evaluator (window eprom) that is used for prototyping purpose. family: 370 = tms370 8-bit microcontroller family technology: c = cmos program memory types: 0 = mask rom 3 = mask rom, no data eeprom 6 = eprom, no data eeprom device type: 8 = 'x8x device containing a timer1 module memory size: 0 = 4k bytes 6 = 16k bytes temperature ranges: a = 40 c to 85 c l = 0 c to 70 c t = 40 c to 105 c packages: fn = plastic leaded chip carrier fz = ceramic leaded chip carrier n = plastic dual-in-line rom and eprom option: a = for rom device, the watchdog timer can be configured as one of the three different mask options: a standard watchdog a hard watchdog a simple watchdog the clock can be either: divide-by-4 clock divide-by-1 (pll) clock the low-power modes can be either: enabled disabled without a = for rom device, a standard watchdog, a divide-by-4 clock, and low-power modes are enabled a = for eprom device, a standard watchdog, a divide-by-4 clock, and low-power modes are enabled tms afnl figure 11. tms370cx8x family nomenclature
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 30 post office box 1443 ? houston, texas 772511443 device part numbers table 16 provides all of the 'x8x devices available. the device part number nomenclature is designed to assist ordering. upon ordering, the customer must specify not only the device part number, but also the clock and watchdog timer options desired. each device can have only one of the three possible watchdog timer options and one of the two clock options. the options to be specified pertain solely to orders involving rom devices. table 16. device part numbers devices part numbers for 44 pins (lcc) devices part numbers for 40 pins (pdip) tms370c380afna tms370c380afnl tms370c380afnt TMS370C080na TMS370C080nl TMS370C080nt tms370c686afnt e se370c686afzt 2 e 2 system evaluators are for use in prototype environment and their reliability has not been characterized.
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 31 post office box 1443 ? houston, texas 772511443 new code release form figure 12 shows a sample of the new code release form. new code release form texas instruments tms370 microcontroller products date: to release a new customer algorithm to ti incorporated into a tms370 family microcontroller, complete this form and submit with the following information: 1. a rom description in object form on floppy disk, modem xfr, or eprom (verification file will be returned via same media) 2. an attached specification if not using ti standard specification as incorporated in ti's applicable device data book. company name: street address: street address: city: state zip contact mr./ms.: phone: ( ) ext.: customer purchase order number: customer part number: customer application: customer print number *yes: # no: (std. spec to be followed) *if yes: customer must provide oprinto to ti w/ncrf for approval before rom code processing starts. tms370 device: ti customer rom number: (provided by texas instruments) contact options for the 'a' version tms370 microcontrollers oscillator frequency min typ max [] external drive (clkin) [] crystal [] ceramic resonator low power modes [] enabled [] disabled watchdog counter [] standard [] hard enabled [] simple counter clock type [] standard (/4) [] pll (/1) [] supply voltage min: max: (std range: 4.5v to 5.5v) note: non 'a' version rom devices of the tms370 microcontrollers will have the alow-power modes enabledo, adivide-by-4o clock, and astandardo watchdog options. see the tms370 family user's guide (literature number spnu127) or the tms370 family data manual (literature number spns014b). temperature range [] 'l': 0 to 70 c (standard) [] 'a': 40 to 85 c [] 't': 40 to 105 c package type [] 'n' 28-pin pdip [] afno 44-pin plcc [] afno 28-pin plcc [] afno 68-pin plcc [] ano 40-pin pdip [] anmo 64-pin psdip [] anjo 40-pin psdip (formerly known as n2) symbolization bus expansion [] ti standard symbolization [] ti standard w/customer part number [] customer symbolization (per attached spec, subject to approval) [] yes [] no non-standard specifications: all non-standards specifications must be approved by the ti engineering staff: if the customer requires expedited production ma terial (i.e., product which must be started in process prior to prototype approval and full production release) and non-standard spec issues are not resolved to the satisfaction of both the customer and ti in time for a scheduled shipment, the specification parameters in question will be pro cessed/tested to the standard ti spec. any such devices which are shipped without conformance to a mutually approved spec, will be identified by a 'p' in the symbolization preceding the ti part number. release authorization: this document, including any referenced attachments, is and will be the controlling document for all orders placed for this ti custom device. any changes must be in writing and mutually agreed to by both the customer and ti. the prototype cycletime commences when this document is signe d off and the verification code is approved by the customer. 1. customer: date: 2. ti: field sales: marketing: prod. eng.: proto. release: figure 12. sample new code release form
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 32 post office box 1443 ? houston, texas 772511443 table 17 is a collection of all the peripheral file frames used in the 'cx8x (provided for a quick reference). table 17. peripheral file frame compilation system configuration registers pf bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg p010 cold start osc power pf auto wait osc flt flag mc pin wpo mc pin data e m p/ m c mode sccr0 p011 e e e auto wait disable e memory disable e e sccr1 p012 halt / standby pwrdwn / idle e bus stest cpu stest e int1 nmi privilege disable sccr2 p013 to p016 reserved p017 int1 flag int1 pin data e e e int1 polarity int1 priority int1 enable int1 p018 int2 flag int2 pin data e int2 data dir int2 data out int2 polarity int2 priority int2 enable int2 p019 int3 flag int3 pin data e int3 data dir int3 data out int3 polarity int3 priority int3 enable int3 p01a busy e e e e ap w1w0 exe deectl p01b reserved p01c busy vpps e e e e w0 exe epctl p01d p01e p01f reserved digital port control registers p020 reserved aport1 p021 port a control register 2 (must be 0) aport2 p022 port a data adata p023 port a direction adir p024 reserved bport1 p025 port b control register 2 (must be 0) bport2 p026 port b data bdata p027 port b direction bdir p028 reserved cport1 p029 port c control register 2 (must be 0) cport2 p02a port c data cdata p02b port c direction cdir p02c port d control register 1 (must be 0) e e e dport1 p02d port d control register 2 (must be 0) 2 e e e dport2 p02e port d data e e e ddata p02f port d direction e e e ddir timer1 module register memory map modes: dual-compare and capture/compare p040 bit 15 t1counter msbyte bit 8 t1cntr p041 bit 7 t1 counter lsbyte bit 0 2 to configure pin d3 as sysclk, set port d control register 2 = 08h.
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 33 post office box 1443 ? houston, texas 772511443 table 17. peripheral file frame compilation (continued) pf bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg modes: dual-compare and capture/compare (continued) p042 bit 15 compare register msbyte bit 8 t1c p043 bit 7 compare register lsbyte bit 0 p044 bit 15 capture/compare register msbyte bit 8 t1cc p045 bit 7 capture/compare register lsbyte bit 0 p046 bit 15 watchdog counter msbyte bit 8 wdcntr p047 bit 7 watchdog counter lsbyte bit 0 p048 bit 7 watchdog reset key bit 0 wdrst p049 wd ovrfl tap sel 2 wd input select2 2 wd input select1 2 wd input select0 2 e t1 input select2 t1 input select1 t1 input select0 t1ctl1 p04a wd ovrfl rst ena 2 wd ovrfl int ena wd ovrfl int flag t1 ovrfl int ena t1 ovrfl int flag e e t1 sw reset t1ctl2 mode: dual-compare p04b t1edge int flag t1c2 int flag t1c1 int flag e e t1edge int ena t1c2 int ena t1c1 int ena t1ctl3 p04c t1 mode=0 t1c1 out ena t1c2 out ena t1c1 rst ena t1cr out ena t1edge polarity t1cr rst ena t1edge det ena t1ctl4 mode: capture / compare p04b t1edge int flag e t1c1 int flag e e t1edge int ena e t1c1 int ena t1ctl3 p04c t1 mode = 1 t1c1 out ena e t1c1 rst ena e t1edge polarity e t1edge det ena t1ctl4 modes: dual-compare and capture/compare p04d e e e e t1evt data in t1evt data out t1evt function t1evt data dir t1pc1 p04e t1pwm data in t1pwm data out t1pwm function t1pwm data dir t1ic/cr data in t1ic/cr data out t1ic/cr function t1ic/cr data dir t1pc2 p04f t1 stest t1 priority e e e e e e t1pri 2 once the wd ovrfl rst ena bit is set, these bits cannot be changed until a reset; this applies only to the standard watchdog and to simple counter. in the hard watchdog, these bits can be modified at any time; the wd input select2 bits are ignored.
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 34 post office box 1443 ? houston, texas 772511443 absolute maximum ratings over operating free-air temperature range (unless otherwise noted) 2 supply voltage range,v cc (see note 1) 0.6 v to 7 v . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . input voltage range, all pins except mc 0.6 v to 7 v . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . mc 0.6 v to 14 v . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . input clamp current, i ik (v i < 0 or v i > v cc) 20 ma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . output clamp current, i ok (v o < 0 or v o > v cc ) 20 ma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . continuous output current per buffer, i o (v o = 0 to v cc) ) (see note 2) 10 ma . . . . . . . . . . . . . . . . . . . . . . . . . maximum i cc current 170 ma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . maximum i ss current 170 ma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . continuous power dissipation 1 w . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . operating free-air temperature range, t a : l version 0 c to 70 c . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . a version 4 0 c to 85 c . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . t version 4 0 c to 105 c . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . storage temperature range, t stg 65 c to 150 c . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 stresses beyond those listed under aabsolute maximum ratingso may cause permanent damage to the device. these are stress rating s only, and functional operation of the device at these or any other conditions beyond those indicated under arecommended operating conditi onso is not implied. exposure to absolute-maximum-rated conditions for extended periods may affect device reliability. notes: 1. unless otherwise noted, all voltage values are with respect to v ss . 2. electrical characteristics are specified with all output buffers loaded with specified i o current. exceeding the specified i o current in any buffer can affect the levels on other buffers. recommended operating conditions min nom max unit v cc supply voltage (see note 1) 4.5 5 5.5 v v cc ram data-retention supply voltage (see note 3) 3 5.5 v v il low level in p ut voltage all pins except mc v ss 0.8 v v il lo w- le v el inp u t v oltage mc, normal operation v ss 0.3 v v hi h l l i t lt all pins except mc, xtal2 / clkin, and reset 2 v cc v v ih high-level input voltage xtal2 / clkin 0.8 v cc v cc v reset 0.7 v cc v cc eeprom write protect override (wpo) 11.7 12 13 v mc mc (mode control) voltage eprom programming voltage (v pp ) 13 13.2 13.5 v microcomputer v ss 0.3 l version 0 70 t a operating free-air temperature a version 40 85 c t version 40 105 notes: 1. unless otherwise noted, all voltage values are with respect to v ss . 3. reset must be externally activated when v cc or sysclk is not within the recommended operating range.
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 35 post office box 1443 ? houston, texas 772511443 electrical characteristics over recommended operating free-air temperature range (unless otherwise noted) parameter test conditions min typ max unit v ol low-level output voltage i ol = 1.4 ma 0.4 v v oh high level out p ut voltage i oh = 50 m a 0.9 v cc v v oh high - le v el o u tp u t v oltage i oh = 2 ma 2.4 v 0 v < v i 0.3 v 10 m a mc 0.3 v < v i 13 v 650 m a i i input current mc see note 4 12 v v i 13 v 50 ma i / o pins 0 v v i v cc 10 m a i ol low-level output current v ol = 0.4 v 1.4 ma i oh high level out p ut current v oh = 0.9 v cc 50 m a i oh high - le v el o u tp u t c u rrent v oh = 2.4 v 2 ma see notes 5 and 6 sysclk = 5 mhz 30 45 supply current (operating mode) osc power bit = 0 (see note 7) see notes 5 and 6 sysclk = 3 mhz 20 30 ma see notes 5 and 6 sysclk = 0.5 mhz 7 11 see notes 5 and 6 sysclk = 5 mhz 10 17 i cc supply current (standby mode) osc power bit = 0 (see note 8) see notes 5 and 6 sysclk = 3 mhz 8 11 ma see notes 5 and 6 sysclk = 0.5 mhz 2 3.5 supply current (standby mode) see notes 5 and 6 sysclk = 3 mhz 6 8.6 ma y( ) osc power bit = 1 (see note 9) see notes 5 and 6 sysclk = 0.5 mhz 2 3.0 ma supply current (halt mode) see note 5 xtal2 / clkin < 0.2 v 2 30 m a notes: 4. input current i pp is a maximum of 50 ma only when you are programming eprom. 5. single-chip mode, ports configured as inputs or outputs with no load. all inputs 0.2 v or v cc 0.2v. 6. xtal2/clkin is driven with an external square wave signal with 50% duty cycle and rise and fall times less than 10 ns. curren t can be higher with a crystal oscillator. at 5 mhz sysclk, this extra current = 0.01 ma x (total load capacitance + crystal capa citance in pf). 7. maximum operating current = 7.6 (sysclk) + 7 ma. 8. maximum standby current = 3 (sysclk) + 2 ma. (osc power bit = 0). 9. maximum standby current = 2.24 (sysclk) + 1.9 ma. (osc power bit = 1, only valid up to 3 mhz sysclk).
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 36 post office box 1443 ? houston, texas 772511443 external clock signal xtal1 xtal2/clkin c2 (see note b) c1 (see note b) crystal/ceramic resonator (see note a) xtal1 xtal2/clkin c3 (see note b) notes: a. the crystal/ceramic resonator frequency is four times the reciprocal of the system clock period. b. the values of c1 and c2 are typically 15 pf and the value of c3 is typically 50 pf. see the manufacturer's recommendations fo r ceramic resonators. figure 13. recommended crystal/clock connections 1.2 k w 20 pf v o load voltage case 1: v o = v oh = 2.4 v; load voltage = 0 v case 2: v o = v ol = 0.4 v; load voltage = 2.1 v note a: all measurements are made with the pin loading as shown unless otherwise noted. all measurements are made with xtal2/clk in driven by an external square wave signal with a 50% duty cycle and rise and fall times less than 10 ns unless otherwise stated. figure 14. typical output load circuit (see note a) v cc gnd 300 w 20 w i/o pin data output enable v cc gnd int1 6 k w 20 w 30 w figure 15. typical buffer circuitry
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 37 post office box 1443 ? houston, texas 772511443 parameter measurement information timing parameter symbology timing parameter symbols have been created in accordance with jedec standard 100. in order to shorten the symbols, some of the pin names and other related terminology have been abbreviated as follows: ar array ci xtal2/clkin b byte sc sysclk lowercase subscripts and their meanings are: c cycle time (period) su setup time d delay time v valid time f fall time w pulse duration (width) r rise time the following additional letters are used with these meanings: h high l low v valid all timings are measured between high and low measurement points as indicated in figure 16 and figure 17. 0.8 v (low) 2 v (high) 0.8 v (low) 0.8 v cc v (high) figure 16. xtal2/clkin measurement points figure 17. general measurement points
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 38 post office box 1443 ? houston, texas 772511443 external clocking requirements for clock divided by 4 (see note 10 and figure 18) no. parameter min max unit 1 t w(cl) pulse duration, xtal2/clkin (see note 11) 20 ns 2 t r(cl) rise time, xtal2/clkin 30 ns 3 t f(ci) fall time, xtal2/clkin 30 ns 4 t d(cih-scl) delay time, xtal2/clkin rise to sysclk fall 100 ns clkin crystal operating frequency 2 20 mhz sysclk internal system clock operating frequency 2 0.5 5 mhz 2 sysclk = clkin/4 notes: 10. for v il and v ih , refer to recommended operating conditions. 11. this pulse may be either a high pulse, which extends from the earliest valid high to the final valid high in an xtal2/clkin cycle or a low pulse, which extends from the earliest valid low to the final valid low in an xtal2/clkin cycle. xtal2/clkin 3 2 1 4 sysclk figure 18. external clock timing for divide-by-4 external clocking requirements for clock divided by 1 (pll) (see note 10 and figure 19) no. parameter min max unit 1 t w(cl) pulse duration, xtal2/clkin (see note 11) 20 ns 2 t r(cl) rise time, xtal2/clkin 30 ns 3 t f(ci) fall time, xtal2/clkin 30 ns 4 t d(cih-sch) delay time, xtal2/clkin rise to sysclk rise 100 ns clkin crystal operating frequency 2 5 mhz sysclk internal system clock operating frequency 3 2 5 mhz 3 sysclk = clkin/1 notes: 10. for v il and v ih , refer to recommended operating conditions. 11. this pulse can be either a high pulse, which extends from the earliest valid high to the final valid high in an xtal2/clkin cycle or a low pulse, which extends from the earliest valid low to the final valid low in an xtal2/clkin cycle. 4 3 2 1 xtal2/clkin sysclk figure 19. external clock timing for divide-by-1
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 39 post office box 1443 ? houston, texas 772511443 switching characteristics and timing requirements (see note 12) no. parameter min max unit 5 t cycle time sysclk (system clock) divide-by-4 200 2000 ns 5 t c c y cle time , sysclk (s y stem clock) divide-by-1 200 500 ns 6 t w(scl) pulse duration, sysclk low 0.5 t c 20 0.5 t c ns 7 t w(sch) pulse duration, sysclk high 0.5 t c 0.5 t c + 20 ns note 12: t c = system-clock cycle time = 1 / sysclk sysclk 5 6 7 figure 20. sysclk timing general purpose output signal switching time requirements min nom max unit t r rise time 30 ns t f fall time 30 ns t f t r figure 21. signal switching timing recommended eeprom timing requirements for programming min max unit t w(pgm)b pulse duration, programming signal to ensure valid data is stored (byte mode) 10 ms t w(pgm)ar pulse duration, programming signal to ensure valid data is stored (array mode) 20 ms recommended eprom operating conditions for programming min nom max unit v cc supply voltage 4.75 5.5 6 v v pp supply voltage at mc pin 13 13.2 13.5 v i pp supply current at mc pin during programming (v pp = 13 v) 30 50 ma sysclk system clock divide-by-4 0.5 5 mhz sysclk s y stem clock divide-by-1 2 5 mh z recommended eprom timing requirements for programming min nom max unit t w(epgm) pulse duration, programming signal (see note 13) 0.40 0.50 3 ms note 13: programming pulse is active when both exe (epctl.0) and vpps (epctl.6) are set.
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 40 post office box 1443 ? houston, texas 772511443 table 18 is designed to aid the user in referencing a device part number to a mechanical drawing. the table shows a cross-reference of the device part number to the tms370 generic package name and the associated mechanical drawing by drawing number and name. table 18. tms370cx8x family package type and mechanical cross-reference pkg type (mil pin spacing) tms370 generic name pkg type no. and mechanical name device part numbers fn 44 pin (50-mil pin spacing) plastic leaded chip carrier (plcc) fn(s-pqcc-j**) plastic j-leaded chip carrier tms370c380afna tms370c380afnl tms370c380afnt tms370c686afnt fz 44 pin (50-mil pin spacing) ceramic leaded chip carrier (clcc) fz(s-cqcc-j**) j-leaded ceramic chip carrier se370c686afzt n 40 pin (100-mil pin spacing) plastic dual-in-line package (pdip) n(r-pdip-t**) plastic dual-in-line package TMS370C080na TMS370C080nl TMS370C080nt
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 41 post office box 1443 ? houston, texas 772511443 mechanical data n (r-pdip-t**) plastic dual-in-line package 24 pin shown 12 seating plane 0.560 (14,22) 0.520 (13,21) 13 0.610 (15,49) 0.590 (14,99) 52 48 40 0.125 (3,18) min 2.390 (60,71) (62,23) (53,09) (51,82) 2.040 2.090 2.450 2.650 (67,31) (65,79) 2.590 0.010 (0,25) nom 4040053 / b 04/95 a 0.060 (1,52) typ 1 24 32 28 24 1.230 (31,24) (32,26) (36,83) (35,81) 1.410 1.450 1.270 pins ** dim 0.015 (0,38) 0.021 (0,53) a min a max 1.650 (41,91) (40,89) 1.610 0.020 (0,51) min 0.200 (5,08) max 0.100 (2,54) m 0.010 (0,25) 0 15 notes: a. all linear dimensions are in inches (millimeters). b. this drawing is subject to change without notice. c. falls within jedec ms-011 d. falls within jedec ms-015 (32 pin only)
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 42 post office box 1443 ? houston, texas 772511443 mechanical data fn (s-pqcc-j**) plastic j-leaded chip carrier 4040005 / b 03/95 20 pin shown 0.026 (0,66) 0.032 (0,81) d2 / e2 0.020 (0,51) min 0.180 (4,57) max 0.120 (3,05) 0.090 (2,29) d2 / e2 0.013 (0,33) 0.021 (0,53) seating plane max d2 / e2 0.219 (5,56) 0.169 (4,29) 0.319 (8,10) 0.469 (11,91) 0.569 (14,45) 0.369 (9,37) max 0.356 (9,04) 0.456 (11,58) 0.656 (16,66) 0.008 (0,20) nom 1.158 (29,41) 0.958 (24,33) 0.756 (19,20) 0.191 (4,85) 0.141 (3,58) min 0.441 (11,20) 0.541 (13,74) 0.291 (7,39) 0.341 (8,66) 18 19 14 13 d d1 1 3 9 e1 e 4 8 min max min pins ** 20 28 44 0.385 (9,78) 0.485 (12,32) 0.685 (17,40) 52 68 84 1.185 (30,10) 0.985 (25,02) 0.785 (19,94) d/e 0.395 (10,03) 0.495 (12,57) 1.195 (30,35) 0.995 (25,27) 0.695 (17,65) 0.795 (20,19) no. of d1 / e1 0.350 (8,89) 0.450 (11,43) 1.150 (29,21) 0.950 (24,13) 0.650 (16,51) 0.750 (19,05) 0.004 (0,10) m 0.007 (0,18) 0.050 (1,27) notes: a. all linear dimensions are in inches (millimeters). b. this drawing is subject to change without notice. c. falls within jedec ms-018
tms370cx8x 8-bit microcontroller spns035b december 1995 revised february 1997 43 post office box 1443 ? houston, texas 772511443 mechanical data fz (s-cqcc-j**) j-leaded ceramic chip carrier 4040219 / b 03/95 0.180 (4,57) 0.140 (3,55) c 0.020 (0,51) 0.032 (0,81) a b a b 0.025 (0,64) r typ 0.026 (0,66) 0.120 (3,05) 0.155 (3,94) 0.014 (0,36) 0.120 (3,05) 0.040 (1,02) min 0.090 (2,29) 0.040 (1,02)  45 a min max 0.485 (12,32) (12,57) 0.495 0.455 (11,56) (10,92) 0.430 max min bc min max 0.410 (10,41) (10,92) 0.430 0.630 0.610 0.630 0.655 0.695 0.685 (16,00) (15,49) (16,00) (16,64) (17,65) (17,40) 0.740 0.680 0.730 0.765 0.795 0.785 (18,79) (17,28) (18,54) (19,43) (20,19) (19,94) pins** 28 44 52 no. of jedec mo-087ac mo-087ab mo-087aa outline 28 lead shown seating plane (at seating plane) 1 426 25 19 18 12 11 5 0.050 (1,27) 0.930 0.910 0.930 0.955 0.995 0.985 (23,62) (23,11) (23,62) (24,26) (25,27) (25,02) 68 mo-087ad notes: a. all linear dimensions are in inches (millimeters). b. this drawing is subject to change without notice. c. this package can be hermetically sealed with a ceramic lid using glass frit.
important notice texas instruments and its subsidiaries (ti) reserve the right to make changes to their products or to discontinue any product or service without notice, and advise customers to obtain the latest version of relevant information to verify, before placing orders, that information being relied on is current and complete. all products are sold subject to the terms and conditions of sale supplied at the time of order acknowledgement, including those pertaining to warranty, patent infringement, and limitation of liability. ti warrants performance of its semiconductor products to the specifications applicable at the time of sale in accordance with ti's standard warranty. testing and other quality control techniques are utilized to the extent ti deems necessary to support this warranty. specific testing of all parameters of each device is not necessarily performed, except those mandated by government requirements. certain applications using semiconductor products may involve potential risks of death, personal injury, or severe property or environmental damage (acritical applicationso). ti semiconductor products are not designed, authorized, or warranted to be suitable for use in life-support devices or systems or other critical applications. inclusion of ti products in such applications is understood to be fully at the customer's risk. in order to minimize risks associated with the customer's applications, adequate design and operating safeguards must be provided by the customer to minimize inherent or procedural hazards. ti assumes no liability for applications assistance or customer product design. ti does not warrant or represent that any license, either express or implied, is granted under any patent right, copyright, mask work right, or other intellectual property right of ti covering or relating to any combination, machine, or process in which such semiconductor products or services might be or are used. ti's publication of information regarding any third party's products or services does not constitute ti's approval, warranty or endorsement thereof. copyright ? 1998, texas instruments incorporated


▲Up To Search▲   

 
Price & Availability of TMS370C080

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X