![]() |
|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
to our customers, old company name in catalogs and other documents on april 1 st , 2010, nec electronics corporation merged with renesas technology corporation, and renesas electronics corporation took over all the business of both companies. therefore, although the old company name remains in this document, it is a valid renesas electronics document. we appreciate your understanding. renesas electronics website: http://www.renesas.com april 1 st , 2010 renesas electronics corporation issued by: renesas electronics corporation ( http://www.renesas.com ) send any inquiries to http://www.renesas.com/inquiry .
notice 1. all information included in this document is current as of th e date this document is issued. such information, however, is subject to change without any prior notice. before purchasing or using any renesas electronics products listed herein, please confirm the latest product information with a renesas electronics sales office. also, please pay regular and careful attention to additional and different information to be disclosed by renesas electronics such as that disclosed through our website. 2. renesas electronics does not assume any liability for infringement of patents, copyrights, or other intellectual property ri ghts of third parties by or arising from the use of renesas electronics products or technical information described in this document . no license, express, implied or otherwise, is granted hereby under any patents, copyrights or other intellectual property right s of renesas electronics or others. 3. you should not alter, modify, copy, or otherwise misappropriate any renesas electronics product, whether in whole or in part . 4. descriptions of circuits, software and other related information in this document are provided only to illustrate the operat ion of semiconductor products and application examples. you are fully responsible for the incorporation of these circuits, software, and information in the design of your equipment. renesas electronics assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits, software, or information. 5. when exporting the products or technology described in this document, you should comply with the applicable export control laws and regulations and follow the procedures required by such laws and regulations. you should not use renesas electronics products or the technology de scribed in this document for any purpose re lating to military applications or use by the military, including but not limited to the development of weapons of mass destruction. renesas electronics products and technology may not be used for or incorporated into any products or systems whose manufacture, use, or sale is prohibited under any applicable domestic or foreign laws or regulations. 6. renesas electronics has used reasonable care in preparing the information included in this document, but renesas electronics does not warrant that such information is error free. renesas electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or om issions from the information included herein. 7. renesas electronics products are classified according to the following three quality grades: ?standard?, ?high quality?, an d ?specific?. the recommended applications for each renesas electronics product depends on the product?s quality grade, as indicated below. you must check the quality grade of each renesas electronics product before using it in a particular application. you may not use any renesas electronics product for any application categorized as ?specific? without the prior written consent of renesas electronics. further, you may not use any renesas electronics product for any application for which it is not intended without the prior written consent of renesas electronics. renesas electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any renesas electronics product for a n application categorized as ?specific? or for which the product is not intended where you have failed to obtain the prior writte n consent of renesas electronics. the quality grade of each renesas electronics product is ?standard? unless otherwise expressly specified in a renesas electronics data sheets or data books, etc. ?standard?: computers; office equipment; communications equipment; test and measurement equipment; audio and visual equipment; home electronic appliances; machine tools; personal electronic equipment; and industrial robots. ?high quality?: transportation equipment (automobiles, trains, ship s, etc.); traffic control systems; anti-disaster systems; an ti- crime systems; safety equipment; and medical equipment not specifically designed for life support. ?specific?: aircraft; aerospace equipment; submersible repeaters; nuclear reactor control systems; medical equipment or systems for life support (e.g. artificial life support devices or systems), surgical implantations, or healthcare intervention (e.g. excision, etc.), and any other applications or purposes that pose a direct threat to human life. 8. you should use the renesas electronics products described in this document within the range specified by renesas electronics , especially with respect to the maximum rating, operating supply voltage range, movement power voltage range, heat radiation characteristics, installation and other product characteristics. renesas electronics shall have no liability for malfunctions o r damages arising out of the use of renesas electronics products beyond such specified ranges. 9. although renesas electronics endeavors to improve the quality and reliability of its products, semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions. fur ther, renesas electronics products are not subject to radiation resistance design. please be sure to implement safety measures to guard them against the possibility of physical injury, and injury or damage caused by fire in the event of the failure of a renesas electronics product, such as safety design for hardware and software including but not limited to redundancy, fire control and malfunction prevention, appropriate treatment for aging degradation or any other appropriate measures. because the evaluation of microcomputer software alone is very difficult, please evaluate the safety of the final products or system manufactured by you. 10. please contact a renesas electronics sales office for details as to environmental matters such as the environmental compatibility of each renesas electronics product. please use re nesas electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of c ontrolled substances, including without limitation, the eu rohs directive. renesas electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations. 11. this document may not be reproduced or duplicated, in any fo rm, in whole or in part, without prior written consent of renes as electronics. 12. please contact a renesas electronics sales office if you have any questions regarding the information contained in this document or renesas electronics products, or if you have any other inquiries. (note 1) ?renesas electronics? as used in this document means renesas electronics corporation and also includes its majority- owned subsidiaries. (note 2) ?renesas electronics product(s)? means any product developed or manufactured by or for renesas electronics. regarding the change of names mentioned in the document, such as mitsubishi electric and mitsubishi xx, to renesas technology corp. the semiconductor operations of hitachi and mitsubishi electric were transferred to renesas technology corporation on april 1st 2003. these operations include microcomputer, logic, analog and discrete devices, and memory chips other than drams (flash memory, srams etc.) accordingly, although mitsubishi electric, mitsubishi electric corporation, mitsubishi semiconductors, and other mitsubishi brand names are mentioned in the document, these names have in fact all been changed to renesas technology corp. thank you for your understanding. except for our corporate trademark, logo and corporate statement, no changes whatsoever have been made to the contents of the document, and these changes do not constitute any alteration to the contents of the document itself. note : mitsubishi electric will continue the business operations of high frequency & optical devices and power devices. renesas technology corp. customer support dept. april 1, 2003 to all our customers description the 7560 group is the 8-bit microcomputer based on the 740 fam- ily core technology. the 7560 group has the lcd drive control circuit, an 8-channel a-d converter, d-a converter, serial i/o and pwm as additional functions. the various microcomputers in the 7560 group include variations of internal memory size and packaging. for details, refer to the section on part numbering. for details on availability of microcomputers in the 7560 group, re- fer the section on group expansion. features basic machine-language instructions ....................................... 71 the minimum instruction execution time ............................ 0.5 s (at 8 mhz oscillation frequency) memory size rom ................................................................ 32 k to 60 k bytes ram ............................................................... 1024 to 2560 bytes programmable input/output ports ............................................. 55 software pull-up resistors .................................................... built-in output ports ................................................................................. 8 input ports .................................................................................... 1 interrupts .................................................. 17 sources, 16 vectors external ................ 7 sources (includes key input interrupt) internal ................................................................ 9 sources software ................................................................ 1 source timers ............................................................ 8-bit ? 3, 16-bit ? 2 serial i/o1 ..................... 8-bit ? 1 (uart or clock-synchronous) serial i/o2 .................................... 8-bit ? 1 (clock-synchronous) pwm output .................................................................... 8-bit ? 1 a-d converter ................................................ 10-bit ? 8 channels d-a converter .................................................. 8-bit ? 2 channels lcd drive control circuit bias ......................................................................... 1/2, 1/3 duty .................................................................. 1/2, 1/3, 1/4 common output ................................................................ 4 segment output .............................................................. 40 2 clock generating circuits (connect to external ceramic resonator or quartz-crystal oscillator) watchdog timer ............................................................. 14-bit ? 1 power source voltage ................................................ 2.2 to 5.5 v (eprom and one time prom version: 2.5 to 5.5 v) (extended operating temperature version: 3.0 to 5.5 v) power dissipation in high-speed mode ........................................................... 32 mw (at 8 mhz oscillation frequency, at 5 v power source voltage) in low-speed mode .............................................................. 45 w (at 32 khz oscillation frequency, at 3 v power source voltage) operating temperature range ................................... 20 to 85? (extended operating temperature version: ?40 to 85?) applications camera, household appliances, consumer electronics, etc. 7560 group mitsubishi microcomputers single-chip 8-bit cmos microcomputer package type : 100p6s-a fig. 1 pin configuration (package type: 100p6s-a) pin configuration (top view) 1 23 45 67891 01 11 21 314151617181 9202 122232425262 72 82 93 0 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 3 9 4 0 4 1 4 2 4 3 4 4 45 4 6 4 7 4 8 4 9 5 0 5152 5 35 45 55 65 7 58 5 96 06 1 6263 6 46 56 66 76 86 97 0 71 7 27 37 47 57 67 77 87 98 0 8 1 8 2 8 3 8 4 85 8 6 8 7 8 8 8 9 9 0 9 1 9 2 9 3 9 4 9 5 9 6 9 7 9 8 9 9 10 0 m37560mf-xxxfp s e g 9 p 3 1 / s e g 1 9 p 3 0 / s e g 1 8 p 3 2 / s e g 2 0 p 3 3 / s e g 2 1 p 3 4 / s e g 2 2 s e g 1 0 s e g 1 1 s e g 1 2 s e g 1 3 s e g 1 4 s e g 1 5 p 3 5 / s e g 2 3 p 3 6 / s e g 2 4 p 3 7 / s e g 2 5 p 0 0 / s e g 2 6 p 0 1 / s e g 2 7 p 0 2 / s e g 2 8 p 0 3 / s e g 2 9 p 0 4 / s e g 3 0 p 0 5 / s e g 3 1 p 0 6 / s e g 3 2 p 0 7 / s e g 3 3 p 1 0 / s e g 3 4 p 1 1 / s e g 3 5 p 1 2 / s e g 3 6 p 1 3 / s e g 3 7 p 1 4 / s e g 3 8 p 1 5 / s e g 3 9 c 1 v l 1 p 6 7 / a n 7 p 6 6 / a n 6 p 6 5 / a n 5 p 6 4 / a n 4 p 6 2 / s c l k 2 1 / a n 2 p 6 1 / s o u t 2 / a n 1 p 6 0 / s i n 2 / a n 0 p 5 7 / a d t / d a 2 p 5 6 / d a 1 p 5 5 / c n t r 1 p 5 4 / c n t r 0 p 5 3 / r t p 1 p 5 2 / r t p 0 p 5 1 / p w m 1 p 5 0 / p w m 0 p 4 6 / s c l k 1 p 4 5 / t x d p 4 4 / r x d p 4 3 / / t o u t p 4 2 / i n t 2 p 4 1 / i n t 1 p 4 0 p 7 7 p 7 6 p 7 5 p 7 4 c 2 v l 2 v l 3 c o m 0 c o m 1 c o m 2 v r e f a v s s v c c s e g 8 s e g 0 s e g 1 s e g 2 s e g 4 s e g 5 s e g 6 s e g 7 s e g 3 p 7 2 p 7 3 p 7 1 p 7 0 / i n t 0 x cin x cout x in x out v ss p 2 7 p 2 6 p 2 5 p2 4 p 2 3 p 2 1 p 1 6 p2 2 p 2 0 p 1 7 r e s e t s e g 1 6 s e g 1 7 c o m 3 p 4 7 / s r d y 1 p 6 3 / s c l k 2 2 / a n 3 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 2 package type : 100p6q-a pin configuration (top view) fig. 2 pin configuration (package type: 100p6q-a) 1 23 45 678910111 21 31 41 51 61 71 81 92 02 12 22 32 42 5 2 6 2 7 2 8 29 30 31 3 2 33 3 4 35 3 6 3 7 3 8 3 9 4 0 41 42 4 3 4 4 45 4 6 4 7 4 8 4 9 5 0 5 1 525354555657585960 6 1 62636465 6 66 76 86 97 07 17 27 37 47 5 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 0 01 m37560mf- xxx gp s e g 1 2 s e g 1 1 s e g 1 0 s e g 9 s e g 8 s e g 7 s e g 6 seg 5 s e g 4 s e g 3 seg 2 seg 1 s e g 0 v cc v ref av ss c o m 3 c o m 2 com 1 com 0 v l 3 v l2 c 2 c 1 v l 1 p 6 7 / a n 7 p 6 6 / a n 6 p 6 5 / a n 5 p 6 4 / a n 4 p 5 7 / a d t / d a 2 p 5 6 / d a 1 p 5 5 / c n t r 1 p 5 4 / c n t r 0 p 4 1 / i n t 1 p 4 0 p 4 3 / / t o u t p 5 3 / r t p 1 p 5 2 / r t p 0 p 5 1 / p w m 1 p 5 0 / p w m 0 p 7 7 p 4 2 / i n t 2 p7 2 p7 3 p7 1 p7 0 /int 0 x cin x cout x in x out v ss p2 7 p2 6 p2 5 p2 4 p2 3 p2 1 p1 6 p2 2 p2 0 p1 7 reset p7 6 p7 5 p7 4 p1 5 /seg 39 p1 4 /seg 38 p 3 1 / s e g 1 9 p 3 0 / s e g 1 8 p 3 2 / s e g 2 0 p 3 3 / s e g 2 1 p 3 4 / s e g 2 2 s e g 1 3 s e g 1 4 s e g 1 5 p 3 5 / s e g 2 3 p 3 6 / s e g 2 4 p 3 7 / s e g 2 5 p 0 0 / s e g 2 6 p 0 1 / s e g 2 7 p 0 2 / s e g 2 8 p 0 3 / s e g 2 9 p 0 4 / s e g 3 0 p 0 5 / s e g 3 1 p 0 6 / s e g 3 2 p 0 7 / s e g 3 3 p 1 0 / s e g 3 4 p 1 1 / s e g 3 5 p 1 2 / s e g 3 6 p 1 3 / s e g 3 7 s e g 1 6 s e g 1 7 p 6 2 / s c l k 2 1 / a n 2 p 6 1 / s o u t 2 / a n 1 p 6 0 / s i n 2 / a n 0 p 6 3 / s c l k 2 2 / a n 3 p 4 6 / s c l k 1 p 4 5 / t x d p 4 4 / r x d p 4 7 / s r d y 1 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 3 functional block diagram (package type: 100p6s-a) fig. 3 functional block diagram i n t 1 , i n t 2 c n t r 0 , c n t r 1 d a 1 a d t c p u a x y s p c h p c l p s r e s e t v c c v s s ( 5 v ) ( 0 v ) r o m r a m 3 5 9 1 4 0 p 4 ( 8 ) p 2 ( 8 ) p 0 ( 8 ) p 1 ( 8 ) p 6 ( 8 ) p 7 ( 8 ) p 3 ( 8 ) p 5 ( 8 ) 1 2 1 0 0 9 9 9 8 9 7 9 6 9 5 9 4 9 0 8 9 8 8 8 7 8 6 8 5 8 4 8 3 8 2 8 1 8 0 7 9 7 8 7 7 7 6 7 5 7 4 7 3 5 7 5 8 5 9 6 0 6 1 6 2 6 3 6 4 4 9 5 0 5 1 5 2 5 3 5 4 5 5 5 6 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 6 5 6 6 6 7 6 8 6 9 7 0 7 1 7 2 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 3 6 3 7 2 7 2 8 2 9 3 0 3 1 3 2 3 3 3 4 3 4 5 6 7 8 9 1 0 9 3 9 2 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 x c i n x c o u t x i n o u t x c o u t x x c i n s i / o 1 ( 8 ) v r e f a v s s v l 1 c 1 c 2 v l 2 v l 3 c o m 0 c o m 1 c o m 2 c o m 3 s e g 0 s e g 1 s e g 2 s e g 3 s e g 4 s e g 5 s e g 6 s e g 7 s e g 8 s e g 9 s e g 1 0 s e g 1 1 s e g 1 2 s e g 1 3 s e g 1 4 s e g 1 5 s e g 1 6 s e g 1 7 x c i n c o u t x 3 8 3 9 s i / o 2 ( 8 ) p w m ( 8 ) i n t 0 d - a 2 d - a 1 d a 2 t o u t l c d d r i v e c o n t r o l c i r c u i t l c d d i s p l a y r a m ( 2 0 b y t e s ) t i m e r x ( 1 6 ) t i m e r y ( 1 6 ) t i m e r 1 ( 8 ) t i m e r 2 ( 8 ) t i m e r 3 ( 8 ) d a t a b u s c l o c k g e n e r a t i n g c i r c u i t m a i n c l o c k i n p u t m a i n cl o c k o u t p u t s u b - c l o c k o u t p u t s u b - c l o c k i n p u t r e s e t k e y i n p u t ( k e y - o n w a k e u p ) i n t e r r u p t r e a l t i m e p o r t f u n c t i o n a - d c o n v e r t e r ( 8 ) i / o p o r t p 0 i / o p o r t p 1 i / o p o r t p 2 i / o p o r t p 4 i / o p o r t p 5 i / o p o r t p 6 o u t p u t p o r t p 3 i / o p o r t p 7 r e s e t i n p u t s u b - c l o c k o u t p u t s u b - c l o c k i n p u t w a t c h d o g t i m e r single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 4 pin description table 1 pin description (1) v cc , v ss function pin name function except a port function lcd segment output pins power source apply voltage of 2.2 v to 5.5 v (2.5 to 5.5 v for eprom and one time prom version, 3.0 to 5.5 v for extended operating temperature version) to v cc , and 0 v to v ss . v ref av ss reset x in x out v l1 v l3 c 1 , c 2 com 0 com 3 seg 0 seg 17 p0 0 /seg 26 p0 7 /seg 33 p1 0 /seg 34 p1 5 /seg 39 p1 6 , p1 7 p2 0 p2 7 p3 0 /seg 18 p3 7 /seg 25 analog refer- ence voltage analog power source reset input clock input clock output lcd power source charge-pump capacitor pin common output segment output i/o port p0 i/o port p1 i/o port p2 output port p3 reference voltage input pin for a-d converter and d-a converter. gnd input pin for a-d converter and d-a converter. connect to v ss . reset input pin for active l . input and output pins for the main clock generating circuit. connect a ceramic resonator or a quartz-crystal oscillator between the x in and x out pins to set the oscillation frequency. if an external clock is used, connect the clock source to the x in pin and leave the x out pin open. a feedback resistor is built-in. input 0 v l1 v l2 v l3 voltage. input 0 v l3 voltage to lcd. (0 v l1 v l2 v l3 when a voltage is multiplied.) external capacitor pins for a voltage multiplier (3 times) of lcd control. lcd common output pins. com 2 and com 3 are not used at 1/2 duty ratio. com 3 is not used at 1/3 duty ratio. lcd segment output pins. 8-bit i/o port. cmos compatible input level. cmos 3-state output structure. pull-up control is enabled. i/o direction register allows each 8-bit pin to be pro- grammed as either input or output. 6-bit i/o port. cmos compatible input level. cmos 3-state output structure. pull-up control is enabled. i/o direction register allows each 6-bit pin to be pro- grammed as either input or output. 2-bit i/o port. cmos compatible input level. cmos 3-state output structure. i/o direction register allows each pin to be individually programmed as either input or output. pull-up control is enabled. 8-bit i/o port. cmos compatible input level. cmos 3-state output structure. i/o direction register allows each pin to be individually programmed as either input or output. pull-up control is enabled. 8-bit output. cmos 3-state output structure. port output control is enabled. key input (key-on wake-up) interrupt input pins lcd segment output pins single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 5 table 2 pin description (2) function pin name function except a port function p4 0 p4 1 /int 1 , p4 2 /int 2 p4 3 / /t out p4 4 /r x d, p4 5 /t x d, p4 6 /s clk1 , p4 7 /s rdy1 p5 0 /pwm 0 , p5 1 /pwm 1 p5 2 /rtp 0 , p5 3 /rtp 1 p5 4 /cntr 0 , p5 5 /cntr 1 p5 6 /da 1 p5 7 /adt/da 2 p6 0 /s in2 /an 0, p6 1 /s out2 /an 1, p6 2 /s clk21 /an 2, p6 3 /s clk22 /an 3 p6 4 /an 4 p6 7 /an 7 p7 0 /int 0 p7 1 p7 7 i/o port p4 i/o port p5 i/o port p6 input port p7 i/o port p7 sub-clock output sub-clock input 1-bit i/o port. cmos compatible input level. n-channel open-drain output structure. i/o direction register allows this pin to be individually programmed as either input or output. 7-bit i/o port. cmos compatible input level. cmos 3-state output structure. i/o direction register allows each pin to be individually programmed as either input or output. pull-up control is enabled. 8-bit i/o port. cmos compatible input level. cmos 3-state output structure. i/o direction register allows each pin to be individually programmed as either input or output. pull-up control is enabled. 8-bit i/o port. cmos compatible input level. cmos 3-state output structure. i/o direction register allows each pin to be individually programmed as either input or output. pull-up control is enabled. 1-bit input port. int i interrupt input pins system clock output pin timer 2 output pin serial i/o1 i/o pins pwm output pins real time port output pins timer x, y i/o pins d-a converter output pin d-a converter output pin a-d external trigger input pin a-d converter input pins serial i/o2 i/o pins a-d converter input pins x cout x cin int 0 interrupt input pin 7-bit i/o port. cmos compatible input level. n-channel open-drain output structure. i/o direction register allows each pin to be individually programmed as either input or output. sub-clock generating circuit i/o pins. (connect a oscillator. external clock cannot be used.) single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 6 part numbering fig. 4 part numbering m 3 7 5 6 0 m f d x x x f p p ro d uct rom/prom s i ze 1 2 3 4 5 6 7 8 9 a b c d e f : 4096 b ytes : 8192 bytes : 12288 bytes : 16384 bytes : 20480 bytes : 24576 bytes : 28672 bytes : 32768 bytes : 36864 bytes : 40960 bytes : 45056 bytes : 49152 bytes : 53248 bytes : 57344 bytes : 61440 bytes t h e f i r s t 1 2 8 b y t e s a n d t h e l a s t 2 b y t e s o f r o m a r e r e s e r v e d a r e a s ; t h e y c a n n o t b e u s e d . m emory type m e : m as k rom vers i on : eprom and one time prom version rom num b er p a c k a g e t y p e f p g p f s : 100p6s-a : 100p6q-a : 100d0 d : e xten d e d operat i ng temperature vers i on o m i tte d i n o ne ti me prom vers i on an d eprom vers i on. o m i tte d i n stan d ar d vers i on. single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 7 group expansion mitsubishi expands the 7560 group as follows. memory type support for mask rom version. memory size rom size ........................................................... 32 k to 60 k bytes ram size .......................................................... 1024 to 2560 bytes packages 100p6q-a .................................. 0.5 mm-pitch plastic molded qfp 100p6s-a ................................ 0.65 mm-pitch plastic molded qfp memory expansion fig. 5 memory expansion rom size (bytes) ram size (bytes) 256 5 1 27 6 8 1024 1280 1 5 3 6 1792 1 9 2 2 0 4 82 3 0 4 2560 32k 28k 24k 20k 16k 1 2 k 8 k 4k 5 2 k 4 8 k 4 4 k 4 0 k 3 6 k 5 6 k 6 0 k m 3 7 5 6 0 m f m a s s p r o d u c t m37560m8 m a s s p r o d u c t currently products are listed below. table 3 list of products as of jan. 2003 remarks mask rom version mask rom version mask rom version mask rom version package 100p6s-a 100p6q-a 100p6s-a 100p6q-a product m37560m8-xxxfp m37560m8-xxxgp m37560mf-xxxfp m37560mf-xxxgp ram size (bytes) 1024 32768 (32638) 61440 (61310) rom size (bytes) rom size for user in ( ) 2560 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 8 group expansion (one time and eprom version) mitsubishi expands the 7560 group as follows. memory type support for one time and eprom version. memory size rom size ........................................................................ 60 k bytes ram size ....................................................................... 2560 bytes packages 100p6q-a .................................. 0.5 mm-pitch plastic molded qfp 100p6s-a ................................ 0.65 mm-pitch plastic molded qfp 100d0 .......................................... ceramic lcc (eprom version) memory expansion fig. 6 memory expansion currently products are listed below. table 4 list of products as of jan. 2003 remarks one time prom version one time prom version eprom version package 100p6s-a 100p6q-a 100d0 product m37560effp M37560EFGP m37560effs ram size (bytes) 61440 (61310) rom size (bytes) rom size for user in ( ) 2560 r o m s i z e ( b y t e s ) ram size (bytes) 2 5 65 1 2 768 1 0 2 4 1280 1536 1792 1 9 2 2 0 4 8 2304 2560 32k 28k 24k 20k 16k 1 2 k 8 k 4k 5 2 k 4 8 k 4 4 k 4 0 k 3 6 k 5 6 k 6 0 k m 3 7 5 6 0 e f mass product single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 9 group expansion (extended operating temperature version) mitsubishi expands the 7560 group as follows. memory type support for extended operating temperature version. memory size rom size ........................................................................ 60 k bytes ram size ....................................................................... 2560 bytes packages 100p6s-a ................................ 0.65 mm-pitch plastic molded qfp memory expansion fig. 7 memory expansion currently products are listed below. table 5 list of products as of jan. 2003 remarks mask rom version (extended operating temperature version) one time prom version (extended operating temperature version) package product m37560mfd-xxxfp m37560efdfp ram size (bytes) 61440 (61310) rom size (bytes) rom size for user in ( ) 2560 100p6s-a rom size (bytes) ram size (bytes) 256 512 768 1024 1280 1536 1792192 2048 2304 2560 32k 28k 24k 20k 16k 12k 8 k 4k 5 2 k 48k 44k 4 0 k 36k 56k 60 k m37560efd m37560mfd mass product single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 10 functional description central processing unit (cpu) the 7560 group uses the standard 740 family instruction set. re- fer to the table of 740 family addressing modes and machine instructions or the 740 family software manual for details on the instruction set. machine-resident 740 family instructions are as follows: the fst and slw instruction cannot be used. the stp, wit, mul, and div instruction can be used. the central processing unit (cpu) has six registers. figure 8 shows the 740 family cpu register structure. [accumulator (a)] the accumulator is an 8-bit register. data operations such as arithmetic data transfer, etc., are executed mainly through the ac- cumulator. [index register x (x)] the index register x is an 8-bit register. in the index addressing modes, the value of the operand is added to the contents of register x and specifies the real address. [index register y (y)] the index register y is an 8-bit register. in partial instruction, the value of the operand is added to the contents of register y and specifies the real address. [stack pointer (s)] the stack pointer is an 8-bit register used during subroutine calls and interrupts. this register indicates start address of stored area (stack) for storing registers during subroutine calls and interrupts. the low-order 8 bits of the stack address are determined by the contents of the stack pointer. the high-order 8 bits of the stack address are determined by the stack page selection bit. if the stack page selection bit is 0 , the high-order 8 bits becomes 00 16 . if the stack page selection bit is 1 , the high-order 8 bits becomes 01 16 . figure 9 shows the operations of pushing register contents onto the stack and popping them from the stack. table 6 shows the push and pop instructions of accumulator or processor status reg- ister. store registers other than those described in figure 9 with pro- gram when the user needs them during interrupts or subroutine calls. [program counter (pc)] the program counter is a 16-bit counter consisting of two 8-bit registers pc h and pc l . it is used to indicate the address of the next instruction to be executed. fig. 8 740 family cpu register structure a accumulator b7 b7 b7 b7 b0 b7b15 b0 b7 b0 b0 b0 b0 x index register x y index register y s stack pointer pc l program counter pc h n v t b d i z c processor status register (ps) carry flag zero flag interrupt disable flag decimal mode flag break flag index x mode flag overflow flag negative flag single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 11 table 6 push and pop instructions of accumulator or processor status register accumulator processor status register push instruction to stack pha php pop instruction from stack pla plp fig. 9 register push and pop at interrupt generation and subroutine call n o t e : c o n d i t i o n f o r a c c e p t a n c e o f a n i n t e r r u p t r e q u e s t h e r e e x e c u t e j s r on-going routin e m ( s )( p c h ) ( s ) ( s ) 1 m ( s )( p c l ) e x e c u t e r t s (pc l )m (s) ( s ) ( s ) 1 ( s ) ( s ) + 1 ( s ) ( s ) + 1 (pc h )m (s) s u b r o u t i n e pop return address from stack p u s h r e t u r n a d d r e s s o n s t a c k m (s) (ps) execute rti ( p s )m ( s ) (s) (s) 1 (s) (s) + 1 interrupt service routine pop contents of processor status register from stack m ( s )( p c h ) (s) ( s ) 1 m ( s )( p c l ) (s) (s) 1 (pc l )m (s) (s) (s) + 1 (s) (s) + 1 ( p c h )m ( s ) pop return address from stack i f l a g i s s e t f r o m 0 t o 1 f e t c h t h e j u m p v e c t o r p u s h r e t u r n a d d r e s s o n s t a c k push contents of processor status register on stack interrupt request ( n o t e ) i n t e r r u p t e n a b l e b i t c o r r e s p o n d i n g t o e a c h i n t e r r u p t s o u r c e i s 1 i n t e r r u p t d i s a b l e f l a g i s 0 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 12 [processor status register (ps)] the processor status register is an 8-bit register consisting of 5 flags which indicate the status of the processor after an arithmetic operation and 3 flags which decide mcu operation. branch opera- tions can be performed by testing the carry (c) flag , zero (z) flag, overflow (v) flag, or the negative (n) flag. in decimal mode, the z, v, n flags are not valid. bit 0: carry flag (c) the c flag contains a carry or borrow generated by the arith- metic logic unit (alu) immediately after an arithmetic operation. it can also be changed by a shift or rotate instruction. bit 1: zero flag (z) the z flag is set to 1 if the result of an immediate arithmetic op- eration or a data transfer is 0 , and set to 0 if the result is anything other than 0 . bit 2: interrupt disable flag (i) the i flag disables all interrupts except for the interrupt gener- ated by the brk instruction. interrupts are disabled when the i flag is 1 . bit 3: decimal mode flag (d) the d flag determines whether additions and subtractions are executed in binary or decimal. binary arithmetic is executed when this flag is 0 ; decimal arithmetic is executed when it is 1 . decimal correction is automatic in decimal mode. only the adc and sbc instructions can be used for decimal arithmetic. bit 4: break flag (b) the b flag is used to indicate that the current interrupt was gen- erated by the brk instruction. when the brk instruction is generated, the b flag is set to 1 automatically. when the other interrupts are generated, the b flag is set to 0 , and the proces- sor status register is pushed onto the stack. bit 5: index x mode flag (t) when the t flag is 0 , arithmetic operations are performed be- tween accumulator and memory. when the t flag is 1 , direct arithmetic operations and direct data transfers are enabled be- tween memory locations. bit 6: overflow flag (v) the v flag is used during the addition or subtraction of one byte of signed data. it is set to 1 if the result exceeds +127 to -128. when the bit instruction is executed, bit 6 of the memory loca- tion operated on by the bit instruction is stored in the v flag. bit 7: negative flag (n) the n flag is set to 1 if the result of an arithmetic operation or data transfer is negative. when the bit instruction is executed, bit 7 of the memory location operated on by the bit instruction is stored in the negative flag. table 7 instructions to set each bit of processor status register to ??or ? instruction setting to 1 instruction setting to 0 c flag sec clc z flag i flag sei cli d flag sed cld b flag t flag set clt v flag clv n flag single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 13 [cpu mode register (cpum)] 003b 16 the cpu mode register contains the stack page selection bit and the system clock control bits, etc. the cpu mode register is allocated at address 003b 16 . fig. 10 structure of cpu mode register p rocessor mo d e bi ts b1 b0 0 0 : single-chip mode 0 1 : 1 0 : 1 1 : stack page selection bit 0 : 0 page 1 : 1 page not used ( 1 at reading) (write 1 to this bit at writing) x c switch bit 0 : oscillation stop 1 : x cin x cout oscillating function main clock (x in x out ) stop bit 0 : oscillating 1 : stopped main clock division ratio selection bit 0 : f(x in )/2 (high-speed mode) 1 : f(x in )/8 (middle-speed mode) system clock selection bit 0 : x in x out selected (middle-/high-speed mode) 1 : x cin x cout selected (low-speed mode) d o not se l ect c p u m o d e r e g i s t e r (cpum (cm) : address 003b 16 ) b 7 b 0 1 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 14 memory special function register (sfr) area the special function register area in the zero page contains con- trol registers such as i/o ports and timers. ram ram is used for data storage and for stack area of subroutine calls and interrupts. rom the first 128 bytes and the last 2 bytes of rom are reserved for device testing and the rest is user area for storing programs. interrupt vector area the interrupt vector area contains reset and interrupt vectors. zero page the 256 bytes from addresses 0000 16 to 00ff 16 are called the zero page area. the internal ram and the special function regis- ters (sfr) are allocated to this area. the zero page addressing mode can be used to specify memory and register addresses in the zero page area. access to this area with only 2 bytes is possible in the zero page addressing mode. special page the 256 bytes from addresses ff00 16 to ffff 16 are called the special page area. the special page addressing mode can be used to specify memory addresses in the special page area. ac- cess to this area with only 2 bytes is possible in the special page addressing mode. fig. 11 memory map diagram 1 9 2 2 5 6 3 8 4 5 1 2 6 4 0 7 6 8 8 9 6 1 0 2 4 1 5 3 6 2 0 4 8 2 5 6 0 00 ff 16 013f 16 01bf 16 023f 16 02bf 16 033f 16 03bf 16 043f 16 063f 16 083f 16 0a3f 16 r a m a r e a r a m s i z e ( b y t e s ) a d d r e s s x x x x 1 6 4 0 9 6 8 1 9 2 1 2 2 8 8 1 6 3 8 4 2 0 4 8 0 2 4 5 7 6 2 8 6 7 2 3 2 7 6 8 3 6 8 6 4 4 0 9 6 0 4 5 0 5 6 4 9 1 5 2 5 3 2 4 8 5 7 3 4 4 6 1 4 4 0 f 0 0 0 1 6 e 0 0 0 1 6 d 0 0 0 1 6 c 0 0 0 1 6 b 0 0 0 1 6 a 0 0 0 1 6 9 0 0 0 1 6 8 0 0 0 1 6 7 0 0 0 1 6 6 0 0 0 1 6 5 0 0 0 1 6 4 0 0 0 1 6 3 0 0 0 1 6 2 0 0 0 1 6 1 0 0 0 1 6 f 0 8 0 1 6 e 0 8 0 1 6 d 0 8 0 1 6 c 0 8 0 1 6 b 0 8 0 1 6 a 0 8 0 1 6 9 0 8 0 1 6 8 0 8 0 1 6 7 0 8 0 1 6 6 0 8 0 1 6 5 0 8 0 1 6 4 0 8 0 1 6 3 0 8 0 1 6 2 0 8 0 1 6 1 0 8 0 1 6 rom area rom s i ze (bytes) a d d r e s s y y y y 1 6 a d d r e s s z z z z 1 6 0100 16 0000 16 0040 16 ff 00 16 ffdc 16 f f f e 1 6 ffff 16 xxxx 16 yyyy 16 zzzz 16 ram r o m 0054 16 s f r a r e a n o t u s e d i n t e r r u p t v e c t o r a r e a r eserve d rom area (128 bytes) z e r o p a g e s p e c i a l p a g e lcd di sp l ay ram area r e s e r v e d r o m a r e a single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 15 fig. 12 memory map of special function register (sfr) 0 0 2 0 1 6 0 0 2 1 1 6 0 0 2 2 1 6 0 0 2 3 1 6 0 0 2 4 1 6 0025 16 0 0 2 6 1 6 0 0 2 7 1 6 0 0 2 8 1 6 0 0 2 9 1 6 0 0 2 a 1 6 0 0 2 b 1 6 002 c 16 002 d 16 0 0 2 e 1 6 002 f 16 0 0 3 0 1 6 0 0 3 1 1 6 0 0 3 2 1 6 0 0 3 3 1 6 0034 16 0 0 3 5 1 6 0036 16 0037 16 0038 16 0039 16 003 a 16 0 0 3 b 1 6 003 c 16 003 d 16 0 0 3 e 1 6 003 f 16 0 0 0 0 1 6 0 0 0 1 1 6 0 0 0 2 1 6 0 0 0 3 1 6 0 0 0 4 1 6 0005 16 0 0 0 6 1 6 0 0 0 7 1 6 0 0 0 8 1 6 0 0 0 9 1 6 0 0 0 a 1 6 0 0 0 b 1 6 0 0 0 c 1 6 0 0 0 d 1 6 0 0 0 e 1 6 0 0 0 f 1 6 0 0 1 0 1 6 0 0 1 1 1 6 0 0 1 2 1 6 0 0 1 3 1 6 0014 16 0 0 1 5 1 6 0016 16 0017 16 0018 16 0019 16 001 a 16 001 b 16 001 c 16 001 d 16 0 0 1 e 1 6 0 0 1 f 1 6 p o r t p 0 r e g i s t e r ( p 0 ) p o r t p 1 r e g i s t e r ( p 1 ) p ort p 1 di rect i on reg i ster (p 1 d) p o r t p 2 r e g i s t e r ( p 2 ) p o r t p 2 d i r e c t i o n r e g i s t e r ( p 2 d ) p ort p 3 reg i ster (p 3 ) p o r t p 4 r e g i s t e r ( p 4 ) p o r t p 4 d i r e c t i o n r e g i s t e r ( p 4 d ) p o r t p 5 r e g i s t e r ( p 5 ) p o r t p 5 d i r e c t i o n r e g i s t e r ( p 5 d ) p o r t p 6 r e g i s t e r ( p 6 ) p o r t p 6 d i r e c t i o n r e g i s t e r ( p 6 d ) p o r t p 7 r e g i s t e r ( p 7 ) p o r t p 7 d i r e c t i o n r e g i s t e r ( p 7 d ) s e r i a l i / o 1 s t a t u s r e g i s t e r ( s i o 1 s t s ) s er i a l i / o 1 contro l reg i ster (sio 1 con) u a r t c o n t r o l r e g i s t e r ( u a r t c o n ) b au d rate generator (brg) i n t e r r u p t c o n t r o l r e g i s t e r 2 ( i c o n 2 ) t i m e r 3 r e g i s t e r ( t 3 ) t i m e r x m o d e r e g i s t e r ( t x m ) i n t e r r u p t e d g e s e l e c t i o n r e g i s t e r ( i n t e d g e ) cpu mo d e reg i ster (cpum) i nterrupt request reg i ster 1 (ireq 1 ) i nterrupt request reg i ster 2 (ireq 2 ) i n t e r r u p t c o n t r o l r e g i s t e r 1 ( i c o n 1 ) t i m e r x l o w - o r d e r r e g i s t e r ( t x l ) t i m e r y l o w - o r d e r r e g i s t e r ( t y l ) ti mer 1 reg i ster (t 1 ) t i m e r 2 r e g i s t e r ( t 2 ) ti mer x hi g h -or d er reg i ster (txh) t i m e r y h i g h - o r d e r r e g i s t e r ( t y h ) p u l l r e g i s t e r a ( p u l l a ) p u l l r e g i s t e r b ( p u l l b ) t i m e r y m o d e r e g i s t e r ( t y m ) ti mer 123 mo d e reg i ster (t 123 m) t o u t / o u t p u t c o n t r o l r e g i s t e r ( c k o u t ) s egment output ena bl e reg i ster (seg) lcd mo d e reg i ster (lm) a - d c o n t r o l r e g i s t e r ( a d c o n ) a - d convers i on hi g h -or d er register (adh) t ransm i t/ r ece i ve b u ff er reg i ster (tb / rb) k e y i n p u t c o n t r o l r e g i s t e r ( k i c ) p o r t p 0 d i r e c t i o n r e g i s t e r ( p 0 d ) p o r t p 3 o u t p u t c o n t r o l r e g i s t e r ( p 3 c ) r eserve d area (n ote ) s e r i a l i / o 2 c o n t r o l r e g i s t e r ( s i o 2 c o n ) s e r i a l i / o 2 r e g i s t e r ( s i o 2 ) p w m c o n t r o l r e g i s t e r ( p w m c o n ) pwm presca l er (prepwm) pwm reg i ster (pwm) r eserve d area (n ote ) r eserve d area (n ote ) r e s e r v e d a r e a ( n o t e ) r eserve d area (n ote ) d - a 1 c o n v e r s i o n r e g i s t e r ( d a 1 ) d - a 2 convers i on reg i ster (da 2 ) d - a contro l reg i ster (dacon) w a t c h d o g t i m e r c o n t r o l r e g i s t e r ( w d t c o n ) n ote: d o not wr i te to t h e a dd resses o f reserve d area. a - d c o n v e r s i o n l o w - o r d e r r e g i s t e r ( a d l ) single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 16 i/o ports direction registers the i/o ports (ports p0, p1, p2, p4, p5, p6, p7 1 p7 7 ) have direc- tion registers. ports p1 6 , p1 7 , p4, p5, p6, and p7 1 p7 7 can be set to input mode or output mode by each pin individually. p0 0 p0 7 and p1 0 -p1 5 are respectively set to input mode or output mode in a lump by bit 0 of the direction registers of ports p0 and p1 (see figure 13). when 0 is set to the bit corresponding to a pin, that pin becomes an input mode. when 1 is set to that bit, that pin becomes an output mode. if data is read from a port set to output mode, the value of the port latch is read, not the value of the pin itself. a port set to input mode is floating. if data is read from a port set to input mode, the value of the pin itself is read. if a pin set to input mode is written to, only the port latch is written to and the pin remains floating. port p3 output control register bit 0 of the port p3 output control register (address 0007 16 ) en- ables control of the output of ports p3 0 p3 7 . when the bit is set to 1 , the port output function is valid. when resetting, bit 0 of the port p3 output control register is set to 0 (the port output function is invalid) and pulled up. fig. 13 structure of port p0 direction register, port p1 direc- tion register fig. 14 structure of port p3 output control register p orts p 0 0 to p 0 7 di rect i on reg i ster 0 : input mode 1 : output mode not used (undefined at reading) (if writing to these bits, write 0 .) p ort p 0 di rect i on reg i ster (p0d : address 0001 16 ) b 7 b 0 n ote: i n ports set to output mo d e, t h e pu ll -up contro l bi t b ecomes invalid and pull-up resistor is not connected. p orts p 1 0 to p 1 5 di rect i on reg i ster 0 : input mode 1 : output mode not used (undefined at reading) (if writing to these bits, write 0 .) port p1 6 direction register port p1 7 direction register 0 : input mode 1 : output mode p ort p 1 di rect i on reg i ster (p1d : address 0003 16 ) b 7 b 0 p orts p 3 0 to p 3 7 output contro l bi t 0 : output function is invalid (pulled up) 1 : output function is valid (no pull up) not used (undefined at reading) (if writing to these bits, write 0 .) p ort p 3 output contro l reg i ster (p3c : address 0007 16 ) b 7 b 0 n o t e : i n p i n s s e t t o s e g m e n t o u t p u t b y s e g m e n t o u t p u t e n a b l e b i t s 0 , 1 ( b i t s 0 , 1 o f s e g m e n t o u t p u t e n a b l e r e g i s t e r ( a d d r e s s 3 8 1 6 ) ) , t h i s b i t b e c o m e s i n v a l i d a n d p u l l - u p r e s i s t o r i s n o t c o n n e c t e d . single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 17 fig. 15 structure of pull register a and pull register b pull-up control by setting the pull register a (address 0016 16 ) or the pull reg- ister b (address 0017 16 ), ports p0 to p2, p4 to p6 can control pull-up with a program. however, the contents of pull register a and pull register b do not affect ports set to output mode and the ports are no pulled up. the pull register a setting is invalid for pins selecting segment output with the segment output enable register and the pins are not pulled up. p 0 0 , p 0 1 pu ll -up contro l bi t p0 2 , p0 3 pull-up control bit p0 4 p0 7 pull-up control bit p1 0 p1 3 pull-up control bit p1 4 , p1 5 pull-up control bit p1 6 , p1 7 pull-up control bit p2 0 p2 3 pull-up control bit p2 4 p2 7 pull-up control bit p u l l r e g i s t e r a ( p u l l a : a d d r e s s 0 0 1 6 1 6 ) b 7 b 0 p 4 1 p 4 3 pu ll -up contro l bi t p4 4 p4 7 pull-up control bit p5 0 p5 3 pull-up control bit p5 4 p5 7 pull-up control bit p6 0 p6 3 pull-up control bit p6 4 p6 7 pull-up control bit not used 0 at reading) 0 : d i s a b l e 1 : e n a b l e p u l l r e g i s t e r b ( p u l l b : a d d r e s s 0 0 1 7 1 6 ) b 7 b 0 n ote: th e contents o f pull reg i ster a an d pull reg i ster b do not affect ports set to output mode. single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 18 pwm output da 2 output a-d external trigger input da 1 output diagram no. related sfrs input/output name pin non-port function i/o format table 8 list of i/o port function (1) p0 0 /seg 26 p0 7 /seg 33 p1 0 /seg 34 p1 5 /seg 39 p1 6 , p1 7 p2 0 p2 7 p3 0 /seg 18 p3 7 /seg 25 p4 0 p4 1 /int 1 , p4 2 /int 2 p4 3 / /t out p4 4 /r x d, p4 5 /t x d, p4 6 /s clk1 , p4 7 /s rdy1 p5 0 /pwm 0 , p5 1 /pwm 1 p5 2 /rtp 0 , p5 3 /rtp 1 p5 4 /cntr 0 p5 5 /cntr 1 p5 6 /da 1 p5 7 /adt/ da 2 port p0 port p1 port p2 port p3 port p4 port p5 input/output, byte unit input/output, 6-bit unit input/output, individual bits input/output, individual bits output input/output, individual bits input/output, individual bits cmos compatible input level cmos 3-state output cmos compatible input level cmos 3-state output cmos compatible input level cmos 3-state output cmos compatible input level cmos 3-state output cmos 3-state output cmos compatible input level n-channel open-drain output cmos compatible input level cmos 3-state output cmos compatible input level cmos 3-state output lcd segment output lcd segment output key input (key-on wake-up) interrupt input lcd segment output int i interrupt input timer 2 output system clock output serial i/o1 i/o real time port output timer x i/o timer y input pull register a segment output enable register pull register a segment output enable register pull register a pull register a interrupt control register 2 key input control register segment output enable register interrupt edge selection register pull register b timer 123 mode register t out / output control register pull register b serial i/o1 control register serial i/o1 status register uart control register pull register b pwm control register pull register b timer x mode register pull register b timer x mode register pull register b timer y mode register pull register b d-a control register pull register b d-a control register a-d control register (1) (2) (1) (2) (4) (3) (13) (4) (12) (5) (6) (7) (8) (10) (9) (11) (14) (15) (15) port p3 output control register single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 19 pin name i/o format non-port function related sfr s diagram no. input/output notes 1: how to use double-function ports as function i/o pins, refer to the applicable sections. 2: make sure that the input level at each pin is either 0 v or v cc before execution of the stp instruction. when an electric potential is at an intermediate potential, a current will flow from v cc to v ss through the input-stage gate and power source current may increase. table 9 list of i/o port function (2) p6 0 /s in2 /an 0 p6 1 /s out2 / an 1 p6 2 /s clk21 / an 2 p6 3 /s clk22 / an 3 p6 4 /an 4 p6 7 /an 7 p7 0 /int 0 p7 1 p7 7 com 0 com 3 seg 0 seg 17 port p6 port p7 common segment input/ output, individual bits input input/ output, individual bits output output cmos compatible input level cmos 3-state output cmos compatible input level cmos compatible input level n-channel open-drain output lcd common output lcd segment output a-d converter input serial i/o2 i/o a-d converter input int 0 interrupt input pull register b a-d control register serial i/o2 control register a-d control register pull register b interrupt edge selection register (17) (18) (19) (20) (16) (23) (13) (21) (22) lcd mode register single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 20 fig. 16 port block diagram (1) (5) port p4 4 ( 4 ) p o r t s p 1 6 , p 1 7 , p 2 , p 4 1 , p 4 2 pull-up control v l 1 / v s s v l2 /v l3 /v cc v l1 /v ss v l 2 / v l 3 / v c c v l1 /v ss v l 2 / v l 3 / v c c ( 1 ) p o r t s p 0 1 p 0 7 , p 1 1 p 1 5 d a t a b u s p o r t l a t c h i n t e r f a c e l o g i c l e v e l s h i f t c i r c u i t p u l l - u p p o r t s e g m e n t s e g m e n t / p o r t l c d d r i v e t i m i n g s e g m e n t o u t p u t e n a b l e b i t s e g m e n t d a t a port direction register p o r t d i r e c t i o n r e g i s t e r ( 2 ) p o r t s p 0 0 , p 1 0 d a t a b u sp o r t l a t c h interface logic level shift circuit port s e g m e n t segment/port lcd drive timing s e g m e n t d a t a port direction register d i r e c t i o n r e g i s t e r pull-up d a t a b u s port latch i n t e r f a c e l o g i c l e v e l s h i f t c i r c u i t p o r t s e g m e n t segment/port lcd drive timing segment data p o r t p 3 ou t p u t c o n t r o l b i t pull-up ( 3 ) p o r t p 3 d a t a b u s port latch d i r e c t i o n r e g i s t e r key input interrupt input int 1 , int 2 interrupt input e x c e p t p 1 6 , p 1 7 p u l l - u p c o n t r o l data bus port latch d i r e c t i o n r e g i s t e r s e r i a l i / o 1 e n a b l e b i t s e r i a l i / o 1 i n p u t r e c e i v e e n a b l e b i t s e g m e n t o u t p u t e n a b l e b i t s e g m e n t o u t p u t e n a b l e b i t port p3 output control bit single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 21 fig. 17 port block diagram (2) (6) port p4 5 (7) port p4 6 (8) port p4 7 (9) ports p5 2 ,p5 3 ( 1 0 ) p o r t s p 5 0 , p 5 1 p w m f u n c t i o n e n a b l e b i t p w m o u t p u t ( 1 1 ) p o r t p 5 4 pulse output mode timer output cntr 0 interrupt inpu t p u l l - u p c o n t r o l d i r e c t i o n r e g i s t e r d a t a b u s p o r t l a t c h s e r i a l i / o 1 o u t p u t p 4 5 / t x d p - c h a n n e l o u t p u t d i s a b l e b i t s e r i a l i / o 1 e n a b l e b i t t r a n s m i t e n a b l e b i t serial i/o1 clock output d i r e c t i o n r e g i s t e r data bus p o r t l a t c h p u l l - u p c o n t r o l s e r i a l i / o 1 e n a b l e b i t s e r i a l i / o 1 c l o c k i n p u t serial i/o1 synchronous clock selection bit serial i/o1 mode selection bit serial i/o1 enable bit p u l l - u p c o n t r o l s e r i a l i / o 1 m o d e s e l e c t i o n b i t s e r i a l i / o 1 e n a b l e b i t s r d y 1 o u t p u t e n a b l e b i t d i r e c t i o n r e g i s t e r data bus port latch serial i/o1 ready output d i r e c t i o n r e g i s t e r data bus port latch pull-up control real time port control bit real time port data p u l l - u p c o n t r o l direction register data bus port latch p u l l - u p c o n t r o l d i r e c t i o n r e g i s t e r d a t a b u s p o r t l a t c h single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 22 fig. 18 port block diagram (3) (12) port p4 3 t out / output enable bit timer 2 t out output system clock output t out / output selection bit (13) ports p4 0 ,p7 1 ?7 7 (14) port p5 5 cntr 1 interrupt input (15) ports p5 6 ,p5 7 a-d external trigger input d-a converter output except p5 6 (16) ports p6 4 ?6 7 (17) port p6 0 analog input pin selection bit a-d converter input serial i/o2 input da 1 , da 2 output enable bits direction register port latch data bus pull-up control direction register port latch data bus direction register port latch data bus pull-up control direction register port latch data bus pull-up control direction register port latch data bus pull-up control analog input pin selection bit a-d converter input direction register port latch data bus pull-up control single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 23 fig. 19 port block diagram (4) (18) port p6 1 (19) port p6 2 ( 2 0 ) p o r t p 6 3 s e r i a l i / o 2 o u t p u t serial i/o2 transmit end signal serial i/o2 synchronous clock selection bit serial i/o2 port selection bit p u l l - u p c o n t r o l a n a l o g i n p u t p i n s e l e c t i o n b i t a - d c o n v e r t e r i n p u t p 6 1 / s o u t 2 p - c h a n n e l o u t p u t d i s a b l e b i t ( 2 1 ) c o m 0 c o m 3 ( 2 2 ) s e g 0 s e g 1 7 v l3 v l2 v l1 v ss v l 2 / v l 3 v l1 /v ss (23) port p7 0 i n t 0 i n p u t serial i/o2 synchronous clock selection bit serial i/o2 clock output s e r i a l i / o 2 c l o c k i n p u t s e r i a l i / o 2 p o r t s e l e c t i o n b i t s y n c h r o n o u s c l o c k o u t p u t p i n s e l e c t i o n b i t a-d converter input s e r i a l i / o 2 c l o c k o u t p u t a-d converter input d i r e c t i o n r e g i s t e r p o r t l a t c hd a t a b u s p u l l - u p c o n t r o l direction register p o r t l a t c hd a t a b u s analog input pin selection bit pull-up control d i r e c t i o n r e g i s t e r p o r t l a t c h data bus analog input pin selection bit serial i/o2 synchronous clock selection bit serial i/o2 port selection bit data bus t h e g a t e i n p u t s i g n a l o f e a c h t r a n s i s t o r i s c o n t r o l l e d b y t h e l c d d u t y r a t i o a n d t h e b i a s v a l u e . t h e v o l t a g e a p p l i e d t o t h e s o u r c e s o f p - c h a n n e l a n d n - c h a n n e l t r a n s i s t o r s i s t h e c o n t r o l l e d v o l t a g e b y t h e b i a s v a l u e . synchronous clock output pin selection bit single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 24 interrupts i nterrupts occur by seventeen sources: seven external, nine inter- nal, and one software. when an interrupt request is accepted, the program branches to the interrupt jump destination address set in the vector address (see figure 10). interrupt control each interrupt is controlled by an interrupt request bit, an interrupt enable bit, and the interrupt disable flag except for the software in- terrupt set by the brk instruction. an interrupt is accepted if the corresponding interrupt request and enable bits are ??and the in- terrupt disable flag is ?? interrupt enable bits can be set to ??or ??by program. interrupt request bits can be set to ??by program, but cannot be set to ??by program. the brk instruction interrupt and reset cannot be disabled with any flag or bit. when the interrupt disable (i) flag is set to ?? all interrupt requests except the brk instruction interrupt and reset are not accepted. when several interrupt requests occur at the same time, the inter- rupts are received according to priority. interrupt operation by acceptance of an interrupt, the following operations are auto- matically performed: 1. the contents of the program counter and the processor status register are automatically pushed onto the stack. 2. the interrupt jump destination address is read from the vector table into the program counter. 3. the interrupt disable flag is set to ??and the corresponding in- terrupt request bit is set to ?? notes1: vector addresses contain interrupt jump destination addresses. 2: reset is not an interrupt. reset has the higher priority than all interrupts. table 10 interrupt vector addresses and priority remarks interrupt request generating conditions at reset at detection of either rising or falling edge of int 0 input at detection of either rising or falling edge of int 1 input at completion of serial i/o1 data reception at completion of serial i/o1 transmit shift or when transmis- sion buffer is empty interrupt source low high priority vector addresses (note 1) reset (note 2) int 0 int 1 serial i/o1 reception serial i/o1 transmission timer x timer y timer 2 timer 3 cntr 0 cntr 1 timer 1 int 2 serial i/o2 key input (key-on wake-up) adt a-d conversion brk instruction 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 fffd 16 fffb 16 fff9 16 fff7 16 fff5 16 fff3 16 fff1 16 ffef 16 ffed 16 ffeb 16 ffe9 16 ffe7 16 ffe5 16 ffe3 16 ffe1 16 ffdf 16 ffdd 16 fffc 16 fffa 16 fff8 16 fff6 16 fff4 16 fff2 16 fff0 16 ffee 16 ffec 16 ffea 16 ffe8 16 ffe6 16 ffe4 16 ffe2 16 ffe0 16 ffde 16 ffdc 16 at timer x underflow at timer y underflow at timer 2 underflow at timer 3 underflow at detection of either rising or falling edge of cntr 0 input at detection of either rising or falling edge of cntr 1 input at timer 1 underflow at detection of either rising or falling edge of int 2 input at completion of serial i/o2 data transmission or reception at falling of conjunction of input level for port p2 (at input mode) at falling edge of adt input at completion of a-d conversion at brk instruction execution non-maskable external interrupt (active edge selectable) external interrupt (active edge selectable) valid when serial i/o1 is selected valid when serial i/o1 is selected external interrupt (active edge selectable) external interrupt (active edge selectable) external interrupt (active edge selectable) valid when serial i/o2 is selected external interrupt (valid at falling) valid when adt interrupt is selected external interrupt (valid at falling) valid when a-d interrupt is selected non-maskable software interrupt single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 25 fig. 20 interrupt control fig. 21 structure of interrupt-related registers notes on interrupts when setting the followings, the interrupt request bit may be set to ?? ?hen switching external interrupt active edge related register: interrupt edge selection register (address 3a 16 ) timer x mode register (address 27 16 ) timer y mode register (address 28 16 ) ?hen switching interrupt sources of an interrupt vector address where two or more interrupt sources are allocated related register: interrupt source selection bit of a-d control reg- ister (bit 6 of address 34 16 ) when not requiring for the interrupt occurrence synchronous with these setting, take the following sequence. ? set the corresponding interrupt enable bit to ??(disabled). ? set the interrupt edge select bit (polarity switch bit) or the inter- rupt source selection bit. ? set the corresponding interrupt request bit to ??after 1 or more instructions have been executed. ? set the corresponding interrupt enable bit to ??(enabled). i n t e r r u p t r e q u e s t b i t i n t e r r u p t e n a b l e b i t i n t e r r u p t d i s a b l e f l a g ( i ) brk instruction rese t interrupt request acceptance b 7 b 0 i n t e r r u p t e d g e s e l e c t i o n r e g i s t e r i n t 0 i n t e r r u p t e d g e s e l e c t i o n b i t i n t 1 i n t e r r u p t e d g e s e l e c t i o n b i t i n t 2 i n t e r r u p t e d g e s e l e c t i o n b i t n o t u s e d ( 0 a t r e a d i n g ) (intedge : a dd ress 003 a 16 ) i n t e r r u p t r e q u e s t r e g i s t e r 1 i n t 0 i n t e r r u p t r e q u e s t b i t i n t 1 i n t e r r u p t r e q u e s t b i t s e r i a l i / o 1 r e c e i v e i n t e r r u p t r e q u e s t b i t s e r i a l i / o 1 t r a n s m i t i n t e r r u p t r e q u e s t b i t t i m e r x i n t e r r u p t r e q u e s t b i t t i m e r y i n t e r r u p t r e q u e s t b i t t i m e r 2 i n t e r r u p t r e q u e s t b i t t i m e r 3 i n t e r r u p t r e q u e s t b i t i n t e r r u p t c o n t r o l r e g i s t e r 1 i n t 0 i n t e r r u p t e n a b l e b i t i n t 1 i n t e r r u p t e n a b l e b i t s e r i a l i / o 1 r e c e i v e i n t e r r u p t e n a b l e b i t s e r i a l i / o 1 t r a n s m i t i n t e r r u p t e n a b l e b i t t i m e r x i n t e r r u p t e n a b l e b i t t i m e r y i n t e r r u p t e n a b l e b i t t i m e r 2 i n t e r r u p t e n a b l e b i t t i m e r 3 i n t e r r u p t e n a b l e b i t 0 : n o i n t e r r u p t r e q u e s t i s s u e d 1 : i n t e r r u p t r e q u e s t i s s u e d ( i r e q 1 : a d d r e s s 0 0 3 c 1 6 ) ( i c o n 1 : a d d r e s s 0 0 3 e 1 6 ) i n t e r r u p t r e q u e s t r e g i s t e r 2 cntr 0 i nterrupt request bi t cntr 1 interrupt request bit timer 1 interrupt request bit int 2 interrupt request bit serial i/o2 interrupt request bit key input interrupt request bit adt/ad conversion interrupt request bit not used ( 0 at reading) ( i r e q 2 : a d d r e s s 0 0 3 d 1 6 ) i nterrupt contro l reg i ster 2 cntr 0 i nterrupt ena bl e bi t cntr 1 interrupt enable bit timer 1 interrupt enable bit int 2 interrupt enable bit serial i/o2 interrupt enable bit key input interrupt enable bit adt/ad conversion interrupt enable bit not used ( 0 at reading) (write 0 to this bit) 0 : i nterrupts di sa bl e d 1 : interrupts enabled (icon 2 : a dd ress 003 f 16 ) 0 : f a lli ng e d ge act i ve 1 : rising edge active b 7 b 0 b 7 b 0 b 7 b 0 b 7 b 0 0 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 26 key input interrupt (key-on wake up) the key input interrupt is enabled when any of port p2 is set to in- put mode and the bit corresponding to key input control register is set to 1 . a key input interrupt request is generated by applying l level voltage to any pin of port p2 of which key input interrupt is en- abled. in other words, it is generated when and of input level goes from 1 to 0 . a connection example of using a key input in- terrupt is shown in figure 22, where an interrupt request is gener- ated by pressing one of the keys consisted as an active-low key matrix which inputs to ports p2 0 p2 3 . fig. 22 connection example when using key input interrupt and port p2 block diagram p o r t p 2 0 l a t c h p o r t p 2 0 d i r e c t i o n r e g i s t e r = 0 p o r t p 2 1 l a t c h port p2 1 direction register = 0 p o r t p 2 2 l a t c h port p2 2 direction register = 0 port p2 3 latch port p2 3 direction register = 0 port p2 4 latch port p2 4 direction register = 1 port p2 5 latch port p2 5 direction register = 1 p o r t p 2 6 l a t c h p o r t p 2 6 d i r e c t i o n r e g i s t e r = 1 port p2 7 latch port p2 7 direction register = 1 p 2 0 i n p u t p2 1 input p2 2 input p 2 3 i n p u t p 2 4 o u t p u t p 2 5 o u t p u t p 2 6 o u t p u t p 2 7 o u t p u t p u l l r e g i s t e r a b i t 7 port p2 input reading circuit p o r t p x x l l e v e l o u t p u t ? p-channel transistor for pull-up ? ? cmos output buffer k e y i n p u t i n t e r r u p t r e q u e s t p2 7 key input control bit p 2 6 k e y i n p u t c o n t r o l b i t ?? ? ?? ? ?? ? ?? ? ?? ? ?? ? ?? ? ?? ? p 2 5 k e y i n p u t c o n t r o l b i t p 2 4 k e y i n p u t c o n t r o l b i t p 2 3 k e y i n p u t c o n t r o l b i t = 1 p u l l r e g i s t e r a b i t 6 = 1 p 2 2 k e y i n p u t c o n t r o l b i t = 1 p 2 1 k e y i n p u t c o n t r o l b i t = 1 p2 0 key input control bit = 1 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 27 the key input interrupt is controlled by the key input control regis- ter and the port direction register. when enabling the key input interrupt, set 1 to the key input control bit. a key input can be ac- cepted from pins set as the input mode in ports p2 0 p2 7 . fig. 23 structure of key input control register p 2 0 k ey i nput contro l bi t p2 1 key input control bit p2 2 key input control bit p2 3 key input control bit p2 4 key input control bit p2 5 key input control bit p2 6 key input control bit p2 7 key input control bit 0 : k e y i n p u t i n t e r r u p t d i s a b l e d 1 : k e y i n p u t i n t e r r u p t e n a b l e d k ey i nput contro l reg i ster (kic : address 0015 16 ) b 7 b 0 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 28 timers the 7560 group has five timers: timer x, timer y, timer 1, timer 2, and timer 3. timer x and timer y are 16-bit timers, and timer 1, timer 2, and timer 3 are 8-bit timers. all timers are down count timers. when the timer reaches ?? an underflow occurs at the next count pulse and the corresponding timer latch is reloaded into the timer and the count is continued. when a timer underflows, the interrupt request bit corresponding to that timer is set to ?? fig. 24 timer block diagram 1 p5 5 /cntr 1 0 1 0 00 , 01 , 11 p5 4 /cntr 0 q q t s 0 1 0 q d 0 q d 1 0 1 1 0 q t s 0 1 0 1 1 p4 3 / /t out x c i n 0 1 cntr 0 active edge switch bit t i m e r 1 c o u n t s o u r c e s e l e c t i o n b i t real time port control bit 0 f ( x i n ) / 1 6 ( f ( x c i n ) / 1 6 w h e n = x c i n / 2 ) c n t r 1 a c t i v e e d g e s w i t c h b i t timer y stop control bit falling edge detection p e r i o d m e a s u r e m e n t m o d e timer y interrupt request p u l s e w i d t h h l c o n t i n u o u s l y m e a s u r e m e n t m o d e r i s i n g e d g e d e t e c t i o n timer y operating mode bits timer x interrupt request t i m e r x m o d e r e g i s t e r w r i t e s i g n a l p 4 3 d i r e c t i o n r e g i s t e r pulse output mode p 5 4 l a t c h timer x stop control bit timer x write control bit l a t c h t i m e r x o p e r a t - i n g m o d e b i t s 0 0 , 0 1 , 1 1 pulse width measurement mode c n t r 0 a c t i v e e d g e s w i t c h b i t pulse output mode p5 4 direction register t out output active edge switch bit 0 t i m e r 2 w r i t e c o n t r o l b i t timer 3 count source selection bit timer 2 interrupt request timer 3 interrupt request t i m e r 2 c o u n t s o u r c e s e l e c t i o n b i t t i m e r 1 i n t e r r u p t r e q u e s t d a t a b u s r e a l t i m e p o r t c o n t r o l b i t 1 r e a l t i m e p o r t c o n t r o l b i t 1 t i m e r 3 l a t c h ( 8 ) t i m e r 3 r e g i s t e r ( 8 ) timer 1 latch (8) timer 1 register (8) timer 2 latch (8) t i m e r 2 r e g i s t e r ( 8 ) timer x low-order register (8) timer x (low) latch (8) timer x (high) latch (8) t i m e r y ( l o w ) l a t c h ( 8 )t i m e r y ( h i g h ) l a t c h ( 8 ) latch p 4 3 l a t c h f(x in )/16 (f(x cin )/16 when = x cin /2) f(x in )/16 (f(x cin )/16 when = x cin /2) f(x in )/16 (f(x cin )/16 when = x cin /2) f(x in )/16 (f(x cin )/16 when = x cin /2) p 5 2 / r t p 0 p 5 3 / r t p 1 rtp 0 data for real time port rtp 1 data for real time port p 5 2 d i r e c t i o n r e g i s t e r p 5 2 l a t c h p5 3 direction register p 5 3 l a t c h o u t p u t s e l e c t i o n b i t t o u t / o u t p u t e n a b l e b i t t o u t / output enable bit single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 29 timer x timer x is a 16-bit timer and is equipped with the timer latch. the division ratio of timer x is given by 1/(n+1), where n is the value in the timer latch. timer x is a down-counter. when the contents of timer x reach 0000 16 , an underflow occurs at the next count pulse and the contents of the timer latch are reloaded into the timer and the count is continued. when the timer underflows, the timer x interrupt request bit is set to 1 . timer x can be selected in one of four modes by the timer x mode register and can be controlled the timer x write and the real time port. (1) timer mode the timer counts f(x in )/16 (or f(x cin )/16 in low-speed mode). (2) pulse output mode each time the timer underflows, a signal output from the cntr 0 pin is inverted. except for this, the operation in pulse output mode is the same as in timer mode. when using a timer in this mode, set the p5 4 /cntr 0 pin to output mode (set 1 to bit 4 of port p5 direction register). (3) event counter mode the timer counts signals input through the cntr 0 pin. except for this, the operation in event counter mode is the same as in timer mode. when using a timer in this mode, set the p5 4 / cntr 0 pin to input mode (set 0 to bit 4 of port p5 direction reg- ister). (4) pulse width measurement mode the count source is f(x in )/16 (or f(x cin )/16 in low-speed mode). if cntr 0 active edge switch bit is 0 , the timer counts while the input signal of cntr 0 pin is at h . if it is 1 , the timer counts while the input signal of cntr 0 pin is at l . when using a timer in this mode, set the p5 4 /cntr 0 pin to input mode (set 0 to bit 4 of port p5 direction register). read and write to timer x high-order, low-order registers when reading and writing to the timer x high-order and low-order registers, be sure to read/write both the timer x high- and low-or- der registers. when reading the timer x high-order and low-order registers, read the high-order register first. when writing to the timer x high-order and low-order registers, write the low-order register first. the timer x cannot perform the correct operation if the next operation is per- formed. write operation to the high- or low-order register before reading the timer x low-order register read operation from the high- or low-order register before writing to the timer x high-order register fig. 25 structure of timer x mode register t i m e r x m o d e r e g i s t e r ( t x m : a d d r e s s 0 0 2 7 1 6 ) ti mer x wr i te contro l bi t 0 : write value in latch and timer 1 : write value in latch only real time port control bit 0 : real time port function invalid 1 : real time port function valid rtp 0 data for real time port rtp 1 data for real time port timer x operating mode bits b5 b4 0 0 : timer mode 0 1 : pulse output mode 1 0 : event counter mode 1 1 : pulse width measurement mode cntr 0 active edge switch bit 0 : count at rising edge in event counter mode start from h output in pulse output mode measure h pulse width in pulse width measurement mode falling edge active for cntr 0 interrupt 1 : count at falling edge in event counter mode start from l output in pulse output mode measure l pulse width in pulse width measurement mode rising edge active for cntr 0 interrupt timer x stop control bit 0 : count start 1 : count stop b 7 b 0 timer x write control which write control can be selected by the timer x write control bit (bit 0) of the timer x mode register (address 0027 16 ), writing data to both the latch and the timer at the same time or writing data only to the latch. when the operation writing data only to the latch is selected, the value is set to the timer latch by writing data to the timer x register and the timer is updated at next underflow. after reset, the operation writing data to both the latch and the timer at the same time is selected, and the value is set to both the latch and the timer at the same time by writing data to the timer x register. the write operation is independent of timer x count operation, operating or stopping. when the value is written in latch only, a value is simultaneously set to the timer x and the timer x latch if the writing in the high- order register and the underflow of timer x are performed at the same timing. unexpected value may be set in the high-order timer on this occasion. real time port control while the real time port function is valid, data for the real time port are output from ports p5 2 and p5 3 each time the timer x underflows. (however, if the real time port control bit is changed from 0 to 1 after set of the real time port data, data are output independent of the timer x operation.) if the data for the real time port is changed while the real time port function is valid, the changed data are output at the next underflow of timer x. before using this function, set the p5 2 /rtp 0 , p5 3 /rtp 1 pins to output mode (set 1 to bits 2, 3 of port p5 direction register). note on cntr 0 interrupt active edge selection cntr 0 interrupt active edge depends on the cntr 0 active edge switch bit. single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 30 timer y timer y is a 16-bit timer and is equipped with the timer latch. the division ratio of timer y is given by 1/(n+1), where n is the value in the timer latch. timer y is a down-counter. when the contents of timer y reach 0000 16 , an underflow occurs at the next count pulse and the contents of the timer latch are reloaded into the timer and the count is continued. when the timer underflows, the timer y interrupt request bit is set to 1 . timer y can be selected in one of four modes by the timer y mode register. (1) timer mode the timer counts f(x in )/16 (or f(x cin )/16 in low-speed mode). (2) period measurement mode cntr 1 interrupt request is generated at rising or falling edge of cntr 1 pin input signal. simultaneously, the value in timer y latch is reloaded in timer y and timer y continues counting down. except for this, the operation in period measurement mode is the same as in timer mode. the timer value just before the reloading at rising or falling of cntr 1 pin input signal is retained until the next valid edge is input. the rising or falling timing of cntr 1 pin input signal can be discriminated by cntr 1 interrupt. when using a timer in this mode, set the p5 5 /cntr 1 pin to input mode (set 0 to bit 5 of port p5 direction register). (3) event counter mode the timer counts signals input through the cntr 1 pin. except for this, the operation in event counter mode is the same as in timer mode. when using a timer in this mode, set the p5 5 /cntr 1 pin to input mode (set 0 to bit 5 of port p5 direction register). (4) pulse width hl continuously measure- ment mode cntr 1 interrupt request is generated at both rising and falling edges of cntr 1 pin input signal. except for this, the operation in pulse width hl continuously measurement mode is the same as in period measurement mode. when using a timer in this mode, set the p5 5 /cntr 1 pin to input mode (set 0 to bit 5 of port p5 direction register). note on cntr 1 interrupt active edge selection cntr 1 interrupt active edge depends on the value of the cntr 1 active edge switch bit. however, in pulse width hl continuously measurement mode, cntr 1 interrupt request is generated at both rising and falling edges of cntr 1 pin input signal regardless of the value of cntr 1 active edge switch bit. fig. 26 structure of timer y mode register t i m e r y m o d e r e g i s t e r ( t y m : a d d r e s s 0 0 2 8 1 6 ) b 7 b 0 n o t u s e d ( 0 a t r e a d i n g ) t i m e r y o p e r a t i n g m o d e b i t s b 5b 4 00 : t i m e r m o d e 01 : p e r i o d m e a s u r e m e n t m o d e 10 : e v e n t c o u n t e r m o d e 11 : p u l s e w i d t h h l c o n t i n u o u s l y m e a s u r e m e n t m o d e c n t r 1 a c t i v e e d g e s w i t c h b i t 0 : c o u n t a t r i s i n g e d g e i n e v e n t c o u n t e r m o d e m e a s u r e t h e f a l l i n g e d g e t o f a l l i n g e d g e p e r i o d i n p e r i o d m e a s u r e m e n t m o d e f a l l i n g e d g e a c t i v e f o r c n t r 1 i n t e r r u p t 1 : c o u n t a t f a l l i n g e d g e i n e v e n t c o u n t e r m o d e m e a s u r e t h e r i s i n g e d g e p e r i o d i n p e r i o d m e a s u r e m e n t m o d e r i s i n g e d g e a c t i v e f o r c n t r 1 i n t e r r u p t t i m e r y s t o p c o n t r o l b i t 0 : c o u n t s t a r t 1 : c o u n t s t o p single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 31 timer 1, timer 2, timer 3 timer 1, timer 2, and timer 3 are 8-bit timers and is equipped with the timer latch. the count source for each timer can be selected by the timer 123 mode register. the division ratio of each timer is given by 1/(n+1), where n is the value in the timer latch. all timers are down-counters. when the contents of the timer reach 00 16 , an underflow occurs at the next count pulse and the contents of the timer latch are reloaded into the timer and the count is continued. when the timer underflows, the interrupt request bit corresponding to that timer is set to 1 . when a value is written to the timer 1 register and the timer 3 reg- ister, a value is simultaneously set as the timer latch and the timer. when the timer 1 register, the timer 2 register, or the timer 3 regis- ter is read, the count value of the timer can be read. timer 2 write control which write can be selected by the timer 2 write control bit (bit 2) of the timer 123 mode register (address 0029 16 ), writing data to both the latch and the timer at the same time or writing data only to the latch. when the operation writing data only to the latch is selected, the value is set to the timer 2 latch by writing data to the timer 2 register and the timer 2 is updated at next underflow. after reset, the operation writing data to both the latch and the timer at the same time is selected, and the value is set to both the timer 2 latch and the timer 2 at the same time by writing data to the timer 2 register. if the value is written in latch only, a value is simultaneously set to the timer 2 and the timer 2 latch when the writing in the high- order register and the underflow of timer 2 are performed at the same timing. timer 2 output control when the timer 2 (t out ) output is enabled by the t out / output enable bit and the t out / output selection bit, an inversion signal from the t out pin is output each time timer 2 underflows. in this case, set the p4 3 / /t out pin to output mode (set 1 to bit 3 of port p4 direction register). note on timer 1 to timer 3 when the count source of timers 1 to 3 is changed, the timer counting value may become arbitrary value because a thin pulse is generated in count input of timer. if timer 1 output is selected as the count source of timer 2 or timer 3, when timer 1 is written, the counting value of timer 2 or timer 3 may become undefined value because a thin pulse is generated in timer 1 output. therefore, set the value of timer in the order of timer 1, timer 2 and timer 3 after the count source selection of timer 1 to 3. fig. 27 structure of timer 123 mode register t o u t o u t p u t a c t i v e e d g e s w i t c h b i t 0 : s t a r t a t h o u t p u t 1 : s t a r t a t l o u t p u t t o u t / o u t p u t e n a b l e l b i t 0 : t o u t / o u t p u t d i s a b l e d 1 : t o u t / o u t p u t e n a b l e d t i m e r 2 w r i t e c o n t r o l b i t 0 : w r i t e d a t a i n l a t c h a n d c o u n t e r 1 : w r i t e d a t a i n l a t c h o n l y t i m e r 2 c o u n t s o u r c e s e l e c t i o n b i t 0 : t i m e r 1 o u t p u t s i g n a l 1 : f ( x i n ) / 1 6 ( o r f ( x c i n ) / 1 6 i n l o w - s p e e d m o d e ) t i m e r 3 c o u n t s o u r c e s e l e c t i o n b i t 0 : t i m e r 1 o u t p u t s i g n a l 1 : f ( x i n ) / 1 6 ( o r f ( x c i n ) / 1 6 i n l o w - s p e e d m o d e ) t i m e r 1 c o u n t s o u r c e s e l e c t i o n b i t 0 : f ( x i n ) / 1 6 ( o r f ( x c i n ) / 1 6 i n l o w - s p e e d m o d e ) 1 : f ( x c i n ) n o t u s e d ( 0 a t r e a d i n g ) ti mer 123 mo d e reg i ster (t123m :address 0029 16 ) n ote: s ystem c l oc k i s f(x cin ) /2 i n t h e l ow-spee d mo d e. b 7 b 0 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 32 serial i/o serial i/o1 serial i/o1 can be used as either clock synchronous or asynchro- nous (uart) serial i/o. a dedicated timer (baud rate generator) is also provided for baud rate generation. (1) clock synchronous serial i/o mode clock synchronous serial i/o mode is selected by setting the se- rial i/o1 mode selection bit of the serial i/o1 control register to 1 . for clock synchronous serial i/o mode, the transmitter and the re- ceiver must use the same clock as an operation clock. when an internal clock is selected as an operation clock, transmit or receive is started by a write signal to the transmit buffer regis- ter. when an external clock is selected as an operation clock, serial i/ o1 becomes the state where transmit or receive can be performed by a write signal to the transmit buffer register. transmit and re- ceive are started by input of an external clock. fig. 28 block diagram of clock synchronous serial i/o1 fig. 29 operation of clock synchronous serial i/o1 function p 4 6 / s c l k 1 p 4 7 / s r d y 1 p 4 4 / r x d p 4 5 / t x d x i n 1 / 4 1/4 f / f serial i/o1 status register serial i/o1 control register r e c e i v e b u f f e r r e g i s t e r a d d r e s s 0 0 1 8 1 6 receive shift register r ece i ve b u ff er f u ll fl ag (rbf) r e c e i v e i n t e r r u p t r e q u e s t receive clock control circuit s h i f t c l o c k s er i a l i / o 1 sync h ronous clock selection bit frequency division ratio 1/(n+1) baud rate generator a d d r e s s 0 0 1 c 1 6 brg count source se l ect i on bi t f a l l i n g - e d g e d e t e c t o r d ata b us add ress 0018 16 s h i f t c l o c k t ransm i t s hif t reg i ster s hif t comp l et i on fl ag (tsc) t ransm i t b u ff er empty fl ag (tbe) t r a n s m i t i n t e r r u p t r e q u e s t t ransm i t i nterrupt source se l ect i on bi t add ress 0019 16 d ata b us a d d r e s s 0 0 1 a 1 6 t r a n s m i t b u f f e r r e g i s t e r t r a n s m i t s h i f t r e g i s t e r t r a n s m i t cl o c k c o n t r o l c i r c u i t r ece i ve ena bl e s i gna l s rdy1 d 7 d 0 d 1 d 2 d 3 d 4 d 5 d 6 rbf = 1 tsc = 1 tbe = 0 tbe = 1 tsc = 0 t r a n s m i t a n d r e c e i v e s h i f t c l o c k ( 1 / 2 t o 1 / 2 0 4 8 o f t h e i n t e r n a l c l o c k , o r a n e x t e r n a l c l o c k ) s e r i a l o u t p u t t x d s e r i a l i n p u t r x d w r i t e s i g n a l t o r e c e i v e / t r a n s m i t b u f f e r r e g i s t e r ( a d d r e s s 0 0 1 8 1 6 ) o v e r r u n e r r o r ( o e ) d e t e c t i o n n o t e s 1 : a f t e r d a t a t r a n s f e r r i n g , t h e t x d p i n k e e p s d 7 o u t p u t v a l u e . 2 : i f d a t a i s w r i t t e n t o t h e t r a n s m i t b u f f e r r e g i s t e r w h e n t s c = 0 , t h e t r a n s m i t c l o c k i s g e n e r a t e d c o n t i n u o u s l y a n d s e r i a l d a t a c a n b e o u t p u t c o n t i n u o u s l y f r o m t h e t x d p i n . 3 : s e l e c t t h e s e r i a l i / o 1 t r a n s m i t i n t e r r u p t r e q u e s t f a c t o r b e t w e e n w h e n t h e t r a n s m i t b u f f e r r e g i s t e r h a s e m p t i e d ( t b e = 1 ) o r a f t e r t h e t r a n s m i t s h i f t o p e r a t i o n h a s e n d e d ( t s c = 1 ) , b y s e t t i n g t h e t r a n s m i t i n t e r r u p t s o u r c e s e l e c t i o n b i t ( t i c ) o f t h e s e r i a l i / o 1 c o n t r o l r e g i s t e r . 4 : t h e s e r i a l i / o 1 r e c e i v e i n t e r r u p t r e q u e s t o c c u r s w h e n t h e r e c e i v e b u f f e r f u l l f l a g ( r b f ) b e c o m e s 1 . d 7 d 0 d 1 d 2 d 3 d 4 d 5 d 6 ( n o t e 1 ) (n ote 3) (n ote 2) (n ote 3) (n ote 4 ) single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 33 (2) asynchronous serial i/o (uart) mode clock asynchronous serial i/o mode (uart) is selected by setting the serial i/o1 mode selection bit of the serial i/o1 control register to 0 . eight serial data transfer formats can be selected, and the transfer formats used by a transmitter and receiver must be identical. the transmit and receive shift registers each have a buffer regis- ter, but the two buffers have the same address (0018 16 ) in memory. since the shift register cannot be written to or read from directly, transmit data is written to the transmit buffer, and receive data is read from the receive buffer. the transmit buffer can also hold the next data to be transmitted during transmitting, and the receive buffer register can hold re- ceived one-byte data while the next one-byte data is being re- ceived. fig. 30 block diagram of uart serial i/o1 fig. 31 operation of uart serial i/o1 function x in 1/4 o e p e f e 1/16 1 / 1 6 d ata b us r e c e i v e b u f f e r r e g i s t e r a d d r e s s 0 0 1 8 1 6 r ece i ve s hif t reg i ster r e c e i v e b u f f e r f u l l f l a g ( r b f ) r e c e i v e i n t e r r u p t r e q u e s t b a u d r a t e g e n e r a t o r f r e q u e n c y d i v i s i o n r a t i o 1 / ( n + 1 ) add ress 001 c 16 s t / s p / p a g e n e r a t o r transmit buffer register d a t a b u s t r a n s m i t s h i f t r e g i s t e r add ress 0018 16 t r a n s m i t s h i f t r e g i s t e r s h i f t c o m p l e t i o n f l a g ( t s c ) t r a n s m i t b u f f e r e m p t y f l a g ( t b e ) t ransm i t i nterrupt request add ress 0019 16 s t d e t e c t o r sp d etector u a r t c o n t r o l r e g i s t e r add ress 001 b 16 ch aracter l engt h se l ect i on bi t a d d r e s s 0 0 1 a 1 6 b r g c o u n t s o u r c e s e l e c t i o n b i t t ransm i t i nterrupt source se l ect i on bit s e r i a l i / o 1 s y n c h r o n i z a t i o n c l o c k s e l e c t i o n b i t cl oc k contro l c i rcu it c h a r a c t e r l e n g t h s e l e c t i o n b i t 7 b i t s 8 b i t s s e r i a l i / o 1 c o n t r o l r e g i s t e r p 4 6 / s clk1 s e r i a l i / o 1 s t a t u s r e g i s t e r p 4 4 / r x d p 4 5 / t x d t s c = 0 t b e = 1 r b f = 0 t b e = 0 tbe = 0 r b f = 1 rbf = 1 s t d 0 d 1 s p d 0 d 1 st s p t b e = 1 tsc = 1 ? st d 0 d 1 sp d 0 d 1 s t s p t ransm i t b u ff er reg i ster wr i te s i gna l ? generated at 2nd bit in 2-stop-bit mode 1 start bi t 7 or 8 data bits 1 or 0 parity bit 1 or 2 stop bit (s) 1 : e r r o r f l a g d e t e c t i o n o c c u r s a t t h e s a m e t i m e t h a t t h e r b f f l a g b e c o m e s 1 ( a t 1 s t s t o p b i t f o r r e c e p t i o n ) . 2 : t h e s e r i a l i / o 1 r e c e i v e i n t e r r u p t r e q u e s t o c c u r s w h e n t h e r e c e i v e b u f f e r f u l l f l a g ( r b f ) b e c o m e s 1 . 3 : s e l e c t t h e s e r i a l i / o 1 t r a n s m i t i n t e r r u p t r e q u e s t o c c u r r e n c e f a c t o r b e t w e e n w h e n t h e t r a n s m i t b u f f e r r e g i s t e r h a s e m p t i e d ( t b e = 1 ) o r a f t e r t h e t r a n s m i t s h i f t o p e r a t i o n h a s e n d e d ( t s c = 1 ) , b y s e t t i n g t h e t r a n s m i t i n t e r r u p t s o u r c e s e l e c t i o n b i t ( t i c ) o f t h e s e r i a l i / o 1 c o n t r o l r e g i s t e r . n o t e s s e r i a l o u t p u t t x d s e r i a l i n p u t r x d r ece i ve b u ff er reg i ster rea d s i gna l t ransm i t or rece i ve c l oc k (n otes 1, 2) (n otes 1, 2) single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 34 [transmit buffer/receive buffer register (tb/ rb)] 0018 16 the transmit buffer register and the receive buffer register are lo- cated at the same address. the transmit buffer register is write- only and the receive buffer register is read-only. if a character bit length is 7 bits, the msb of data stored in the receive buffer regis- ter is 0 . [serial i/o1 status register (sio1sts)] 0019 16 the read-only serial i/o1 status register consists of seven flags (bits 0 to 6) which indicate the operating status of the serial i/o1 function and various errors. three of the flags (bits 4 to 6) are valid only in uart mode. the receive buffer full flag (bit 1) is set to 0 when the receive buffer register is read. if there is an error, it is detected at the same time that data is transferred from the receive shift register to the receive buffer reg- ister, and the receive buffer full flag is set to 1 . a write signal to the serial i/o1 status register sets all the error flags (oe, pe, fe, and se) (bit 3 to bit 6, respectively) to 0 . writing 0 to the serial i/o1 enable bit (sioe) also sets all the status flags to 0 , includ- ing the error flags. all bits of the serial i/o1 status register are set to 0 at reset, but if the transmit enable bit of the serial i/o1 control register has been set to 1 , the transmit shift register shift completion flag and the transmit buffer empty flag become 1 . [serial i/o1 control register (sio1con)] 001a 16 the serial i/o1 control register contains eight control bits for the serial i/o1 function. [uart control register (uartcon)] 001b 16 the uart control register consists of the bits which set the data format of an data transmit and receive, and the bit which sets the output structure of the p4 5 /t x d pin. [baud rate generator (brg)] 001c 16 the baud rate generator is the 8-bit counter equipped with a reload register. set the division value of the brg count source to the baud rate generator. the baud rate generator divides the frequency of the count source by 1/(n + 1), where n is the value written to the baud rate generator. notes on serial i/o when setting the transmit enable bit to 1 , the serial i/o1 transmit interrupt request bit is automatically set to 1 . when not requiring the interrupt occurrence synchronous with the transmission en- abled, take the following sequence. ? set the serial i/o1 transmit interrupt enable bit to 0 (disabled). ? set the transmit enable bit to 1 . ? set the serial i/o1 transmit interrupt request bit to 0 after 1 or more instructions have been executed. ? set the serial i/o1 transmit interrupt enable bit to 1 (enabled). single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 35 fig. 32 structure of serial i/o1 control registers brg count source se l ect i on bi t (css) 0: f(x in ) 1: f(x in )/4 serial i/o1 synchronous clock selection bit (scs) 0: brg output divided by 4 when clock synchronous serial i/o is selected. brg output divided by 16 when uart is selected. 1: external clock input when clock synchronous serial i/o is selected. external clock input divided by 16 when uart is selected. s rdy1 output enable bit (srdy) 0: p4 7 pin operates as ordinary i/o pin 1: p4 7 pin operates as s rdy1 output pin transmit interrupt source selection bit (tic) 0: interrupt when transmit buffer has emptied 1: interrupt when transmit shift operation is completed transmit enable bit (te) 0: transmit disabled 1: transmit enabled receive enable bit (re) 0: receive disabled 1: receive enabled serial i/o1 mode selection bit (siom) 0: asynchronous serial i/o (uart) 1: clock synchronous serial i/o serial i/o1 enable bit (sioe) 0: serial i/o1 disabled (pins p4 4 p4 7 operate as ordinary i/o pins) 1: serial i/o1 enabled (pins p4 4 p4 7 operate as serial i/o pins) s er i a l i / o 1 contro l reg i ster (sio1con : address 001a 16 ) b7 b0 t r a n s m i t b u f f e r e m p t y f l a g ( t b e ) 0 : b u f f e r f u l l 1 : b u f f e r e m p t y r e c e i v e b u f f e r f u l l f l a g ( r b f ) 0 : b u f f e r e m p t y 1 : b u f f e r f u l l t r a n s m i t s h i f t r e g i s t e r s h i f t c o m p l e t i o n f l a g ( t s c ) 0 : t r a n s m i t s h i f t i n p r o g r e s s 1 : t r a n s m i t s h i f t c o m p l e t e d o v e r r u n e r r o r f l a g ( o e ) 0 : n o e r r o r 1 : o v e r r u n e r r o r p a r i t y e r r o r f l a g ( p e ) 0 : n o e r r o r 1 : p a r i t y e r r o r f r a m i n g e r r o r f l a g ( f e ) 0 : n o e r r o r 1 : f r a m i n g e r r o r s u m m i n g e r r o r f l a g ( s e ) 0 : ( o e ) u ( p e ) u ( f e ) = 0 1 : ( o e ) u ( p e ) u ( f e ) = 1 n o t u s e d ( 1 a t r e a d i n g ) s e r i a l i / o 1 s t a t u s r e g i s t e r ( s i o 1 s t s : a d d r e s s 0 0 1 9 1 6 ) b7 b0 u a r t c o n t r o l r e g i s t e r ( u a r t c o n : a d d r e s s 0 0 1 b 1 6 ) ch aracter l engt h se l ect i on bi t (chas) 0: 8 bits 1: 7 bits parity enable bit (pare) 0: parity checking disabled 1: parity checking enabled parity selection bit (pars) 0: even parity 1: odd parity stop bit length selection bit (stps) 0: 1 stop bit 1: 2 stop bits p4 5 /t x d p-channel output disable bit (poff) 0: cmos output (in output mode) 1: n-channel open-drain output (in output mode) not used ( 1 at reading) b7 b0 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 36 serial i/o2 serial i/o2 can be used only for clock synchronous serial i/o. for serial i/o2, the transmitter and the receiver must use the same clock as a synchronous clock. when an internal clock is se- lected as a synchronous clock, the serial i/o2 is initialized and, transmit and receive is started by a write signal to the serial i/o2 register. when an external clock is selected as an synchronous clock, the serial i/o2 counter is initialized by a write signal to the serial i/o2 register, serial i/o2 becomes the state where transmission or re- ception can be performed. write to the serial i/o2 register while s clk21 is h state when an external clock is selected as an syn- chronous clock. either p6 2 /s clk21 or p6 3 /s clk22 pin can be selected as an output pin of the synchronous clock. in this case, the pin that is not se- lected as an output pin of the synchronous clock functions as a i/ o port. [serial i/o2 control register (sio2con)] 001d16 the serial i/o2 control register contains eight control bits for the serial i/o2 functions. after setting to this register, write data to the serial i/o2 register and start transmit and receive. fig. 33 structure of serial i/o2 control register fig. 34 block diagram of serial i/o2 function s e r i a l i / o 2 c o n t r o l r e g i s t e r ( s i o 2 c o n : a d d r e s s 0 0 1 d 1 6 ) b7 internal synchronous clock select bits 0 0 0: f(x in )/8 0 0 1: f(x in )/16 0 1 0: f(x in )/32 0 1 1: f(x in )/64 1 0 0: 1 0 1: 1 1 0: f(x in )/128 1 1 1: f(x in )/256 serial i/o2 port selection bit 0: i/o port 1: s out2 ,s clk21 /s clk22 signal output p6 1 /s out2 p-channel output disable bit 0: cmos output (in output mode) 1: n-channel open-drain output (in output mode) transfer direction selection bit 0: lsb first 1: msb first serial i/o2 synchronous clock selection bit 0: external clock 1: internal clock synchronous clock output pin selection bit 0: s clk21 1: s clk22 b 0 b2 b1 b0 d o n o t s e l e c t x i n 1 0 0 1 0 1 s c l k 2 ( n o t e ) 1 / 8 1 / 1 6 1 / 3 2 1 / 6 4 1 / 1 2 8 1 / 2 5 6 d a t a b u s s e r i a l i / o 2 i n t e r r u p t r e q u e s t s e r i a l i / o 2 p o r t s e l e c t i o n b i t s e r i a l i / o 2 c o u n t e r ( 3 ) s e r i a l i / o 2 r e g i s t e r ( 8 ) s y n c h r o n o u s c i r c u i t s e r i a l i / o 2 s y n c h r o n o u s c l o c k s e l e c t i o n b i t e x t e r n a l c l o c k i n t e r n a l s y n c h r o n o u s c l o c k s e l e c t b i t s d i v i d e r p 6 3 l a t c h p 6 3 / s c l k 2 2 p 6 2 / s c l k 2 1 p 6 1 / s o u t 2 p 6 0 / s i n 2 p 6 2 l a t c h p 6 1 l a t c h ( n o t e ) n o t e : i t i s s e l e c t e d b y t h e s e r i a l i / o 2 s y n c h r o n o u s c l o c k s e l e c t i o n b i t , t h e s y n c h r o n o u s c l o c k o u t p u t p i n s e l e c t i o n b i t , a n d t h e s e r i a l i / o 2 p o r t s e l e c t i o n b i t . single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 37 fig. 35 timing of serial i/o2 function d 7 d 0 d 1 d 2 d 3 d 4 d 5 d 6 s y n c h r o n o u s c l o c k ( n o t e 1 ) s e r i a l i / o 2 o u t p u t s o u t 2 s e r i a l i / o 2 i n p u t s i n 2 serial i/o2 register write signal ( n o t e s 2 , 3 ) s e r i a l i / o 2 i n t e r r u p t r e q u e s t b i t = 1 1 : w h e n t h e i n t e r n a l c l o c k i s s e l e c t e d a s t h e s y n c h r o n o u s c l o c k , t h e d i v i d e r a t i o c a n b e s e l e c t e d b y s e t t i n g b i t s 0 t o 2 o f t h e s e r i a l i / o 2 c o n t r o l r e g i s t e r . 2 : w h e n t h e i n t e r n a l c l o c k i s s e l e c t e d a s t h e s y n c h r o n o u s c l o c k , t h e s o u t 2 p i n g o e s t o h i g h i m p e d a n c e a f t e r t r a n s f e r c o m p l e t i o n . 3 : w h e n t h e e x t e r n a l c l o c k i s s e l e c t e d a s t h e s y n c h r o n o u s c l o c k , t h e s o u t 2 p i n k e e p s d 7 o u t p u t l e v e l a f t e r t r a n s f e r c o m p l e t i o n . h o w e v e r , i f s y n c h r o n o u s c l o c k s i n p u t a r e c a r r i e d o n , t h e t r a n s m i t d a t a w i l l b e o u t p u t c o n t i n u o u s l y f r o m t h e s o u t 2 p i n b e c a u s e s h i f t s o f s e r i a l i / o 2 s h i f t r e g i s t e r i s c o n t i n u e d a s l o n g a s s y n c h r o n o u s c l o c k s a r e i n p u t . n o t e s serial i/o2 operating the serial i/o2 counter is initialized to 7 by writing to the serial i/o2 register. after writing, whenever a synchronous clock changes from h to l , data is output from the s out2 pin. moreover, whenever a syn- chronous clock changes from l to h , data is taken in from the s in2 pin, and 1 bit shift of the serial i/o2 register is carried out si- multaneously. when the internal clock is selected as a synchronous clock, it is as follows if a synchronous clock is counted 8 times. serial i/o2 counter = 0 synchronous clock stops in h state serial i/o2 interrupt request bit = 1 the s out2 pin is in a high impedance state after transfer is com- pleted. when the external clock is selected as a synchronous clock, if a synchronous clock is counted 8 times, the serial i/o2 interrupt re- quest bit is set to 1 , and the s out2 pin holds the output level of d 7 . however, if a synchronous clock continues being input, the shift of the serial i/o2 register is continued and transmission data continues being output from the s out2 pin. single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 38 pulse width modulation (pwm) the 7560 group has a pwm function with an 8-bit resolution, using f(x in ) or f(x in )/2 as a count source. data setting the pwm output pins are shared with ports p5 0 and p5 1 . set the pwm period by the pwm prescaler, and set the period during which the output pulse is an h by the pwm register. if pwm count source is f(x in ) and the value in the pwm prescaler is n and the value in the pwm register is m (where n = 0 to 255 and m = 0 to 255) : pwm period = 255 ? (n+1)/f(x in ) = 31.875 ? (n+1) s (when f(x in ) = 8 mhz) output pulse h period = pwm period ? m/255 = 0.125 ? (n+1) ? m s (when f(x in ) = 8 mhz) pwm operation when either bit 1 (pwm 0 function enable bit) or bit 2 (pwm 1 func- tion enable bit) of the pwm control register or both bits are enabled, operation starts from initializing status, and pulses are output starting at h . when one pwm output is enabled and that the other pwm output is enabled, pwm output which is enabled to output later starts pulse output from halfway of pwm period (see figure 39). when the pwm register or pwm prescaler is updated during pwm output, the pulses will change in the cycle after the one in which the change was made. fig. 36 timing of pwm cycle fig. 37 block diagram of pwm function 31.875 ? m ? (n+1) 255 s t = [31.875 ? (n+1)] s pwm output m: contents of pwm register n : contents of pwm prescaler t : pwm cycle (when f(x in ) = 8 mhz) d a t a b u s c ount source selection bit 0 1 p w m p r e s c a l e r p r e - l a t c h p w m r e g i s t e r p r e - l a t c h pwm prescaler latch p w m r e g i s t e r l a t c h t rans f er contro l c i rcu i t pwm c i rcu i t 1 / 2 x i n p w m 0 f u n c t i o n e n a b l e b i t p 5 1 / p w m 1 p w m p r e s c a l e r pwm 1 f unct i on enable bit p o r t p 5 1 l a c t h p o r t p 5 0 l a c t h p 5 0 / p w m 0 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 39 fig. 39 pwm output timing when pwm register or pwm prescaler is changed fig. 38 structure of pwm control register b 7 b 0 p w m c o n t r o l r e g i s t e r ( p w m c o n : a d d r e s s 0 0 2 b 1 6 ) c o u n t s o u r c e s e l e c t i o n b i t 0: f ( x i n ) 1: f ( x i n ) / 2 p w m 0 f u n c t i o n e n a b l e b i t 0: p w m 0 d i s a b l e d 1: p w m 0 e n a b l e d p w m 1 f u n c t i o n e n a b l e b i t 0: p w m 1 d i s a b l e d 1: p w m 1 e n a b l e d n o t u s e d ( 0 a t r e a d i n g ) t t2 c b t pwm register write signal pwm prescaler write signal (changes from a to b during h period) (changes from t to t2 during pwm period) pwm (internal) a b t c t2 = stop pwm 0 function enable bit pwm 1 function enable bit pwm 0 output port port pwm 1 output port stop port when the contents of the pwm register or pwm prescaler have changed, the pwm output will change from the next period after the change. single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 40 a-d converter [a-d conversion low-order register (adl)] 0014 16 [a-d conversion high-order register (adh)] 0035 16 the a-d conversion registers are read-only registers that store the result of an a-d conversion . when reading this register during an a-d conversion, the previous conversion result is read. the high-order 8 bits of a conversion result is stored in the a-d conversion high-order register (address 0035 16 ), and the low-or- der 2 bits of the same result are stored in bit 7 and bit 6 of the a-d conversion low-order register (address 0014 16 ). bit 0 of the a-d conversion low-order register is the conversion mode selection bit. when this bit is set to 0 , that becomes the 10-bit a-d mode. when this bit is set to 1 , that becomes the 8-bit a-d mode. [a-d control register (adcon)] 0034 16 the a-d control register controls the a-d conversion process. bits 0 to 2 of this register select specific analog input pins. bit 3 indi- cates the completion of an a-d conversion. the value of this bit re- mains at 0 during an a-d conversion, then it is set to 1 when the a-d conversion is completed. writing 0 to this bit starts the a-d conversion. bit 4 is the v ref input switch bit which controls connection of the resistor ladder and the reference voltage input pin (v ref ). the resistor ladder is always connected to v ref when bit 4 is set to 1 . when bit 4 is set to 0 , the resistor ladder is cut off from v ref except for a-d conversion performed. when bit 5, which is the ad external trigger valid bit, is set to 1 , a-d conversion starts also by a falling edge of an adt input. when using an a-d external trigger, set the p5 7 /adt pin to input mode (set 0 to bit 7 of port p5 direc- tion register). comparison voltage generator the comparison voltage generator divides the voltage between av ss and v ref by 256 (when 8-bit a-d mode) or 1024 (when 10- bit a-d mode), and outputs the divided voltages. channel selector the channel selector selects one of the input ports p6 7 /an 7 p6 0 /an 0 . comparator and control circuit the comparator and control circuit compare an analog input volt- age with the comparison voltage and store the result in the a-d conversion register. when an a-d conversion is completed, the control circuit sets the ad conversion completion bit and the ad converter interrupt request bit to 1 . note that because the comparator consists of a capacitor coupling, set f(x in ) to 500 khz or more during an a-d conversion. use the clock divided from the main clock f(x in ) as the system clock . fig. 40 structure of a-d converter-related registers a - d c o n t r o l r e g i s t e r ( a d c o n : a d d r e s s 0 0 3 4 1 6 ) ad convers i on comp l et i on bi t 0 : conversion in progress 1 : conversion completed a na l og i nput p i n se l ect i on bi ts b2b1b0 0 0 0 : p6 0 /an 0 0 0 1 : p6 1 /an 1 0 1 0 : p6 2 /an 2 0 1 1 : p6 3 /an 3 1 0 0 : p6 4 /an 4 1 0 1 : p6 5 /an 5 1 1 0 : p6 6 /an 6 1 1 1 : p6 7 /an 7 v r e f i n p u t s w i t c h b i t 0 : a u t o 1 : o n ad externa l tr i gger va lid bi t 0 : a-d external trigger invalid 1 : a-d external trigger valid b 7 b 0 i nterrupt source se l ect i on bi t 0 : interrupt request at a-d conversion completed 1 : interrupt request at adt input falling n ot use d ( 0 at rea di ng ) a - d c o n v e r s i o n l o w - o r d e r r e g i s t e r ( a d l : a d d r e s s 0 0 1 4 1 6 ) c onvers i on mo d e se l ect i on bi t 0 : 10-bit a-d mode 1 : 8-bit a-d mode not used ( 0 at reading) for 10-bit a-d mode a-d conversion result for 8-bit a-d mode not used (undefined at reading) b 7 b 0 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 41 fig. 42 a-d converter block diagram fig. 41 read of a-d conversion register 1 0 - b i t r e a d i n g ( r e a d a d d r e s s 0 0 3 5 1 6 , t h e n 0 0 1 4 1 6 ) a - d c o n v e r s i o n h i g h - o r d e r r e g i s t e r ( a d h : a d d r e s s 0 0 3 5 1 6 ) a - d c o n v e r s i o n l o w - o r d e r r e g i s t e r ( a d l : a d d r e s s 0 0 1 4 1 6 ) b0 b 7 b0 b 1 b7 b6 b 5b 4b 3b2 b 7 b0 b 9b 8b 7 b6 b 5b 4 b 3b2 b 7 b 0 (high-order) ( l o w - o r d e r ) n o t e : bi t s 0 t o 5 o f a d d r e s s 0 0 1 4 1 6 b e c o m e 0 a t r e a d i n g . b1 b0 8 - b i t r e a d i n g ( r e a d o n l y a d d r e s s 0 0 3 5 1 6 ) a - d c o n v e r s i o n h i g h - o r d e r r e g i s t e r ( a d h : a d d r e s s 0 0 3 5 1 6 ) c o n v e r s i o n m o d e s e l e c t i o n b i t 0 : 1 0 - b i t a - d m o d e 1 : 8 - b i t a - d m o d e c o m p a r a t o r a - d contro l c i rcu it adt / a - d interrupt request a v s s v r e f p 6 0 / s i n 2 / a n 0 d ata b u s a - d c o n t r o l r e g i s t e r b 7 b 0 a - d c o n v e r s i o n h i g h - o r d e r r e g i s t e r r es i stor l a dd e r c h a n n e l s e l e c t o r p 6 7 / an 7 p 6 6 / an 6 p 6 5 / an 5 p 6 4 / an 4 p 6 3 / s c l k 2 2 / a n 3 p 6 2 / s c l k2 1 / a n 2 p 6 1 / s o u t2 / a n 1 p 5 7 / a d t / d a 2 8 3 ( a d d r e s s 0 0 3 5 1 6 ) a - d c o n v e r s i o n l o w - o r d e r r e g i s t e r ( a d d r e s s 0 0 1 4 1 6 ) 1 / 2 1 / 4 x i n a d c l k a - d c o n v e r t e r c l o c k m a i n c l o c k d i v i s i o n r a t i o s e l e c t i o n b i t m i d d l e - s p e e d m o d e h i g h- s p e e d m o d e s y s t e m c l o c k single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 42 d-a converter the 7560 group has a d-a converter with 8-bit resolution and 2 channels (da 1 , da 2 ). the d-a converter is started by setting the value in the d-a con- version register. when the da 1 output enable bit or the da 2 output enable bit is set to 1 , the result of d-a conversion is output from the corresponding da pin. when using the d-a converter, set the p5 6 /da 1 pin and the p5 7 /da 2 pin to input mode (set 0 to bits 6, 7 of port p5 direction register) and the pull-up resistor should be in the off state (set 0 to bit 3 of pull register b) previously. the output analog voltage v is determined by the value n (base 10) in the d-a conversion register as follows: v=v ref ? n/256 (n=0 to 255) where v ref is the reference voltage. at reset, the d-a conversion registers are set to 00 16 , the da 1 output enable bit and the da 2 output enable bit are set to 0 , and the p5 6 /da 1 pin and the p5 7 /da 2 pin goes to high impedance state. the da converter is not buffered, so connect an external buffer when driving a low-impedance load. note on applied voltage to v ref pin when these pins are used as d-a conversion output pins, the vcc level is recommended for the applied voltage to v ref pin. when the voltage below vcc level is applied, the d-a conversion accuracy may be worse. fig. 43 structure of d-a control register fig. 44 block diagram of d-a converter d a 1 o u t p u t e n a b l e b i t 0 : d i s a b l e d 1 : e n a b l e d d a 2 o u t p u t e n a b l e b i t 0 : d i s a b l e d 1 : e n a b l e d n o t u s e d ( 0 a t r e a d i n g ) ( w r i t e 0 t o t h e s e b i t s a t w r i t i n g . ) b 7 b 0 d - a c o n t r o l r e g i s t e r ( d a c o n : a d d r e s s 0 0 3 6 1 6 ) 000000 d a t a b u s p5 6 /da 1 d-a1 conversion register (8) r - 2 r r e s i s t o r l a d d e r da 1 output enable bit (da1: address 0032 16 ) p5 7 /da 2 d-a2 conversion register (8) r - 2 r r e s i s t o r l a d d e r da 2 output enable bit (da2: address 0033 16 ) single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 43 fig. 45 equivalent connection circuit of d-a converter a v s s v r e f 0 1 msb 0 1 r 2 r r 2r r 2r r 2 r r 2 r r 2r r 2 r2r lsb 2 r da i d-ai conversion register d a i o u t p u t e n a b l e b i t single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 44 lcd drive control circuit the 7560 group has the liquid crystal display (lcd) drive control circuit consisting of the following. lcd display ram segment output enable register lcd mode register voltage multiplier selector timing controller common driver segment driver bias control circuit a maximum of 40 segment output pins and 4 common output pins can be used. up to 160 pixels can be controlled for lcd display. when the lcd fig. 46 structure of segment output enable register and lcd mode register enable bit is set to 1 (lcd on) after data is set in the lcd mode register, the segment output enable register and the lcd display ram, the lcd drive control circuit starts reading the display data automatically, performs the bias control and the duty ratio control, and displays the data on the lcd panel. table 11 maximum number of display pixels at each duty ratio duty ratio maximum number of display pixel 80 dots or 8 segment lcd 10 digits 120 dots or 8 segment lcd 15 digits 160 dots or 8 segment lcd 20 digits 2 3 4 s egment output ena bl e bi t 0 0 : output ports p3 0 p3 5 1 : segment output seg 18 seg 23 segment output enable bit 1 0 : output ports p3 6 , p3 7 1 : segment output seg 24 ,seg 25 segment output enable bit 2 0 : i/o ports p0 0 p0 5 1 : segment output seg 26 seg 31 segment output enable bit 3 0 : i/o ports p0 6 ,p0 7 1 : segment output seg 32 ,seg 33 segment output enable bit 4 0 : i/o port p1 0 1 : segment output seg 34 segment output enable bit 5 0 : i/o ports p1 1 p1 5 1 : segment output seg 35 seg 39 lcd output enable bit 0 : disabled 1 : enabled not used ( 0 at reading) (write 0 to this bit at writing.) s egment output ena bl e reg i ster (seg : address 0038 16 ) b 7 b 0 lcd mo d e reg i ster (lm : address 0039 16 ) d uty rat i o se l ect i on bi ts b1b0 0 0 : not used 0 1 : 2 duty (use com 0 , com 1 ) 1 0 : 3 duty (use com 0 com 2 ) 1 1 : 4 duty (use com 0 com 3 ) bias control bit 0 : 1/3 bias 1 : 1/2 bias lcd enable bit 0 : lcd off 1 : lcd on voltage multiplier control bit 0 : voltage multiplier disable 1 : voltage multiplier enable lcd circuit divider division ratio selection bits b6b5 0 0 : clock input 0 1 : 2 division of clock input 1 0 : 4 division of clock input 1 1 : 8 division of clock input lcdck count source selection bit (note) 0 : f(x cin )/32 1 : f(x in )/8192 (f(x cin )/8192 in low-speed mode) n ote : lcdck i s a c l oc k f or a lcd t i m i ng contro ll er. b 7 b 0 0 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 45 fig. 47 block diagram of lcd controller/driver d a t a b u s t i m i n g c o n t r o l l e r l c d d i v i d e r f ( x i n ) / 8 1 9 2 ( f ( x c i n ) / 8 1 9 2 i n l o w - s p e e d m o d e ) f ( x c i n ) / 3 2 c o m 0 c o m 1 c o m 2 c o m 3 v s s v l 1 v l 2 v l 3 s e g 3 s e g 2 s e g 1 s e g 0 a d d r e s s 0 0 4 0 1 6 a d d r e s s 0 0 4 1 1 6 1 0 l c d c k l c d c k c o u n t s o u r c e s e l e c t i o n b i t l c d c i r c u i t d i v i d e r d i v i s i o n r a t i o s e l e c t i o n b i t s b i a s c o n t r o l b i t l c d e n a b l e b i t d u t y r a t i o s e l e c t i o n b i t s 2 2 s e l e c t o rs e l e c t o rs e l e c t o r s e l e c t o r s e l e c t o r s e l e c t o r l c d d i s p l a y r a m a d d r e s s 0 0 5 3 1 6 p 1 4 / s e g 3 8 p 3 0 / s e g 1 8 p 1 5 / s e g 3 9 l e v e l s h i f t l e v e l s h i f t l e v e l s h i f t l e v e l s h i f t l e v e l s h i f t l e v e l s h i f t c o m m o n d r i v e r c o m m o n d r i v e r c o m m o n d r i v e r c o m m o n d r i v e r c 1 c 2 v o l t a g e m u l t i p l i e r c o n t r o l b i t l e v e l s h i f t l e v e l s h i f t l e v e l s h i f t l e v e l s h i f t s e g m e n t d r i v e r s e g m e n t d r i v e r s e g m e n t d r i v e r s e g m e n t d r i v e r s e g m e n t d r i v e r s e g m e n t d r i v e r b i a s c o n t r o l l c d o u t p u t e n a b l e b i t v c c single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 46 voltage multiplier (3 times) the voltage multiplier performs threefold boosting. this circuit in- puts a reference voltage for boosting from lcd power input pin v l1 . set each bit of the segment output enable register and the lcd mode register in the following order for operating the voltage mul- tiplier. 1. set the segment output enable bits (bits 0 to 5) of the seg- ment output enable register to 0 or 1 . 2. set the duty ratio selection bits (bits 0 and 1), the bias con- trol bit (bit 2), the lcd circuit divider division ratio selection bits (bits 5 and 6), and the lcdck count source selection bit (bit 7) of the lcd mode register to 0 or 1 . 3. set the lcd output enable bit (bit 6) of the segment output enable register to 1 . apply the limit voltage or less to the v l1 pin. 4. set the voltage multiplier control bit (bit 4) of the lcd mode register to 1 . however, be sure to select 1/3 bias for bias control. when voltage is input to the v l1 pin during operating the voltage multiplier, voltage that is twice as large as v l1 occurs at the v l2 pin, and voltage that is three times as large as v l1 occurs at the v l3 pin. notes on voltage multiplier when using the voltage multiplier, apply the limit voltage or less to the v l1 pin, then set the voltage multiplier control bit to 1 (en- abled). when not using the voltage multiplier, set the lcd output enable bit to 1 , then apply proper voltage to the lcd power input pins (v l1 v l3 ). when the lcd output enable bit is set to 0 (disabled), the v cc voltage is applied to the v l3 pin inside of this microcomputer. fig. 48 example of circuit at each bias table 12 bias control and applied voltage to v l1 v l3 bias value 1/3 bias 1/2 bias voltage value v l3 =v lcd v l2 =2/3 v lcd v l1 =1/3 v lcd v l3 =v lcd v l2 =v l1 =1/2 v lcd note : v lcd is the maximum value of supplied voltage for the lcd panel. bias control and applied voltage to lcd power input pins to the lcd power input pins (v l1 v l3 ), apply the voltage shown in table 12 according to the bias value. select a bias value by the bias control bit (bit 2 of the lcd mode register). v l3 v l 2 c 2 c 1 v l 1 1 / 3 b i a s w h e n u s i n g t h e v o l t a g e m u l t i p l i e r v l3 v l2 c 2 c 1 v l1 1 / 3 b i a s w h e n n o t u s i n g t h e v o l t a g e m u l t i p l i e r o p e n o p e n r 2 r 1 r 3 r 1= r 2= r 3 c o n t r a s t c o n t r o l v l 3 v l 2 c 2 c 1 v l 1 1/2 bi as o p e n o p e n r 4 r 5 r 4 = r 5 c o n t r a s t c o n t r o l p x x single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 47 (frequency of count source for lcdck) (divider division ratio for lcd) f(lcdck)= f(lcdck) duty ratio frame frequency= fig. 49 lcd display ram map common pin and duty ratio control the common pins (com 0 com 3 ) to be used are determined by duty ratio. select duty ratio by the duty ratio selection bits (bits 0 and 1 of the lcd mode register). after reset, the v cc (v l3 ) voltage is output from the common pins. lcd display ram addresses 0040 16 to 0053 16 are the designated ram for the lcd display. when 1 are written to these addresses, the correspond- ing segments of the lcd display panel are turned on. lcd drive timing the frequency of internal signal lcdck decided lcd drive timing and the frame frequency can be determined with the following equation: table 13 duty ratio control and common pins used duty ratio 2 3 4 common pins used notes 1: com 2 and com 3 are open. 2: com 3 is open. bit 1 0 1 1 bit 0 1 0 1 com 0 , com 1 (note 1) com 0 com 2 (note 2) com 0 com 3 duty ratio selection bits segment signal output pins segment signal output pins are classified into the segment-only pins (seg 0 seg 17 ), the segment or output port pins (seg 18 seg 25 ), and the segment or i/o port pins (seg 26 seg 39 ). segment signals are output according to the bit data of the lcd ram corresponding to the duty ratio. after reset, a v cc (=v l3 ) voltage is output to the segment-only pins and the segment/out- put port pins are the high impedance condition and pulled up to v cc (=v l3 ) voltage. also, the segment/i/o port pins(seg 26 seg 39 ) are set to input mode as i/o ports, and v cc (=v l3 ) is applied to them by pull-up resistor. 0 0 4 0 1 6 0 0 4 1 1 6 0 0 4 2 1 6 0 0 4 3 1 6 0 0 4 4 1 6 0 0 4 5 1 6 0 0 4 6 1 6 0 0 4 7 1 6 0 0 4 8 1 6 0 0 4 9 1 6 0 0 4 a 1 6 0 0 4 b 1 6 0 0 4 c 1 6 0 0 4 d 1 6 0 0 4 e 1 6 0 0 4 f 1 6 0 0 5 0 1 6 0 0 5 1 1 6 0 0 5 2 1 6 0 0 5 3 1 6 b i t a d d r e s s s e g 1 s e g 3 s e g 5 s e g 7 s e g 9 s e g 1 1 s e g 1 3 s e g 1 5 s e g 1 7 s e g 1 9 s e g 2 1 s e g 2 3 s e g 2 5 s e g 2 7 s e g 2 9 s e g 3 1 s e g 3 3 s e g 3 5 s e g 3 7 s e g 3 9 76543210 c o m 3 c o m 0 c o m 2 c o m 1 c o m 0 com 3 com 2 c o m 1 seg 0 seg 2 seg 4 seg 6 seg 8 seg 10 seg 12 seg 14 seg 16 seg 18 seg 20 seg 22 seg 24 seg 26 seg 28 seg 30 seg 32 seg 34 seg 36 seg 38 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 48 fig. 50 lcd drive waveform (1/2 bias) i n t e r n a l s i g n a l l c d c k t i m i n g 1/4 duty v o l t a g e l e v e l v l3 v l2 =v l1 v ss v l3 v ss com 0 com 1 com 2 com 3 s e g 0 o f fo n off on c o m 3 c o m 2 c o m 1 c o m 0 com 3 c o m 2 c o m 1 c o m 0 1/3 duty v l3 v l2 =v l1 v ss v l3 v ss o f f o n o no f f on o f f 1/2 duty com 0 com 1 com 2 s e g 0 com 0 com 1 seg 0 v l3 v l2 =v l1 v ss v l3 v ss o f fo n o f fo n offon o f fo n c o m 0 c o m 2 c o m 1 c o m 0 com 2 c o m 1 c o m 0 com 2 c o m 1 c o m 0 c o m 1 c o m 0 com 1 c o m 0 c o m 1 com 0 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 49 fig. 51 lcd drive waveform (1/3 bias) i n t e r n a l s i g n a l l c d c k t i m i n g 1 / 4 d u t y voltage level v l 3 v s s c o m 0 c o m 1 c o m 2 c o m 3 s e g 0 o f fo n o f fo n c o m 3 com 2 c o m 1 c o m 0 c o m 3 c o m 2 c o m 1 com 0 1/3 duty off on on off on off 1 / 2 d u t y c o m 0 com 1 c o m 2 s e g 0 com 0 com 1 seg 0 o f fo n o f fo n offon o f f on v l 3 v l 2 v s s v l 1 v l 3 v l2 v ss v l1 v l 3 v s s v l 3 v l 2 v s s v l 1 v l3 v ss com 0 com 2 com 1 com 0 com 2 c o m 1 c o m 0 com 2 com 1 c o m 0 c o m 1 c o m 0 com 1 c o m 0 c o m 1 com 0 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 50 watchdog timer the watchdog timer gives a mean of returning to the reset status when a program cannot run on a normal loop (for example, be- cause of a software runaway). the watchdog timer consists of an 8-bit watchdog timer l and a 6- bit watchdog timer h. at reset or writing to the watchdog timer control register (address 0037 16 ), the watchdog timer is set to 3fff 16 . when any data is not written to the watchdog timer con- trol register (address 0037 16 ) after reset, the watchdog timer is stopped. the watchdog timer starts to count down from 3fff 16 by writing to the watchdog timer control register and an internal re- set occurs at an underflow. accordingly, when using the watchdog timer function, write the watchdog timer control register before an underflow. the watchdog timer does not function when writing to the watchdog timer control register has not been done after reset. when not using the watchdog timer, do not write to it. when the watchdog timer control register is read, the following values are read: value of high-order 6-bit counter value of stp instruction disable bit value of count source selection bit. when the stp instruction disable bit is 0 , the stp instruction is enabled. the stp instruction is disabled when this bit is set to 1 . if the stp instruction which is disabled is executed, it is processed as an undefined instruction, so that a reset occurs internally. this bit can be set to 1 but cannot be set to 0 by program. this bit is 0 after reset. when the watchdog timer h count source selection bit is 0 , the detection time is set to 8.19 s at f(x cin ) = 32 khz and 32.768 ms at f(x in ) = 8 mhz. when the watchdog timer h count source selection bit is 0 , the detection time is set to 32 ms at f(x cin ) = 32 khz and 128 s at f(x in ) = 8 mhz. there is no difference in the detection time be- tween the middle-speed mode and the high-speed mode. fig. 52 block diagram of watchdog timer fig. 53 structure of watchdog timer control register fig. 54 timing of reset output x in data bus x cin 1 0 internal system clock selection bit (note) 0 1 1/16 watchdog timer h count source selection bit reset circuit undefined instruction reset 3f 16 is set when watchdog timer is written to. internal reset reset reset release time wait ff 16 is set when watchdog timer is written to. stp instruction stp instruction disable bit watchdog timer h (6) watchdog timer l (8) note: this is the bit 7 of cpu mode register and is used to switch the middle-/high-speed mode and low-speed mode. b 7 b 0 w a t c h d o g t i m e r r e g i s t e r ( w d t c o n : a d d r e s s 0 0 3 7 1 6 ) s t p i n s t r u c t i o n d i s a b l e b i t 0 : s t p i n s t r u c t i o n e n a b l e d 1 : s t p i n s t r u c t i o n d i s a b l e d w a t c h d o g t i m e r h c o u n t s o u r c e s e l e c i o n b i t 0 : w a t c h d o g t i m e r l u n d e r f l o w 1 : f ( x i n ) / 1 6 o r f ( x c i n ) / 1 6 watchdog timer h (for read-out of high-order 6 bit) 3fff 16 is set to the watchdog timer by writing values to this address. i n t e r n a l r e s e t s i g n a l w a t c h d o g t i m e r d e t e c t i o n approx. 1 ms (f(x in ) = 8 mh z ) f ( x i n ) single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 51 t out / output function the system clock or timer 2 divided by 2 (t out output) can be output from port p4 3 by setting the t out / output enable bit of the timer 123 mode register and the t out / output control register. set the p4 3 / /t out pin to output mode (set 1 to bit 3 of port p4 direction register) when outputting t out / . fig. 55 structure of t out / ? ? output-related registers t o u t / o u t p u t c o n t r o l b i t 0 : s y s t e m c l o c k o u t p u t 1 : t o u t o u t p u t n o t u s e d ( 0 a t r e a d i n g ) t out / output contro l reg i ster (ckout : address 002a 16 ) b 7 b 0 ti mer 123 mo d e reg i ster (t123m : address 0029 16 ) t out output act i ve e d ge sw i tc h bi t 0 : start at h output 1 : start at l output t out / output enable bit 0 : t out / output disabled 1 : t out / output enabled timer 2 write control bit 0 : write data in latch and timer 1 : write data in latch only timer 2 count source selection bit 0 : timer 1 output 1 : f(x in )/16 (or f(x cin )/16 in low-speed mode) timer 3 count source selection bit 0 : timer 1 output 1 : f(x in )/16 (or f(x cin )/16 in low-speed mode) timer 1 count source selection bit 0 : f(x in )/16 (or f(x cin )/16 in low-speed mode) 1 : f(x cin ) not used ( 0 at reading) b 7 b 0 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 52 fig. 56 example of reset circuit reset circuit when the power source voltage is within limits, and main clock x in -x out is stable, or a stabilized clock is input to the x in pin, if the reset pin is held at an l level for 2 s or more, the micro- computer is in an internal reset state. then the reset pin is returned to an h level, reset is released after approximate 8200 cycles of f(x in ), the program in address fffd 16 (high-order byte) fig. 57 reset sequence and address fffc 16 (low-order byte). make sure that the reset in- put voltage is less than 0.2 v cc (min.) for the power source voltage of v cc (min.). *v cc (min.) = minimum value of power supply voltage limits applied to v cc pin v c c r e s e t v c c r e s e t power source voltage detection circuit v c c r e s e t p o w e r o n 0 . 2 v c c l e v e l o s c i l l a t i o n s t a b i l i z e d 2 s x i n 0 v 0 v 0 v ( n o t e ) n o t e : r e s e t r e l e a s e v o l t a g e v c c = v c c ( m i n . ) a d l fffc fffd a d h , undefined x i n : a p p r o x . 8 2 0 0 c y c l e s n o t e : t h e f r e q u e n c y o f s y s t e m c l o c k i s f ( x i n ) d i v i d e d b y 8 . r eset a dd ress f rom vector table r e s e t i n t e r n a l r e s e t add ress d ata sync s y s t e m c l o c k x in ad h ad l undefined u n d e f i n e du n d e f i n e d single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 53 fig. 58 internal state of microcomputer immediately after reset n o t e : t h e c o n t e n t s o f a l l o t h e r r e g i s t e r s a n d r a m a r e u n d e f i n e d a f t e r r e s e t , s o t h e y m u s t b e i n i t i a l i z e d b y s o f t w a r e . ? : u n d e f i n e d r eg i ster contents a d d r e s s 0 0 0 1 1 6 0 0 0 3 1 6 0005 16 0 0 0 7 1 6 0 0 0 9 1 6 0 0 0 b 1 6 000 d 16 0 0 0 f 1 6 0014 16 0016 16 0 0 1 7 1 6 0 0 1 9 1 6 001 a 16 001 b 16 001 d 16 0020 16 0 0 2 1 1 6 0 0 2 2 1 6 0 0 2 3 1 6 0024 16 0025 16 0 0 2 6 1 6 0 0 2 7 1 6 0028 16 0029 16 0 0 2 a 1 6 0 0 2 b 1 6 0 0 3 2 1 6 0033 16 0034 16 0036 16 0037 16 0 0 3 8 1 6 0 0 3 9 1 6 003 a 16 003 b 16 003 c 16 003 d 16 0 0 3 e 1 6 003 f 16 ( p s ) (pc h ) (pc l ) ( 1 0 ) ( 1 1 ) ( 1 2 ) ( 1 3 ) ( 1 4 ) ( 1 5 ) ( 16 ) ( 1 7 ) ( 18 ) ( 1 9 ) ( 2 0 ) ( 2 1 ) ( 22 ) ( 23 ) ( 2 4 ) ( 2 5 ) ( 26 ) ( 27 ) ( 2 8 ) ( 2 9 ) ( 3 0 ) ( 31 ) ( 32 ) ( 3 3 ) ( 3 4 ) ( 1 ) ( 2 ) ( 3 ) ( 4 ) ( 5 ) ( 6 ) ( 7 ) ( 8 ) ( 9 ) ( 3 5 ) ( 3 6 ) ( 3 7 ) ( 38 ) ( 39 ) ( 40 ) ( 4 1 ) ( 4 2 ) ( 4 3 ) t i m e r y l o w - o r d e r r e g i s t e r p o r t p 5 d i r e c t i o n r e g i s t e r p o r t p 6 d i r e c t i o n r e g i s t e r p u l l r e g i s t e r b t i m e r y h i g h - o r d e r r e g i s t e r s e r i a l i / o 1 c o n t r o l r e g i s t e r uart control register t i m e r x h i g h - o r d e r r e g i s t e r timer x low-order register timer x mode register t i m e r y m o d e r e g i s t e r timer 123 mode register s e r i a l i / o 1 s t a t u s r e g i s t e r p o r t p 7 d i r e c t i o n r e g i s t e r a-d control register s e g m e n t o u t p u t e n a b l e r e g i s t e r l c d m o d e r e g i s t e r p u l l r e g i s t e r a interrupt edge selection register c p u m o d e r e g i s t e r interrupt request register 1 interrupt request register 2 interrupt control register 1 i n t e r r u p t c o n t r o l r e g i s t e r 2 p r o c e s s o r s t a t u s r e g i s t e r p r o g r a m c o u n t e r p o r t p 4 d i r e c t i o n r e g i s t e r p o r t p 2 d i r e c t i o n r e g i s t e r p o r t p 3 o u t p u t c o n t r o l r e g i s t e r p o r t p 1 d i r e c t i o n r e g i s t e r p o r t p 0 d i r e c t i o n r e g i s t e r timer 1 register timer 2 register timer 3 register a d c o n v e r s i o n l o w - o r d e r r e g i s t e r 111000 0 0 100000 0 0 001111 11 10010 0 00 ? 1 ? ????? 0 0 1 6 00 16 00 16 0 0 1 6 0 0 1 6 0 0 1 6 ff 16 0 0 1 6 0 0 1 6 0 0 1 6 0 0 1 6 0 0 1 6 0 0 1 6 0 0 1 6 0 0 1 6 ff 16 ff 16 0 0 1 6 0 0 1 6 0 0 1 6 3 f 1 6 0 0 1 6 0 0 1 6 0 0 1 6 0 0 1 6 0 0 1 6 00 16 0 0 1 6 0 0 1 6 f f 1 6 f f 1 6 contents of address fffd 16 contents of address fffc 16 d- a c o n t r o l r e g i s t e r w a t c h d o g t i m e r c o n t r o l r e g i s t e r d - a 1 c o n v e r s i o n r e g i s t e r d-a2 conversion register s e r i a l i / o 2 c o n t r o l r e g i s t e r t o u t / o u t p u t c o n t r o l r e g i s t e r p w m c o n t r o l r e g i s t e r watchdog timer (high-order) ( 44 ) watchdog timer (low-order) f f 1 6 01 16 00 16 00010 0 00 3 f 16 f f 1 6 ( 4 5 ) 0015 16 k e y i n p u t c o n t r o l r e g i s t e r 0 0 1 6 ?? 0000 1 0 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 54 fig. 59 oscillator circuit fig. 60 external clock input circuit clock generating circuit the 7560 group has two built-in oscillation circuits: main clock x in -x out oscillation circuit and sub-clock x cin -x cout oscillation circuit. an oscillation circuit can be formed by connecting an oscil- lator between x in and x out (x cin and x cout ). use the circuit constants in accordance with the oscillator manufacturer s recom- mended values. no external resistor is needed between x in and x out since a feed-back resistor exists on-chip. however, an exter- nal feed-back resistor is needed between x cin and x cout since a resistor does not exist between them. to supply a clock signal externally, input it to the x in pin and make the x out pin open. the sub-clock oscillation circuit cannot directly input clocks that are externally generated. accordingly, be sure to cause an external oscillator to oscillate. immediately after poweron, only the x in oscillation circuit starts oscillating, and x cin and x cout pins go to high-impedance state. frequency control (1) middle-speed mode the clock input to the x in pin is divided by 8 and it is used as the system clock . after reset, this mode is selected. (2) high-speed mode the clock input to the x in pin is divided by 2 and it is used as the system clock . (3) low-speed mode the clock input to the x cin pin is divided by 2 and it is used as the system clock . a low-power consumption operation can be realized by stopping the main clock in this mode. to stop the main clock, set the main clock stop bit of the cpu mode register to 1 . when the main clock is restarted, after setting the main clock stop bit to 0 , set enough time for oscillation to stabilize by pro- gram. note: if you switch the mode between middle/high-speed and low- speed, stabilize both x in and x cin oscillations. the suffi- cient time is required for the sub clock to stabilize, espe- cially immediately after poweron and at returning from stop mode. when switching the mode between middle/high- speed and low-speed, set the frequency in the condition that f(x in ) > 3 f(x cin ). oscillation control (1) stop mode if the stp instruction is executed, the system clock stops at an h level, and main and sub clock oscillators stop. in this time, values set previously to timer 1 latch and timer 2 latch are loaded automatically to timer 1 and timer 2. before the stp instruction, set the values to generate the wait time required for oscillation stabilization to timer 1 latch and timer 2 latch (low-order 8 bits are set to timer 1, high-order 8 bits are set to timer 2). either f(x in ) or f(x cin ) divided by 16 is input to timer 1 as count source, and the output of timer 1 is connected to timer 2. the bits of the timer 123 mode register except bit 4 are set to 0 . set the timer 1 and timer 2 interrupt enable bits to 0 before ex- ecuting the stp instruction. oscillation restarts at reset or when an external interrupt is re- ceived, but the system clock is not supplied to the cpu until timer 2 underflows. this allows time for the clock circuit oscillation to stabilize when a ceramic resonator is used. (2) wait mode if the wit instruction is executed, only the system clock stops at an h state. the states of main clock and sub clock are the same as the state before the executing the wit instruction, and oscilla- tion does not stop. since supply of internal clock is started im- mediately after the interrupt is received, the instruction can be ex- ecuted immediately. x c i n c i n c o u t c c i n c c o u t r f r d x c o u t x i n x o u t x i n x o u t e x t e r n a l o s c i l l a t i o n c i r c u i t o p e n v cc v ss c c i n c c o u t r f r d x c i n x c o u t single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 55 fig. 61 clock generating circuit block diagram w i t i n s t r u c t i o n stp i nstruct i on s ystem c l oc k s r q stp i nstruct i on s r q m a i n c l oc k stop bi t s r q t i m e r 2 ti mer 1 1 / 2 1/4 x i n x o u t x c o u t x cin i n t e r r u p t r e q u e s t r e s e t t i m e r 1 c o u n t s o u r c e s e l e c t i o n b i t ti mer 2 count source selection bit l o w - s p e e d m o d e m i d d l e - / h i g h - s p e e d m o d e s y s t e m c l o c k s e l e c t i o n b i t ( n o t e ) middl e-spee d mo d e hi g h -spee d mo d e or low-speed mode n ote: wh en us i ng t h e su b c l oc k f or t h e system c l oc k , set t h e x c sw i tc h bi t to 1 . m a i n c l o c k d i v i s i o n r a t i o s e l e c t i o n b i t 1 0 1 0 i n t e r r u p t d i s a b l e f l a g i 1 / 2 x c s w i t c h b i t ( n o t e ) 1 0 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 56 fig. 62 state transitions of system clock n o t e s 1 : s w i t c h t h e m o d e a c c o r d i n g t o t h e a r r o w s s h o w n b e t w e e n t h e m o d e b l o c k s . ( d o n o t s w i t c h b e t w e e n t h e m o d e d i r e c t l y w i t h o u t a n a r r o w . ) 2 : t h e a l l m o d e s c a n b e s w i t c h e d t o t h e s t o p m o d e o r t h e w a i t m o d e a n d r e t u r n e d t o t h e s o u r c e m o d e w h e n t h e s t o p m o d e o r t h e w a i t m o d e i s e n d e d . 3 : w h e n t h e s t o p m o d e i s e n d e d , a d e l a y t i m e c a n b e s e t b y t i m e r 1 a n d t i m e r 2 . 4: t i m e r a n d l c d o p e r a t e i n t h e w a i t m o d e . 5 : w a i t u n t i l o s c i l l a t i o n s t a b i l i z e s a f t e r o s c i l l a t i n g t h e m a i n c l o c k b e f o r e t h e s w i t c h i n g f r o m t h e l o w - s p e e d m o d e t o m i d d l e - / h i g h - s p e e d m o d e . 6 : t h e e x a m p l e a s s u m e s t h a t 8 m h z i s b e i n g a p p l i e d t o t h e x i n p i n a n d 3 2 k h z t o t h e x c i n p i n . i n d i c a t e s t h e s y s t e m c l o c k . cm 4 : x c sw i tc h bi t 0: oscillation stop 1: x cin , x cout cm 5 : main clock (x in x out ) stop bit 0: oscillating 1: stopped cm 6 : main clock division ratio selection bit 0: f(x in )/2 (high-speed mode) 1: f(x in )/8 (middle-speed mode) cm 7 : system clock selection bit 0: x in x out selected (middle-/high-speed mode) 1: x cin x cout selected (low-speed mode ) cpu mo d e reg i ster (cpum : address 003b 16 ) b 7 b 4 r e s e t cm 6 0 1 c m 6 0 1 c m 5 0 1 c m 5 0 1 0 c m 5 c m 6 0 1 0 1 c m 5 c m 6 1 1 0 c m 6 0 1 c m 7 0 1 c m 7 0 1 c m 7 = 0 ( 8 m h z s e l e c t e d ) c m 6 = 1 ( m i d d l e - s p e e d ) c m 5 = 0 ( 8 m h z o s c i l l a t i n g ) c m 4 = 0 ( 3 2 k h z s t o p p e d ) middl e-spee d mo d e (f( ) = 1 mhz) c m 6 0 1 c m 4 0 1 c m 4 0 1 cm 7 = 0 ( 8 mh z se l ecte d) cm 6 = 0 (high-speed) cm 5 = 0 (8 mhz oscillating) cm 4 = 0 (32 khz stopped) hi g h -spee d mo d e (f( ) = 4 mhz) cm 7 = 0 ( 8 mh z se l ecte d) cm 6 = 1 (middle-speed) cm 5 = 0 (8 mhz oscillating) cm 4 = 1 (32 khz oscillating) middl e-spee d mo d e (f( ) = 1 mhz) cm 7 = 0 ( 8 mh z se l ecte d) cm 6 = 0 (high-speed) cm 5 = 0 (8 mhz oscillating) cm 4 = 1 (32 khz oscillating) hi g h -spee d mo d e (f( ) = 4 mhz) c m 4 c m 6 0 1 0 1 c m 4 c m 6 1 1 0 0 cm 7 = 1 ( 32 kh z se l ecte d) cm 6 = 1 (middle-speed) cm 5 = 0 (8 mhz oscillating) cm 4 = 1 (32 khz oscillating) l o w- s p e e d m o d e ( f ( ) = 1 6 k h z ) cm 7 = 1 ( 32 kh z se l ecte d) cm 6 = 0 (high-speed) cm 5 = 0 (8 mhz oscillating) cm 4 = 1 (32 khz oscillating) l o w- s p e e d m o d e ( f ( ) = 1 6 k h z ) cm 7 = 1 ( 32 kh z se l ecte d) cm 6 = 1 (middle-speed) cm 5 = 1 (8 mhz stopped) cm 4 = 1 (32 khz oscillating) l o w- s p e e d m o d e ( f ( ) = 1 6 k h z ) cm 7 = 1 ( 32 kh z se l ecte d) cm 6 = 0 (high-speed) cm 5 = 1 (8 mhz stopped) cm 4 = 1 (32 khz oscillating) l o w- s p e e d m o d e ( f ( ) = 1 6 k h z ) single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 57 notes on programming processor status register the contents of the processor status register (ps) after a reset are undefined, except for the interrupt disable flag (i) which is 1 . af- ter a reset, initialize flags (t flag, d flag, etc.) which affect program execution. interrupt when the contents of an interrupt request bits are changed by the program, execute a bbc or bbs instruction after at least one in- struction. this is for preventing executing a bbc or bbs instruction to the contents before change. decimal calculations to calculate in decimal notation, set the decimal mode flag (d) to 1 , then execute an adc or sbc instruction. after executing an adc or sbc instruction, execute at least one instruction before executing a sec, clc, or cld instruction. in decimal mode, the values of the negative (n), overflow (v), and zero (z) flags are invalid. multiplication and division instructions the index mode (t) and the decimal mode (d) flags do not affect the mul and div instruction. the execution of these instructions does not change the contents of the processor status register. ports use instructions such as ldm and sta, etc., to set the port direc- tion registers. the contents of the port direction registers cannot be read. the following cannot be used: lda instruction the memory operation instruction when the t flag is 1 the bit-test instruction (bbc or bbs, etc.) the read-modify-write instruction (calculation instruction such as ror etc., bit manipulation instruction such as clb or seb etc.) the addressing mode which uses the value of a direction regis- ter as an index serial i/o in clock synchronous serial i/o, if the receive side is using an ex- ternal clock and it is to output the s rdy signal, set the transmit en- able bit, the receive enable bit, and the s rdy output enable bit to 1 . the txd pin of serial i/o1 retains the level then after transmission is completed. in serial i/o2 selecting an internal clock, the s out2 pin goes to high impedance state after transmission is completed. in serial i/o2 selecting an external clock, the s out2 pin retains the level then after transmission is completed. a-d converter the input to the comparator is combined by internal capacitors. therefore, since conversion accuracy may be worse by losing of an electric charge when the conversion speed is not enough, make sure that f(x in ) is at least 500 khz during an a-d conver- sion. the normal operation of a-d conversion cannot be guaranteed when performing the next operation: when writing to cpu mode register during a-d conversion op- eration when writing to a-d control register during a-d conversion op- eration when executing stp instruction or wit instruction during a-d conversion operation instruction execution time the instruction execution time is obtained by multiplying the fre- quency of the system clock by the number of cycles needed to execute an instruction. the number of cycles required to execute an instruction is shown in the list of machine instructions. the frequency of the system clock depends on the main clock division ratio selection bit and the system clock selection bit. single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 58 notes on use countermeasures against noise (1) shortest wiring length ? wiring for reset pin make the length of wiring which is connected to the reset pin as short as possible. especially, connect a capacitor across the reset pin and the v ss pin with the shortest possible wiring (within 20 mm). reason the width of a pulse input into the reset pin is determined by the timing necessary conditions. if noise having a shorter pulse width than the standard is input to the reset pin, the reset is released before the internal state of the microcomputer is com- pletely initialized. this may cause a program runaway. fig. 64 wiring for clock i/o pins (2) connection of bypass capacitor across v ss line and v cc line in order to stabilize the system operation and avoid the latch-up, connect an approximately 0.1 f bypass capacitor across the v ss line and the v cc line as follows: connect a bypass capacitor across the v ss pin and the v cc pin at equal length. connect a bypass capacitor across the v ss pin and the v cc pin with the shortest possible wiring. use lines with a larger diameter than other signal lines for v ss line and v cc line. connect the power source wiring via a bypass capacitor to the v ss pin and the v cc pin. fig. 63 wiring for the reset pin ? wiring for clock input/output pins make the length of wiring which is connected to clock i/o pins as short as possible. make the length of wiring (within 20 mm) across the grounding lead of a capacitor which is connected to an oscillator and the v ss pin of a microcomputer as short as possible. separate the v ss pattern only for oscillation from other v ss patterns. reason if noise enters clock i/o pins, clock waveforms may be de- formed. this may cause a program failure or program runaway. also, if a potential difference is caused by the noise between the v ss level of a microcomputer and the v ss level of an oscil- lator, the correct clock will not be input in the microcomputer. fig. 65 bypass capacitor across the v ss line and the v cc line reset reset circuit noise v ss v ss reset circuit v ss reset v ss n.g. o.k. noise x in x out v ss x in x out v ss n.g. o.k. v ss v cc aa aa aa aa aa aa v ss v cc aa aa aa aa aa aa aa aa aa n.g. o.k. single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 59 (3) oscillator concerns in order to obtain the stabilized operation clock on the user system and its condition, contact the oscillator manufacturer and select the oscillator and oscillation circuit constants. be careful espe- cially when range of voltage or/and temperature is wide. also, take care to prevent an oscillator that generates clocks for a microcomputer operation from being affected by other signals. ? keeping oscillator away from large current signal lines install a microcomputer (and especially an oscillator) as far as possible from signal lines where a current larger than the toler- ance of current value flows. reason in the system using a microcomputer, there are signal lines for controlling motors, leds, and thermal heads or others. when a large current flows through those signal lines, strong noise oc- curs because of mutual inductance. ? installing oscillator away from signal lines where potential levels change frequently install an oscillator and a connecting pattern of an oscillator away from signal lines where potential levels change frequently. also, do not cross such signal lines over the clock lines or the signal lines which are sensitive to noise. reason signal lines where potential levels change frequently (such as the cntr pin signal line) may affect other lines at signal rising edge or falling edge. if such lines cross over a clock line, clock waveforms may be deformed, which causes a microcomputer failure or a program runaway. ? keeping oscillator away from large current signal lines ? installing oscillator away from signal lines where potential levels change frequently fig. 67 wiring for the v pp pin of one time prom fig. 66 wiring for a large current signal line/ wiring of signal lines where potential levels change frequently (4) analog input the analog input pin is connected to the capacitor of a compara- tor. accordingly, sufficient accuracy may not be obtained by the charge/discharge current at the time of a-d conversion when the analog signal source of high-impedance is connected to an analog input pin. in order to obtain the a-d conversion result stabilized more, please lower the impedance of an analog signal source, or add the smoothing capacitor to an analog input pin. (5) difference of memory type and size when mask rom and prom version and memory size differ in one group, actual values such as an electrical characteristics, a-d conversion accuracy, and the amount of proof of noise incorrect operation may differ from the ideal values. when these products are used switching, perform system evalua- tion for each product of every after confirming product specification. (6) wiring to v pp pin of one time prom version and eprom version connect an approximately 5 k ? resistor to the v pp pin the shortest possible in series. note: even when a circuit which included an approximately 5 k ? resistor is used in the mask rom version, the microcom- puter operates correctly. reason the v pp pin of the prom version is the power source input pin for the built-in prom. when programming in the built-in prom, the impedance of the v pp pin is low to allow the electric current for writing flow into the built-in prom. because of this, noise can en- ter easily. if noise enters the v pp pin, abnormal instruction codes or data are read from the built-in prom, which may cause a pro- gram runaway. x i n x o u t v s s m i c r o c o m p u t e r mutual inductance l a r g e c u r r e n t g n d m x i n x o u t v s s c n t r d o n o t c r o s s n.g. p 7 0 / v p p v ss a b o u t 5 k ? s o u r c e s i g n a l single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group 60 data required for mask orders the following are necessary when ordering a mask rom produc- tion: 1.mask rom order confirmation form ? 2.mark specification form ? 3.data to be written to rom, in eprom form (three identical cop- ies) or one floppy disk. ? for the mask rom confirmation and the mark specifications, re- fer to the mitsubishi mcu technical information homepage (http://www.infomicom.maec.co.jp/indexe.htm). name of programming adapter pca4738f-100a pca4738g-100a pca4738l-100a package 100p6s-a 100p6q-a 100d0 the prom of the blank one time prom version is not tested or screened in the assembly process and following processes. to en- sure proper operation after programming, the procedure shown in figure 68 is recommended to verify programming. rom programming method the built-in prom of the blank one time prom version can be read or programmed with a general-purpose prom programmer using a special programming adapter. set the address of prom pro-grammer in the user rom area. table 14 special programming adapter fig. 68 state transitions of system clock programming with prom programmer s c r e e n i n g ( c a u t i o n ) ( 1 5 0 c f o r 4 0 h o u r s ) verification with prom programmer functional check in target device the screening temperature is far highe r than the storage temperature. neve r expose to 150 c exceeding 100 hours. caution : 61 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group electrical characteristics absolute maximum ratings table 15 absolute maximum ratings recommended operating conditions table 16 recommended operating conditions (1) (v cc = 2.2 to 5.5 v, ta = ?0 to 85?, unless otherwise noted) power source voltage a-d, d-a conversion reference voltage analog power source voltage analog input voltage an 0 ?n 7 5.5 5.5 5.5 v cc v cc v cc v ss v ref av ss v ia symbol parameter limits min. v v v v v unit 4.0 2.2 2.2 2.0 av ss 5.0 5.0 5.0 0 0 typ. max. power source voltage v o v o v o pd topr tstg ?.3 to 6.5 v power source voltage input voltage p0 0 ?0 7 , p1 0 ?1 7 , p2 0 ?2 7 , p4 0 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 input voltage p7 0 ?7 7 input voltage v l1 input voltage v l2 input voltage v l3 input voltage c 1 , c 2 input voltage reset, x in output voltage c 1 , c 2 v cc v i symbol parameter conditions ratings unit all voltages are based on v ss . output transistors are cut off. v i v i v i v i v i v i v o v o v o output voltage p0 0 ?0 7 , p1 0 ?1 5 , p3 0 ?3 7 output voltage p1 6 , p1 7 , p2 0 ?2 7 , p4 0 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 , p7 1 ?7 7 output voltage v l3 output voltage v l2 , seg 0 ?eg 17 output voltage x out power dissipation operating temperature storage temperature at output port at segment output ta = 25? ?.3 to v cc +0.3 ?.3 to v cc +0.3 ?.3 to v l2 v l1 to v l3 v l2 to 6.5 ?.3 to 6.5 ?.3 to v cc +0.3 ?.3 to 6.5 ?.3 to v cc ?.3 to v l3 ?.3 to v cc +0.3 ?.3 to 6.5 ?.3 to v l3 ?.3 to v cc +0.3 300 ?0 to 85 ?0 to 125 v v v v v v v v v v v v v v mw ? ? high-speed mode f(x in ) = 8 mhz middle-speed mode f(x in ) = 8 mhz low-speed mode 62 single-chip 8-bit cmos microcomputer 7560 group mitsubishi microcomputers v v ??input voltage p0 0 ?0 7 , p1 0 ?1 7 , p4 0 , p4 3 , p4 5 , p4 7 , p5 0 ?5 3 , p5 6 , p6 1 , p6 4 ?6 7 , p7 1 ?7 7 ??input voltage p2 0 ?2 7 , p4 1 , p4 2 , p4 4 , p4 6 , p5 4 , p5 5 , p5 7 , p6 0 , p6 2 , p6 3 , p7 0 reset x in ??input voltage p0 0 ?0 7 , p1 0 ?1 7 , p4 0 , p4 3 , p4 5 , p4 7 , p5 0 ?5 3 , p5 6 , p6 1 , p6 4 ?6 7 , p7 1 ?7 7 ??input voltage p2 0 ?2 7 , p4 1 , p4 2 , p4 4 , p4 6 , p5 4 , p5 5 , p5 7 , p6 0 , p6 2 , p6 3 , p7 0 reset x in table 17 recommended operating conditions (2) (v cc = 2.5 to 5.5 v, ta = ?0 to 85?, unless otherwise noted) symbol parameter limits min. unit typ. max. ??input voltage ??input voltage v ih v ih v ih v ih v il v il v il v il ??input voltage ??input voltage 0.7 v cc 0.8 v cc 0.8 v cc 0.8 v cc 0 0 0 0 v cc v cc v cc v cc 0.3 v cc 0.2 v cc 0.2 v cc 0.2 v cc v v v v v v v v ??input voltage p0 0 ?0 7 , p1 0 ?1 7 , p4 0 , p4 3 , p4 5 , p4 7 , p5 0 ?5 3 , p5 6 , p6 1 , p6 4 ?6 7 , p7 1 ?7 7 ??input voltage p2 0 ?2 7 , p4 1 , p4 2 , p4 4 , p4 6 , p5 4 , p5 5 , p5 7 , p6 0 , p6 2 , p6 3 , p7 0 reset x in ??input voltage p0 0 ?0 7 , p1 0 ?1 7 , p4 0 , p4 3 , p4 5 , p4 7 , p5 0 ?5 3 , p5 6 , p6 1 , p6 4 ?6 7 , p7 1 ?7 7 ??input voltage p2 0 ?2 7 , p4 1 , p4 2 , p4 4 , p4 6 , p5 4 , p5 5 , p5 7 , p6 0 , p6 2 , p6 3 , p7 0 reset x in table 18 recommended operating conditions (3) (v cc = 2.2 to 2.5 v, ta = ?0 to 85?, unless otherwise noted) symbol parameter limits min. unit typ. max. ??input voltage ??input voltage v ih v ih v ih v ih v il v il v il v il ??input voltage ??input voltage 0.8 v cc 0.95 v cc 0.95 v cc 0.95 v cc 0 0 0 0 v cc v cc v cc v cc 0.2 v cc 0.05 v cc 0.05 v cc 0.05 v cc v v v v v v 63 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group p0 0 ?0 7 , p1 0 ?1 7 , p2 0 ?2 7 , p3 0 ?3 7 (note 1) p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 1) p0 0 ?0 7 , p1 0 ?1 7 , p2 0 ?2 7 , p3 0 ?3 7 (note 1) p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 1) p4 0 , p7 1 ?7 7 (note 1) p0 0 ?0 7 , p1 0 ?1 7 , p2 0 ?2 7 , p3 0 ?3 7 (note 1) p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 1) p0 0 ?0 7 , p1 0 ?1 7 , p2 0 ?2 7 , p3 0 ?3 7 (note 1) p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 1) p4 0 , p7 1 ?7 7 (note 1) p0 0 ?0 7 , p1 0 ?1 5 , p3 0 ?3 7 (note 2) ??peak output current p1 6 , p1 7 , p2 0 ?2 7 , p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 2) p0 0 ?0 7 , p1 0 ?1 5 , p3 0 ?3 7 (note 2) ??peak output current p1 6 , p1 7 , p2 0 ?2 7 , p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 2) p4 0 , p7 1 ?7 7 (note 2) p0 0 ?0 7 , p1 0 ?1 5 , p3 0 ?3 7 (note 3) p1 6 , p1 7 , p2 0 ?2 7 , p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 3) p0 0 ?0 7 , p1 0 ?1 5 , p3 0 ?3 7 (note 3) ??average output current p1 6 , p1 7 , p2 0 ?2 7 , p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 3) p4 0 , p7 1 ?7 7 (note 3) ?0 ?0 20 20 80 ?0 ?0 10 10 40 ?.0 table 19 recommended operating conditions (4) (v cc = 2.2 to 5.5 v, ta = ?0 to 85?, unless otherwise noted) notes1: the total output current is the sum of all the currents flowing through all the applicable ports. the total average current is an average value measured over 100 ms. the total peak current is the peak value of all the currents. 2: the peak output current is the peak current flowing in each port. 3: the average output current is an average value measured over 100 ms. ??total peak output current ??total peak output current ??total peak output current ??total peak output current ??total peak output current ??total average output current ??total average output current ??total average output current ??total average output current ??total average output current i oh(peak) i oh(peak) i ol(peak) i ol(peak) i ol(peak) i oh(avg) i oh(avg) i ol(avg) i ol(avg) i ol(avg) i oh(peak) symbol parameter limits min. ma ma ma ma ma ma ma ma ma ma ma unit typ. max. ??peak output current ??peak output current ??peak output current ??average output current ??average output current ??average output current ??average output current i oh(peak) i ol(peak) i ol(peak) i ol(peak) i oh(avg) i oh(avg) i ol(avg) i ol(avg) ?.0 5.0 10 20 ?.5 ?.5 2.5 5.0 ma ma ma ma ma ma ma ma i ol(avg) ma 10 64 single-chip 8-bit cmos microcomputer 7560 group mitsubishi microcomputers table 20 recommended operating conditions (5) (v cc = 2.2 to 5.5 v, ta = ?0 to 85?, unless otherwise noted) notes1: when the oscillation frequency has a duty cycle of 50%. 2: when using the microcomputer in low-speed mode, make sure that the sub-clock input oscillation frequency on condition that f(x cin ) < f(x in )/3. input frequency for timers x and y (duty cycle 50%) f(cntr 0 ) f(cntr 1 ) symbol parameter limits min. mhz unit typ. max. (4.0 v v cc 5.5 v) 32.768 4.0 main clock input oscillation frequency (note 1) sub-clock input oscillation frequency (notes 1, 2) f(x in ) f(x cin ) (v cc 4.0 v) high-speed mode (4.0 v v cc 5.5 v) high-speed mode (2.2 v v cc 4.0 v) middle-speed mode (10 ? v cc ?)/9 8.0 (20 ? v cc ?)/9 8.0 50 mhz mhz mhz mhz khz test conditions 65 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group v cc = 5.0 v, v o = v cc , pullup on output transistors ?ff v cc = 2.2 v,v o = v cc , pullup on output transistors ?ff i ol = 10 ma i ol = 3.0 ma i ol = 2.5 ma v cc = 2.2 v i ol = 5 ma i ol = 1.5 ma i ol = 1.25 ma v cc = 2.2 v v ol i oh = ? ma i oh = ?.25 ma v cc = 2.2 v i oh = ? ma i oh = ?.5 ma i oh = ?.25 ma v cc = 2.2 v vv cc ?.0 ??output voltage p0 0 ?0 7 , p1 0 ?1 5 , p3 0 ?3 7 symbol parameter limits min. unit 0.5 typ. max. test conditions v oh 2.0 0.5 table 21 electrical characteristics (1) (v cc =4.0 to 5.5 v, ta = ?0 to 85?, unless otherwise noted) i ol = 10 ma i ol = 5 ma v cc = 2.2 v v i = v cc v i = v cc v i = v cc v i = v ss pull-ups ?ff v cc = 5 v, v i = v ss pull-ups ?n v cc = 2.2 v, v i = v ss pull-ups ?n v i = v ss v i = v ss ??output voltage p1 6 , p1 7 , p2 0 ?2 7 , p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 1) ??output voltage p0 0 ?0 7 , p1 0 ?1 5 , p3 0 ?3 7 ??output voltage p1 6 , p1 7 , p2 0 ?2 7 , p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 ??output voltage p4 0 , p7 1 ?7 7 hysteresis int 0 ?nt 2 , adt, cntr 0, cntr 1, p2 0 ?2 7 hysteresis s clk , r x d, s in2 hysteresis reset ??input current p0 0 ?0 7 , p1 0 ?1 7 , p2 0 ?2 7 , p4 0 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 , p7 0 ?7 7 ??input current reset ??input current x in ??input current p0 0 ?0 7 ,p1 0 ?1 7 , p2 0 ?2 7 ,p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 ??input current p4 0 , p7 0 ?7 7 ??input current reset ??input current x in output load current p3 0 ?3 7 v oh v ol v ol v t+ ?v t v t+ ?v t v t+ ?v t i ih i ih i ih i il i il i il i load v cc ?.0 v cc ?.5 ?0.0 ?.0 0.5 0.5 4.0 ?20.0 ?0.0 ?.0 2.0 0.5 0.5 5.0 5.0 ?.0 ?40.0 ?0.0 ?.0 ?.0 ?40.0 ?0.0 v v v v v v v v v v a a a a a a a a i il v cc ?.8 v cc ?.8 v v v 0.8 v 0.8 0.3 v a a a v o = v cc , pullup off output transistors ?ff v o = v ss , pullup off output transistors ?ff output leak current p3 0 ?3 7 i leak 5.0 ?.0 a a ?20.0 ?0.0 ?0.0 ?.0 66 single-chip 8-bit cmos microcomputer 7560 group mitsubishi microcomputers table 22 electrical characteristics (2) (v cc =2.2 to 5.5 v, ta = ?0 to 85?, unless otherwise noted) v 5.5 high-speed mode, v cc = 5 v f(x in ) = 8 mhz f(x cin ) = 32.768 khz output transistors ?ff a-d converter in operating high-speed mode, v cc = 5 v f(x in ) = 8 mhz (in wit state) f(x cin ) = 32.768 khz output transistors ?ff a-d converter stop low-speed mode, v cc = 5 v, ta 55? f(x in ) = stopped f(x cin ) = 32.768 khz output transistors ?ff low-speed mode, v cc = 5 v, ta = 25? f(x in ) = stopped f(x cin ) = 32.768 khz (in wit state) output transistors ?ff low-speed mode, v cc = 3 v, ta 55? f(x in ) = stopped f(x cin ) = 32.768 khz output transistors ?ff low-speed mode, v cc = 3 v, ta = 25? f(x in ) = stopped f(x cin ) = 32.768 khz (in wit state) output transistors ?ff all oscillation stopped (in stp state) output transistors ?ff symbol parameter limits min. unit typ. max. ta = 25 ? ta = 85 ? test conditions i cc power source current 6.4 v ram ram retention voltage at clock stop mode 2.0 when using voltage multiplier v l1 = 1.8 v v l1 i l1 power source voltage power source current (v l1 ) (note) note: when the voltage multiplier control bit of the lcd mode register (bit 4 at address 0039 16 ) is ?? 1.3 1.6 35 20 15 4.5 0.1 1.8 4.0 3.2 70 40 22 9.0 1.0 10 2.1 ma a a a a a v ma 13 a 67 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group table 23 a-d converter characteristics (v cc = 2.7 to 5.5 v, v ss = av ss = 0 v, ta = ?0 to 85?, f(x in ) = 500 khz to 8 mhz, in middle/high-speed mode unless otherwise noted) 8-bit a-d mode (when conversion mode selection bit (bit 0 of address 0014 16 ) is ?? symbol parameter limits min. unit typ. max. test conditions resolution absolute accuracy (excluding quantization error) v cc = v ref = 2.7 to 5.5 v bits lsb 35 150 8 ? tc(adclk) (note) conversion time ladder resistor reference power source input current t conv r ladder i vref k ? a table 25 d-a converter characteristics (v cc = 2.7 to 5.5 v, v cc = v ref , v ss = av ss = 0 v, ta = ?0 to 85?, in middle/high-speed mode unless otherwise noted) symbol parameter limits min. unit typ. max. test conditions resolution v cc = v ref = 5 v v cc = v ref = 2.7 v 1 bits % % s k ? ma 3 2.5 8 1.0 2.0 note: using one d-a converter, with the value in the d-a conversion register of the other d-a converter being ?0 16 ? and excluding currents flowing through the a-d resistance ladder. (note) setting time output resistor t su r o 4 3.2 12 50 absolute accuracy analog port input current i ia i vref reference power source input current a 100 200 5.0 v ref = 5 v table 24 a-d converter characteristics (v cc = 2.7 to 5.5 v, v ss = av ss = 0 v, ta = ?0 to 85?, f(x in ) = 500 khz to 8 mhz, in middle/high-speed mode unless otherwise noted) 10-bit a-d mode (when conversion mode selection bit (bit 0 of address 0014 16 ) is ?? 49 50 symbol parameter limits min. unit typ. max. test conditions resolution absolute accuracy (excluding quantization error) v cc = v ref = 2.7 to 5.5 v bits lsb 35 150 10 ? tc(adclk) (note) conversion time ladder resistor reference power source input current t conv r ladder i vref k ? a 12 50 analog port input current i ia a 100 200 5.0 v ref = 5 v 61 62 note: adclk is the control clock of the a-d converter. system clock is used. note: adclk is the control clock of the a-d converter. system clock is used. 68 single-chip 8-bit cmos microcomputer 7560 group mitsubishi microcomputers table 26 timing requirements 1 (v cc = 4.0 to 5.5 v, v ss = 0 v, ta = ?0 to 85?, unless otherwise noted) 2 125 45 40 250 105 105 80 80 800 370 370 220 100 1000 400 400 200 200 note: when bit 6 of address 001a 16 is ?? divide this value by four when bit 6 of address 001a 16 is ?? reset input ??pulse width main clock input cycle time (x in input) main clock input ??pulse width main clock input ??pulse width cntr 0 , cntr 1 input cycle time cntr 0 , cntr 1 input ??pulse width cntr 0 , cntr 1 input ??pulse width int 0 to int 2 input ??pulse width int 0 to int 2 input ??pulse width serial i/o1 clock input cycle time (note) serial i/o1 clock input ??pulse width (note) serial i/o1 clock input ??pulse width (note) serial i/o1 input set up time serial i/o1 input hold time serial i/o2 clock input cycle time (note) serial i/o2 clock input ??pulse width (note) serial i/o2 clock input ??pulse width (note) serial i/o2 input set up time serial i/o2 input hold time t w(reset) t c(x in ) t wh(x in ) t wl(x in ) t c(cntr) t wh(cntr) t wl(cntr) t wh(int) t wl(int) t c(s clk1 ) t wh(s clk1 ) t wl(s clk1 ) t su(r x d? clk1 ) t h(s clk1 ? x d) t c(s clk2 ) t wh(s clk2 ) t wl (s clk2 ) t su(s in2 ? clk2 ) t h(s clk2 ? in2 ) symbol parameter limits min. s ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns unit typ. max. table 27 timing requirements 2 (v cc = 2.2 to 4.0 v, v ss = 0 v, ta = ?0 to 85?, unless otherwise noted) 2 125 45 40 900/(v cc -0.4) t c(cntr) /2?0 t c(cntr) /2?0 230 230 2000 950 reset input ??pulse width main clock input cycle time (x in input) main clock input ??pulse width main clock input ??pulse width cntr 0 , cntr 1 input cycle time cntr 0 , cntr 1 input ??pulse width cntr 0 , cntr 1 input ??pulse width int 0 to int 2 input ??pulse width int 0 to int 2 input ??pulse width serial i/o1 clock input cycle time (note) serial i/o1 clock input ??pulse width (note) t w(reset) t c(x in ) t wh(x in ) t wl(x in ) t c(cntr) t wh(cntr) t wl(cntr) t wh(int) t wl(int) t c(s clk1 ) t wh(s clk1 ) symbol parameter limits min. s ns ns ns ns ns ns ns ns ns ns unit typ. max. note: when bit 6 of address 001a 16 is ?? divide this value by four when bit 6 of address 001a 16 is ?? t su(s in2 ? clk2 ) t h(s clk2 ? in2 ) t wl(s clk1 ) t su(r x d? clk1 ) t h(s clk1 ? x d) t c(s clk2 ) t wh(s clk2 ) t wl(s clk2 ) serial i/o1 clock input ??pulse width (note) serial i/o1 input set up time serial i/o1 input hold time serial i/o2 clock input cycle time (note) serial i/o2 clock input ??pulse width (note) serial i/o2 clock input ??pulse width (note) serial i/o2 input set up time serial i/o2 input hold time 950 400 200 2000 950 950 400 300 ns ns ns ns ns ns ns ns 69 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group table 28 switching characteristics 1 (v cc = 4.0 to 5.5 v, v ss = 0 v, ta = ?0 to 85?, unless otherwise noted) notes1: when the p4 5 /t x d p-channel output disable bit of the uart control register (bit 4 of address 001b 16 ) is ?? 2: x out and x cout pins are excluded. serial i/o1 clock output ??pulse width serial i/o1 clock output ??pulse width serial i/o1 output delay time (note 1) serial i/o1 output valid time (note 1) serial i/o1 clock output rising time serial i/o1 clock output falling time serial i/o2 clock output ??pulse width serial i/o2 clock output ??pulse width serial i/o2 output delay time serial i/o2 output valid time serial i/o2 clock output falling time cmos output rising time (note 2) cmos output falling time (note 2) 140 30 30 0.2 ? t c (s clk2 ) 40 30 30 symbol parameter limits min. ns ns ns ns ns ns ns ns ns ns ns ns ns unit t c (s clk1 )/2?0 t c (s clk1 )/2?0 ?0 10 10 typ. max. t wh(s clk1 ) t wl(s clk1 ) t d(s clk1 ? x d) t v(s clk1 ? x d) t r(s clk1 ) t f(s clk1 ) t wh(s clk2 ) t wl(s clk2 ) t d(s clk2 ? out2 ) t v(s clk2 ? out2 ) t f(s clk2 ) t r(cmos) t f(cmos) table 29 switching characteristics 2 (v cc = 2.2 to 4.0 v, v ss = 0 v, ta = ?0 to 85?, unless otherwise noted) ns ns ns ns ns ns ns ns ns ns ns ns ns unit notes1: when the p4 5 /t x d p-channel output disable bit of the uart control register (bit 4 of address 001b 16 ) is ?? 2: x out and x cout pins are excluded. serial i/o1 clock output ??pulse width serial i/o1 clock output ??pulse width serial i/o1 output delay time (note 1) serial i/o1 output valid time (note 1) serial i/o1 clock output rising time serial i/o1 clock output falling time serial i/o2 clock output ??pulse width serial i/o2 clock output ??pulse width serial i/o2 output delay time serial i/o2 output valid time serial i/o2 clock output falling time cmos output rising time (note 2) cmos output falling time (note 2) 350 50 50 0.2 ? t c (s clk2 ) 50 50 50 symbol parameter limits min. t c (s clk1 )/2?0 t c (s clk1 )/2?0 ?0 20 20 max. t wh(s clk1 ) twl(s clk1 ) t d(s clk1 ? x d) t v(s clk1 ? x d) t r(s clk1 ) t f(s clk1 ) t wh(s clk2 ) t wl(s clk2 ) t d(s clk2 ? out2 ) t v(s clk2 ? out2 ) t f(s clk2 ) t r(cmos) t f(cmos) typ. t c (s clk2 )/2?60 t c (s clk2 )/2?60 0 t c (s clk2 )/2?40 t c (s clk2 )/2?40 0 70 single-chip 8-bit cmos microcomputer 7560 group mitsubishi microcomputers v v ??input voltage p0 0 ?0 7 , p1 0 ?1 7 , p4 0 , p4 3 , p4 5 , p4 7 , p5 0 ?5 3 , p5 6 , p6 1 , p6 4 ?6 7 , p7 1 ?7 7 ??input voltage p2 0 ?2 7 , p4 1 , p4 2 , p4 4 , p4 6 , p5 4 , p5 5 , p5 7 , p6 0 , p6 2 , p6 3 , p7 0 reset x in ??input voltage p0 0 ?0 7 , p1 0 ?1 7 , p4 0 , p4 3 , p4 5 , p4 7 , p5 0 ?5 3 , p5 6 , p6 1 , p6 4 ?6 7 , p7 1 ?7 7 ??input voltage p2 0 ?2 7 , p4 1 , p4 2 , p4 4 , p4 6 , p5 4 , p5 5 , p5 7 , p6 0 , p6 2 , p6 3 , p7 0 reset x in ??input voltage ??input voltage v ih v ih v ih v ih v il v il v il v il ??input voltage ??input voltage 0.7 v cc 0.8 v cc 0.8 v cc 0.8 v cc 0 0 0 0 v cc v cc v cc v cc 0.3 v cc 0.2 v cc 0.2 v cc 0.2 v cc v v v v v v electrical characteristics (eprom or one time prom version) absolute maximum ratings (eprom or one time prom version) table 30 absolute maximum ratings (eprom or one time prom version) recommended operating conditions (eprom or one time prom version) table 31 recommended operating conditions (1) (eprom or one time prom version) (v cc = 2.5 to 5.5 v, ta = ?0 to 85?, unless otherwise noted) power source voltage a-d, d-a conversion reference voltage analog power source voltage analog input voltage an 0 ?n 7 5.5 5.5 5.5 v cc v cc v cc v ss v ref av ss v ia symbol parameter limits min. v v v v v unit 4.0 2.5 2.5 2.0 av ss 5.0 5.0 5.0 0 0 typ. max. power source voltage v o v o v o pd topr tstg ?.3 to 7.0 v power source voltage input voltage p0 0 ?0 7 , p1 0 ?1 7 , p2 0 ?2 7 , p4 0 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 input voltage p7 0 ?7 7 input voltage v l1 input voltage v l2 input voltage v l3 input voltage c 1 , c 2 input voltage reset, x in output voltage c 1 , c 2 v cc v i symbol parameter conditions ratings unit all voltages are based on v ss . output transistors are cut off. v i v i v i v i v i v i v o v o v o output voltage p0 0 ?0 7 , p1 0 ?1 5 , p3 0 ?3 7 output voltage p1 6 , p1 7 , p2 0 ?2 7 , p4 0 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 , p7 1 ?7 7 output voltage v l3 output voltage v l2 , seg 0 ?eg 17 output voltage x out power dissipation operating temperature storage temperature at output port at segment output ta = 25? ?.3 to v cc +0.3 ?.3 to v cc +0.3 ?.3 to v l2 v l1 to v l3 v l2 to 7.0 ?.3 to 7.0 ?.3 to v cc +0.3 ?.3 to 7.0 ?.3 to v cc ?.3 to v l3 ?.3 to v cc +0.3 ?.3 to 7.0 ?.3 to v l3 ?.3 to v cc +0.3 300 ?0 to 85 ?0 to 125 v v v v v v v v v v v v v v mw ? ? high-speed mode f(x in ) = 8 mhz middle-speed mode f(x in ) = 8 mhz low-speed mode 71 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group p0 0 ?0 7 , p1 0 ?1 7 , p2 0 ?2 7 , p3 0 ?3 7 (note 1) p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 1) p0 0 ?0 7 , p1 0 ?1 7 , p2 0 ?2 7 , p3 0 ?3 7 (note 1) p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 1) p4 0 , p7 1 ?7 7 (note 1) p0 0 ?0 7 , p1 0 ?1 7 , p2 0 ?2 7 , p3 0 ?3 7 (note 1) p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 1) p0 0 ?0 7 , p1 0 ?1 7 , p2 0 ?2 7 , p3 0 ?3 7 (note 1) p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 1) p4 0 , p7 1 ?7 7 (note 1) p0 0 ?0 7 , p1 0 ?1 5 , p3 0 ?3 7 (note 2) ??peak output current p1 6 , p1 7 , p2 0 ?2 7 , p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 2) p0 0 ?0 7 , p1 0 ?1 5 , p3 0 ?3 7 (note 2) ??peak output current p1 6 , p1 7 , p2 0 ?2 7 , p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 2) p4 0 , p7 1 ?7 7 (note 2) p0 0 ?0 7 , p1 0 ?1 5 , p3 0 ?3 7 (note 3) p1 6 , p1 7 , p2 0 ?2 7 , p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 3) p0 0 ?0 7 , p1 0 ?1 5 , p3 0 ?3 7 (note 3) ??average output current p1 6 , p1 7 , p2 0 ?2 7 , p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 3) p4 0 , p7 1 ?7 7 (note 3) ?0 ?0 20 20 80 ?0 ?0 10 10 40 ?.0 table 32 recommended operating conditions (2) (eprom or one time prom version) (v cc = 2.5 to 5.5 v, ta = ?0 to 85?, unless otherwise noted) notes1: the total output current is the sum of all the currents flowing through all the applicable ports. the total average current is an average value measured over 100 ms. the total peak current is the peak value of all the currents. 2: the peak output current is the peak current flowing in each port. 3: the average output current is an average value measured over 100 ms. ??total peak output current ??total peak output current ??total peak output current ??total peak output current ??total peak output current ??total average output current ??total average output current ??total average output current ??total average output current ??total average output current i oh(peak) i oh(peak) i ol(peak) i ol(peak) i ol(peak) i oh(avg) i oh(avg) i ol(avg) i ol(avg) i ol(avg) i oh(peak) symbol parameter limits min. ma ma ma ma ma ma ma ma ma ma ma unit typ. max. ??peak output current ??peak output current ??peak output current ??average output current ??average output current ??average output current ??average output current i oh(peak) i ol(peak) i ol(peak) i ol(peak) i oh(avg) i oh(avg) i ol(avg) i ol(avg) ?.0 5.0 10 20 ?.5 ?.5 2.5 5.0 ma ma ma ma ma ma ma ma table 33 recommended operating conditions (3) (eprom or one time prom version) (v cc = 2.5 to 5.5 v, ta = ?0 to 85?, unless otherwise noted) notes1: when the oscillation frequency has a duty cycle of 50%. 2: when using the microcomputer in low-speed mode, make sure that the sub-clock input oscillation frequency on condition that f(x cin ) < f(x in )/3. input frequency for timers x and y (duty cycle 50%) f(cntr 0 ) f(cntr 1 ) symbol parameter limits min. mhz unit typ. max. (4.0 v v cc 5.5 v) 32.768 4.0 main clock input oscillation frequency (note 1) sub-clock input oscillation frequency (notes 1, 2) f(x in ) f(x cin ) (v cc 4.0 v) high-speed mode (4.0 v v cc 5.5 v) high-speed mode (2.5 v v cc 4.0 v) middle-speed mode (2 ? v cc ) ? 8.0 (4 ? v cc ) ? 8.0 50 mhz mhz mhz mhz khz test conditions i ol(avg) 10 ma 72 single-chip 8-bit cmos microcomputer 7560 group mitsubishi microcomputers v cc = 5.0 v, v o = v cc , pullup on output transistors ?ff v cc = 2.5 v,v o = v cc , pullup on output transistors ?ff i ol = 10 ma i ol = 3.0 ma i ol = 2.5 ma v cc = 2.5 v i ol = 5 ma i ol = 1.5 ma i ol = 1.25 ma v cc = 2.5 v v ol i oh = ? ma i oh = ?.25 ma v cc = 2.5 v i oh = ? ma i oh = ?.5 ma i oh = ?.25 ma v cc = 2.5 v vv cc ?.0 ??output voltage p0 0 ?0 7 , p1 0 ?1 5 , p3 0 ?3 7 symbol parameter limits min. unit 0.5 typ. max. test conditions v oh 2.0 0.5 electrical characteristics (eprom or one time prom version) table 34 electrical characteristics (1) (eprom or one time prom version) (v cc =4.0 to 5.5 v, ta = ?0 to 85?, unless otherwise noted) i ol = 10 ma i ol = 5 ma v cc = 2.5 v v i = v cc v i = v cc v i = v cc v i = v ss pull-ups ?ff v cc = 5 v, v i = v ss pull-ups ?n v cc = 2.5 v, v i = v ss pull-ups ?n v i = v ss v i = v ss ??output voltage p1 6 , p1 7 , p2 0 ?2 7 , p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 1) ??output voltage p0 0 ?0 7 , p1 0 ?1 5 , p3 0 ?3 7 ??output voltage p1 6 , p1 7 , p2 0 ?2 7 , p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 ??output voltage p4 0 , p7 1 ?7 7 hysteresis int 0 ?nt 2 , adt, cntr 0, cntr 1, p2 0 ?2 7 hysteresis s clk , r x d, s in2 hysteresis reset ??input current p0 0 ?0 7 , p1 0 ?1 7 , p2 0 ?2 7 , p4 0 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 , p7 0 ?7 7 ??input current reset ??input current x in ??input current p0 0 ?0 7 ,p1 0 ?1 7 , p2 0 ?2 7 ,p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 ??input current p4 0 , p7 0 ?7 7 ??input current reset ??input current x in output load current p3 0 ?3 7 v oh v ol v ol v t+ ?v t v t+ ?v t v t+ ?v t i ih i ih i ih i il i il i il i load v cc ?.0 v cc ?.5 ?0.0 ?.0 0.5 0.5 4.0 ?20.0 ?5.0 ?.0 2.0 0.5 0.5 5.0 5.0 ?.0 ?40.0 ?5.0 ?.0 ?.0 ?40.0 ?5.0 v v v v v v v v v v a a a a a a a a i il v cc ?.8 v cc ?.8 v v v 0.8 v 0.8 0.3 v a a a v o = v cc , pullup off output transistors ?ff v o = v ss , pullup off output transistors ?ff output leak current p3 0 ?3 7 i leak 5.0 ?.0 a a ?20.0 ?5.0 ?0.0 ?.0 73 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group table 35 electrical characteristics (2) (eprom or one time prom version) (v cc =2.5 to 5.5 v, ta = ?0 to 85?, unless otherwise noted) v 5.5 high-speed mode, v cc = 5 v f(x in ) = 8 mhz f(x cin ) = 32.768 khz output transistors ?ff a-d converter in operating high-speed mode, v cc = 5 v f(x in ) = 8 mhz (in wit state) f(x cin ) = 32.768 khz output transistors ?ff a-d converter stop low-speed mode, v cc = 5 v, ta 55? f(x in ) = stopped f(x cin ) = 32.768 khz output transistors ?ff low-speed mode, v cc = 5 v, ta = 25? f(x in ) = stopped f(x cin ) = 32.768 khz (in wit state) output transistors ?ff low-speed mode, v cc = 3 v, ta 55? f(x in ) = stopped f(x cin ) = 32.768 khz output transistors ?ff low-speed mode, v cc = 3 v, ta = 25? f(x in ) = stopped f(x cin ) = 32.768 khz (in wit state) output transistors ?ff all oscillation stopped (in stp state) output transistors ?ff symbol parameter limits min. unit typ. max. ta = 25 ? ta = 85 ? test conditions i cc power source current 6.4 v ram ram retention voltage at clock stop mode 2.0 when using voltage multiplier v l1 = 1.8 v v l1 i l1 power source voltage power source current (v l1 ) (note) note: when the voltage multiplier control bit of the lcd mode register (bit 4 at address 0039 16 ) is ?? 1.3 1.6 35 20 15 4.5 0.1 1.8 4.0 3.2 70 40 22 9.0 1.0 10 2.3 ma a a a a a v ma 13 a 74 single-chip 8-bit cmos microcomputer 7560 group mitsubishi microcomputers a-d converter characteristics (eprom or one time prom version) table 36 a-d converter characteristics (eprom or one time prom version) (v cc = 2.7 to 5.5 v, v ss = av ss = 0 v, ta = ?0 to 85?, f(x in ) = 500 khz to 8 mhz, in middle/high-speed mode unless otherwise noted) 8-bit a-d mode (when conversion mode selection bit (bit 0 of address 0014 16 ) is ?? symbol parameter limits min. unit typ. max. test conditions resolution absolute accuracy (excluding quantization error) v cc = v ref = 2.7 to 5.5 v bits lsb 35 150 8 ? tc(adclk) (note) conversion time ladder resistor reference power source input current t conv r ladder i vref k ? a d-a converter characteristics (eprom or one time prom version) table 38 d-a converter characteristics (eprom or one time prom version) (v cc = 2.7 to 5.5 v, v cc = v ref , v ss = av ss = 0 v, ta = ?0 to 85?, in middle/high-speed mode unless otherwise noted) symbol parameter limits min. unit typ. max. test conditions resolution v cc = v ref = 5 v v cc = v ref = 2.7 v 1 bits % % s k ? ma 3 2.5 8 1.0 2.0 note: using one d-a converter, with the value in the d-a conversion register of the other d-a converter being ?0 16 ? and excluding currents flowing through the a-d resistance ladder. (note) setting time output resistor t su r o 4 3.2 12 50 absolute accuracy analog port input current i ia i vref reference power source input current a 100 200 5.0 v ref = 5 v table 37 a-d converter characteristics (eprom or one time prom version) (v cc = 2.7 to 5.5 v, v ss = av ss = 0 v, ta = ?0 to 85?, f(x in ) = 500 khz to 8 mhz, in middle/high-speed mode unless otherwise noted) 10-bit a-d mode (when conversion mode selection bit (bit 0 of address 0014 16 ) is ?? 49 50 symbol parameter limits min. unit typ. max. test conditions resolution absolute accuracy (excluding quantization error) v cc = v ref = 2.7 to 5.5 v bits lsb 35 150 10 ? tc(adclk) (note) conversion time ladder resistor reference power source input current t conv r ladder i vref k ? a 12 50 analog port input current i ia a 100 200 5.0 v ref = 5 v 61 62 note: adclk is the control clock of the a-d converter. system clock is used. note: adclk is the control clock of the a-d converter. system clock is used. 75 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group timing requirements (eprom or one time prom version) table 39 timing requirements 1 (eprom or one time prom version) (v cc = 4.0 to 5.5 v, v ss = 0 v, ta = ?0 to 85?, unless otherwise noted) 2 125 45 40 250 105 105 80 80 800 370 370 220 100 1000 400 400 200 200 note: when bit 6 of address 001a 16 is ?? divide this value by four when bit 6 of address 001a 16 is ?? reset input ??pulse width main clock input cycle time (x in input) main clock input ??pulse width main clock input ??pulse width cntr 0 , cntr 1 input cycle time cntr 0 , cntr 1 input ??pulse width cntr 0 , cntr 1 input ??pulse width int 0 to int 2 input ??pulse width int 0 to int 2 input ??pulse width serial i/o1 clock input cycle time (note) serial i/o1 clock input ??pulse width (note) serial i/o1 clock input ??pulse width (note) serial i/o1 input set up time serial i/o1 input hold time serial i/o2 clock input cycle time (note) serial i/o2 clock input ??pulse width (note) serial i/o2 clock input ??pulse width (note) serial i/o2 input set up time serial i/o2 input hold time t w(reset) t c(x in ) t wh(x in ) t wl(x in ) t c(cntr) t wh(cntr) t wl(cntr) t wh(int) t wl(int) t c(s clk1 ) t wh(s clk1 ) t wl(s clk1 ) t su(r x d? clk1 ) t h(s clk1 ? x d) t c(s clk2 ) t wh(s clk2 ) t wl (s clk2 ) t su(s in2 ? clk2 ) t h(s clk2 ? in2 ) symbol parameter limits min. s ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns unit typ. max. table 40 timing requirements 2 (eprom or one time prom version) (v cc = 2.5 to 4.0 v, v ss = 0 v, ta = ?0 to 85?, unless otherwise noted) 2 125 45 40 500/(v cc -2) 250/(v cc -2)?0 250/(v cc -2)?0 230 230 2000 950 reset input ??pulse width main clock input cycle time (x in input) main clock input ??pulse width main clock input ??pulse width cntr 0 , cntr 1 input cycle time cntr 0 , cntr 1 input ??pulse width cntr 0 , cntr 1 input ??pulse width int 0 to int 2 input ??pulse width int 0 to int 2 input ??pulse width serial i/o1 clock input cycle time (note) serial i/o1 clock input ??pulse width (note) t w(reset) t c(x in ) t wh(x in ) t wl(x in ) t c(cntr) t wh(cntr) t wl(cntr) t wh(int) t wl(int) t c(s clk1 ) t wh(s clk1 ) symbol parameter limits min. s ns ns ns ns ns ns ns ns ns ns unit typ. max. note: when bit 6 of address 001a 16 is ?? divide this value by four when bit 6 of address 001a 16 is ?? t su(s in2 ? clk2 ) t h(s clk2 ? in2 ) t wl(s clk1 ) t su(r x d? clk1 ) t h(s clk1 ? x d) t c(s clk2 ) t wh(s clk2 ) t wl(s clk2 ) serial i/o1 clock input ??pulse width (note) serial i/o1 input set up time serial i/o1 input hold time serial i/o2 clock input cycle time (note) serial i/o2 clock input ??pulse width (note) serial i/o2 clock input ??pulse width (note) serial i/o2 input set up time serial i/o2 input hold time 950 400 200 2000 950 950 400 300 ns ns ns ns ns ns ns ns 76 single-chip 8-bit cmos microcomputer 7560 group mitsubishi microcomputers switching characteristics (eprom or one time prom version) table 41 switching characteristics 1 (eprom or one time prom version) (v cc = 4.0 to 5.5 v, v ss = 0 v, ta = ?0 to 85?, unless otherwise noted) notes1: when the p4 5 /t x d p-channel output disable bit of the uart control register (bit 4 of address 001b 16 ) is ?? 2: x out and x cout pins are excluded. serial i/o1 clock output ??pulse width serial i/o1 clock output ??pulse width serial i/o1 output delay time (note 1) serial i/o1 output valid time (note 1) serial i/o1 clock output rising time serial i/o1 clock output falling time serial i/o2 clock output ??pulse width serial i/o2 clock output ??pulse width serial i/o2 output delay time serial i/o2 output valid time serial i/o2 clock output falling time cmos output rising time (note 2) cmos output falling time (note 2) 140 30 30 0.2 ? t c (s clk2 ) 40 30 30 symbol parameter limits min. ns ns ns ns ns ns ns ns ns ns ns ns ns unit t c (s clk1 )/2?0 t c (s clk1 )/2?0 ?0 10 10 typ. max. t wh(s clk1 ) t wl(s clk1 ) t d(s clk1 ? x d) t v(s clk1 ? x d) t r(s clk1 ) t f(s clk1 ) t wh(s clk2 ) t wl(s clk2 ) t d(s clk2 ? out2 ) t v(s clk2 ? out2 ) t f(s clk2 ) t r(cmos) t f(cmos) table 42 switching characteristics 2 (eprom or one time prom version) (v cc = 2.5 to 4.0 v, v ss = 0 v, ta = ?0 to 85?, unless otherwise noted) ns ns ns ns ns ns ns ns ns ns ns ns ns unit notes1: when the p4 5 /t x d p-channel output disable bit of the uart control register (bit 4 of address 001b 16 ) is ?? 2: x out and x cout pins are excluded. serial i/o1 clock output ??pulse width serial i/o1 clock output ??pulse width serial i/o1 output delay time (note 1) serial i/o1 output valid time (note 1) serial i/o1 clock output rising time serial i/o1 clock output falling time serial i/o2 clock output ??pulse width serial i/o2 clock output ??pulse width serial i/o2 output delay time serial i/o2 output valid time serial i/o2 clock output falling time cmos output rising time (note 2) cmos output falling time (note 2) 350 50 50 0.2 ? t c (s clk2 ) 50 50 50 symbol parameter limits min. t c (s clk1 )/2?0 t c (s clk1 )/2?0 ?0 20 20 max. t wh(s clk1 ) twl(s clk1 ) t d(s clk1 ? x d) t v(s clk1 ? x d) t r(s clk1 ) t f(s clk1 ) t wh(s clk2 ) t wl(s clk2 ) t d(s clk2 ? out2 ) t v(s clk2 ? out2 ) t f(s clk2 ) t r(cmos) t f(cmos) typ. t c (s clk2 )/2?60 t c (s clk2 )/2?60 0 t c (s clk2 )/2?40 t c (s clk2 )/2?40 0 77 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group electrical characteristics (extended operating temperature version) absolute maximum ratings (extended operating temperature version) table 43 absolute maximum ratings (extended operating temperature version) recommended operating conditions (extended operating temperature version) table 44 recommended operating conditions (1) (extended operating temperature version) (v cc = 2.5 to 5.5 v, ta = ?0 to 85?, and v cc = 3.0 to 5.5 v, ta = ?0 to ?0 ? unless otherwise noted) power source voltage a-d, d-a conversion reference voltage analog power source voltage analog input voltage an 0 ?n 7 5.5 5.5 5.5 5.5 5.5 v cc v cc v cc v ss v ref av ss v ia symbol parameter limits min. v v v v v unit 4.0 2.5 3.0 2.5 3.0 2.0 av ss 5.0 5.0 5.0 5.0 5.0 0 0 typ. max. power source voltage v o v o v o pd topr tstg ?.3 to 6.5 v power source voltage (note 1) input voltage p0 0 ?0 7 , p1 0 ?1 7 , p2 0 ?2 7 , p4 0 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 input voltage p7 0 ?7 7 input voltage v l1 input voltage v l2 input voltage v l3 (note 2) input voltage c 1 , c 2 (note 1) input voltage reset, x in output voltage c 1 , c 2 (note 1) v cc v i symbol parameter conditions ratings unit all voltages are based on v ss . output transistors are cut off. v i v i v i v i v i v i v o v o v o output voltage p0 0 ?0 7 , p1 0 ?1 5 , p3 0 ?3 7 output voltage p1 6 , p1 7 , p2 0 ?2 7 , p4 0 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 , p7 1 ?7 7 output voltage v l3 (note 1) output voltage v l2 , seg 0 ?eg 17 output voltage x out power dissipation operating temperature storage temperature at output port at segment output ta = 25? ?.3 to v cc +0.3 ?.3 to v cc +0.3 ?.3 to v l2 v l1 to v l3 v l2 to 6.5 ?.3 to 6.5 ?.3 to v cc +0.3 ?.3 to 6.5 ?.3 to v cc ?.3 to v l3 ?.3 to v cc +0.3 ?.3 to 6.5 ?.3 to v l3 ?.3 to v cc +0.3 300 ?0 to 85 ?5 to 150 v v v v v v v v v v v v v v mw ? ? high-speed mode f(x in ) = 8 mhz middle-speed mode ta = ?0 to 85 ? f(x in ) = 8 mhz ta = ?0 to ?0 ? low-speed mode ta = ?0 to 85 ? ta = ?0 to ?0 ? notes 1: ?.3 v to 7.0 v for m37560efd. 2: v l2 to 7.0 v for m37560efd v v ??input voltage p0 0 ?0 7 , p1 0 ?1 7 , p4 0 , p4 3 , p4 5 , p4 7 , p5 0 ?5 3 , p5 6 , p6 1 , p6 4 ?6 7 , p7 1 ?7 7 ??input voltage p2 0 ?2 7 , p4 1 , p4 2 , p4 4 , p4 6 , p5 4 , p5 5 , p5 7 , p6 0 , p6 2 , p6 3 , p7 0 reset x in ??input voltage p0 0 ?0 7 , p1 0 ?1 7 , p4 0 , p4 3 , p4 5 , p4 7 , p5 0 ?5 3 , p5 6 , p6 1 , p6 4 ?6 7 , p7 1 ?7 7 ??input voltage p2 0 ?2 7 , p4 1 , p4 2 , p4 4 , p4 6 , p5 4 , p5 5 , p5 7 , p6 0 , p6 2 , p6 3 , p7 0 reset x in ??input voltage ??input voltage v ih v ih v ih v ih v il v il v il v il ??input voltage ??input voltage 0.7 v cc 0.8 v cc 0.8 v cc 0.8 v cc 0 0 0 0 v cc v cc v cc v cc 0.3 v cc 0.2 v cc 0.2 v cc 0.2 v cc v v v v v v 78 single-chip 8-bit cmos microcomputer 7560 group mitsubishi microcomputers p0 0 ?0 7 , p1 0 ?1 7 , p2 0 ?2 7 , p3 0 ?3 7 (note 1) p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 1) p0 0 ?0 7 , p1 0 ?1 7 , p2 0 ?2 7 , p3 0 ?3 7 (note 1) p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 1) p4 0 , p7 1 ?7 7 (note 1) p0 0 ?0 7 , p1 0 ?1 7 , p2 0 ?2 7 , p3 0 ?3 7 (note 1) p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 1) p0 0 ?0 7 , p1 0 ?1 7 , p2 0 ?2 7 , p3 0 ?3 7 (note 1) p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 1) p4 0 , p7 1 ?7 7 (note 1) p0 0 ?0 7 , p1 0 ?1 5 , p3 0 ?3 7 (note 2) ??peak output current p1 6 , p1 7 , p2 0 ?2 7 , p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 2) p0 0 ?0 7 , p1 0 ?1 5 , p3 0 ?3 7 (note 2) ??peak output current p1 6 , p1 7 , p2 0 ?2 7 , p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 2) p4 0 , p7 1 ?7 7 (note 2) p0 0 ?0 7 , p1 0 ?1 5 , p3 0 ?3 7 (note 3) p1 6 , p1 7 , p2 0 ?2 7 , p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 3) p0 0 ?0 7 , p1 0 ?1 5 , p3 0 ?3 7 (note 3) ??average output current p1 6 , p1 7 , p2 0 ?2 7 , p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 3) p4 0 , p7 1 ?7 7 (note 3) ?0 ?0 20 20 80 ?0 ?0 10 10 40 ?.0 table 45 recommended operating conditions (2) (extended operating temperature version) (v cc = 2.5 to 5.5 v, ta = ?0 to 85?, and v cc = 3.0 to 5.5 v, ta = ?0 to ?0 ?, unless otherwise noted) notes1: the total output current is the sum of all the currents flowing through all the applicable ports. the total average current is an average value measured over 100 ms. the total peak current is the peak value of all the currents. 2: the peak output current is the peak current flowing in each port. 3: the average output current is an average value measured over 100 ms. ??total peak output current ??total peak output current ??total peak output current ??total peak output current ??total peak output current ??total average output current ??total average output current ??total average output current ??total average output current ??total average output current i oh(peak) i oh(peak) i ol(peak) i ol(peak) i ol(peak) i oh(avg) i oh(avg) i ol(avg) i ol(avg) i ol(avg) i oh(peak) symbol parameter limits min. ma ma ma ma ma ma ma ma ma ma ma unit typ. max. ??peak output current ??peak output current ??peak output current ??average output current ??average output current ??average output current ??average output current i oh(peak) i ol(peak) i ol(peak) i ol(peak) i oh(avg) i oh(avg) i ol(avg) i ol(avg) ?.0 5.0 10 20 ?.5 ?.5 2.5 5.0 ma ma ma ma ma ma ma ma table 46 recommended operating conditions (3) (extended operating temperature version) (v cc = 2.5 to 5.5 v, ta = ?0 to 85?, and v cc = 3.0 to 5.5 v, ta = ?0 to ?0 ?, unless otherwise noted) notes1: when the oscillation frequency has a duty cycle of 50%. 2: when using the microcomputer in low-speed mode, make sure that the sub-clock input oscillation frequency on condition that f(x cin ) < f(x in )/3. input frequency for timers x and y (duty cycle 50%) f(cntr 0 ) f(cntr 1 ) symbol parameter limits min. mhz unit typ. max. (4.0 v v cc 5.5 v) 32.768 4.0 main clock input oscillation frequency (note 1) sub-clock input oscillation frequency (notes 1, 2) f(x in ) f(x cin ) (v cc 4.0 v) high-speed mode (4.0 v v cc 5.5 v) high-speed mode (v cc 4.0 v) middle-speed mode (2 ? v cc ) ? 8.0 (4 ? v cc ) ? 8.0 50 mhz mhz mhz mhz khz test conditions i ol(avg) 10 ma 79 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group v cc = 5.0 v, v o = v cc , pullup on output transistors ?ff v cc = 3.0 v,v o = v cc , pullup on output transistors ?ff i ol = 10 ma i ol = 3.0 ma i ol = 3.0 ma v cc = 3.0 v i ol = 5 ma i ol = 1.5 ma i ol = 1.25 ma v cc = 3.0 v v ol i oh = ? ma i oh = ?.25 ma v cc = 3.0 v i oh = ? ma i oh = ?.5 ma i oh = ?.25 ma v cc = 3.0 v vv cc ?.0 ??output voltage p0 0 ?0 7 , p1 0 ?1 5 , p3 0 ?3 7 symbol parameter limits min. unit 0.5 typ. max. test conditions v oh 2.0 0.5 electrical characteristics (extended operating temperature version) table 47 electrical characteristics (1) (v cc =4.0 to 5.5 v, ta = ?0 to 85?, unless otherwise noted) i ol = 10 ma i ol = 5 ma v cc = 3.0 v v i = v cc v i = v cc v i = v cc v i = v ss pull-ups ?ff v cc = 5 v, v i = v ss pull-ups ?n v cc = 3.0 v, v i = v ss pull-ups ?n v i = v ss v i = v ss ??output voltage p1 6 , p1 7 , p2 0 ?2 7 , p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 1) ??output voltage p0 0 ?0 7 , p1 0 ?1 5 , p3 0 ?3 7 ??output voltage p1 6 , p1 7 , p2 0 ?2 7 , p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 ??output voltage p4 0 , p7 1 ?7 7 hysteresis int 0 ?nt 2 , adt, cntr 0, cntr 1, p2 0 ?2 7 hysteresis s clk , r x d, s in2 hysteresis reset ??input current p0 0 ?0 7 , p1 0 ?1 7 , p2 0 ?2 7 , p4 0 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 , p7 0 ?7 7 ??input current reset ??input current x in ??input current p0 0 ?0 7 ,p1 0 ?1 7 , p2 0 ?2 7 ,p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 ??input current p4 0 , p7 0 ?7 7 ??input current reset ??input current x in output load current p3 0 ?3 7 v oh v ol v ol v t+ ?v t v t+ ?v t v t+ ?v t i ih i ih i ih i il i il i il i load v cc ?.0 v cc ?.5 ?0.0 ?.0 0.5 0.5 4.0 ?20.0 ?0.0 ?.0 2.0 0.5 0.5 5.0 5.0 ?.0 ?40.0 ?5.0 ?.0 ?.0 ?40.0 ?5.0 v v v v v v v v v v a a a a a a a a i il v cc ?.0 v cc ?.0 v v v 1.0 v 1.0 0.4 v a a a v o = v cc , pullup off output transistors ?ff v o = v ss , pullup off output transistors ?ff output leak current p3 0 ?3 7 i leak 5.0 ?.0 a a ?20.0 ?0.0 ?0.0 ?.0 80 single-chip 8-bit cmos microcomputer 7560 group mitsubishi microcomputers table 48 electrical characteristics (2) (extended operating temperature version) (v cc =2.5 to 5.5 v, ta = ?0 to 85?, and v cc =3.0 to 5.5 v, ta = ?0 to ?0?, unless otherwise noted) v 5.5 high-speed mode, v cc = 5 v f(x in ) = 8 mhz f(x cin ) = 32.768 khz output transistors ?ff a-d converter in operating high-speed mode, v cc = 5 v f(x in ) = 8 mhz (in wit state) f(x cin ) = 32.768 khz output transistors ?ff a-d converter stop low-speed mode, v cc = 5 v, ta 55? f(x in ) = stopped f(x cin ) = 32.768 khz output transistors ?ff low-speed mode, v cc = 5 v, ta = 25? f(x in ) = stopped f(x cin ) = 32.768 khz (in wit state) output transistors ?ff low-speed mode, v cc = 3 v, ta 55? f(x in ) = stopped f(x cin ) = 32.768 khz output transistors ?ff low-speed mode, v cc = 3 v, ta = 25? f(x in ) = stopped f(x cin ) = 32.768 khz (in wit state) output transistors ?ff all oscillation stopped (in stp state) output transistors ?ff symbol parameter limits min. unit typ. max. test conditions i cc power source current 6.4 v ram ram retention voltage at clock stop mode 2.0 when using voltage multiplier v l1 = 1.8 v v l1 i l1 power source voltage power source current (v l1 ) (note) note: when the voltage multiplier control bit of the lcd mode register (bit 4 at address 0039 16 ) is ?? 1.3 1.3 1.6 35 20 15 4.5 0.1 1.8 1.8 4.0 3.2 70 40 22 9.0 1.0 10 2.1 2.3 ma a a a a a v ma 13 a ta = 25 ? ta = 85 ? m37560mfd m37560efd 81 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group a-d converter characteristics (extended operating temperature version) table 49 a-d converter characteristics (extended operating temperature version) (v cc = 3.0 to 5.5 v, v ss = av ss = 0 v, ta = ?0 to 85?, f(x in ) = 500 khz to 8 mhz, in middle/high-speed mode unless otherwise noted) 8-bit a-d mode (when conversion mode selection bit (bit 0 of address 0014 16 ) is ?? symbol parameter limits min. unit typ. max. test conditions resolution absolute accuracy (excluding quantization error) v cc = v ref = 3.0 to 5.5 v bits lsb 35 150 8 ? tc(adclk) (note) conversion time ladder resistor reference power source input current t conv r ladder i vref k ? a d-a converter characteristics (extended operating temperature version) table 51 d-a converter characteristics (extended operating temperature version) (v cc = 3.0 to 5.5 v, v cc = v ref , v ss = av ss = 0 v, ta = ?0 to 85?, in middle/high-speed mode unless otherwise noted) symbol parameter limits min. unit typ. max. test conditions resolution v cc = v ref = 5 v v cc = v ref = 3.0 v 1 bits % % s k ? ma 3 2.5 8 1.0 2.0 note: using one d-a converter, with the value in the d-a conversion register of the other d-a converter being ?0 16 ? and excluding currents flowing through the a-d resistance ladder. (note) setting time output resistor t su r o 4 3.2 12 50 absolute accuracy analog port input current i ia i vref reference power source input current a 100 200 5.0 v ref = 5 v table 50 a-d converter characteristics (extended operating temperature version) (v cc = 3.0 to 5.5 v, v ss = av ss = 0 v, ta = ?0 to 85?, f(x in ) = 500 khz to 8 mhz, in middle/high-speed mode unless otherwise noted) 10-bit a-d mode (when conversion mode selection bit (bit 0 of address 0014 16 ) is ?? 49 50 symbol parameter limits min. unit typ. max. test conditions resolution absolute accuracy (excluding quantization error) v cc = v ref = 3.0 to 5.5 v bits lsb 35 150 10 ? tc(adclk) (note) conversion time ladder resistor reference power source input current t conv r ladder i vref k ? a 12 50 analog port input current i ia a 100 200 5.0 v ref = 5 v 61 62 note: adclk is the control clock of the a-d converter. system clock is used. note: adclk is the control clock of the a-d converter. system clock is used. 82 single-chip 8-bit cmos microcomputer 7560 group mitsubishi microcomputers timing requirements (extended operating temperature version) table 52 timing requirements 1 (extended operating temperature version) (v cc = 4.0 to 5.5 v, v ss = 0 v, ta = ?0 to 85?, unless otherwise noted) 2 125 45 40 250 105 105 80 80 800 370 370 220 100 1000 400 400 200 200 note: when bit 6 of address 001a 16 is ?? divide this value by four when bit 6 of address 001a 16 is ?? reset input ??pulse width main clock input cycle time (x in input) main clock input ??pulse width main clock input ??pulse width cntr 0 , cntr 1 input cycle time cntr 0 , cntr 1 input ??pulse width cntr 0 , cntr 1 input ??pulse width int 0 to int 2 input ??pulse width int 0 to int 2 input ??pulse width serial i/o1 clock input cycle time (note) serial i/o1 clock input ??pulse width (note) serial i/o1 clock input ??pulse width (note) serial i/o1 input set up time serial i/o1 input hold time serial i/o2 clock input cycle time (note) serial i/o2 clock input ??pulse width (note) serial i/o2 clock input ??pulse width (note) serial i/o2 input set up time serial i/o2 input hold time t w(reset) t c(x in ) t wh(x in ) t wl(x in ) t c(cntr) t wh(cntr) t wl(cntr) t wh(int) t wl(int) t c(s clk1 ) t wh(s clk1 ) t wl(s clk1 ) t su(r x d? clk1 ) t h(s clk1 ? x d) t c(s clk2 ) t wh(s clk2 ) t wl (s clk2 ) t su(s in2 ? clk2 ) t h(s clk2 ? in2 ) symbol parameter limits min. s ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns unit typ. max. table 53 timing requirements 2 (extended operating temperature version) (v cc = 2.5 to 4.0 v, v ss = 0 v, ta = ?0 to 85?, and v cc = 3.0 to 5.5 v, ta = ?0 to ?0?, unless otherwise noted) 2 125 45 40 500/(v cc -2) 250/(v cc -2)?0 250/(v cc -2)?0 230 230 2000 950 reset input ??pulse width main clock input cycle time (x in input) main clock input ??pulse width main clock input ??pulse width cntr 0 , cntr 1 input cycle time cntr 0 , cntr 1 input ??pulse width cntr 0 , cntr 1 input ??pulse width int 0 to int 2 input ??pulse width int 0 to int 2 input ??pulse width serial i/o1 clock input cycle time (note) serial i/o1 clock input ??pulse width (note) t w(reset) t c(x in ) t wh(x in ) t wl(x in ) t c(cntr) t wh(cntr) t wl(cntr) t wh(int) t wl(int) t c(s clk1 ) t wh(s clk1 ) symbol parameter limits min. s ns ns ns ns ns ns ns ns ns ns unit typ. max. note: when bit 6 of address 001a 16 is ?? divide this value by four when bit 6 of address 001a 16 is ?? t su(s in2 ? clk2 ) t h(s clk2 ? in2 ) t wl(s clk1 ) t su(r x d? clk1 ) t h(s clk1 ? x d) t c(s clk2 ) t wh(s clk2 ) t wl(s clk2 ) serial i/o1 clock input ??pulse width (note) serial i/o1 input set up time serial i/o1 input hold time serial i/o2 clock input cycle time (note) serial i/o2 clock input ??pulse width (note) serial i/o2 clock input ??pulse width (note) serial i/o2 input set up time serial i/o2 input hold time 950 400 200 2000 950 950 400 300 ns ns ns ns ns ns ns ns 83 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group switching characteristics (extended operating temperature version) table 54 switching characteristics 1 (extended operating temperature version) (v cc = 4.0 to 5.5 v, v ss = 0 v, ta = ?0 to 85?, unless otherwise noted) notes1: when the p4 5 /t x d p-channel output disable bit of the uart control register (bit 4 of address 001b 16 ) is ?? 2: x out and x cout pins are excluded. serial i/o1 clock output ??pulse width serial i/o1 clock output ??pulse width serial i/o1 output delay time (note 1) serial i/o1 output valid time (note 1) serial i/o1 clock output rising time serial i/o1 clock output falling time serial i/o2 clock output ??pulse width serial i/o2 clock output ??pulse width serial i/o2 output delay time serial i/o2 output valid time serial i/o2 clock output falling time cmos output rising time (note 2) cmos output falling time (note 2) 140 30 30 0.2 ? t c (s clk2 ) 40 30 30 symbol parameter limits min. ns ns ns ns ns ns ns ns ns ns ns ns ns unit t c (s clk1 )/2?0 t c (s clk1 )/2?0 ?0 10 10 typ. max. t wh(s clk1 ) t wl(s clk1 ) t d(s clk1 ? x d) t v(s clk1 ? x d) t r(s clk1 ) t f(s clk1 ) t wh(s clk2 ) t wl(s clk2 ) t d(s clk2 ? out2 ) t v(s clk2 ? out2 ) t f(s clk2 ) t r(cmos) t f(cmos) table 55 switching characteristics 2 (extended operating temperature version) (v cc = 2.5 to 4.0 v, v ss = 0 v, ta = ?0 to 85?, and v cc = 3.0 to 5.5 v, ta = ?0 to ?0?, unless otherwise noted) ns ns ns ns ns ns ns ns ns ns ns ns ns unit notes1: when the p4 5 /t x d p-channel output disable bit of the uart control register (bit 4 of address 001b 16 ) is ?? 2: x out and x cout pins are excluded. serial i/o1 clock output ??pulse width serial i/o1 clock output ??pulse width serial i/o1 output delay time (note 1) serial i/o1 output valid time (note 1) serial i/o1 clock output rising time serial i/o1 clock output falling time serial i/o2 clock output ??pulse width serial i/o2 clock output ??pulse width serial i/o2 output delay time serial i/o2 output valid time serial i/o2 clock output falling time cmos output rising time (note 2) cmos output falling time (note 2) 350 50 50 0.2 ? t c (s clk2 ) 50 50 50 symbol parameter limits min. t c (s clk1 )/2?0 t c (s clk1 )/2?0 ?0 20 20 max. t wh(s clk1 ) twl(s clk1 ) t d(s clk1 ? x d) t v(s clk1 ? x d) t r(s clk1 ) t f(s clk1 ) t wh(s clk2 ) t wl(s clk2 ) t d(s clk2 ? out2 ) t v(s clk2 ? out2 ) t f(s clk2 ) t r(cmos) t f(cmos) typ. t c (s clk2 )/2?60 t c (s clk2 )/2?60 0 t c (s clk2 )/2?40 t c (s clk2 )/2?40 0 fig. 69 circuit for measuring output switching characteristics m easurement output p i n 1 0 0 p f c m o s o u t p u t n o t e : w h e n p 7 1 p 7 7 , p 4 0 a n d b i t 4 o f t h e u a r t c o n t r o l r e g i s t e r ( a d d r e s s 0 0 1 b 1 6 ) i s 1 ( n - c h a n n e l o p e n - d r a i n o u t p u t m o d e ) . n - c h a n n e l o p e n - d r a i n o u t p u t ( n o t e ) 1 k ? 1 0 0 p f m easurement output p i n 84 single-chip 8-bit cmos microcomputer 7560 group mitsubishi microcomputers fig. 70 timing diagram i n t 0 i n t 2 c n t r 0 , c n t r 1 0.2v cc t w l ( i n t ) 0.8v cc t wh(int) 0.2v cc 0.2v cc 0.8v cc 0.8v cc 0.2v cc t w l ( x i n ) 0.8v cc t wh(x in) t c(x in ) x i n 0.2v cc 0 . 8 v c c t w(reset) reset t f t r 0 . 2 v c c t wl(cntr) 0 . 8 v c c t wh(cntr) t c(cntr) t d ( s c l k 1 - t x d ) , t d ( s c l k 2 - s o u t 2 ) t v(s clk1 -t x d), t v(s clk2- s out2 ) t c(s clk1 ), t c(s clk2 ) t wl(s clk1 ), t wl(s clk2 ) t wh(s clk1 ), t wh(s clk2 ) th (s clk1- r x d), t h (s clk2- s in 2) t su(r x d - s clk1 ), t su(s in2- s clk2 ) t x d s out2 r x d s in2 s clk1 s clk2 85 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 7560 group package outline lqfp100-p-1414-0.50 weight(g) 0.63 jedec code eiaj package code lead material cu alloy 100p6q-a plastic 100pin 14 ? 14mm body lqfp 0.1 0.2 symbol min nom max a a 2 b c d e h e l l 1 y b 2 dimension in millimeters h d a 1 0.225 i 2 0.9 m d 14.4 m e 14.4 10 0 0.1 1.0 0.7 0.50.3 16.216.015.8 16.216.015.8 0.5 14.114.013.9 14.114.013.9 0.175 0.1250.105 0.280.180.13 1.4 0 1.7 e e e h e 1 76 75 51 50 26 25 h d d a f y 100 lp 0.45 0.6 0.25 0.75 0.08 x a3 b x m a 1 a 2 l 1 l detail f lp a3 c m d l 2 b 2 m e e recommended mount pad mmp qfp100-p-1420-0.65 1.58 weight(g) jedec code eiaj package code lead material alloy 42 100p6s-a plastic 100pin 14 ? 20mm body qfp 0.1 0.2 symbol min nom max a a 2 b c d e h e l l 1 y b 2 dimension in millimeters h d a 1 0.35 i 2 1.3 m d 14.6 m e 20.6 10 0 0.1 1.4 0.80.60.4 23.122.822.5 17.116.816.5 0.65 20.220.019.8 14.214.013.8 0.20.15 0.13 0.40.30.25 2.8 0 3.05 e e e e c h e 1 30 31 81 50 80 51 h d d m d m e a f a 1 a 2 l 1 l y b 2 i 2 recommended mount pad detail f 100 x 0.13 b x m mmp ?2003 mitsubishi electric corp. specifications subject to change without notice. notes regarding these materials these materials are intended as a reference to assist our customers in the selection of the mitsubishi semiconductor product best suited to the customer? application; they do not convey any license under any intellectual property rights, or any other rights, belonging to mitsubishi electric corporation or a third party. mitsubishi electric corporation assumes no responsibility for any damage, or infringement of any third-party? rights, origina ting in the use of any product data, diagrams, charts, programs, algorithms, or circuit application examples contained in these materials. all information contained in these materials, including product data, diagrams, charts, programs and algorithms represents inf ormation on products at the time of publication of these materials, and are subject to change by mitsubishi electric corporation without notice due to product improvements or other reasons. it is therefore recommended that customers contact mitsubishi electric corporation or an authorized mitsubishi semiconductor product distributor for the latest product information before purchasing a product listed herein. the information described here may contain technical inaccuracies or typographical errors. mitsubishi electric corporation assumes no responsibility for any damage, liability, or other loss rising from these inaccuracies or errors. please also pay attention to information published by mitsubishi electric corporation by various means, including the mitsubishi semiconductor home page (http://www.mitsubishichips.com). when using any or all of the information contained in these materials, including product data, diagrams, charts, programs, and algorithms, please be sure to evaluate all information as a total system before making a final decision on the applicability of the information and products. mitsubishi electric corporation assumes no responsibility for any damage, liability or other loss resulting from the information contained herein. mitsubishi electric corporation semiconductors are not designed or manufactured for use in a device or system that is used under circumstances in which human life is potentially at stake. please contact mitsubishi electric corporation or an authorized mitsubishi semiconductor product distributor when considering the use of a product contained herein for any specific purposes, such as apparatus or systems for transportation, vehicular, medical, aerospace, nuclear, or undersea repeater use. the prior written approval of mitsubishi electric corporation is necessary to reprint or reproduce in whole or in part these m aterials. if these products or technologies are subject to the japanese export control restrictions, they must be exported under a license from the japanese government and cannot be imported into a country other than the approved destination. any diversion or reexport contrary to the export control laws and regulations of japan and/or the country of destination is pro hibited. please contact mitsubishi electric corporation or an authorized mitsubishi semiconductor product distributor for further details on these materials or the products contained therein. keep safety first in your circuit designs! mitsubishi electric corporation puts the maximum effort into making semiconductor products better and more reliable, but there is always the possibility that trouble may occur with them. trouble with semiconductors may lead to personal injury, fire or property damage. remember to give due consideration to safety when making your circuit designs, with a ppropriate measures such as (i) placement of substitutive, auxiliary circuits, (ii) use of non-flammable material or (iii) prevention against any malfunction or mishap. single-chip 8-bit cmos microcomputer 7560 group mitsubishi microcomputers revision history 7560 group data sheet rev. date description page summary (1/3) 1.0 03/28/01 1.1 06/08/01 1.2 12/05/01 first edition table 13 v ref min. v cc +0.3 v cc ?a-d converter; 8 bits 10 bits ?power source voltage; value at eprom and one time prom version and at extended operating temperature version added. ?power dissipation; in high-speed mode: 40 32 mw, in low-speed mode: 60 45 w ?operating temperature range; value at extended temperature version added. table 1; v cc , v ss : voltage valued at eprom and one time prom version and at extended operating temperature version added. fig. 4; description about eprom and one time prom version and extended operating temperature version added. fig. 5; under development mass product group expansion for eprom and one time prom version added. group expansion for extended operating temperature version added. fig. 12; reserved area: note added. address 0014 16 : reserved area a-d conversion register (adl). address 0035 16 : a-d conversion register (ad) a-d conversion register (adh) fig. 21; p5 2 , p5 3 , p4 3 revised. [a-d conversion register (adh, adl)] 0035 16 , 0014 16 revised. comparison voltage generator revised. fig. 38 revised. voltage multiplier; 2.1 v 2.1 v (2.3 v for eprom and one time prom version) fig. 53; (9) ad conversion register (low-order) added. oscillation control; (1) stop mode revised. data required for mask orders; url: mesc maec rom programming method added. i oh (avg); (note 3) added. table 22; i cc value revised. table 23; note added. conversion time revised. table 24; a-d converter characteristics at 10-bit a-d mode added. table 27; tc (cntr) revised. electrical characteristics (eprom and one time prom version) and electrical characteristics (extended operating temperature version) added. 52 1 4 6 7 8 9 15 26 38 42 49 50 54 57 60 61 62 64 to 77 2.0 01/28/03 1 4 5 14 interrupts?of ?eatures?is partly added. table 1 is partly revised. table 2 is partly revised. figure 11 is partly revised. revision history 7560 group data sheet rev. date description page summary (2/3) 2.0 01/28/03 15 16 16 16 16 20 21 22 23 24 25 26 26 27 27 28 29 30 30 31 31 32 32 34 36 36 37 40 40 41 42 43 46 50 51 52 52 54 55 figure 12 is partly revised. explanations of ?irecion registers?of ?/o ports?are partly revised. explanations of ?ull-up control?of ?/o ports?are partly revised. figure 13 is added. figure 14 is added. figure 16 is partly revised. figure 17 is partly revised. figure 18 is partly revised. figure 19 is partly revised. explanations of ?nterrupts?are partly added. explanations of notes on interrupts?are partly revised. explanations of ?ey input interrupt (key-on wake up)?are partly revised. figure 22 is partly revised. explanations of ?ey input interrupt (key-on wake up)?are added. figure 23 is added. figure 24 is partly revised. explanations of ?imer x?are partly added. explanations of ?imer y?are partly added. explanations of ?2) period measurement mode?of ?imer y?are partly revised. explanations of ?imer 1, timer 2, timer 3?are partly added. explanations of timer 2 write control?are partly added, explanations of ?1) clock synchronous serial i/o mode?are partly added. note of figure 29 is partly added. explanations of ?uart control register (uarton)] are partly revised. explanations of ?erial i/o2?are partly added. explanations of ?serial i/o2 control register (sio2con)]?are partly added. serial i/o2 operating?is added. explanations of ?a-d control register (adcon)]?are partly added. figure 40 is partly added. figure 42 is partly added. figure 44 is partly added. figure 45 is added. explanations of ?oltage multiplier (3 times)?are partly revised. explanation of ?atchdog timer?are partly revised. figure 55 is partly revised. explanations of ?eset circuit?are partly revised. figure 56 is partly revised. explanations of ?2) wait mode?are partly revised. figure 61 is partly revised. revision history 7560 group data sheet rev. date description page summary (3/3) 2.0 01/28/03 56 57 57 58, 59 67 67 74 74 81 81 all pages figure 62 is partly revised. explanations of ?nterrupt?of ?otes on programming?are partly revised. ?imers?of ?otes on programming?f rev. 1.2 is eliminated. ?ountermeasures against noise?is added. table 23 is partly revised. table 24 is partly revised. table 36 is partly revised. table 37 is partly revised. table 49 is partly revised. table 50 is partly revised. text expressions are improved. |
Price & Availability of M37560EFGP
![]() |
|
|
All Rights Reserved © IC-ON-LINE 2003 - 2022 |
[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy] |
Mirror Sites : [www.datasheet.hk]
[www.maxim4u.com] [www.ic-on-line.cn]
[www.ic-on-line.com] [www.ic-on-line.net]
[www.alldatasheet.com.cn]
[www.gdcy.com]
[www.gdcy.net] |