The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers.    


Datasheet Search Engine   
 
Part # or Description: • 5V RS232 Driver • 2SC5066* • "Real Time Clock" • "USB connector" • "blue led" 5mm • 10 watt zener diode • 2N3055* motorola
 
Search Tip: Try entering the part number only. Include a wildcard (eg. lm317* or 1n4148*)

 

 

TLCS-900/L1 Series TMP91CW60FG TMP91CW60DFG TOSHIBA CORPORAT


Datasheet Thumbnail

  

Download PDF



Top Searches for this datasheet



Microcontroller
TLCS-900/L1 Series
TMP91CW60FG TMP91CW60DFG
TOSHIBA CORPORATION
information contained herein subject change without notice. TOSHIBA continually working improve quality reliability products. Nevertheless, semiconductor devices general malfunction fail their inherent electrical sensitivity vulnerability physical stress. responsibility buyer, when utilizing TOSHIBA products, comply with standards safety making safe design entire system, avoid situations which malfunction failure such TOSHIBA products could cause loss human life, bodily injury damage property. developing your designs, please ensure that TOSHIBA products used within specified operating ranges forth most recent TOSHIBA products specifications. Also, please keep mind precautions conditions forth "Handling Guide Semiconductor Devices," "TOSHIBA Semiconductor Reliability Handbook" etc. Toshiba products listed this document intended usage general electronics applications (computer, personal equipment, office equipment, measuring equipment, industrial robotics, domestic appliances, etc.). These Toshiba products neither intended warranted usage equipment that requires extraordinarily high quality and/or reliability malfunction failure which cause loss human life bodily injury ("Unintended Usage"). Unintended Usage include atomic energy control instruments, airplane spaceship instruments, transportation instruments, traffic signal instruments, combustion control instruments, medical instruments, types safety devices, etc. Unintended Usage TOSHIBA products listed this document shall made customer's risk. products described this document shall used embedded downstream products which manufacture, and/or sale prohibited under applicable laws regulations. information contained herein presented only guide applications products. responsibility assumed TOSHIBA infringements patents other rights third parties which result from use. license granted implication otherwise under patents other rights TOSHIBA third parties. Please contact your sales representative product-by-product details this document regarding RoHS compatibility. Please these products this document compliance with applicable laws regulations that regulate inclusion controlled substances. Toshiba assumes liability damage losses occurring result noncompliance with applicable laws regulations.
2007 TOSHIBA CORPORATION Rights Reserved
Revision History Date
2007/12/03
Revision
release
TMP91CW60
CMOS Microcontroller
TMP91CW60FG/DFG
Product TMP91CW60FG 128K bytes TMP91CW60DFG bytes QFP100-P-1420-0.65A (Flash ROM) Package LQFP100-P-1414-0.50F
Features
High-speed 16-bit (900/L1 CPU) Instruction mnemonics upward-compatible with TLCS-900,900/H,900/L Mbytes linear address space General-purpose registers register banks 16-bit multiplication division instructions; transfer arithmetic instructions Micro DMA: channels (800ns/2 bytes 20MHz) Minimum instruction execution time:200ns 20MHz) Built-in memory ROM:128K bytes (Flash ROM) RAM:8K bytes External memory expansion Expandable Mbytes (shared program/data area) simultaneously support 8/16-bit width external data Dynamic data syzing 8-bit timers: channels 16-bit timers: channels General-purpose serial interface: channels UART/Synchronous mode: channels mode: channels 10-bit converter (Built-in Sample hold circuit): channels Special timer CLOCK
This product uses Super Flash® technology under licence Silicon Storage Technology, Inc. Super Flash® registered trademark Silicon Storage Technology, Inc.
20070701-EN
information contained herein subject change without notice. TOSHIBA continually working improve quality reliability products. Nevertheless, semiconductor devices general malfunction fail their inherent electrical sensitivity vulnerability physical stress. responsibility buyer, when utilizing TOSHIBA products, comply with standards safety making safe design entire system, avoid situations which malfunction failure such TOSHIBA products could cause loss human life, bodily injury damage property. developing your designs, please ensure that TOSHIBA products used within specified operating ranges forth most recent TOSHIBA products specifications. Also, please keep mind precautions conditions forth "Handling Guide Semiconductor Devices," "TOSHIBA Semiconductor Reliability Handbook" etc. TOSHIBA products listed this document intended usage general electronics applications (computer, personal equipment, office equipment, measuring equipment, industrial robotics, domestic appliances, etc.). These TOSHIBA products neither intended warranted usage equipment that requires extraordinarily high quality and/or reliability malfunctionor failure which cause loss human life bodily injury ("Unintended Usage"). Unintended Usage include atomic energy control instruments, airplane spaceship instruments, transportation instruments, traffic signal instruments, combustion control instruments, medical instruments, types safety devices, etc. Unintended Usage TOSHIBA products listed this document shall made customer's risk. products described this document shall used embedded downstream products which manufacture, and/or sale prohibited under applicable laws regulations. information contained herein presented only guide applications products. responsibility assumed TOSHIBA infringements patents other rights third parties which result from use. license granted implication otherwise under patents other rights TOSHIBA third parties. Please contact your sales representative product-by-product details this document regarding RoHS compatibility. Please these products this document compliance with applicable laws regulations that regulate inclusion controlled substances. Toshiba assumes liability damage losses occurring result noncompliance with applicable laws regulations.
Page
2007-12-03
TMP91CW60
Watchdog timer Program patch logic: banks Chip select/wait controller: channels Interrupts: interrupts interrupts: Software interrupt instruction illegal instruction internal interrupts: priority levels selectable external interrupts: priority levels selectable (among interrupts selectable edge mode) Input/output ports: pins Standby function: Three HALT modes: IDLE2 (Programmable), IDLE1 STOP Clock controller Clock gear function: Select High-frequency clock fc/1 fc/16 Oscillator CLOCK 32.768 kHz) Operating voltage Flash read operation Vcc=4.5 20MHz) Package LQFP100-P-1414-0.50F (TMP91CW60FG) QFP100-P-1420-0.65A (TMP91CW60DFG)
Page
2007-12-03
TMP91CW60
Assignment Diagram
P67/AN15 P66/AN14 P65/AN13 P64/AN12 P63/AN11 P62/AN10 P61/AN9 P60/AN8 P57/AN7 P56/AN6 P55/AN5 P54/AN4 P53/AN3 P52/AN2 P51/AN1 P50/AN0 DVSS DVCC PB3/TB4OUT1 PB2/TB4OUT0 PB1/TB4IN1/INT10/SCL1 PB0/TB4IN0/INT9/SDA1 P33/TB3OUT1 P32/WAIT/TB3OUT0 P31/TB3IN1/INT4/SCL0
VREFH AVSS AVCC P70/TA0IN P71/TA1OUT P72/TA3OUT P73/TA4IN P74/TA5OUT P75/INT0 P80/TB0IN0/INT5 P81/TB0IN1/INT6 P82/TB0OUT0 P83/TB0OUT1 P84/TB1IN0/INT7 P85/TB1IN1/INT8 P86/TB1OUT0 P87/TB1OUT1 P90/TXD0 P91/RXD0 P92/SCLK0/CTS0 P93/TXD1 P94/RXD1 P95/SCLK1/CTS1 DVCC
TMP91CW60FG
LQFP100
TOPVIEW
P30/TB3IN0/INT3/SDA0 PZ3/R/W PZ2/HWR PZ1/WR PZ0/RD P27/A7/A23 P26/A6/A22 P25/A5/A21 P24/A4/A20 P23/A3/A19 P22/A2/A18 DVCC DVSS P21/A1/A17 P20/A0/A16 P17/AD15/A15 P16/AD14/A14 P15/AD13/A13 P14/AD12/A12 P13/AD11/A11 P12/AD10/A10 P11/AD9/A9 P10/AD8/A8 P07/AD7
DVSS RESET P96/XT1 P97/XT2 EMU0 EMU1 PA0/TB2IN0/INT1 PA1/TB2IN1/INT2 PA2/TB2OUT0 PA3/TB2OUT1 P40/CS0/SCOUT P41/CS1/TXD2 P42/CS2/RXD2 P43/CS3/SCLK2/CTS2 P44/ALE P00/AD0 P01/AD1 P02/AD2 P03/AD3 P04/AD4 P05/AD5 P06/AD6
Figure Assignment(TMP91CW60FG)
Page
2007-12-03
PB0/TB4IN0/INT9/SDA1 PB1/TB4IN1/INT10/SCL1 PB2/TB4OUT0 PB3/TB4OUT1 DVCC DVSS P50/AN0 P51/AN1 P52/AN2 P53/AN3 P54/AN4 P55/AN5 P56/AN6 P57/AN7 P60/AN8 P61/AN9 P62/AN10 P63/AN11 P64/AN12 P65/AN13
TOPVIEW
TMP91CW60DFG
Figure Assignment(TMP91CW60DFG)
Page
QFP100
P66/AN14 P67/AN15 VREFH AVSS AVCC P70/TA0IN P71/TA1OUT P72/TA3OUT P73/TA4IN P74/TA5OUT P75/INT0 P80/TB0IN0/INT5 P81/TB0IN1/INT6 P82/TB0OUT0 P83/TB0OUT1 P84/TB1IN0/INT7 P85/TB1IN1/INT8 P86/TB1OUT0 P87/TB1OUT1 P90/TXD0 P91/RXD0 P92/SCLK0/CTS0 P93/TXD1 P94/RXD1 P95/SCLK1/CTS1 DVCC DVSS
P33/TB3OUT1 P32/WAIT/TB3OUT0 P31/TB3IN1/INT4/SCL0 P30/TB3IN0/INT3/SDA0 PZ3/R/W PZ2/HWR PZ1/WR PZ0/RD P27/A7/A23 P26/A6/A22 P25/A5/A21 P24/A4/A20 P23/A3/A19 P22/A2/A18 DVCC DVSS P21/A1/A17 P20/A0/A16 P17/AD15/A15 P16/AD14/A14 P15/AD13/A13 P14/AD12/A12 P13/AD11/A11 P12/AD10/A10 P11/AD9/A9 P10/AD8/A8 P07/AD7 P06/AD6 P05/AD5
TMP91CW60
P04/AD4 P03/AD3 P02/AD2 P01/AD1 P00/AD0 P44/ALE P43/CS3/SCLK2/CTS2 P42/CS2/RXD2 P41/CS1/TXD2 P40/CS0/SCOUT PA3/TB2OUT1 PA2/TB2OUT0 PA1/TB2IN1/INT2 PA0/TB2IN0/INT1 EMU1 EMU0 P97/XT2 P96/XT1 RESET
2007-12-03
TMP91CW60
Block Diagram
Mask 128KByte
Figure Block Diagram
Page
2007-12-03
TMP91CW60
Names Functions
Table Names Functions(1/3)
Input Output
Name
Number
Functions
P00-P07 AD0-AD7 P10-P17 AD8-AD15 A8-A15 P20-P27 A0-A7 A16-A23 TB3IN0 INT3 SDA0 TB3IN1 INT4 SCL0 WAIT TB3OUT0 TB3OUT1 SCOUT TXD2 RXD2 SCLK2 CTS2 P50-57 AN0-AN7
Port port that allows selected level Address data (Lower): address/data Port1: port that allows selected level Address data (Upper): address/data Address: address Port port that allows selected level Address: address Address: address Port Output port Read:Strobe signal reading external memory Port Output port Write: Strobe signal writing data pins Port port (with pull-up resistor) High write: Strobe signal writing data pins AD15 Port port (with pull-up resistor) Read/Write: represents Read Dummy cycle; represents Write cycle. Port port 16-bit timer input 0:Timer count/capture trigger Input Interrupt Request Interrupt request with programmable rising edge falling edge. Serial interface data Mode. Port port 16-bit timer input 1:Timer count/capture trigger Input Interrupt Request Interrupt request rising edge Serial interface clock Mode. Port port Wait: used request wait wait mode) 16-bit timer output Timer Output Port port 16-bit timer output Timer Output Port port (with pull-up resistor) Chip Select Outputs when address within specified address area System Clock Output: Outputs fSYS clock. Port port (with pull-up resistor) Chip Select Outputs when address within specified address area Serial Send Data Port port (with pull-up resistor) Chip Select Outputs when address within specified address area Serial Receive Data Port port (with pull-up resistor) Chip Select Outputs when address within specified address area Serial Clock Serial Data Send Enable (Clear Send) Port port (with pull-up resistor) Address Latch Enable Port port Analog input: used input converter
Page
2007-12-03
TMP91CW60
Table Names Functions(2/3)
Input Output
Name
Number
Functions
P60-67 AN8-AN15 TA0IN TA1OUT TA3OUT TA4IN TA5OUT INT0 TB0IN0 INT5 TB0IN1 INT6 TB0OUT0 TB0OUT1 TB1IN0 INT7 TB1IN1 INT8 TB1OUT0 TB1OUT1 TXD0 RXD0 SCLK0 CTS0 TXD1 RXD1
Port port Analog input: used input converter Port port 8-bit timer input: Timer Input Port port 8-bit timer output:Timer Output Port port 8-bit timer output:Timer Output Port port 8-bit timer input: Timer Input Port port 8-bit timer output:Timer Output Port port Interrupt Request Interrupt request with programmable level rising edge falling edge. Port port 16-bit timer input 0:Timer count/capture trigger Input Interrupt Request Interrupt request with programmable rising edge falling edge. Port port 16-bit timer input 1:Timer count/capture trigger Input Interrupt Request Interrupt request rising edge Port port 16-bit timer output Timer Output Port port 16-bit timer output Timer Output Port port 16-bit timer input 0:Timer count/capture trigger Input Interrupt Request Interrupt request with programmable rising edge falling edge. Port port 16-bit timer input 1:Timer count/capture trigger Input Interrupt Request Interrupt request rising edge Port port 16-bit timer output Timer Output Port port 16-bit timer output Timer Output Port port Serial Send Data Port port Serial Receive Data Port port Serial Clock Serial Data Send Enable (Clear Send) Port port Serial Send Data Port port Serial Receive Data
Page
2007-12-03
TMP91CW60
Table Names Functions(3/3)
Input Output Port port Serial Clock Serial Data Send Enable (Clear Send) Port port Low-frequency oscillator connection Port port Low-frequency oscillator connection Port port 16-bit timer input 0:Timer count/capture trigger Input Interrupt Request Interrupt request with programmable rising edge falling edge. Port port 16-bit timer input 1:Timer count/capture trigger Input Interrupt Request Interrupt request rising edge Port port 16-bit timer output Timer Output Port port 16-bit timer output Timer Output Port port 16-bit timer input 0:Timer count/capture trigger Input Interrupt Request Interrupt request with programmable rising edge falling edge. Serial interface data Mode. Port port 16-bit timer input 1:Timer count/capture trigger Input Interrupt Request Interrupt request rising edge Serial interface clock Mode. Port port 16-bit timer output Timer Output Port port 16-bit timer output Timer Output Non-Maskable Interrupt Request Pin: Interrupt request with programmable falling edge both edge. Operation mode:Fixed "1", "1". Open pins Reset: initializes TMP91CW60. (with pull-up resistor) reference voltage input converter Power supply converter converter High frequency oscillator connection pins Power supply pins (All DVCC pins should connected with power supply pin.) pins (All DVSS pins should connected with (0V) pin.)
Name
Number
Functions
SCLK1 CTS1 TB2IN0 INT1 TB2IN1 INT2 TB2OUT0 TB2OUT1 TB4IN0 INT9 SDA1 TB4IN1 INT10 SCL1 TB4OUT0 TB4OUT1
AM0-1 EMU0-1 RESET VREFH AVCC AVSS X1/X2 DVCC DVSS
Note: pins that have built-in pull-up resistors (other than RESET pin) disconnected from built-in pull-up resistor software.
Page
2007-12-03
TMP91CW60
TMP91CW60 incorporates high-performance 16-bit (The 900/L1-CPU). operation, "TLCS-900/L1 CPU". following describe unique function used TMP91CW60; these functions covered TLCS-900/L1 section.
RESET
When resetting TMP91CW60 microcontroller, ensure that power supply voltage within operating voltage range, that internal high-frequency oscillator stabilized. Then hold RESET input level least system clocks (1us MHz). Thus, when turn switch, power supply voltage within operating voltage range, that internal high-frequency oscillator stabilized. Then hold RESET input level least system clocks. means that system clock mode fSYS fc/2. When reset accept, CPU: Sets follows program counter (PC) accordance with reset vector stored address FFFF00H FFFF02H: (7:0) (15:8) Value FFFF00H address Value FFFF01H address
(23:16) Value FFFF02H address Sets stack pointer (XSP) 100H. Sets bits<IFF2:0> status register (SR) (Sets interrupt level mask register level Sets <MAX> status register (SR) (MAX mode). Clears bits<RFP2:0> status register (SR) (Sets register bank When reset released, starts executing instructions accordance with program counter settings. internal registers mentioned above change when reset released. When reset accepted, sets internal I/O, ports, other pins follows. Initializes internal registers. Sets port pins, including pins that also internal I/O, general-purpose input output port mode. Sets high impedance.
Note internal register (except CPU) internal data change resetting. Note necessary re-set stack pointer user program.
Figure reset timing chart TMP91CW60.
Page
2007-12-03
fFPH Sampling Sampling
RESET
A16~A23 (P40 input mode)
(P20 input mode)
CS0CS3
(PZ3 input mode)
(P44 input mode) Address (P00 P07, input mode) (P30 output mode)
AD0~AD15
Address
Figure TMP91CW60 Reset Timing Chart
Address (P00 P07, input mode) (P31 output mode)
Page
(P32 input mode) (output mode) (input mode) (input mode)
AD0~AD15
Address
Data-out
PZ0PZ1
PZ2,PZ3, P40~P43
P00~P07, P10~P17, P20~P27, P60~P67, P70~P75, P80~P87, P90~P97, PA0~PA3 PB0~PB3
TMP91CW60
2007-12-03
TMP91CW60
Memory
Figure memory TMP91CW60.
000000H
Internal Kbytes)
000100H 001000H Internal Kbytes)
Kbyte area (nn)
003000H 010000H
FE0000H
Kbyte
16-Mbyte area (-R) (R+) R8/16) d8/16) (nnn)
FFFF00H FFFFFFH
Figure TMP91CW60 Memory
Page
2007-12-03
TMP91CW60
System Clock Function Standby Control
TMP91CW60 contains clock gear, stand-by controller noise-reduction circuit. used low-noise systems. clock operating modes follows: Single clock mode pins only), Dual clock mode (X1,X2,XT1 pins). Figure shows transition figure.
(fOSCH/2) IDLE2 mode (I/O operate) IDLE1 mode
(Operate only oscillator)
NORMAL mode (fOSCH /gear value/2)
STOP mode
(Stops circuits)
Single clock mode transition figure
(fOSCH/2) IDLE2 mode (I/O operate) IDLE1 mode
(Operate only oscillator)
NORMAL mode (fOSCH /gear value/2)
STOP mode
(Stops circuits)
IDLE2 mode (I/O operate) IDLE1 mode
(Operate only oscillator)
SLOW mode (fs/2) Dual clock mode transition figure
Figure TMP91CW60 Clock Operating Mode
Note: clock frequency input from pins called fOSCH clock frequency input from pins called clock frequency selected SYSCR1<SYSCK> called fFPH. system clock fSYSis defined divided clock fFPH, cycle fSYS regret state.
Page
2007-12-03
TMP91CW60 2.3.1 Block Diagram System Clock
SYSCR0<WUEF> SYSCR2<WUPTM1:0> Warm-up timer (for high/low frequency oscillator) SYSCR0 <PRCK1> fc/16 fFPH
SYSCR0 <XTEN, RXTEN>
Lowfrequency oscillator
fFPH fc/2 fc/4 fc/8
fc/16
fSYS
SYSCR0 <XEN, RXEN>
Highfrequency oscillator
SYSCR1<SYSCK>
SYSCR1<GEAR2:0>
fOSCH
fSYS TMRA01 TMRA45 Prescaler
TMRB0 toTMRB4 Prescaler port SIO0 SIO2 Prescaler
SBI0 SBI1 Prescaler
Binary counter
SYSCR2<SCOSEL>
Figure Block Diagram System Clock
Page
2007-12-03
TMP91CW60
2.3.2
Table
System Clock
Symbol Read/Write After reset XTEN RXEN RXTEN Warm-up timer control Write: Don't care Write: Start warmup Read: warmup Read: warm-up GEAR2 RSYSCK WUEF PRCK1
SYSCR0 (00E0H) Function
Highfrequency oscillator 0:Stop 1:Oscillation
Lowfrequency oscillator 0:Stop 1:Oscillation
Highfrequency oscillator (fc) after release STOP mode 0:Stop 1:Oscillation
Lowfrequency oscillator (fs) after release STOP mode 0:Stop 1:Oscillation
Selects clock after release STOP mode 0:fc 1:fs
Select prescaler clock 0:fFPH 1:fc/16
Symbol Read/Write After reset
SYSCK
GEAR1
GEAR0
SYSCR1 (00E1H) Function
Select system clock
Select gear value high frequency (fc) 000:fc 001:fc/2 010:fc/4 011:fc/8 100:fc/16 101:reserved 110:reserved 111:reserved HALTM0
Symbol Read/Write After reset SYSCR2 (00E2H) Function
SCOSEL
WUPTM1
WUPTM0
HALTM1
DRVE state control STOP mode Remains state before HALT
Select SCOUT 0:fs 1:fSYS
Select warm-up time oscillator 00:218/inputted frequency 01:28/inputted frequency 10:214/inputted frequency 11:216/inputted frequency
HALT mode 00:reserved 01:STOP mode 10:IDLE1 mode 11:IDLE2 mode
Note Don't care Note SYSCR0<bit0>,SYSCR1<bit 7:4>,SYSCR2<bit7,bit1> read undefined value. Note serial channels SIO0, SIO1 SIO2, baud rate generator unavailable input clock interface clock serial transfer prescaler clock fc/16 when SYSCR0<PRCK1> "1".
Page
2007-12-03
TMP91CW60
2.3.3
System Clock Controller
system clock controller generates system clock signal (fSYS) core internal I/O.It contains oscillation circuits clock gear circuit high-frequency (fc) operation. register SYSCR1<SYSCK> changes system clock either SYSCR0<XEN> SYSCR0<XTEN> control enabling disabling each oscillator, SYSCR1<GEAR2:0> sets high-frequency clock gear either (fc, fc/2, fc/4, fc/8 fc/16). These functions reduce power consumption equipment which device installed. combination settings <XEN> "1", <XTEN> "0", <SYSCK> <GEAR2:0> "000" will cause system clock (fSYS) fc/2 (=fc 1/2) after Reset. example, fSYS when oscillator connected pins. Switching from NORMAL mode SLOW mode When resonator connected pins, pins, warm-up timer used change operation frequency after stable oscillation been attained. warm-up time selected using SYSCR2<WUPTM1:0>. This warm-up timer programmed start stop shown following examples Table shows warm-up time.
Note When using oscillator (other than resonator) with stable oscillation, warm-up timer needed. Note warm-up timer operated oscillation clock. Hence, there some variation warm-up time. Note Note using low-frequency oscillator When connect low-frequency oscillator ports need below setting consumption power. (Case resonators) P9CR<P96C, P97C> "11", P9<P96:97> "00" (Case oscillator) P9CR<P96C, P97C> "11", P9<P96:97> "10"
Table Warm-up Times (when changing clock)
Select Warm-up Time SYSCR2<WUPTM1:0> 01(28/frequency) 10(214/frequency) 11(216/frequency) 00(218/frequency) Change NORMAL (fc) 12.8[us] 0.819[ms] 3.277[ms] 13.107[ms] Change SLOW (fs) 7.8[ms] 500[ms] 2000[ms] 8000[ms]
Note: fOSCH=20MHzfs=32.768kHz
Page
2007-12-03
TMP91CW60
Example Changing from high frequency (fc) frequency (fs). SYSCR0 SYSCR1 SYSCR2 WUP: 00E0H 00E1H 00E2H (SYSCR2),X-11-X-B 6,(SYSCR0) 2,(SYSCR0) 2,(SYSCR0) NZ,WUP 3,(SYSCR1) 7,(SYSCR0)
Detects stopping warm-up timer. Sets warm-up time 216/fs. Enables low-frequency oscillation. Clears starts warm-up timer.
Changes fSYS from Disables high-frequency oscillation.
Note: Don't care, -:No change
<XEN> pins <XTEN> pins
Counts fSYS
Counts
<SYSCK> fSYS
Figure Changing from high frequency (fc) frequency (fs)
Page
2007-12-03
TMP91CW60
Example Changing from frequency (fs) high frequency (fc).
SYSCR0 SYSCR1 SYSCR2 WUP: 00E0H 00E1H 00E2H (SYSCR2),X-10-X-B 7,(SYSCR0) 2,(SYSCR0) 2,(SYSCR0) NZ,WUP 3,(SYSCR1) 6,(SYSCR0) Detects stopping warm-up timer. Changes fSYS from Disables low-frequency oscillation. Sets warm-up time 214/fc. Enables high-frequency oscillation. Clears starts warm-up timer.
Note: Don't care, -:No change
<XEN> pins <XTEN> pin2 Counts fSYS
Counts
<SYSCK> fSYS
Figure Changing from frequency (fs) high frequency (fc)
Clock gear controller When high-frequency clock selected setting SYSCR1<SYSCK> "0", fFPH according contents clock gear select register SYSCR1<GEAR2:0> either fc/2, fc/4, fc/8 fc/16. Using clock gear select lower value fFPH reduces power consumption. Below show example changing clock gear.
Page
2007-12-03
TMP91CW60
Example Changing clock gear SYSCR1 X:Don't care (Clock gear changing) change clock gear, write register value SYSCR1<GEAR2:0> register. necessary warm-up time until changing after writing register value. There possibility that instruction next clock gear changing instruction executed clock gear before changing. execute instruction next clock gear switching instruction clock gear after changing, input dummy instruction follows (instruction execute write cycle). 00E1H (SYSCR1),XXXX0000B
Changes fSYS fc/2.
SYSCR1
00E1H (SYSCR1),XXXX0000B (DUMMY),00H Changes fSYS fc/2. Dummy instruction
Instruction executed after clock gear changed.
(3)Internal clock output fSYS internal clock driven from P40/SCOUT pin. P40/SCOUT configured SCOUT (System clock output) programming port registers follows: P4CR<P40C> P4FC<P40F> "1". output clock selected through SYSCR2<SCOSEL> bit. Table shows states each clocking mode when P40/SCOUT configured SCOUT. Table SCOUT Output States
HALT mode NORMAL SLOW IDLE2 <SCOSEL>="0" <SCOSEL>="1" clock driven out. fSYS clock driven out. IDLE1 STOP HOLD either
2.3.4
Prescaler Clock Controller
internal (TMRA01 TMRA45, TMRB0 TMRB4, SIO0 SIO2, SBI0, SBI1) there prescaler which divide clock. clock input prescaler either clock fFPH divided clock fc/16 divided setting SYSCR0<PRCK1> register determines which clock signal input.
Page
2007-12-03
TMP91CW60
2.3.5
Runaway provision with protection register
(Purpose) Provision runaway program noise mixing. Write operation specified prohibited that provision program runaway prevents that state which fetch impossibility stopping clock, memory control register (CS/WAIT controller) changed.
Specified list
CS/WAIT controller B0CS, B1CS, B2CS, B3CS, BEXCS, MSAR0, MSAR1, MSAR2, MSAR3, MAMR0, MAMR1, MAMR2, MAMR3 Clock gear (write enable only EMCCR1) SYSCR0, SYSCR1, SYSCR2
(Block diagram)
EMCCR0<PROTECT>
Write signal
(Setting method) writing except "1FH" code EMCCR1 register, become protect this operation, write operation specified disabling. writing "1FH" EMCCR1 register, become protect OFF. State protect confirm reading EMCCR0<PROTECT>. Table EMCCR
Symbol Read/Write EMCCR0 (00E3H) After reset PROTECT Protect flag
Function
Write "0".
Write "1".
Write "0".
Write "0".
Write "0".
Write "1".
Write "1".
Symbol EMCCR1 (00E4H) Read/Write After reset Function Protect writing "1FH". Protect writing except "1FH".
Page
2007-12-03
TMP91CW60
2.3.6
Standby Controller
(1)HALT modes When HALT instruction executed, operating mode switches IDLE2, IDLE1 STOP mode, depending contents SYSCR2<HALTM1:0> register. subsequent actions performed each mode follows: IDLE2: Only halts. internal available select operation during IDLE2 mode setting following register. Shows registers setting operation during IDLE2 mode. Table Setting Operation during IDLE2 Mode
Internal TMRA01 TMRA23 TMRA45 TMRB0 TMRB1 TMRB2 TMRB3 TMRB4 TA01RUN<I2TA01> TA23RUN<I2TA23> TA45RUN<I2TA45> TB0RUN<I2TB0> TB1RUN<I2TB1> TB2RUN<I2TB2> TB3RUN<I2TB3> TB4RUN<I2TB4> Internal SIO0 SIO1 SIO2 SBI0 SBI1 SC0MOD1<I2S0> SC1MOD1<I2S1> SC2MOD1<I2S2> SBI0BR<I2SBI0> SBI1BR<I2SBI1> ADCCR2<I2AD> WDMOD<I2WDT>
IDLE1: Only oscillator (Real time clock) continue operate. STOP: internal circuits stop operating. operation each different HALT modes described Table 2-6. Table Operation during HALT Modes
HALT mode SYSCR2<HALTM1:0> port TMRA,TMRB Block SIO,SBI Available select operation block Operate enable IDLE2 IDLE1 STOP
Stop
Keep state when HALT instruction executed.
Table
Stop
Interrupt controller Operate
Page
2007-12-03
TMP91CW60
(2)How release HALT mode These halt states released resetting requesting interrupt. halt release sources determined combination between states interrupt mask register <IFF2:0> HALT modes. details releasing halt status shown Table 2-7. Released requesting interrupt operating released from HALT mode depends interrupt enabled status. When interrupt request level before executing HALT instruction exceeds value interrupt mask register, interrupt source processed after releasing HALT mode, status executing instruction that follows HALT instruction. When interrupt request level before executing HALT instruction less than value interrupt mask register, releasing HALT mode executed. non-maskable interrupts, interrupt processing processed after releasing HALT mode regardless value mask register.) However only INT0 interrupts, even interrupt request level before executing HALT instruction less than value interrupt mask register, releasing HALT mode executed. this case, interrupt processing, starts executing instruction next HALT instruction, interrupt request flag held "1".
Note:Usually, interrupts release halts status. However, interrupts (NMI, INT0, INTRTC) which release HALT mode able they input during period shifting HALT mode (for about clocks fFPH) with IDLE1 STOP mode (IDLE2 applicable this case). this case, interrupt request kept hold internally.) another interrupt generated after shifted HALT mode completely, halt status released without difficulty. priority this interrupt compared with that interrupt kept hold internally, interrupt with higher priority handled first followed other interrupt.
Releasing resetting Releasing halt status executed resetting. When STOP mode released RESET, necessary enough resetting time (See Table 2-6)to operation oscillator stable. When releasing HALT mode resetting, internal data keeps state before "HALT" instruction executed. However other settings contents initialized. (Releasing interrupts keeps state before "HALT" instruction executed.)
Page
2007-12-03
TMP91CW60
Table Source Halt State Clearance Halt Clearance Operation
Status Received Interrupt
Interrupt Enable (Interrupt level) IDLE2
(Interrupt mask)
STOP
Interrupt Disable (Interrupt level) (Interrupt mask) IDLE2 IDLE1 STOP
HALT mode
INTWDT INT0(Note INTRTC
IDLE1
(Note
RESET
Source Halt state clearance
Interrupt
INT1-INT10 INTTA0-INTTA5 INTTB00-40,INTTB01-41 INTTB0F0-4 INTRX0-INTRX2,TX0-TX2 INTSBI0-1 INTAD
Initialize
:After clearing HALT mode, starts interrupt processing. :After clearing HALT mode, resumes executing starting from instruction following HALT instruction. (Interrupt routine don't execute.) used release HALT mode. :The priority level (Interrupt request level) non-maskable interrupts fixed highest priority level. There this combination type. *1:Releasing HALT mode executed after passing warm-up time.
Note When HALT mode cleared INT0 interrupt level mode interrupt enabled status, hold high level until starting interrupt process. level before interrupt process stared, interrupt process started correctly. Note using external interrupt INT1 INT10 IDLE2 mode, 16-bit timer register TB0RUN<I2TB0>, TB1RUN<I2TB1>, TB2RUN<I2TB2>, TB3RUN<I2TB3>, TB4RUN<I2TB4> "1".
Page
2007-12-03
TMP91CW60
Example:Clearing halt state INT0 interrupt clears halt state when device IDLE1 mode.
8203H 8206H 8209H 820BH 820EH INT0
HALT
(IIMC), (INTE0AD), (SYSCR2),
Selects INT0 interrupt rising edge. Sets INT0 interrupt level Sets interrupt level Sets HALT mode IDLE1 mode. Halts CPU. INT0 interrupt routine RETI
820FH
(3)Operation IDLE2 mode IDLE2 mode only specific internal operations, designated IDLE2 setting register, take place. Instruction execution stops. Figure illustrates example timing clearance IDLE2 mode halt state interrupt.
A0~A23 AD0~AD15
Address Data Address Address Data
IDLE2
Figure Timing Chart IDLE2 Mode Halt State Cleared Interrupt
Page
2007-12-03
TMP91CW60
IDLE1 mode IDLE1 mode, only internal oscillator continue operate. system clock stops. halt state, interrupt request sampled asynchronously with system clock; however, clearance Halt state (e.g., restart operation) synchronous with Figure illustrates timing clearance IDLE1 mode halt state interrupt.
A0A23 AD0AD15
Address Data Address Data
IDLE1 mode
Figure Timing Chart IDLE1 Mode Halt State Cleared Interrupt
Page
2007-12-03
TMP91CW60
STOP mode When STOP mode selected, internal circuits stop, including internal oscillator. status STOP mode depends settings SYSCR2<DRVE> register. Table summarizes state these pins STOP mode. After STOP mode been cleared, system clock output starts when warm-up time elapsed, order allow oscillation stabilize. After STOP mode been cleared, either NORMAL mode SLOW mode selected using SYSCR0<RSYSCK> register. Therefore, <RSYSCK>, <RXEN> <RXTEN> must set. sample warm-up times Table 2-8. Figure illustrates timing clearance STOP mode halt state interrupt.
A0A23 AD0AD15
Address Data Address Data
STOP
Figure Timing Chart STOP Mode Halt State Cleared Interrupt
Table Sample Warm-up Times after Clearance STOP Mode SYSCR0 <RSYSCK> 0(fc) 1(fs) SYSCR2<WUPTM1:0> 01(28) 12.8us 7.8ms 10(214) 0.819ms 500ms 11(216) 3.277ms 2000ms 00(218) 13.107ms 8000ms
Note: fOSCH=20MHz, fs=32.768kHz
Page
2007-12-03
TMP91CW60
Example: "The STOP mode entered when low-frequency operates, high-frequency operates after releasing NMI.
SYSCR0 SYSCR1 SYSCR2 8FFDH 9000H 9002H 9005H
HALT
00E0H 00E1H 00E2H (SYSCR1), (SYSCR2), X-1001X1B (SYSCR0), 011000
fSYS fs/2 214/fOSCH
9006H
change
RETI
Note:When different modes used before after STOP mode above mentioned, there possible release HALT mode without changing operation mode acceptance halt release interrupt request during execution "HALT" instruction (during state). system which accepts interrupts during execution "HALT" instruction, same operation mode before after STOP mode.
Page
2007-12-03
TMP91CW60
Table Input/output Buffer State Table Port Name
P00-07
Input Output
input mode output mode AD0-AD7 input mode output mode AD8-AD15 input mode output mode,A0-A7/A16-A23 output input mode output mode input mode output mode input mode output mode input mode output mode analog input input mode output mode analog input input mode output mode input mode output mode input mode output mode input mode output mode input mode output mode input mode output mode input input input input output
<DRVE>=0
input input input input level output
<DRVE>=1
output output output output output output output output output input output input output output output output output input input input level output
P10-17
P20-27 PZ0(RD),PZ1(WR) PZ2(HWR),PZ3(R/W)
P30-33
P40-44
P50-57
P60-67
P70-74
P80-87
P90-97
PA0-A3
PB0-B3 RESET AM0,AM1
Input input mode input pins invalid; output mode output high impedance.
input: Input gate operation. input voltage that input stays constant. output: Output state PU*: Programmable pull-up pin. Input gate disable state. through current even high impedance.
Page
2007-12-03
TMP91CW60
Interrupts
Interrupts controlled interrupt mask register SR<IFF2:0> built-in interrupt controller. TMP91CW60 total interrupts divided into following three types:
Interrupts generated CPU: sources (Software interrupts, illegal instruction interrupt) Interrupts external pins (NMI, INT0 INT10): sources Internal interrupts: sources
(fixed) individual interrupt vector number assigned each interrupt. (Variable) priority level assigned each maskable interrupt. priority level non-maskable interrupts fixed highest level. When interrupt generated, interrupt controller sends priority that interrupt CPU. multiple interrupts generated simultaneously, interrupt controller sends interrupt with highest priority CPU. (The highest priority level using non-maskable interrupts.) compares priority level interrupt with value interrupt mask register <IFF2:0>. priority level interrupt higher than value interrupt mask register, accepts interrupt. interrupt mask register <IFF2:0> value updated using value instruction ("EI num" sets <IFF2:0> data num). example, specifying "EI3" enables maskable interrupts which priority level interrupt controller higher, also non-maskable interrupts. Operationally, instruction (<IFF2:0> "7") identical "EI7" instruction. instruction used disable maskable interrupts because priority level maskable interrupts instruction valid immediately after execution. addition above general-purpose interrupt processing mode, TLCS-900/L1 micro interrupt processing mode well. transfer data (1/2/4 bytes) automatically micro mode, therefore this mode used speed-up interrupt processing, such transferring data internal external peripheral Moreover, TMP91CW60 software start function micro processing request software hardware interrupt. Figure shows overall interrupt processing flow.
Page
2007-12-03
TMP91CW60
Interrupt processing
Interrupt specified micro start vector?
Micro soft start request
Clear interrupt request flag
Interrupt vector value read Interrupt request clear
General-purpose interrupt processing
Data transfer micro
PUSH PUSH SR<IFF2:0> INTNEST
Level accepted interrupt INTNEST
Count
Count
Micro processing
(FFFF00H
Count
Clear vector register generating micro transfer interrupt (INTTC0 INTTC3)
Interrupt processing program
RETI instruction INTNEST INTNEST
Figure Overall Interrupt Processing Flow
Page
2007-12-03
TMP91CW60
General-purpose Interrupt Processing
When accepts interrupt, usually performs following sequence operations. That also same TLCS-900/L TLCS-900/H. reads interrupt vector from interrupt controller. same level interrupts occur simultaneously, interrupt controller generates interrupt vector accordance with default priority clears interrupt request. (The default priority already fixed each interrupt. smaller vector value higher priority level.) pushes value program counter (PC) status register (SR) onto stack area (Indicated XSP). sets value which priority level accepted interrupt plus (+1) interrupt mask register <IFF2:0>. However, priority level accepted interrupt register's value increases interrupt nesting counter INTNEST (+1). jumps address indicated data address "FFFF00H Interrupt vector" starts interrupt processing routine. above processing time states (1.8 MHz) best case (16-bit data width waits). When completed interrupt processing, RETI instruction return main routine. RETI restores contents program counter (PC) status register (SR) from stack decreases interrupt nesting counter INTNEST (-1). Non-maskable interrupts cannot disabled user program. Maskable interrupts, however, enabled disabled user program. program priority level each interrupt source. priority level setting will disable interrupt request.) interrupt request which priority level equal greater than value interrupt mask register <IFF2:0> comes out, accepts interrupt. Then, interrupt mask register <IFF2:0> value priority level accepted interrupt plus (+1). Therefore, interrupt generated with higher level than current interrupt during processing, accepts later interrupt goes nesting status interrupt processing. Moreover, receives another interrupt request while performing said processing steps current interrupt, latest interrupt request sampled immediately after execution first instruction current interrupt processing routine. Specifying start instruction disables maskable interrupt nesting. reset initializes interrupt mask register <IFF2:0> "111", disabling maskable interrupts. Table shows TMP91CW60 interrupt vectors micro start vectors. address FFFF00H FFFFFFH (256 bytes) assigned interrupt vector area.
Page
2007-12-03
TMP91CW60
Table TMP91CW60 Interrupt Vectors Table(1/2)
Default Priority Maskable INTTA2: 8-bit timer INTTA3: 8-bit timer INTTA4: 8-bit timer INTTA5: 8-bit timer INTTB00: 16-bit timer (TB0RG0) INTTB01: 16-bit timer (TB0RG1) INTTB10: 16-bit timer (TB1RG0) INTTB11: 16-bit timer (TB1RG1) INTTB20: 16-bit timer (TB2RG0) INTTB21: 16-bit timer (TB2RG1) INTTB30: 16-bit timer (TB3RG0) INTTB31: 16-bit timer (TB3RG1) INTTB40: 16-bit timer (TB4RG0) INTTB41: 16-bit timer (TB4RG1) 005CH 0060H 0064H 0068H 006CH 0070H 0074H 0078H 007CH 0080H 0084H 0088H 008CH 0090H FFFF5CH FFFF60H FFFF64H FFFF68H FFFF6CH FFFF70H FFFF74H FFFF78H FFFF7CH FFFF80H FFFF84H FFFF88H FFFF8CH FFFF90H Nonmaskable Type Interrupt Source Source Micro Request "Reset" "SWI instruction "SWI instruction INTUNDEF: Illegal instruction "SWI instruction "SWI instruction "SWI instruction "SWI instruction "SWI instruction "SWI instruction NMI:NMI INTWD: Watchdog timer Micro (MDMA) INT0: INT0 INT1: INT1 INT2: INT2 INT3: INT3 INT4: INT4 INT5: INT5 INT6: INT6 INT7: INT7 INT8: INT8 INT9: INT9 INT10: INT10 INTTA0: 8-bit timer INTTA1: 8-bit timer Vector Value 0000H 0004H 0008H 000CH 0010H 0014H 0018H 001CH 0020H 0024H 0028H 002CH 0030H 0034H 0038H 003CH 0040H 0044H 0048H 004CH 0050H 0054H 0058H Vector Reference Address FFFF00H FFFF04H FFFF08H FFFF0CH FFFF10H FFFF14H FFFF18H FFFF1CH FFFF20H FFFF24H FFFF28H FFFF2CH FFFF30H FFFF34H FFFF38H FFFF3CH FFFF40H FFFF44H FFFF48H FFFF4CH FFFF50H FFFF54H FFFF58H Micro Start Vector
Page
2007-12-03
TMP91CW60
Table TMP91CW60 Interrupt Vectors Table(2/2)
Default Priority Maskable Type Interrupt Source Source Micro Request INTTBOF0: 16-bit timer (Over flow) INTTBOF1: 16-bit timer (Over flow) INTTBOF2: 16-bit timer (Over flow) INTTBOF3: 16-bit timer (Over flow) INTTBOF4: 16-bit timer (Over flow) INTRX0:Serial reception (Channel INTTX0:Serial transmission (Channel INTRX1:Serial reception (Channel INTTX1:Serial transmission (Channel INTRX2:Serial reception (Channel INTTX2:Serial transmission (Channel INTSBI0:Serial interface interrupt (Channel INTSBI1:Serial interface interrupt (Channel INTRTC: Interrupt special timer CLOCK INTAD: conversion INTTC0 Micro (Channel INTTC1: Micro (Channel INTTC2: Micro (Channel INTTC3: Micro (Channel (Reserved) (Reserved) Vector Value 0094H 0098H 009CH 00A0H 00A4H 00A8H 00ACH 00B0H 00B4H 00B8H 00BCH 00C0H 00C4H 00C8H 00CCH 00D0H 00D4H 00D8H 00DCH 00E0H 00FCH Vector Reference Address FFFF94H FFFF98H FFFF9CH FFFFA0H FFFFA4H FFFFA8H FFFFACH FFFFB0H FFFFB4H FFFFB8H FFFFBCH FFFFC0H FFFFC4H FFFFC8H FFFFCCH FFFFD0H FFFFD4H FFFFD8H FFFFDCH FFFFE0H FFFFFCH Micro Start Vector
Note: Micro default priority: Micro stands prior other maskable interrupt.
Page
2007-12-03
TMP91CW60
Micro Processing
addition general-purpose interrupt processing, TMP91CW60 supports micro function. Interrupt requests micro perform micro processing highest priority level (Level among maskable interrupts, regardless priority level particular interrupt source. micro channels possible continuous transmission specifying described later burst mode. micro channels possible continuous transmission specifying described later burst mode. Because micro function been implemented with cooperative operation CPU, when goes standby mode (STOP, IDLE1 IDLE2) HALT instruction, requirement micro will ignored (Pending) transfer started after release HALT.
3.2.1
Micro Operation
When interrupt request specified micro start vector register generated, micro triggers micro request interrupt priority level starts processing request spite interrupt source's level. micro ignored <IFF2:0> "7". micro channels allow micro processing types interrupts time. When micro accepted, interrupt request flip-flop assigned that channel cleared. data automatically transferred once (1/2/4 bytes) from transfer source address transfer destination address control register, transfer counter decreased (-1). decreased result "0", micro transfer interrupt (INTTC0 INTTC3) passes from interrupt controller. addition, micro start vector register DMAnV cleared next micro disabled micro processing completes. decreased result other than "0", micro processing completes does specify described later burst mode. this case, micro transfer interrupt (INTTC0 INTTC3) aren't generated. interrupt request triggered interrupt source during interval between clearing micro start vector next setting, general-purpose interrupt processing executes interrupt level set. Therefore, only using interrupt starting micro (Not using interrupts general-purpose interrupt: Level first interrupts level (Interrupt requests disabled). using micro general-purpose interrupts together, first level interrupt used start micro processing lower than other interrupt levels. (Note) this case, cause general interrupt limited edge interrupt. priority micro transfer interrupt (INTTC0 INTTC3) defined interrupt level default priority same other maskable interrupt. micro request more than channel same time, priority based interrupt priority level channel number. smaller channel number higher priority (Channel (High) Channel (Low)). While register setting transfer source/transfer destination addresses 32-bit control register, this register only effectively output 24-bit addresses. Accordingly, micro access Mbytes (The upper eight bits bits valid).
Note:If priority level micro higher than that other interrupts, operates follows. case INTxxx interrupt generated first then INTyyy interrupt generated between checking "Interrupt specified micro start vector" Figure 3-1) reading interrupt vector with setting below, vector shifts that INTyyy time. This because priority level INTyyy higher than that INTxxx. interrupt routine, reads vector INTyyy because checking micro been finished. INTyyy generated regardless transfer counter micro DMA. INTxxx: level without micro INTyyy: level with micro
Page
2007-12-03
TMP91CW60
Three micro transfer modes supported: 1-byte transfer, 2-byte (One-word) transfer, 4-byte transfer. After transfer mode, transfer source/destination addresses increased, decreased, remain unchanged. This simplifies transfer data from memory, from memory I/O, from I/O. details transfer modes, see" 3.2.4 Detailed Description Transfer Mode Register transfer counter 16-bit counter, micro processing 65536 times interrupt source. (The micro processing count maximized when transfer counter initial value 0000H.) Micro processing started interrupts shown micro start vectors Table micro soft start, making total interrupts. Figure shows word transfer micro cycle transfer destination address mode (except counter mode, same other modes). (The conditions this cycle based external 16-bit bus, waits, transfer source/transfer destination addresses both even-numberd values).
state (Note (Note
Transfer destination address
Transfer source address
Input
Output
Figure Timing Micro Cycle
States Instruction fetch cycle (Gets next address code). bytes more instruction codes inserted instruction queue buffer, this cycle becomes dummy cycle. States Micro read cycle State Dummy cycle (The address remains unchanged from state
States Micro write cycle
Note source address area 8-bit bus, increased states. source address area 16-bit address starts from number, increased states. Note destination address area 8-bit bus, increased states. destination address area 16-bit address starts from number, increased states.
Page
2007-12-03
TMP91CW60
3.2.2
Soft Start Function
addition starting micro function interrupts, TMP91CW60 includes micro software start function that starts micro generation write cycle DMAR register. Writing each DMAR register causes micro once write each bit, micro doesn't operate) transfer, corresponding DMAR register automatically cleared "0". Only one-channel once micro DMA. write plural bits.) When writing again DMAR register, check whether before writing "1". read "1", micro transfer isn't started yet. When burst specified DMAB register, data continuously transferred until value micro transfer counter after start micro DMA. execute soft start during micro transfer interrupt source, micro transfer counter doesn't change. Don't Read-modify-write instruction avoid writing other bits mistake.
Symbol
Name
Address
DMAR3
DMAR2
DMAR1
DMAR0
DMAR
Request Register
instructions prohibited.
request
3.2.3
Transfer Control Registers
transfer source address transfer destination address following registers CPU. Data setting these registers done "LDC instruction.
Channel
DMAS0 DMAD0 DMAC0 DMAM0
source address register Only bits destination address register Only bits counter register 65536 mode register
Channel
DMAS3 DMAD3 DMAC3 DMAM3
source address register destination address register counter register mode register
bits bits bits
Page
2007-12-03
TMP91CW60 3.2.4 Detailed Description Transfer Mode Register
(DMAM0 DMAM3)
Mode
Note: upper three data programmed these registers must always Execution time
Byte transfer, Word transfer, 4-byte transfer, Reserved Transfer destination address modeI/O memory (DMADn+) (DMASn) DMACn DMACn DMACn then INTTC generated Transfer destination address mode memory (DMADn-) (DMASn) DMACn DMACn DMACn then INTTC generated Transfer source address modememory (DMADn) (DMASn+) DMACn DMACn DMACn then INTTC generated Transfer source address mode memory (DMADn) (DMASn-) DMACn DMACn DMACn then INTTC generated Address fixed modeI/O (DMADn) (DMASn) DMACn DMACn DMACn then INTTC generated Counter mode counting number times interrupt generated DMASn DMASn DMACn DMACn DMACn then INTTC generated states (800 byte/word transfer states (1200 4-byte/word transfer states (800 byte/word transfer states (1200 4-byte/word transfer states (800 byte/word transfer states (1200 4-byte/word transfer states (800 byte/word transfer states (1200 4-byte/word transfer states (800 byte/word transfer states (1200 4-byte/word transfer states (500
Note corresponding micro channels DMADn+/DMASn+: Post-increment (Increment register value after transfer) DMADn-/DMASn-: Post-decrement (Decrement register value after transfer) I/Os table mean fixed address memory means increment (INC) decrement (DEC) addresses. Note Execution time under condition 16-bit width (Both transfer destination address area)/0 waits/ MHz/selected high-frequency mode Note undefined code transfer mode register except defined codes listed above table.
Page
2007-12-03
TMP91CW60
Interrupt Controller Operation
block diagram Figure shows interrupt circuits. left-hand side diagram shows interrupt controller circuit. right-hand side shows interrupt request signal circuit halt release circuit. interrupt controller there interrupt request flag (Consisting flip-flop), interrupt priority setting register micro start vector register. interrupt request flag latches interrupt requests from peripherals. flag cleared following cases: When reset occurs When reads channel vector after accepted interrupt When executing instruction that clears interrupt (Write start vector INTCLR register) When receives micro request (when micro set) When micro burst transfer terminated interrupt priority independently each interrupt source writing priority interrupt priority setting register (e.g., INTE0AD INTE56). interrupt priorities levels provided. Setting interrupt source's priority level disables interrupt requests from that source. priority non-maskable interrupts (NMI interrupts watchdog timer interrupts) fixed interrupt request with same level generated same time, default priority used determine which interrupt request accepted first. bits interrupt priority setting register indicate state interrupt request flag thus whether interrupt request given channel occurred. interrupt controller sends interrupt request vector address CPU. compares priority value <IFF2:0> status register interrupt request signal with priority value set; latter higher, interrupt accepted. Then sets value higher than priority value (+1) SR<IFF2:0>. Interrupt request where priority value equals higher than value accepted simultaneously during previous interrupt routine. When interrupt processing completed (after execution RETI instruction), restores priority value saved stack before interrupt generated SR<IFF2:0>. interrupt controller also registers channels) used store micro start vector. Writing start vector interrupt source micro processing beforehand (see Table 3-1), enables corresponding interrupt processed micro processing. values must micro parameter register (e.g., DMAS DMAD) prior micro processing.
Page
2007-12-03
Interrupt controller
Interrupt request
RESET Interrupt vector read
IFF2:0
Interrupt request signal INTRQ2 INTRQ0 Priority encoder RESET
Interrupt mask
INTWD
Decoder
Priority setting register
Dn+1 Dn+2 Interrupt level detect
INTRQ2 then IFF2
Interrupt request
Dn+3
Interrupt request signal
INT0
RESET
Interrupt vector read
Highest priority interrupt level select
Interrupt request Interrupt vector read Micro acknowledge
INT1 INT2 INT3 Interrupt vector generator
Figure Block Diagram Interrupt Controller
Page
Software start input
During IDLE1 During STOP
Halt release RESET INT0, INTRTC
Micro counter zero interrupt
INTAD INTTC0 INTTC1 INTTC2 INTTC3
Micro request then
Selector
Micro start vector setting register
Micro channel priority encoder
Micro channel specification
TMP91CW60
2007-12-03
INTTC0
DMA0V DMA1V DMA2V DMA3V
RESET
TMP91CW60 3.3.1 Interrupt Level Setting Registers
Interrupt Level Setting Registers
Symbol Name Address INTAD INTE0AD INT0 INTAD enable IADC INT2 INTE12 INT1 INT2 enable INT4 INTE34 INT3 INT4 enable INT6 INTE56 INT5 INT6 enable INT8 INTE78 INT7 INT8 enable INT10 INTE910 INT9 INT10 enable I10C I10M2 I10M1 I10M0 I9M2 INT9 I9M1 I9M0 I8M2 I8M1 I8M0 I7M2 INT7 I7M1 I7M0 I6M2 I6M1 I6M0 I5M2 INT5 I5M1 I5M0 I4M2 I4M1 I4M0 I3M2 INT3 I3M1 I3M0 I2M2 I2M1 I2M0 I1M2 INT1 I1M1 I1M0 IADM2 IADM1 IADM0 I0M2 INT0 I0M1 I0M0
INTTA1(TMRA1) INTETA01 INTTA0 INTTA1 enable ITA1C ITA1M2 ITA1M1 ITA1M0 ITA0C
INTTA0 (TMRA0) ITA0M2 ITA0M1 ITA0M0
IxxxC Interrupt request flag
IxxM2
IxxM1
IxxM0
Function (Write) Disables interrupt requests Sets interrupt priority level Sets interrupt priority level Sets interrupt priority level Sets interrupt priority level Sets interrupt priority level Sets interrupt priority level Disables interrupt requests
Page
2007-12-03
TMP91CW60
Interrupt Level Setting Registers
Symbol Name Address
INTTA3 (TMRA3) INTETA23 INTTA2 INTTA3 enable ITA3C ITA3M2 ITA3M1 ITA3M0 ITA2C
INTTA2 (TMRA2) ITA2M2 ITA2M1 ITA2M0
INTTA5 (TMRA5) INTETA45 INTTA4 INTTA5 enable ITA5C ITA5M2 ITA5M1 ITA5M0 ITA4C
INTTA4 (TMRA4) ITA4M2 ITA4M1 ITA4M0
INTTB01(TMRB0) INTETB0 Interrupt enable TMRB0 ITB01C ITB01M2 ITB01M1 ITB01M0 ITB00C
INTTB00(TMRB0) ITB00M2 ITB00M1 ITB00M0
INTTB11(TMRB1) INTETB1 Interrupt enable TMRB1 ITB11C ITB11M2 ITB11M1 ITB11M0 ITB10C
INTTB10(TMRB1) ITB10M2 ITB10M1 ITB10M0
INTTB21(TMRB2) INTETB2 Interrupt enable TMRB2 ITB21C ITB21M2 ITB21M1 ITB21M0 ITB20C
INTTB20(TMRB2) ITB20M2 ITB20M1 ITB20M0
INTTB31(TMRB3) INTETB3 Interrupt enable TMRB3 ITB31C ITB31M2 ITB31M1 ITB31M0 ITB30C
INTTB30(TMRB3) ITB30M2 ITB30M1 ITB30M0
INTTB41(TMRB4) INTETB4 Interrupt enable TMRB4 ITB41C Interrupt enable TMRB0/1 (Over flow) ITB41M2 ITB41M1 ITB41M0 ITB40C
INTTB40(TMRB4) ITB40M2 ITB40M1 ITB40M0
INTTBOF1(TMRB1 Over flow) ITF1C ITF1M2 ITF1M1 ITF1M0 ITF0C INTETB01V
INTTBOF0(TMRB0 Over flow) ITF0M2 ITF0M1 ITF0M0
IxxxC Interrupt request flag
IxxM2
IxxM1
IxxM0
Function (Write) Disables interrupt requests Sets interrupt priority level Sets interrupt priority level Sets interrupt priority level Sets interrupt priority level Sets interrupt priority level Sets interrupt priority level Disables interrupt requests
Page
2007-12-03
TMP91CW60
Interrupt Level Setting Registers
Symbol Name Interrupt enable TMRB2/3 (Over flow) Address
INTTBOF3(TMRB3 Over flow) ITF3C Interrupt enable TMRB4/ INTRTC INTRTC IRTCC INTTX0 INTES0 INTRX0 INTTX0 enable ITX0C INTTX1 INTES1 INTRX1 INTTX1 enable ITX1C INTTX2 INTES2 INTRX2 INTTX2 enable ITX2C INTSBI1 INTESBI01 INTSBI0 INTSBI1 enable ISBI1C INTTC1 INTETC01 INTTC0 INTTC1 enable ITC1C INTTC3 INTETC23 INTTC2 INTTC3 enable ITC3C ITC3M2 ITC3M1 ITC3M0 ITC2C ITC1M2 ITC1M1 ITC1M0 ITC0C ISBI1M2 ISBI1M1 ISBI1M0 ISBI0C ITX2M2 ITX2M1 ITX2M0 IRX2C ITX1M2 ITX1M1 ITX1M0 IRX1C ITX0M2 ITX0M1 ITX0M0 IRX0C IRTCM2 IRTCM1 IRTCM0 ITF4C INTETB4VRTC ITF3M2 ITF3M1 ITF3M0 ITF2C INTETB23V
INTTBOF2(TMRB2 Over flow) ITF2M2 ITF2M1 ITF2M0
INTTBOF4(TMRB4 Over flow) ITF4M2 ITF4M1 INTRX0 IRX0M2 IRX0M1 INTRX1 IRX1M2 IRX1M1 INTRX2 IRX2M2 IRX2M1 INTSBI0 ISBI0M2 ISBI0M1 INTTC0 ITC0M2 ITC0M1 INTTC2 ITC2M2 ITC2M1 ITC2M0 ITC0M0 ISBI0M0 IRX2M0 IRX1M0 IRX0M0 ITF4M0
IxxxC Interrupt request flag
IxxM2
IxxM1
IxxM0
Function (Write) Disables interrupt requests Sets interrupt priority level Sets interrupt priority level Sets interrupt priority level Sets interrupt priority level Sets interrupt priority level Sets interrupt priority level Disables interrupt requests
Page
2007-12-03
TMP91CW60 3.3.2 External Interrupt Control
External Interrupt Control Register (IIMC)
Symbol Name Address Interrupt input mode control instructions prohibited. 1:Operates even rising/ falling edge I0EDGE I0LE NMIREE
IIMC
Always write "0".
INT0 EDGE Rising Falling
INT0 mode Edge Level
INT0 setting
P7FC<P75F> <IOLE> <IOEDGE> INT0 Rising edge interruption Falling edge interruption level level
rising edge enable request generation falling edge request generation rising/falling edge
3.3.3
Interrupt Request Flag Clear Register
interrupt request flag cleared writing appropriate micro start vector, given Table register INTCLR. example, clear interrupt flag INT0, perform following register operation after execution instruction. INTCLR 0AH: Clears interrupt request flag INT0.
Interrupt Request Flag Clear Register (INTCLR)
Symbol Name Address Interrupt Clear Control instructions prohibited. CLRV5 CLRV4 CLRV3 CLRV2 CLRV1 CLRV0
INTCLR
Interrupt vector
Page
2007-12-03
TMP91CW60
3.3.4
Micro Start Vector Registers
This register assigns micro processing which interrupt source. interrupt source with micro start vector that matches vector this register assigned micro start source. When micro transfer counter value reaches micro transfer interrupt corresponding channel sent interrupt controller, micro start vector register cleared, micro start source channel cleared. Therefore, continue micro processing, micro start vector register again during processing micro transfer interrupt. same vector micro start vector registers more than channel, channel with lowest number higher priority. Accordingly, same vector micro start vector registers channels, interrupt generated channel with lower number executed until micro transfer complete. micro start vector this channel again, next micro started channel with higher number. (Micro chaining)
Micro Start Vector Registers (DMAnV)
Symbol Name Address DMA0 Start Vector DMA0V5 DMA0V4 DMA0V3 DMA0V2 DMA0V1 DMA0V0
DMA0V
DMA0 start vector DMA1 Start Vector DMA1V5 DMA1V4 DMA1V3 DMA1V2 DMA1V1 DMA1V0
DMA1V
DMA1 start vector DMA2 Start Vector DMA2V5 DMA2V4 DMA2V3 DMA2V2 DMA2V1 DMA2V0
DMA2V
DMA2 start vector DMA3 Start Vector DMA3V5 DMA3V4 DMA3V3 DMA3V2 DMA3V1 DMA3V0
DMA3V
DMA3 start vector
Page
2007-12-03
TMP91CW60
3.3.5
Micro Burst Specification
Specifying micro burst continues micro transfer until transfer counter register reaches after micro start. Setting which corresponds micro channel DMAB registers mentioned below specifies burst. other interrupts (maskable/nonmaskable concerned) generated during burst transfer, interrupt executed after completed burst transfer.
Micro Burst Request Registers (DMAR)
Symbol Name Address Software Request Register instructions prohibited. DMAR3 DMAR2 DMAR1 DMAR0
DMAR
software request DMAB3 DMAB2 DMAB1 DMAB0
DMAB
Burst Register
burst request
Page
2007-12-03
TMP91CW60
3.3.6
Attention Point
instruction execution unit interface unit this operate independently. Therefore, immediately before interrupt generated, fetches instruction that clears corresponding interrupt request flag, execute instruction that clears interrupt request flag (Note) between accepting reading interrupt vector. this case, reads default vector 0008H reads interrupt vector address FFFF08H. avoid above problem, place instructions that clear interrupt request flags after instruction. case setting interrupt enable again instruction after execution clearing instruction, execute instruction after clearing more than 1-instructions (ex. "NOP" times). executed instruction without waiting instruction after execution clearing instruction, interrupt will enable before request flag cleared. case changing value interrupt mask register <IFF2:0> execution instruction, disable interrupt instruction before execution instruction. addition, take care following circuits exceptional demand special attention.
level mode INT0 edge-triggered interrupt. Hence, level mode interrupt request flip-flop INT0 does function. peripheral interrupt request passes through input flip-flop becomes output. interrupt input mode changed from edge mode level mode, interrupt request flag cleared automatically. enters interrupt response sequence result INT0 going from INT0 must then held until interrupt response sequence been completed. INT0 level mode release halt state, INT0 must held from time INT0 changes from until halt state released. (Hence, necessary ensure that input noise interpreted causing INT0 revert before halt state been released.) When mode changes from level mode edge mode, interrupt request flags which were level mode will cleared. Interrupt request flags must cleared using following sequence. (IIMC), Switches interrupt input mode from level mode edge mode. (INTCLR), Clears interrupt request flag. Wait instruction interrupt request flip-flop only cleared reset reading serial channel receive buffer. cannot cleared writing INTCLR register.
INT0 level mode
INTRXn
Note: following instructions input state changes equivalent instructions that clear interrupt request flag. INT0: Instructions which switch level mode after interrupt request been generated edge mode. input change from high after interrupt request been generated level mode. INTRXn: Instruction which reads receive buffer.
Page
2007-12-03
TMP91CW60
Port Function
TMP91CW60 features settings which relate various ports. well general-purpose port functionality, port pins also have functions which relate built-in internal I/Os. Table lists functions each port pin. Table lists functions each port pin. Table lists registers their specifications. Table Port Functions with programmable pull-up resistor) (1/2)
Port Names Port0 Port1 Port2 Names P20P27 Port3 Port4 Port5 Port6 Number Pins Direction Direction Setting Unit Names Built-in Functions AD15/A8 A23/A0 TB3IN0, INT3, SDA0 TB3IN1, INT4, SCL0 WAIT, TB3OUT0 TB3OUT1 CS0, SCOUT CS1, TXD2 RXD2 CS3, SCLK2, CTS2 AN10 AN11 AN12 AN13 AN14 AN15
Page
2007-12-03
TMP91CW60
Table Port Functions with programmable pull-up resistor) (2/2)
Port Names Names Port7 Port8 Port9 PortA PortB PortZ Output Output Number Pins Direction Direction Setting Unit Names Built-in Functions TA0IN TA1OUT TA3OUT TA4IN TA5OUT INT0 TB0IN0, INT5 TB0IN1, INT6 TB0OUT0 TB0OUT1 TB1IN0, INT7 TB1IN1, INT8 TB1OUT0 TB1OUT1 TXD0 RXD0 SCLK0, CTS0 TXD1 RXD1 SCLK1, CTS1 TB2IN0, INT1 TB2IN1, INT2 TB2OUT0 TB2OUT1 TB4IN0, INT9, SDA1 TB4IN1, INT10, SCL1 TB4OUT0 TB4OUT1
Page
2007-12-03
TMP91CW60
Table
Ports
Port Setting List(1/4)
Register Setting Values Names Specifications Input port PnCR None None None PnFC PnFC2
Port0
Output port bus#1 Input port Output port
None None None None None None None None
Port1
AD15 output Input port Output port
Port2
output output Input port Output port (CMOS output) Output port (open drain output) Input port Output port TB3IN0 Input, INT3 Input SDA0 input/output (CMOS output) SDA0 input/output (open drain output)#2 TB3IN1 Input, INT4 Input SCL0 input/output (CMOS output) SCL0 input/output (open drain output)#2 WAIT output TB3OUT0 output TB3OUT1 output
Port3
Page
2007-12-03
TMP91CW60
Table
Ports
Port Setting List(2/4)
Register Setting Values Names Specifications Input port (without pull P40, Input port (with pull Output port Input port (without pull P42, Input port (with pull Output port Input port (without pull Input port (with pull Output port (CMOS output) Output port (open drain output) output PnCR PnFC None None None None None None None None None None None None None None None None PnFC2 None
Port4
SCOUT output output (CMOS output) output (open drain output) TXD2 output (CMOS output) TXD2 output (open drain output)#2 output RXD2 Input output SCLK2 Input SCLK2 output CTS2 Input output Input port
Port5
Output port Input Input port
Port6
Output port AN15 Input Input port
Output port Port7 TA3OUT output TA4IN Input TA5OUT output INT0 Input TA0IN Input TA1OUT output
Page
2007-12-03
TMP91CW60
Table
Ports
Port Setting List(3/4)
Register Setting Values Names Specifications Input port Output port TB0IN0, INT5 Input TB0IN1, INT6 Input TB0OUT0 output TB0OUT1 output TB1IN0, INT7 Input TB1IN1, INT8 Input TB1OUT0 output TB1OUT1 output Input port Output port Input port P90, Output port (CMOS output) Output port (open drain output) TXD0 output (CMOS output) TXD0 output (open drain output)#2 RXD0 Input SCLK0 Input SCLK0 output CTS0 Input TXD1 output (CMOS output) TXD1 output (open drain output)#2 RXD1 Input SCLK1 Input SCLK1 output CTS1 Input Input port Output port Input port Output port TB2IN0 Input, INT1 Input TB2IN1 Input, INT2 Input TB2OUT0 TB2OUT1 PnCR PnFC None None None None None None None None None None None None PnFC2
Port8 P92,
None
Port9
PortA
Page
2007-12-03
TMP91CW60
Table
Ports
Port Setting List(4/4)
Register Setting Values Names Specifications Input port Output port (CMOS output) Output port (open drain output) Input port Output port TB4IN0 Input, INT9 Input PnCR PnFC None None None None None Input port (without pull Input port (with pull Output port output output None None None PnFC2
PortB
SDA1 input/output (CMOS output) SDA1 input/output (open drain output) TB4IN1 Input, INT10 Input
SCL1 input/output (CMOS output) SCL1 input/output (open drain output)#2
TB4OUT0 output TB4OUT1 output Output port
output only when accessing external Always output Output port
output only when accessing external PortZ
There port setting changing AD7. When accessing external area, changes automatically. using P30/P31/P41/P90/P93/PB0/PB1 open-drain output output, please ODE. using P57,P60 analog input, please ADCCR1<SAIN3:0>. using XT1-XT2, please SYSCR0.
Note:
care
Page
2007-12-03
TMP91CW60
Port (P00 P07)
Port 8-bit general-purpose port. Each individually input output using control register P0CR. Reset operation initializes bits control register P0CR sets port input port. addition functioning general-purpose port, port also function address data (AD0 AD7). When accessing external area, port functions address data (AD0 AD7) automatically, P0CR cleared "0".
Reset
Direction control basis)
Internal data
P0CR write Port (AD0 AD7) Output buffer write read
Figure Port
Port Register
symbol (0000H) Read/Write After reset Data from external port (Output latch register undefined.)
Port Control Register
(Read-modify-write instructions prohibited.) P06C P05C P04C P03C P02C P01C P00C
symbol P0CR (0002H) Read/Write After reset Function
P07C
Input Output (When access external, become this register cleared "0".)
access
P0xC
function input port output port
function input port output port
function input port output port
function input port output port
function input port output port
function input port output port
function input port output port
function input port output port
internal external cleared
Note: <P0xC> each register P0CR.
Page
2007-12-03
TMP91CW60
Port (P10 P17)
Port 8-bit general-purpose port. Each individually input output using control register P1CR function register P1FC. Reset operation initializes bits output latch control register P1CR function register P1FC sets port input port. addition functioning general-purpose port, port also function address data (AD8 AD15) address A15).
Reset
Direction control basis)
P1CR write
Function control basis)
Internal data
P1FC write
(AD8 AD15/A8 A15) write read
Figure Port
Page
2007-12-03
TMP91CW60
Port Register
(0001H) symbol Read/Write After reset Data from external port (Output latch register cleared "0".)
Port Control Register (Read-modify-write instructions prohibited.)
symbol P1CR (0004H) Read/Write After reset Function P17C P16C P15C P14C P13C P12C P11C P10C
<<Refer column P1FC>>
Port Function Register (Read-modify-write instructions prohibited.)
symbol P1FC (0005H) Read/Write After reset Function P17F P16F P15F P14F P13F P12F P11F P10F
P1FC/P1CR Input, Output, AD15 AD8,
P1xF
P1xC
function input port output port AD15
function input port output port AD14
function input port output port AD13
function input port output port AD12
function input port output port AD11
function input port output port AD10
function input port output port
function input port output port
Note:<P1XF>/<P1XC> each register P1FC/P1CR.
Page
2007-12-03
TMP91CW60
Port (P20 P27)
Port 8-bit general-purpose port. Each individually input output using control register P2CR function register P2FC. Reset operation initializes bits output latch "1", control register P2CR function register P2FC "0", sets port input port. addition functioning general-purpose port, port also function address address (A16 A23).
Direction control basis) P2CR Function control basis) P2FC Selector P20~P27 (A0~A7/A16~A23)
Internal data
Selector
Figure Port
Page
2007-12-03
TMP91CW60
Port Register
(0006H) symbol Read/Write After reset Data from external port (Output latch register "1".)
Port Control Register (Read-modify-write instructions prohibited.)
symbol P2CR (0008H) Read/Write After reset Function P27C P26C P25C P24C P23C P22C P21C P20C
<<Refer column P2FC>>
Port Function Register (Read-modify-write instructions prohibited.)
symbol P2FC (0009H) Read/Write After reset Function P27F P26F P25F P24F P23F P22F P21F P20F
P2FC/P2CR Input, Output,
P2xF
P2xC
function input port output port
function input port output port
function input port output port
function input port output port
function input port output port
function input port output port
function input port output port
function input port output port
Note: <P2XF>/<P2XC> each register P2FC/P2CR. When setting address A16, P2FC after setting P2CR. P2CR after setting P2FC, outputted between setting P2FC setting P2CR when P2CR "0".
Page
2007-12-03
TMP91CW60
Port3 (P30 P33)
Port 4-bit general-purpose port. Reset operation initializes input port. bits output latch register "1". There following functions addition port. This function enable each function writing applicable port function register P3FC. input function wait control (WAIT) input function external interrupt (INT3, INT4) input function 16-bit timer (TB3IN0, TB3IN1) output function 16-bit timer (TB3OUT0, TB3OUT1) function serial interface (SDA0, SCL0) Reset operation initializes, P3CR,P3FC P3FC2 "0", bits input port. Port have programmable open-drain function which controlled register.
Direction control basis)
P3CR write
Function control basis)
Internal data
P3FC2 write
Open-drain possible: ODE<ODE30,31>
write
P30(TB3IN0,INT3,SDA0) P31(TB3IN1,INT4,SCL0)
SDA0 SCL0
Function control basis) P3FC write
TB3IN0,INT3 TB3IN1,INT4 SDA0 SCL0
Figure Port
Page
2007-12-03
TMP91CW60
Reset
Direction control basis)
P3CR write
Function control basis)
Internal data
P3FC write Output latch write
P32( WAIT ,TB3OUT0)
Selector
TB3OUT0 output Selector
internal WAIT
Reset
Direction control basis)
P3CR write
Function control basis)
Internal data
P3FC write Output latch write
P33(TB3OUT1)
Selector
TB3OUT1 output Selector read
Figure Port
Page
2007-12-03
TMP91CW60
Port Register
(000CH) symbol Read/Write After reset Function Data from external port (Output latch register "1".) output mode
Port Control Register (Read-modify-write instructions prohibited.)
symbol P3CR (000EH) Read/Write After reset Function P33C P32C P31C P30C
0:Input 1:Output
Port Function Register (Read-modify-write instructions prohibited.)
P3FC (000FH) symbol Read/Write After reset P33F P32F P31F P30F
Port Function Register (Read-modify-write instructions prohibited.)
P3FC2 (000DH) symbol Read/Write After reset P31F2 P30F2
P3xF2
P3xF
P3xC
function input port output port reserved TB3OUT1 reserved reserved reserved reserved
function input port output port WAIT TB3OUT0 reserved reserved reserved reserved
function input port output port TB3IN1/INT4 reserved reserved SCL0 reserved reserved
function input port output port TB3IN0/INT3 reserved reserved SDA0 reserved reserved
Note <P3xF2>/<P3xF>/<P3xC> each register P3FC2/P3FC/P3CR. Note P32/WAIT used WAIT pin, P3CR<P32C> Chip Select/WAIT control register <BnW2:0> "010".
Page
2007-12-03
TMP91CW60
Port (P40 P44)
Port 5-bit general-purpose port. Reset operation initializes input port, connects pull-up resistor. bits output latch register "1". There following functions addition port. This function enable each function writing applicable port function register P4FC. output function chip select signal (CS0 CS3) function serial channel (RXD2, TXD2, SCLK2/CTS2) output function Address latch enable signal (ALE) output function system clock signal (SCOUT) Reset operation initializes, P4CR,P4FC P4FC2 "0", bits input port. Port have programmable open-drain function which controlled register.
Reset
Direction control basis) P4CR write Function control basis) P4FC write Internal data
Function control basis) P-ch P4FC2 write
(Programmable pull
Selector
Output buffer
write
read
Figure Port
Page
2007-12-03
TMP91CW60
Reset
Direction control basis) P4CR write Function control basis) P4FC write Internal data Function control basis) P4FC2 write Open-drain possible: ODE<ODE41> P-ch
(Programmable pull
write
read
Figure Port
Selector
<ODE41>=0 Output buffer Level output Level output pull-up
Input (internal signal) <P41>=0,CS1=0, TXD2=0 <P41>=1, CS1=1, TXD2=1
<ODE41>=1 Output buffer Level output Hi-z pull-up
Page
2007-12-03
TMP91CW60
Reset
Direction control basis) P4CR write Function control basis) P4FC write P-ch
(Programmable pull
Internal data
Selector
Output buffer
write
read
Figure Port
Page
2007-12-03
TMP91CW60
Reset
Direction control basis) P4CR write Function control basis) P4FC write Internal data
Function control basis) P-ch P4FC2 write
(Programmable pull
Selector
Output buffer
write
read
Figure Port
Page
2007-12-03
TMP91CW60
Reset
Direction control basis) P4CR write Function control basis) P4FC write P-ch
(Programmable pull
Internal data
Selector
Output buffer
write
read
Figure 4-10 Port
Page
2007-12-03
TMP91CW60
Port Register
(0010H) symbol Read/Write After reset Data from external port (Output latch register "1".) (Output latch register): Pull-up resistor (Output latch register): Pull-up resistor
Function
Port Control Register (Read-modify-write instructions prohibited.)
symbol P4CR (0012H) Read/Write After reset Function P44C P43C P42C Input Output P41C P40C
Port Function Register (Read-modify-write instructions prohibited.)
P4FC (0013H) symbol Read/Write After reset P44F P43F P42F P41F P40F
Port Function Register (Read-modify-write instructions prohibited.)
P4FC2 (0011H) symbol Read/Write After reset P43F2 P41F2 P40F2
P4xF2
P4xF
P4xC
function input port output port reserved output input port output port reserved output
function input port (SCLK2/CTS2) output port reserved reserved SCLK2 reserved reserved
function input port (RXD2) output port reserved input port (RXD2) output port reserved
function input port output port reserved reserved TXD2 reserved reserved
function input port output port reserved reserved SCOUT reserved reserved
Note <P4xF2>/<P4xF>/<P4xC> each register P4FC2/P4FC/P4CR. Note When port used input mode, register controls internal pull-up resistor. Read-modify-write instruction prohibited input mode mode. Setting internal pull-up resistor depended states input pin. Note When outputting chip select signal (CS0 CS3), control register (P4CR) after setting function register (P4FC) "1". P4FC after setting P4CR, value register outputted between setting P4CR setting P4FC. Note When setting TXD2 open-drain output, write bit2 register. P42/RXD2 does have register which changes Port/Function. example, when also used input port, input signal inputted serial receiving data.
Page
2007-12-03
TMP91CW60
Port (P50 P57)
Port 8-bit general-purpose port. reset action, becomes Hi-Z becomes analog input permission.All bits output latch register "1". There following functions addition port. input function Analog/Digital Converter (AN0 AN7) Reset operation initializes, P5CR,P5FC "0", bits input port.
Reset Direction control basis) P5CR write Function control basis) P5FC write
Internal data
write
Port (AN0 AN7)
read
read
Figure 4-11 Port
Page
2007-12-03
TMP91CW60
Port Register
(0014H) symbol Read/Write After reset Data from external port (Output latch register "1".)
Port Control Register (Read-modify-write instructions prohibited.)
symbol P5CR (0016H) Read/Write After reset Function P57C P56C P55C P54C P53C P52C P51C P50C
Input Output
Port Function Register (Read-modify-write instructions prohibited.)
symbol Read/Write P5FC (0017H) After reset input 0:disable 1:enable input 0:disable 1:enable input 0:disable 1:enable input 0:disable 1:enable P57F P56F P55F P54F input 0:disable 1:enable input 0:disable 1:enable input 0:disable 1:enable input 0:disable 1:enable P53F P52F P51F P50F
Function
P5xF
P5xC
function input disable output port input enable output port
function input disable output port input enable output port
function input disable output port input enable output port
function input disable output port input enable output port
function input disable output port input enable output port
function input disable output port input enable output port
function input disable output port input enable output port
function input disable output port input enable output port
Note <P5xF>/<P5xC> each register P5FC/P5CR. Note input channel selection converter converter mode register ADCCR1.
Page
2007-12-03
TMP91CW60
Port (P60 P67)
Port 8-bit general-purpose port. reset action, becomes Hi-Z becomes analog input permission.All bits output latch register "1". There following functions addition port. input function Analog/Digital Converter (AN8 AN15) Reset operation initializes, P6CR,P6FC "0", bits input port.
Reset Direction control basis) P6CR write Function control basis) Internal data P6FC write
write
Port (AN8 AN15)
read
read
Figure 4-12 Port
Page
2007-12-03
TMP91CW60
Port Register
(0018H) symbol Read/Write After reset Data from external port (Output latch register "1".)
Port Control Register (Read-modify-write instructions prohibited.)
symbol P6CR (001AH) Read/Write After reset Function P67C P66C P65C P64C P63C P62C P61C P60C
Input Output
Port Function Register (Read-modify-write instructions prohibited.)
symbol Read/Write P6FC (001BH) After reset input 0:disable 1:enable input 0:disable 1:enable input 0:disable 1:enable input 0:disable 1:enable P67F P66F P65F P64F input 0:disable 1:enable input 0:disable 1:enable input 0:disable 1:enable input 0:disable 1:enable P63F P62F P61F P60F
Function
P6xF
P6xC
function input disable output port input enable output port
function input disable output port input enable output port
function input disable output port input enable output port
function input disable output port input enable output port
function input disable output port input enable output port
function input disable output port input enable output port
function input disable output port input enable output port
function input disable output port input enable output port
Note <P6xF>/<P6xC> each register P6FC/P6CR. Note input channel selection converter converter mode register ADCCR1.
Page
2007-12-03
TMP91CW60
Port (P70 P75)
Port 6-bit general-purpose port. Reset operation initializes input port. bits output latch register "1". There following functions addition port. This function enable each function writing applicable port function register P7FC. function 8-bit timer (TA0IN,TA1OUT) output function 8-bit timer (TA3OUT) function 8-bit timer (TA4IN,TA5OUT) input function external interrupt (INT0) Reset operation initializes, P7CR P7FC "0", bits input port.
Direction control basis) P7CR (TA0IN) (TA4IN)
TA0IN TA4IN
Internal data
Direction control basis) P7CR Function control basis) P7FC
TA1OUT: TMRA1 TA3OUT: TMRA3 TA5OUT: TMRA5
(TA1OUT) (TA3OUT) (TA5OUT)
Figure 4-13 Port
Page
2007-12-03
TMP91CW60
Direction control basis) Internal data P7CR Function control basis) P7FC
Output latch
P75(INT0)
Selector
IIMC<I0LE,I0EDGE>
Figure 4-14 Port
Page
2007-12-03
TMP91CW60
Port Register
(001CH) symbol Read/Write After reset Data from external port (Output latch register "1".)
Port Control Register (Read-modify-write instructions prohibited.)
symbol P7CR (001EH) Read/Write After reset Function P75C P74C P73C P72C P71C P70C
Input Output
Port Function Register (Read-modify-write instructions prohibited.)
symbol P7FC (001FH) Read/Write After reset Function P75F port INT0 port TA5OUT P74F P72F port TA3OUT port TA1OUT P71F
INT0 setting
<P75F> <IOLE> <IOEDGE> INT0 Rising edge detect falling edge detect level level
P7xF
P7xC
function input port output port INT0 reserved
function input port output port reserved TA5OUT
function input port (TA4IN) output port reserved reserved
function input port output port reserved TA3OUT
function input port output port reserved TA1OUT
function input port (TA0IN) output port reserved reserved
Note <P7xF>/<P7xC> each register P7FC/P7CR. Note P70/TA0IN, P73/TA4IN dose have register changing PORT/FUNCTION. example, when used input port, input signal inputted 8bit Timer.
Page
2007-12-03
TMP91CW60
Port (P80 P87)
Port 8-bit general-purpose port. Reset operation initializes input port. bits output latch register "1". There following functions addition port. This function enable each function writing applicable port function register P8FC. function 16-bit timer (TB0IN0,TB0IN1,TB0OUT0,TB0OUT1) function 16-bit timer (TB1IN0,TB1IN1,TB1OUT0,TB1OUT1) input function external interrupt (INT5 INT8) Reset operation initializes, P8CR P8FC "0", bits input port.
Reset Direction control basis) P8CR write Function control basis) P8FC write Output latch (TB0IN0/INT5) (TB0IN1/INT6) (TB1IN0/INT7) (TB1IN1/INT8)
Selector
write
Internal data
read TB0IN0, INT5 TB0IN1, INT6 TB1IN0, INT7 TB1IN1, INT8
Direction control basis) P8CR write Function control basis) P8FC write Output latch (TB0OUT0) (TB0OUT1) (TB1OUT0) (TB1OUT1)
Selector
write Timer
TB0OUT0: TMRB0 TB0OUT1: TMRB0 TB1OUT0: TMRB1 TB1OUT1: TMRB1
Selector
read
Figure 4-15 Port
Page
2007-12-03
TMP91CW60
Port Register
(0020H) symbol Read/Write After reset Data from external port (Output latch register "1".)
Port Control Register (Read-modify-write instructions prohibited.)
symbol P8CR (0022H) Read/Write After reset Function P87C P86C P85C P84C P83C P82C P81C P80C
Input Output
Port Function Register (Read-modify-write instructions prohibited.)
symbol P8FC (0023H) Read/Write After reset port TB1OUT1 port TB1OUT0 port TB1IN1, INT8 port TB1IN0, INT7 P87F P86F P85F P84F port TB0OUT1 port TB0OUT0 port TB0IN1, INT6 port TB0IN0, INT5 P83F P82F P81F P80F
Function
P8xF
P8xC
function input port output port reserved TB1OUT1
function input port output port reserved TB1OUT0
function input port output port TB1IN1/ INT8 reserved
function input port output port TB1IN0/ INT7 reserved
function input port output port reserved TB0OUT1
function input port output port reserved TB0OUT0
function input port output port TB0IN1/ INT6 reserved
function input port output port TB0IN0/ INT5 reserved
Note: <P8xF>/<P8xC> each register P8FC/P8CR.
Page
2007-12-03
TMP91CW60
4.10 Port (P90 P97)
Port Port 6-bit general-purpose port. Reset operation initializes input port. bits output latch register "1". addition functioning port, port also function SIO0, SIO1. This function enable each function writing applicable port function register P9FC. Reset operation initializes P9CR P9FC "0", bits input port. Port Port 2-bit general-purpose port. case output port, this open drain output. Reset operation initializes output latch register control register "1", "High-Z" (High impedance). addition functioning port, port also function low-frequency oscillator connection (XT1 XT2) during using speed clock function. Therefore, dual clock function setting system clock control registers SYSCR0 SYSCR1.
4.10.1 Port (TXD0 TXD1)
addition functioning port, Port also function output serial channel. Port have programmable open-drain function which controlled register.
Reset Direction control basis) P9CR write Internal data Function control basis) P9FC write Output latch Open-drain possible: ODE<ODE90,93>
Selector
(TXD0) (TXD1)
write TXD0, TXD1
Selector
Output buffer
read
Figure 4-16 Port
Page
2007-12-03
TMP91CW60
4.10.2 Port91(RXD0), (RXD1)
addition functioning port, port also function input serial channel.
Reset
Direction control basis) P9CR write Internal data Output latch
(RXD0) (RXD1)
write
Selector
read RXD0, RXD1
Figure 4-17 Port
Page
2007-12-03
TMP91CW60
4.10.3 Port 92(CTS0/SCLK0), (CTS1/SCLK1)
addition functioning port, port also function input SCLK serial channel.
Reset
Direction control basis) P9CR write Internal data Function control basis) P9FC write Output latch
Selector
write SCLK0, SCLK1 output
Selector
(SCLK0/CTS0) (SCLK1/CTS1)
read CTS0, CTS1 SCLK0, SCLK1 input
Figure 4-18 Port
Page
2007-12-03
TMP91CW60
4.10.4 Port (XT1), (XT2)
addition functioning port, port also function frequency oscillator connection pins.
Function control basis)
Direction control basis)
Internal data
Function control basis)
Direction control basis)
Figure 4-19 Port
Page
2007-12-03
TMP91CW60
Port Register
(0024H) symbol Read/Write After reset Data from external port (Output latch register "1".)
Port Control Register (Read-modify-write instructions prohibited.)
symbol P9CR (0026H) Read/Write After reset Function P97C P96C P95C P94C P93C P92C P91C P90C
Input Output
Port Function Register (Read-modify-write instructions prohibited.)
Symbol P9FC (0027H) Read/Write After reset Port disable enable P97F P96F Port disable enable port SCLK1 output P95F port TXD1 output P93F port SCLK0 output P92F P90F port TXD0 output
Function
P9xF
P9xC
function reserved input port output port
function reserved input port output port
function input port output port reserved SCLK1
function input port output port reserved reserved
function input port output port reserved TXD1
function input port output port reserved SCLK0
function input port output port reserved reserved
function input port output port reserved TXD0
Note <P9xF>/<P9xC> each register P9FC/P9CR. Note When setting open-drain output, write bit3 register (for TXD0 pin), bit4 (for TXD1 pin). P91/ RXD0 P94/RXD1 does have register which changes Port/Function. example, when also used input port, input signal inputted serial receiving data. Note frequency oscillation circuit connect frequency resonator port necessary following procedure reduce consumption power supply. (Case resonator connection) P9CR<P96C, P97C> "11", P9<P96:97> "00" (Case external clock input) P9CR<P96C, P97C> "11", P9<P96:97> "10"
Page
2007-12-03
TMP91CW60
4.11 Port (PA0 PA3)
Port 4-bit general-purpose port. Reset operation initializes input port. bits output latch register "1". There following functions addition port. This function enable each function writing applicable port function register PAFC. function 16-bit timer (TB2IN0,TB2IN1,TB2OUT0,TB2OUT1) input function external interrupt (INT1, INT2) Reset operation initializes, PACR PAFC "0", bits input port.
Reset Direction control basis) PACR write Function control basis) PAFC write Output latch (TB2IN0/INT1) (TB2IN1/INT2)
write
Selector
Internal data
read TB2IN0, INT1 TB2IN1, INT2 Reset Direction control basis) PACR write Function control basis) PAFC write Output latch
Selector
(TB2OUT0) (TB2OUT1)
write Timer
TB02UT0: TMRB2 TB02UT1: TMRB2 Selector
read
Figure 4-20 Port
Page
2007-12-03
TMP91CW60
Port Register
(0028H) symbol Read/Write After reset Data from external port (Output latch register "1".)
Port Control Register (Read-modify-write instructions prohibited.)
symbol PACR (002AH) Read/Write After reset Function PA3C PA2C PA1C PA0C
Input Output
Port Function Register (Read-modify-write instructions prohibited.)
symbol PAFC (002BH) Read/Write After reset port TB2OUT1 0:port TB2OUT0 PA3F PA2F port TB2IN1, INT2 port TB2IN0, INT1 PA1F PA0F
Function
PAxC
PAxF
function input port output port reserved TB2OUT1
function input port output port reserved TB2OUT0
function input port output port TB2IN1/ INT2 reserved
function input port output port TB2IN0/INT1 reserved
Note: <PAxF>/<PAxC> each register PAFC/PACR.
Page
2007-12-03
TMP91CW60
4.12 Port (PB0 PB3)
Port 4-bit general-purpose port. Reset operation initializes input port. bits output latch register "1". There following functions addition port. This function enable each function writing applicable port function register PBFC. function 16-bit timer (TB4IN0,TB4IN1,TB4OUT0,TB4OUT1) input function external interrupt (INT9, INT10) function serial interface (SDA1, SCL1) Reset operation initializes, PBCR PBFC "0", bits input port.
Direction control basis)
PBCR write
Function control basis) Internal data PBFC2 write
Open-drain possible: ODE<ODEB0,B1>
write
PB0(TB4IN0,INT9,SDA1) PB1(TB4IN1,INT10,SCL1)
SDA1 SCL1
Function control basis) PBFC write
TB4IN0,INT9 TB4IN1,INT10 SDA1 SCL1
Figure 4-21 Port
Page
2007-12-03
TMP91CW60
Direction control basis)
PBCR write
Function control basis)
Internal data
PBFC write
PB2(TB4OUT0) PB3(TB4OUT1)
write TB4OUT0 TB4OUT1
Figure 4-22 Port
Page
2007-12-03
TMP91CW60
Port Register
(002CH) symbol Read/Write After reset Data from external port (Output latch register "1".)
Port Control Register (Read-modify-write instructions prohibited.)
symbol PBCR (002EH) Read/Write After reset Function PB3C PB2C PB1C PB0C
Input Output
Port Function Register (Read-modify-write instructions prohibited.)
symbol PBFC (002FH) Read/Write After reset PB3F PB2F PB2F PB0F
Port Function Register (Read-modify-write instructions prohibited.)
symbol PBFC2 (002DH) Read/Write After reset PB1F2 PB0F2
PBxC
PBxF
PBxF2
function input port output port reserved TB4OUT1 reserved reserved reserved reserved
function input port output port reserved TB4OUT0 reserved reserved reserved reserved
function input port output port TB4IN1/INT10 reserved reserved SCL1 reserved reserved
function input port output port TB4IN0/INT9 reserved reserved SDA1 reserved reserved
Note: <PBxF>/<PBxC> each register PBFC/PBCR.
Page
2007-12-03
TMP91CW60
4.13 Port (PZ0 PZ3)
Port 4-bit general-purpose port (however only output port). Each individually input output using control register PZCR function register PZFC. Reset operation initializes bits output latch "1", control register PZCR function register PZFC "0". output "High", sets input port with pull-up resister. addition functioning general-purpose port, port also function output CPU's control/status signal. defined signal output mode (<PZ0F> "1") output latch register <PZ0> cleared "0", strobe outputted (for pseudo static RAM) even when accessing internal address. <PZ0 remains "1", strobe signal output only when external address area accessed.
Reset
Direction control basis) Internal data PZFC write Output latch Selector write Output buffer
(RD) (WR)
read
Figure 4-23 Port
Page
2007-12-03
TMP91CW60
Reset Direction control basis)
PZCR write
Internal data Function control basis)
PZFC write
Selector
P-ch
(Programmable pull
Output latch
PZ2(
Output buffer
write
read
Reset
Direction control basis)
PZCR write
Internal data Function control basis)
PZFC write Output latch write
Selector
P-ch
(Programmable pull
PZ3(R/
Output buffer
read
Figure 4-24 Port
Page
2007-12-03
TMP91CW60
Port Register
(007DH) symbol Read/Write Data from external port (Output latch register "1".) (Output latch register): Pull-up resistor (Output latch register): Pull-up resistor
After reset
Function
output mode
Port Control Register (Read-modify-write instructions prohibited.)
symbol PZCR (007EH) Read/Write After reset Function PZ3C PZ2C
0:Input 1:Output
Port Function Register (Read-modify-write instructions prohibited.)
symbol PZFC (007FH) Read/Write After reset Function port 1:R/ port PZ3F PZ2F port port PZ1F PZ0F
PZxF
PZxC
function input port input port output port output port
function input port input port output port output port reserved
function Output "0". Output "1". Output "0". Output "1". output only during external accesses. output only during external accesses. output only during external accesses. output only during external accesses.
function Output "0". Output "1". Output "0". Output "1". Always output RD.(Correspond pseudo SRAM) output only during external accesses. Always output RD.(Correspond pseudo SRAM) output only during external accesses.
reserved
reserved
reserved
Note <PZxF>/<PZxC> each register PZFC/PZCR. Note When port used input mode, register controls internal pull-up resistor. Read-modify-write instruction prohibited input mode mode. Setting internal pull-up resistor depended states input pin.
Page
2007-12-03
TMP91CW60
4.14 Open-drain Control
P30,P31,P41,P90,P93,PB0,PB1 perform selection open-drain output bit. Reset operation initializes bits control register sets CMOS output. Open-drain Control Register
(003FH) symbol Read/Write After reset Function ODEB1 ODEB0 ODE93 ODE90 CMOS output 1:Open drain output ODE41 ODE31 ODE30
Page
2007-12-03
TMP91CW60
Chip Select/Wait Controller
TMP91CW60, four user specifiable address areas (CS0 CS3) set. data width number waits independently each address area (CS0 others). pins (which also function port pins P43) respective output pins areas CS3. When specifies address these areas, corresponding outputs chip select signal specified address area SRAM). However, order chip select signal output, port function register P4FC,P4FC2 must set. areas defined values memory start address registers MSAR0 MSAR3 memory address mask registers MAMR0 MAMR3. chip select/wait control registers B0CS B3CS BEXCS should used specify master enable/disable status data width number waits each address area. input controlling these states wait request (WAIT).
Specifying Address Area
address areas specified using start address registers (MSAR0 MSAR3) memory address mask registers (MAMR0 MAMR3). each cycle, compare operation performed determine address specified location area. result comparison match, this indicates access corresponding area. this case, outputs chip select signal cycle operates accordance with settings chip select/wait control registers B0CS B3CS. (See" Chip Select/Wait Control Registers
5.1.1
Memory start address registers
memory start address registers MSAR0 MSAR3 start addresses areas. upper bits (A23 A16) start address <S23:16>. lower bits start address (A15 permanently Accordingly, start address only 64-Kbyte increments, starting from 000000H. Figure shows relationship between start address start address register value.
Memory Start Address Registers (for areas CS3)
MSAR0 (00C8H) MSAR1 (00CAH) MSAR2 (00CCH) MSAR3 (00CEH) symbol Read/Write After reset
Function
Determine start address (Set start addresses areas CS3.)
Page
2007-12-03
TMP91CW60
Start address Address 000000H 000000H Kbytes 010000H 020000H 030000H 040000H 050000H 060000H FF0000H FFFFFFH
Value start address register (MSAR0 MSAR3)
Figure Relationship between Start Address Start Address Register Value
5.1.2
Memory address mask registers
Memory address mask registers MAMR0 MAMR3 used size areas specifying mask each start address memory start address registers MAMR0 MAMR3. compare operation used determine address areas only performed address bits corresponding bits these registers. Also, address bits that masked MAMR0 MAMR3 differ between areas. Accordingly, size that each area different.
Memory Address Mask Register (for area)
symbol MAMR0 (00C9H) Read/Write After reset Function
size area
Used address compare
Note: Range possible settings area size: bytes Mbytes.
Memory Address Mask Register (CS1)
symbol MAMR1 (00CBH) Read/Write After reset Function
size area
Used address compare
Note: Range possible settings area size: bytes Mbytes.
Memory Address Mask Register (CS2, CS3)
MAMR2 (00CDH) MAMR3 (00CFH) symbol Read/Write After reset Function
size area
Used address compare
Note: Range possible settings area sizes: Kbytes Mbytes.
Page
2007-12-03
TMP91CW60 5.1.3 Setting memory start addresses address areas
Figure shows example specifying 64-Kbyte address area starting from 010000H using areas. "01H" memory start address register MSAR0<S23:16> (Corresponding upper bits start address). Next, calculate difference between start address anticipated address (01FFFFH). Bits result correspond mask value area. Setting this value memory address mask register MAMR0<V20:8> sets area size. This example sets "07H" MAMR0 specify 64-Kbyte area.
Memory address Memory start address
area size Kbytes)
MSAR0
MSMR0
Memory address mask register setting
Setting specifies 64-Kbyte area.
Figure Example Showing Area
After reset, MSAR0 MSAR3 MAMR0 MAMR3 "FFH". B0CS<B0E>, B1CS<B1E> B3CS<B3E> reset "0". This disables CS0, areas. However, B2CS<B2M> B2CS<B2E> "1", enabled "002000 FDFFFF" TMP91CW60. Also, width number waits specified BEXCS used accessing addresses outside specified area.
Page
2007-12-03
TMP91CW60
5.1.4
Address area size specification
Table shows relationship between area area size. indicates areas that cannot memory start address register address mask register combinations. When setting area size using combination indicated start address mask register desired steps starting from 000000H. area Mbytes more areas overlap, smaller area number higher priority.
5.1.4.1
area size Kbytes:
Example: Valid
start addresses (128 Kbytes)
000000H
020000H
(128 Kbytes)
040000H
these addresses start address.
(128 Kbytes)
060000H
Example: Invalid
start addresses
Kbytes)
000000H
010000H
(128 Kbytes)
030000H
This integer multiple desired area size setting. Hence, none these addresses start address.
(128 Kbytes)
050000H
Table
Valid Area Sizes Each Area
Size (Bytes)
area
Note: indicates areas that cannot memory start address register address mask register combinations.
Page
2007-12-03
TMP91CW60
Chip Select/Wait Control Registers
master enable/disable, chip select output waveform, data width number wait states each address area (CS0 others) their respective chip select/wait control registers, B0CS B3CS BEXCS. Chip Select/Wait Control Registers
symbol Read/Write B0CS (00C0H) instructions prohibited. After reset B0OM1 B0OM0 B0BUS Number waits Data width bits bits 000: WAIT 001: WAIT 010: WAIT+N 011: WAIT B1W2 Number waits Data width bits bits 000: WAIT 001: WAIT 010: WAIT+N 011: WAIT B2W2 100: 101: 110: 111: Reserved WAIT WAIT WAIT B2W0 100: 101: 110: 111: Reserved WAIT WAIT WAIT B1W0 B0W2 B0W1 B0W0
Function
Disable Enable
Chip select output waveform selection ROM/SRAM Don't care Don't care Don't care B1OM1 B1OM0
symbol Read/Write B1CS (00C1H) instructions prohibited. After reset
B1BUS
B1W1
Function
Disable Enable
Chip select output waveform selection ROM/SRAM Don't care Don't care Don't care B2OM1 B2OM0
symbol Read/Write B2CS (00C2H) instructions prohibited. After reset
B2BUS
B2W1
area selection 16-Mbyte area area
Number waits
Function
Disable Enable
Chip select output waveform selection ROM/SRAM Don't care Don't care Don't care B3OM1 B3OM0
Data width bits bits
000: WAIT 001: WAIT 010: WAIT+N 011: WAIT B3W2
100: 101: 110: 111:
Reserved WAIT WAIT WAIT B3W0
symbol Read/Write B3CS (00C3H) instructions prohibited. After reset
B3BUS
B3W1
Number waits
Function
Disable Enable
Chip select output waveform selection ROM/SRAM Don't care Don't care Don't care
Data width bits bits
000: WAIT 001: WAIT 010: WAIT+N 011: WAIT
100: 101: 110: 111:
Reserved WAIT WAIT WAIT
Master enable
Disable
area selection
Enable Specified address area 16-Mbyte area
Chip select output waveform selection
BnOM1:0 Don't care ROM/SRAM
Data width selection
BnBUS 16-bit data 8-bit data
Page
2007-12-03
TMP91CW60
symbol Read/Write BEXCS (00C7H) instructions prohibited. After reset
BEXBUS
BEXW2
BEXW1
BEXW0
Number waits
Function
Data width bits bits
000: WAIT 001: WAIT 010: WAIT+N 011: WAIT
100: 101: 110: 111:
Reserved WAIT WAIT WAIT
Number address area waits
BnW2:0 See" 5.2.3 Wait control
5.2.1
Master enable bits
Bit7 (<B0E>, <B1E>, <B2E> <B3E>) chip select/wait control register master which used enable disable settings corresponding address area. Writing this enables settings. Reset disables (Sets "0") <B0E>, <B1E> <B3E>, enabled (Sets "1") <B2E>. This enables area only.
5.2.2
Data width selection
Bit3 (<B0BUS>, <B1BUS>, <B2BUS>, <B3BUS> <BEXBUS>) chip select/wait control register specifies width data bus. This should when memory accessed using 16-bit data when 8-bit data used. This process changing data width according address being accessed known "Dynamic sizing". details this operation Table 5-2.
Page
2007-12-03
TMP91CW60
Table Dynamic Sizing
Operand Data Width Operand Start Address (Even number) bits (Odd number) bits bits bits bits bits bits (Odd number) bits xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx Memory Data Width bits bits Data Address xxxxx xxxxx
(Even number)
bits (Even number) bits bits bits (Odd number) bits
Note:"xxxxx" indicates that input data from these bits ignored during read. During write, indicates that these bits goes high impedance; also, that write strobe signal remains inactive.
5.2.3
Wait control
Bits (<B0W0:2>, <B1W0:2>, <B2W0:2>, <B3W0:2>, <BEXW0:2>) chip select/wait control register specify number waits that inserted when corresponding memory area accessed. following types wait operation specified using these bits. settings other than those listed table should made. reset sets these "000" waits).
Table
Wait Operation Settings
Number Waits waits wait waits waits Reserved waits waits waits Wait Operation Inserts wait states, irrespective WAIT state. Inserts wait state, irrespective WAIT state. Samples state WAIT after inserting wait state. WAIT low, waits continue cycle extended until goes high. Ends cycle without wait, regardless WAIT state. Invalid setting Inserts wait state, irrespective WAIT state. Inserts wait state, irrespective WAIT state. Inserts wait state, irrespective WAIT state.
<BxW2:0>
Page
2007-12-03
TMP91CW60
5.2.4
width wait control area other than
chip select/wait control register BEXCS controls width number waits when memory locations which four user-specified address areas (CS0 CS3) accessed. BEXCS register settings always enabled areas other than CS3.
5.2.5
Selecting 16-Mbyte area/specified address area
Setting B2CS<B2M> (Bit6 chip select/wait control register CS2) designates 16-Mbyte area "002000 FDFFFF" area. Setting B2CS<B2M> designates address area specified start address register MSAR2 address mask register MAMR2 (e.g., B2CS<B2M> specified same manner CS0, are). reset clears this "0", specifying 16-Mbyte address area.
5.2.6
Procedure setting chip select/wait control
When using chip select/wait control function, registers following order: memory start address registers MSAR0 MSAR3. start addresses CS3. memory address mask registers MAMR0 MAMR3. sizes CS3. chip select/wait control registers B0CS B3CS. chip select output waveform, data width, number waits master enable/disable status
CS3.
pins also function pins P43. output chip select signal using these pins, corresponding port function register P4FC/P4FC2 "1". address specified which actually internal area address, accesses internal address area chip select signal output pins.
Example this example 64-Kbyte area 010000H 01FFFFH. width bits number waits
(MSAR0), (MAMR0), (B0CS), Start address: 010000H Address area: Kbytes ROM/SRAM, 16-bit data bus, waits, area settings enabled
Page
2007-12-03
TMP91CW60
Connecting External Memory
Figure shows example connect external memory TMP91CW60. this example connected using 16-bit bus. connected using 8-bit bus.
TMP91CW60
74AC573
Upper byte
Address
Lower byte
8-bit
8-bit
AD8~AD15 AD0~AD7
Figure Example External Memory Connection (ROM uses 16-bit bus, 8-bit bus.
reset clears bits port control register P4CR port function register P4FC/P4FC2 disables output signal. output signal, appropriate must "1".
Page
2007-12-03
TMP91CW60
8-Bit Timers (TMRA)
TMP91CW60 features channels (TMRA0 TMRA5) built-in 8-bit timers. These timers paired into modules: TMRA01, TMRA23 TMRA45. Each module consists channels operate following operating modes. 8-bit interval timer mode 16-bit interval timer mode 8-bit programmable square wave pulse generation output mode (PPG Variable duty cycle with variable period) 8-bit pulse width modulation output mode (PWM Variable duty cycle with constant period) Figure Figure show block diagrams TMRA01, TMRA23 TMRA45. Each channel consists 8-bit counter, 8-bit comparator 8-bit timer register. addition, timer flip-flop prescaler provided each pair channels. operation mode timer flip-flops controlled 5-byte registers SFRs (Special function registers). Each three modules (TMRA01, TMRA23 TMRA45) operated independently. modules operate same manner; hence only operation TMRA01 explained here. Table
Specification Input external clock External Output timer flip-flop TA1OUT (

Other recent searches


TMS320C6743 - TMS320C6743   TMS320C6743 Datasheet
Si4837DY - Si4837DY   Si4837DY Datasheet
SCAS035A - SCAS035A   SCAS035A Datasheet
LRPS-2-1W-75J - LRPS-2-1W-75J   LRPS-2-1W-75J Datasheet
LC67F5000 - LC67F5000   LC67F5000 Datasheet
EVB-20051 - EVB-20051   EVB-20051 Datasheet
1771574 - 1771574   1771574 Datasheet

 

Privacy Policy | Disclaimer
© 2012 Datasheet Archive