tmp89fm42 TOSHIBA Semiconductor CORPORATION, tmp89fm42 Datasheet - Page 6
tmp89fm42
Manufacturer Part Number
tmp89fm42
Description
8 Bit Microcontroller
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
1.TMP89FM42.pdf
(408 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Part Number:
tmp89fm42AUG
Manufacturer:
TOSHIBA/东芝
Quantity:
20 000
Company:
Part Number:
tmp89fm42LUG
Manufacturer:
ST
Quantity:
500
Company:
Part Number:
tmp89fm42LUG
Manufacturer:
TOSHIBA
Quantity:
745
Part Number:
tmp89fm42LUG
Manufacturer:
TOSHIBA/东芝
Quantity:
20 000
Company:
Part Number:
tmp89fm42UG
Manufacturer:
PROCONN
Quantity:
3 705
Part Number:
tmp89fm42UG
Manufacturer:
TOSHIBA/东芝
Quantity:
20 000
Part Number:
tmp89fm42UG(C
Manufacturer:
TOSHIBA/东芝
Quantity:
20 000
Part Number:
tmp89fm42UG(C,JZ)
Manufacturer:
TOSHIBA/东芝
Quantity:
20 000
3. Interrupt Control Circuit
4. External Interrupt control circuit
5. Watchdog Timer (WDT)
6. Power-on Reset Circuit
ii
3.1
3.2
3.3
3.4
3.5
3.6
3.7
3.8
4.1
4.2
4.3
5.1
5.2
5.3
6.1
3.3.1
3.3.2
3.5.1
3.5.2
3.5.3
3.5.4
3.6.1
3.6.2
4.3.1
4.3.2
4.3.3
4.3.4
4.3.5
5.3.1
5.3.2
5.3.3
5.3.4
5.3.5
5.3.6
5.3.7
Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Interrupt Latches (IL25 to IL3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Interrupt Enable Register (EIR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Maskable Interrupt Priority Change Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Interrupt Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
3.5.3.1
3.5.3.2
3.5.3.3
Software Interrupt (INTSW) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Undefined Instruction Interrupt (INTUNDEF). . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Revision History. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
4.3.3.1
4.3.3.2
4.3.3.3
4.3.4.1
4.3.4.2
4.3.4.3
Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Interrupt master enable flag (IMF) .......................................................................................................... 51
Individual interrupt enable flags (EF25 to EF4) ...................................................................................... 51
Initial Setting ........................................................................................................................................... 56
Interrupt acceptance processing............................................................................................................. 56
Saving/restoring general-purpose registers ............................................................................................ 57
Interrupt return ........................................................................................................................................ 59
Address error detection .......................................................................................................................... 60
Debugging .............................................................................................................................................. 60
Low power consumption function ........................................................................................................... 67
External interrupt 0 ................................................................................................................................. 68
External interrupts 1/2/3.......................................................................................................................... 68
External interrupt 4 ................................................................................................................................. 69
External interrupt 5 ................................................................................................................................. 71
Setting of enabling/disabling the watchdog timer operation ................................................................... 75
Setting the clear time of the 8-bit up counter .......................................................................................... 76
Setting the overflow time of the 8-bit up counter .................................................................................... 76
Setting an overflow detection signal of the 8-bit up counter ................................................................... 77
Writing the watchdog timer control codes ............................................................................................... 77
Reading the 8-bit up counter .................................................................................................................. 78
Reading the watchdog timer status ........................................................................................................ 78
Using PUSH and POP instructions
Using data transfer instructions
Using a register bank to save/restore general-purpose registers
Interrupt request signal generating condition detection function
A noise canceller pass signal monitoring function when interrupt request signals are generated
Noise cancel time selection function
Interrupt request signal generating condition detection function
A noise canceller pass signal monitoring function when interrupt request signals are generated
Noise cancel time selection function