![]() |
|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
renesas mcu m32r family / m32r/ecu series 32 rev. 1.10 revision date: apr. 06, 2007 www.renesas.com all information contained in these materials, including products and product specifications, represents information on the product at the time of publication and is subject to change by renesas technology corp. without notice. please review the latest information published by renesas technology corp. through various means, including the renesas technology corp. website (http://www.renesas.com). rej09b0123-0110 32192/32195/32196 group hardware manual
1. this document is provided for reference purposes only so that renesas customers may select the appropriate renesas products for their use. renesas neither makes warranties or representations with respect to the accuracy or completeness of the information contained in this document nor grants any license to any intellectual property rights or any other rights of renesas or any third party with respect to the information in this document. 2. renesas shall have no liability for damages or infringement of any intellectual property or other rights arising out of the use of any information in this document, including, but not limited to, product data, diagrams, charts, programs, algorithms, and application circuit examples. 3. you should not use the products or the technology described in this document for the purpose of military applications such as the development of weapons of mass destruction or for the purpose of any other military use. when exporting the products or technology described herein, you should follow the applicable export control laws and regulations, and procedures required by such laws and regulations. 4. all information included in this document such as product data, diagrams, charts, programs, algorithms, and application circuit examples, is current as of the date this document is issued. such information, however, is subject to change without any prior notice. before purchasing or using any renesas products listed in this document, please confirm the latest product information with a renesas sales office. also, please pay regular and careful attention to additional and different information to be disclosed by renesas such as that disclosed through our website. (http://www.renesas.com ) 5. renesas has used reasonable care in compiling the information included in this document, but renesas assumes no liability whatsoever for any damages incurred as a result of errors or omissions in the information included in this document. 6. when using or otherwise relying on the information in this document, you should evaluate the information in light of the total system before deciding about the applicability of such information to the intended application. renesas makes no representations, warranties or guaranties regarding the suitability of its products for any particular application and specifically disclaims any liability arising out of the application and use of the information in this document or renesas products. 7. with the exception of products specified by renesas as suitable for automobile applications, renesas products are not designed, manufactured or tested for applications or otherwise in systems the failure or malfunction of which may cause a direct threat to human life or create a risk of human injury or which require especially high quality and reliability such as safety systems, or equipment or systems for transportation and traffic, healthcare, combustion control, aerospace and aeronautics, nuclear power, or undersea communication transmission. if you are considering the use of our products for such purposes, please contact a renesas sales office beforehand. renesas shall have no liability for damages arising out of the uses set forth above. 8. notwithstanding the preceding paragraph, you should not use renesas products for the purposes listed below: (1) artificial life support devices or systems (2) surgical implantations (3) healthcare intervention (e.g., excision, administration of medication, etc.) (4) any other purposes that pose a direct threat to human life renesas shall have no liability for damages arising out of the uses set forth in the above and purchasers who elect to use renesas products in any of the foregoing applications shall indemnify and hold harmless renesas technology corp., its affiliated companies and their officers, directors, and employees against any and all damages arising out of such applications. 9. you should use the products described herein within the range specified by renesas, especially with respect to the maximum rating, operating supply voltage range, movement power voltage range, heat radiation characteristics, installation and other product characteristics. renesas shall have no liability for malfunctions or damages arising out of the use of renesas products beyond such specified ranges. 10. although renesas endeavors to improve the quality and reliability of its products, ic products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions. please be sure to implement safety measures to guard against the possibility of physical injury, and injury or damage caused by fire in the event of the failure of a renesas 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 applicable measures. among others, since the evaluation of microcomputer software alone is very difficult, please evaluate the safety of the final products or system manufactured by you. 11. in case renesas products listed in this document are detached from the products to which the renesas products are attached or affixed, the risk of accident such as swallowing by infants and small children is very high. you should implement safety measures so that renesas products may not be easily detached from your products. renesas shall have no liability for damages arising out of such detachment. 12. this document may not be reproduced or duplicated, in any form, in whole or in part, without prior written approval from renesas. 13. please contact a renesas sales office if you have any questions regarding the information contained in this document, renesas semiconductor products, or if you have any other inquiries. notes regarding these materials general precautions in the handling of mpu/mcu products the following usage notes are applicable to all mpu/mcu products from renesas. for detailed usage notes on the products covered by this manual, refer to the rele vant sections of the manu al. if the descriptions under general precautions in the handling of mpu/mcu products and in the body of the manual differ from each other, the description in the bod y of the manual takes precedence. 1. handling of unused pins handle unused pins in accord with the directi ons given under handling of unused pins in the manual. ? the input pins of cmos products are general ly in the high-impedance state. in operation with an unused pin in the open-circuit state, extra electromagnetic noise is induced in the vicinity of lsi, an associated shoot-through cu rrent flows internally, and malfunctions occur due to the false recognition of the pin state as an input signal become possible. unused pins should be handled as described under handling of unused pins in the manual. 2. processing at power-on the state of the product is undefined at the moment when power is supplied. ? the states of internal circuits in the lsi are indeterminate and the states of register settings and pins are undefined at t he moment when power is supplied. in a finished product where the reset signal is applied to the external reset pin, the states of pins are not guaranteed from the moment when power is supplied until the reset process is completed. in a similar way, the states of pins in a pr oduct that is reset by an on-chip power-on reset function are not guaranteed from the moment when power is supplied until the power reaches the level at which resetting has been specified. 3. prohibition of access to reserved addresses access to reserved addresses is prohibited. ? the reserved addresses are provided for the po ssible future expansion of functions. do not access these addresses; the correct operat ion of lsi is not guaranteed if they are accessed. 4. clock signals after applying a reset, only release the reset line after the operating clock signal has become stable. when switching the clock signal during pr ogram execution, wait until the target clock signal has stabilized. ? when the clock signal is generated with an external resonator (or from an external oscillator) during a reset, ensure that the reset li ne is only released after full stabilization of the clock signal. moreover, when switching to a clock signal produced with an external resonator (or by an external oscillator) while program execution is in progress, wait until the target clock signal is stable. 5. differences between products before changing from one product to another, i.e. to one with a different part number, confirm that the change will not lead to problems. ? the characteristics of mpu/mcu in the same group but having different part numbers may differ because of the differences in internal memory capacity and layout pattern. when changing to products of different part numbe rs, implement a system-evaluation test for each of the products. revision history rev. date description page summary ( revision history- 1 ) 32192/32195/32196 group hardware manual 1.01 jul 22, 2005 - first edition issued 1.10 apr 06, 2007 - add the 32195 group add m32192f8vwg, m32192f8uwg, and M32192F8TWG 2-3 add note 1 to ie bit of psw register 5-6 correct notes of imask register incorrect) the interrupt request mask register (imask) in the eit handler correct) the interrupt request mask register (imask) 5-7 add a note for sbi control register 6-15 add a description for faens bit of fmod register 6-16 add descriptions for erase bit and wrerr bit. 6-19 to 21 correct descriptions of fcnot3 register add table 6.5.2 and correct figure 6.5.2 6-34 add figure 6.6.7 6-36 correct the description of 4 halfword program command 6-55 add a note to 6.11 notes on the internal ram 8-33 correct functions of b4 (12) wfnsel bit in the port group n input level setting regsiter 8-35 correct r/w status of gndsel bits in the port group n output drive capability setting register 8-39 replace figure 8.7.1 8-40 replace figure 8.7.2 8-41 replace figure 8.7.3 8-42 replace figure 8.7.4 8-43 replace figure 8.7.5 8-44 add a note about using input/output ports in input mode add a note about the peripheral function input when it is set to the general- purpose port 9-26 correct functions of ringsel bit 9-27 correct descriptions of treqfn bit and tenln bit 9-28 correct the description of selfen bit 10-114 add descriptions to reload register uptdates in tio pwm output mode 10-157 correct a note of tou counters 10-160 correct a note of tou registers 10-171 correct read status of po0lvselga bit and po1lvselga bit 10-176 add descriptions to reload register updates in toup pwm output mode 11-21 add note 3 to adsel2 bit 12-4 replace figure 12.1.1 12-8 correct the description of notes on using transmit interrupts 12-45,62 add a note about switching from general-purpose to serial interface pin 13-27 correct the description of rbo bit 13-28 add descriptions to lbm bit and rst bit revision history rev. date description page summary ( revision history- 2 ) 32192/32195/32196 group hardware manual 1.10 apr 06, 2007 13-31 add a description to crs bit 13-118 add note 1 to figure 13.3.4 14-3 replace figure 14.1.1 14-24 replace figure 14.2.7 14-27 correct the decription of dri transfer counter 14-35 add notes to continuous operation mode 14-36 correct the description of dri event counters 19-2 replace figure 19.1.1 20-2 replace figure 20.1.1 20-3 correct the description of xin oscillation stoppage detection circuit replace figure 20.1.2 chap. 23 add electrical characteristics of the 32195 and 32196 23-3, 4, correct parameters of vih and vil 7, 8, 11, 12, 15, 16 23-5, 9, correct parameters of vt+ and vt- (hysteresis) 13, 17 23-24 add note 1 to tin 23-25, 47 correct rated values of tclk add note 1 to tclk 23-29, 51 add note 1 to tw(waith) and tw(waitl) 23-30, 52 correct the note of read timing 23-46 correct note 1 of tin appendix replace dimensional outline drawing 1-2 appendix add 224 pin fbga (plbg0224ga-a) 1-3 appendix4 add correction of notes guide to understanding the register table (1) bit number: indicates a register?s bit number. (2) register border: the registers enclosed with thick border lines must be accessed in halfwords or words. (3) status after reset: the initial state of each register after reset is indicated in hexadecimal or binary. (4) status after reset: the initial state of each register after reset is indicated bitwise. 0: this bit is ?0? after reset. 1: this bit is ?1? after reset. ?: this bit is undefined after reset. (5) the shaded bits mean that they have no functions assigned. (6) read conditions: r: this bit can be accessed for read. ?: the value read from this bit is undefined. (reading this bit has no effect.) 0: the value read from this bit is always ?0?. 1: the value read from this bit is always ?1?. (7) write conditions: w: this bit can be accessed for write. n: this bit is write protected. 0: to write to this bit, always write ?0?. 1: to write to this bit, always write ?1?. ?: writing to this bit has no effect. (it does not matter whether this bit is set to ?0? or ?1? by writing in software.) note: care must be taken when writing to this bit. see note in each register table. xxxregister(xxx) contents-1 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 table of contents chapter 1 overview 1.1 outline of the 32192/32195/32196 group ---------------------------------------------------------------------------- 1-2 1.1.1 m32r family cpu core with built-in fpu (m32r-fpu) ----------------------------------------------- 1-2 1.1.2 built-in multiplier/accumulator ------------------------------------------------------------------------------- 1-3 1.1.3 built-in single-precision fp u -------------------------------------------------------------------------------- 1-3 1.1.4 built-in flash mem ory and ram ---------------------------------------------------------------------------- 1-3 1.1.5 built-in clock frequency multiplier ------------------------------------------------------------------------- 1-5 1.1.6 powerful peripheral functions built-in --------------------------------------------------------------------- 1-5 1.2 block diagram ------------------------------------------------------------------------------------------------------------- - 1-6 1.3 pin functions ------------------------------------------------------------------------------------------------------------- -- 1-10 1.4 pin assignments ----------------------------------------------------------------------------------------------------------- 1-15 chapter 2 cpu 2.1 cpu registers ------------------------------------------------------------------------------------------------------------- - 2-2 2.2 general-purpose registers ---------------------------------------------------------------------------------------------- 2-2 2.3 control registers --------------------------------------------------------------------------------------------------------- -- 2-2 2.3.1 processor status word register: psw (cr0) ---------------------------------------------------------- 2-3 2.3.2 condition bit register: cbr (cr1) ------------------------------------------------------------------------- 2-4 2.3.3 interrupt stack pointer: spi (cr2) and user stack pointer: spu (cr3) -------------------------- 2-4 2.3.4 backup pc: bpc (cr6) --------------------------------------------------------------------------------------- 2-4 2.3.5 floating-point status register: fpsr (cr7) ------------------------------------------------------------- 2-5 2.4 accumulator --------------------------------------------------------------------------------------------------------------- -- 2-7 2.5 program counter ----------------------------------------------------------------------------------------------------------- 2-7 2.6 data formats -------------------------------------------------------------------------------------------------------------- - 2-8 2.6.1 data types ------------------------------------------------------------------------------------------------------- 2-8 2.6.2 data formats ---------------------------------------------------------------------------------------------------- 2-9 2.7 supplementary explanation for bset, bclr, lock and unlock instruction execution ------------------- 2-14 chapter 3 address space 3.1 outline of the address space ------------------------------------------------------------------------------------------- 3-2 3.2 operation modes ----------------------------------------------------------------------------------------------------------- 3-3 3.3 internal rom and external extension areas ------------------------------------------------------------------------ 3-7 3.3.1 internal rom area ---------------------------------------------------------------------------------------------- 3-7 3.3.2 external extension area -------------------------------------------------------------------------------------- 3-7 3.4 internal ram and sfr areas ------------------------------------------------------------------------------------------- 3-8 3.4.1 internal ram area ---------------------------------------------------------------------------------------------- 3-8 3.4.2 sfr (special function register) area --------------------------------------------------------------------- 3-8 3.5 eit vector entry ---------------------------------------------------------------------------------------------------------- - 3-48 3.6 icu vector table ---------------------------------------------------------------------------------------------------------- - 3-49 3.7 notes on address space ------------------------------------------------------------------------------------------------ 3-52 contents-2 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 chapter 4 eit 4.1 outline of eit ------------------------------------------------------------------------------------------------------------ --- 4-2 4.2 eit events ---------------------------------------------------------------------------------------------------------------- --- 4-3 4.2.1 exception --------------------------------------------------------------------------------------------------------- 4-3 4.2.2 interrupt ----------------------------------------------------------------------------------------------------------- 4-5 4.2.3 trap ---------------------------------------------------------------------------------------------------------------- 4-6 4.3 eit processing procedure ----------------------------------------------------------------------------------------------- 4-6 4.4 eit processing mechanism --------------------------------------------------------------------------------------------- 4-7 4.5 acceptance of eit events ----------------------------------------------------------------------------------------------- 4-8 4.6 saving and restoring the pc and psw ------------------------------------------------------------------------------ 4-8 4.7 eit vector entry ---------------------------------------------------------------------------------------------------------- - 4-10 4.8 exception processing ---------------------------------------------------------------------------------------------------- 4- 11 4.8.1 reserved instruction exception (rie) ---------------------------------------------------------------------- 4-11 4.8.2 address exception (ae) -------------------------------------------------------------------------------------- 4-12 4.8.3 floating-point exception (fpe) ----------------------------------------------------------------------------- 4-13 4.9 interrupt processing ------------------------------------------------------------------------------------------------------ - 4-15 4.9.1 reset interrupt (ri) --------------------------------------------------------------------------------------------- 4-15 4.9.2 system break interrupt (sbi) -------------------------------------------------------------------------------- 4-15 4.9.3 external interrupt (ei) ------------------------------------------------------------------------------------------ 4-17 4.10 trap processing ---------------------------------------------------------------------------------------------------------- 4-18 4.10.1 trap ---------------------------------------------------------------------------------------------------------------- 4-18 4.11 eit priority levels ------------------------------------------------------------------------------------------------------ -- 4-19 4.12 example of eit processing -------------------------------------------------------------------------------------------- 4-20 4.13 notes on eit ------------------------------------------------------------------------------------------------------------- -- 4-22 chapter 5 interrupt controller (icu) 5.1 outline of the interrupt controller --------------------------------------------------------------------------------------- 5-2 5.2 icu related registers ---------------------------------------------------------------------------------------------------- 5 -4 5.2.1 interrupt vector register -------------------------------------------------------------------------------------- 5-5 5.2.2 interrupt request mask register ---------------------------------------------------------------------------- 5-6 5.2.3 sbi (system break interrupt) control register ---------------------------------------------------------- 5-7 5.2.4 interrupt control registers ------------------------------------------------------------------------------------ 5-8 5.3 interrupt request sources in internal periphera l i/o -------------------------------------------------------------- 5-11 5.4 icu vector table ---------------------------------------------------------------------------------------------------------- - 5-12 5.5 description of interrupt operation -------------------------------------------------------------------------------------- 5- 13 5.5.1 acceptance of internal peripheral i/o interrupts --------------------------------------------------------- 5-13 5.5.2 processing by internal peripheral i/o interrupt handlers ---------------------------------------------- 5-14 5.6 description of system break interrupt (sbi) operation ----------------------------------------------------------- 5-17 5.6.1 acceptance of sbi ---------------------------------------------------------------------------------------------- 5-17 5.6.2 sbi processing by handler ----------------------------------------------------------------------------------- 5-17 contents-3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 chapter 6 internal memory 6.1 outline of the internal memory ------------------------------------------------------------------------------------------ 6- 2 6.2 internal ram -------------------------------------------------------------------------------------------------------------- -- 6-2 6.3 internal ram protect function ------------------------------------------------------------------------------------------ 6-2 6.4 internal flash memory ---------------------------------------------------------------------------------------------------- 6 -11 6.5 registers associated with the internal flash memory ------------------------------------------------------------ 6-14 6.5.1 flash mode register ------------------------------------------------------------------------------------------- 6-15 6.5.2 flash status register ------------------------------------------------------------------------------------------ 6-16 6.5.3 flash control registers --------------------------------------------------------------------------------------- 6-17 6.5.4 virtual flash l bank registers ------------------------------------------------------------------------------ 6-24 6.6 programming the internal flash memory ----------------------------------------------------------------------------- 6-25 6.6.1 outline of internal flash memory programming --------------------------------------------------------- 6-25 6.6.2 controlling operation modes during flash programming ---------------------------------------------- 6-31 6.6.3 procedure for programming/erasing the internal flash memory ------ ------------------------------ 6-35 6.6.4 flash programming time (reference) --------------------------------------------------------------------- 6-43 6.7 virtual flash emulation function -------------------------------------------------------------------------------------- 6-44 6.7.1 virtual flash emulation area -------------------------------------------------------------------------------- 6-46 6.7.2 entering virtual flash emulation mode -------------------------------------------------------------------- 6-49 6.8 connecting to a serial programmer (csio mode) ----------------------------------------------------------------- 6-50 6.9 connecting to a serial programmer (uart mode) ---------------------------------------------------------------- 6-52 6.10 internal flash memory protect function ---------------------------------------------------------------------------- 6-54 6.11 notes on the internal ram --------------------------------------------------------------------------------------------- 6-5 5 6.12 notes on the internal flash memory --------------------------------------------------------------------------------- 6-55 chapter 7 reset 7.1 outline of reset ---------------------------------------------------------------------------------------------------------- -- 7-2 7.2 reset operation ----------------------------------------------------------------------------------------------------------- - 7-2 7.2.1 reset at power-on ---------------------------------------------------------------------------------------------- 7-3 7.2.2 reset during ope ration ---------------------------------------------------------------------------------------- 7-3 7.2.3 reset vector relocation during flash programming --------------------------------------------------- 7-3 7.3 internal state upon exiting reset -------------------------------------------------------------------------------------- 7-4 7.4 things to be considered upon exiting reset ----------------------------------------------------------------------- 7-4 chapter 8 input/output ports and pin functions 8.1 outline of input/output ports -------------------------------------------------------------------------------------------- 8 -2 8.2 selecting pin functions -------------------------------------------------------------------------------------------------- 8 -3 8.3 input/output port related registers ---------------------------------------------------------------------------------- 8-9 8.3.1 port data registers -------------------------------------------------------------------------------------------- 8-12 8.3.2 port direction registers --------------------------------------------------------------------------------------- 8-13 8.3.3 port operation mode and port peripheral function select registers ------------------------------ 8-14 8.3.4 port input special function control register ------------------------------------------------------------- 8-29 8.4 port input level switching function ----------------------------------------------------------------------------------- 8-32 8.5 port output drive capability setting function ---------------------------------------------------------------------- 8-34 8.6 noise canceller control function -------------------------------------------------------------------------------------- 8-37 8.7 port peripheral circuits -------------------------------------------------------------------------------------------------- - 8-39 8.8 notes on input/output ports -------------------------------------------------------------------------------------------- 8-4 4 contents-4 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 chapter 9 dmac 9.1 outline of the dmac ------------------------------------------------------------------------------------------------------ 9 -2 9.2 dmac related registers ------------------------------------------------------------------------------------------------ 9-4 9.2.1 dma channel control registers ---------------------------------------------------------------------------- 9-6 9.2.2 dma software request generation registers ----------------------------------------------------------- 9-29 9.2.3 dma source address registers ---------------------------------------------------------------------------- 9-30 9.2.4 dma destination address registers ----------------------------------------------------------------------- 9-31 9.2.5 dma transfer count registers ------------------------------------------------------------------------------ 9-32 9.2.6 dma interrupt related registers ---------------------------------------------------------------------------- 9-33 9.3 functional description of the dmac ---------------------------------------------------------------------------------- 9-38 9.3.1 dma transfer request sources ----------------------------------------------------------------------------- 9-38 9.3.2 dma transfer processing procedure ---------------------------------------------------------------------- 9-44 9.3.3 starting dma ---------------------------------------------------------------------------------------------------- 9-45 9.3.4 dma channel priority ------------------------------------------------------------------------------------------ 9-45 9.3.5 gaining and releasing control of the internal bus ------------------------------------------------------ 9-45 9.3.6 transfer units ---------------------------------------------------------------------------------------------------- 9-46 9.3.7 transfer counts ------------------------------------------------------------------------------------------------- 9-46 9.3.8 address space -------------------------------------------------------------------------------------------------- 9-46 9.3.9 transfer operation --------------------------------------------------------------------------------------------- 9-46 9.3.10 end of dma and interrupt ------------------------------------------------------------------------------------- 9-48 9.3.11 each register status after completion of dma transfer ---------------------------------------------- 9-48 9.4 notes on the dmac ------------------------------------------------------------------------------------------------------- 9- 49 chapter 10 multijunction timers 10.1 outline of multijunction timers ---------------------------------------------------------------------------------------- 10 -2 10.2 common units of multijunction timers ------------------------------------------------------------------------------ 10-9 10.2.1 mjt common unit register map --------------------------------------------------------------------------- 10-10 10.2.2 common count clock select function ------------------------------------------------------------------- 10-12 10.2.3 prescaler unit --------------------------------------------------------------------------------------------------- 10-13 10.2.4 clock bus and input/output event bus control unit -------------------------------------------------- 10-14 10.2.5 input processing control unit ------------------------------------------------------------------------------- 10-18 10.2.6 output flip-flop control unit --------------------------------------------------------------------------------- 10-26 10.2.7 interrupt control unit ------------------------------------------------------------------------------------------ 10-34 10.3 top (output-related 16-bit timer) ----------------------------------------------------------------------------------- 10-60 10.3.1 outline of top --------------------------------------------------------------------------------------------------- 10-60 10.3.2 outline of each mode of top -------------------------------------------------------------------------------- 10-62 10.3.3 top related register map ----------------------------------------------------------------------------------- 10-64 10.3.4 top control registers ----------------------------------------------------------------------------------------- 10-66 10.3.5 top counters (top0ct?top10ct) ----------------------------------------------------------------------- 10-71 10.3.6 top reload registers (top0rl?top10rl) ------------------------------------------------------------- 10-72 10.3.7 top correction registers (top0cc?top10cc) -------------------------------------------------------- 10-73 10.3.8 top enable control registers ------------------------------------------------------------------------------- 10-74 10.3.9 operation in top single-shot output mode (with correction function) ---------------------------- 10-76 10.3.10 operation in top delayed single-shot output mode (with correction function) ---------------- 10-82 10.3.11 operation in top continuous output mode (without correction function) ------------------------ 10-87 contents-5 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.4 tio (input/output-related 16-bit timer) ----------------------------------------------------------------------------- 10-90 10.4.1 outline of tio ---------------------------------------------------------------------------------------------------- 10-90 10.4.2 outline of each mode of tio --------------------------------------------------------------------------------- 10-92 10.4.3 tio related register map ------------------------------------------------------------------------------------ 10-95 10.4.4 tio control registers ------------------------------------------------------------------------------------------ 10-97 10.4.5 tio counters (tio0ct?tio9ct) ---------------------------------------------------------------------------- 10-105 10.4.6 tio reload 0/ measure registers (tio0rl0?tio9rl0) ------------------------------------------------ 10-106 10.4.7 tio reload 1 registers (tio0rl1?tio9rl1) ------------------------------------------------------------- 10-107 10.4.8 tio enable control registers -------------------------------------------------------------------------------- 10-108 10.4.9 operation in tio measure free-run/clear input modes ----------------------------------------------- 10-110 10.4.10 operation in tio noise processing input mode --------------------------------------------------------- 10-112 10.4.11 operation in tio pwm output mode ----------------------------------------------------------------------- 10-113 10.4.12 operation in tio single-shot output mode (without correction function) ------------------------- 10-117 10.4.13 operation in tio delayed single-shot output mode (without correction function) ------------- 10-119 10.4.14 operation in tio continuous output mode (without correction function) ------------------------- 10-121 10.5 tms (input-related 16-bit timer) ------------------------------------------------------------------------------------- 10-123 10.5.1 outline of tms --------------------------------------------------------------------------------------------------- 10-123 10.5.2 outline of tms operation ------------------------------------------------------------------------------------- 10-123 10.5.3 tms related register map ----------------------------------------------------------------------------------- 10-125 10.5.4 tms control registers ---------------------------------------------------------------------------------------- 10-126 10.5.5 tms counters (tms0ct, tms1ct) ------------------------------------------------------------------------ 10-127 10.5.6 tms measure registers (tms0mr3?0, tms1mr3?0) ------------------------------------------------ 10-127 10.5.7 operation of tms measure input ---------------------------------------------------------------------------- 10-128 10.6 tml (input-related 32-bit timer) ------------------------------------------------------------------------------------- 10-129 10.6.1 outline of tml --------------------------------------------------------------------------------------------------- 10-129 10.6.2 outline of tml operation -------------------------------------------------------------------------------------- 10-130 10.6.3 tml related register map ----------------------------------------------------------------------------------- 10-130 10.6.4 tml control registers ----------------------------------------------------------------------------------------- 10-131 10.6.5 tml counters ---------------------------------------------------------------------------------------------------- 10-132 10.6.6 tml measure registers --------------------------------------------------------------------------------------- 10-132 10.6.7 operation of tml measure input ---------------------------------------------------------------------------- 10-133 10.7 tid (input-related 16-bit timer) --------------------------------------------------------------------------------------- 10 -135 10.7.1 outline of tid ---------------------------------------------------------------------------------------------------- 10-135 10.7.2 tid related register map ------------------------------------------------------------------------------------- 10-137 10.7.3 tid control & prescaler enable regis ters ---------------------------------------------------------------- 10-138 10.7.4 tid counters (tid0ct and tid1ct) ------------------------------------------------------------------------- 10-140 10.7.5 tid reload registers (tid0rl and tid1rl) -------------------------------------------------------------- 10-140 10.7.6 outline of each mode of tid --------------------------------------------------------------------------------- 10-141 10.8 tou (output-related 24-bit timer) ----------------------------------------------------------------------------------- 10-146 10.8.1 outline of tou --------------------------------------------------------------------------------------------------- 10-146 10.8.2 outline of each mod e of tou -------------------------------------------------------------------------------- 10-148 10.8.3 tou related register map ----------------------------------------------------------------------------------- 10-150 10.8.4 tou control registers ----------------------------------------------------------------------------------------- 10-153 10.8.5 shorting prevention function registers ------------------------------------------------------------------- 10-155 10.8.6 tou counters --------------------------------------------------------------------------------------------------- 10-157 10.8.7 tou reload registers ----------------------------------------------------------------------------------------- 10-160 10.8.8 tou enable protect registers ------------------------------------------------------------------------------ 10-163 contents-6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.8.9 tou count enable registers -------------------------------------------------------------------------------- 10-164 10.8.10 pwmoff input processing control registers ---------------------------------------------------------- 10-166 10.8.11 pwm output disable control registers ------------------------------------------------------------------- 10-168 10.8.12 pwm output disable level control registers ----------------------------------------------------------- 10-171 10.8.13 pwmoff function enable registers --------------------------------------------------------------------- 10-173 10.8.14 operation in tou pwm output mode (without correction function) ------------------------------- 10-174 10.8.15 operation in tou single-shot pwm output mode (without correction function) --------------- 10-180 10.8.16 operation in tou delayed single-shot output mode (without correction function) -- -------------- 10-182 10.8.17 operation in tou single-shot output mode (without correction function) ------------------------ 10-184 10.8.18 operation in tou continuous output mode (without correction function) ------------------------ 10-186 10.8.19 0% or 100% duty-cycle wave output during pwm output and single-shot pwm output modes --- 10-188 10.8.20 pwm output disable function ------------------------------------------------------------------------------ 10-193 10.8.21 shorting prevention function -------------------------------------------------------------------------------- 10-197 10.8.22 example application for using the 32192/32195/32196 in motor control -------------------------- 10-201 chapter 11 a/d converter 11.1 outline of a/d converter ------------------------------------------------------------------------------------------------ 1 1-2 11.1.1 conversion modes ---------------------------------------------------------------------------------------------- 11-6 11.1.2 operation modes ------------------------------------------------------------------------------------------------ 11-6 11.1.3 special operation modes ------------------------------------------------------------------------------------- 11-9 11.1.4 a/d converter interrupt and dma transfer requests --------------------------------------------------- 11-12 11.1.5 sample-and-hold function ------------------------------------------------------------------------------------ 11-12 11.1.6 simultaneous sampling function --------------------------------------------------------------------------- 11-13 11.2 a/d converter related registers ------------------------------------------------------------------------------------- 11-15 11.2.1 a/d single mode register 0 ---------------------------------------------------------------------------------- 11-17 11.2.2 a/d single mode register 1 ---------------------------------------------------------------------------------- 11-19 11.2.3 a/d single mode register 2 ---------------------------------------------------------------------------------- 11-21 11.2.4 a/d scan mode register 0 ----------------------------------------------------------------------------------- 11-22 11.2.5 a/d scan mode register 1 ----------------------------------------------------------------------------------- 11-24 11.2.6 a/d conversion speed control register ------------------------------------------------------------------- 11-26 11.2.7 a/d disconnection detection assist function control register ------------------------------------- 11-27 11.2.8 a/d disconnection detection assist method select register --------------------------------------- 11-28 11.2.9 a/d successive approximation register ------------------------------------------------------------------ 11-31 11.2.10 a/d comparate data register ------------------------------------------------------------------------------- 11-32 11.2.11 10-bit a/d data registers ------------------------------------------------------------------------------------ 11-33 11.2.12 8-bit a/d data registers -------------------------------------------------------------------------------------- 11-34 11.3 functional description of a/d converter ---------------------------------------------------------------------------- 11-35 11.3.1 how to find analog input voltages ------------------------------------------------------------------------- 11-35 11.3.2 a/d conversion by successive approximation method ------------------------------------------------ 11-36 11.3.3 comparator operation ----------------------------------------------------------------------------------------- 11-37 11.3.4 calculating the a/d conversion time ---------------------------------------------------------------------- 11-38 11.3.5 accuracy of a/d conversion --------------------------------------------------------------------------------- 11-43 11.4 inflow current bypass circuit ------------------------------------------------------------------------------------------ 11 -45 11.5 notes on the a/d converter -------------------------------------------------------------------------------------------- 11- 47 contents-7 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 chapter 12 serial interface 12.1 outline of serial interface ---------------------------------------------------------------------------------------------- - 12-2 12.2 serial interface related registers ------------------------------------------------------------------------------------ 12- 5 12.2.1 sio interrupt related registers ----------------------------------------------------------------------------- 12-6 12.2.2 sio transmit control registers ----------------------------------------------------------------------------- 12-14 12.2.3 sio transmit/receive mode registers -------------------------------------------------------------------- 12-15 12.2.4 sio transmit buff er r egisters ------------------------------------------------------------------------------- 12-19 12.2.5 sio receive buffer registers -------------------------------------------------------------------------------- 12-20 12.2.6 sio receive control registers ------------------------------------------------------------------------------ 12-21 12.2.7 sio baud rate registers ------------------------------------------------------------------------------------- 12-24 12.2.8 sio special mode registers --------------------------------------------------------------------------------- 12-27 12.3 transmit operation in csio mode ----------------------------------------------------------------------------------- 12-29 12.3.1 setting the csio baud rate --------------------------------------------------------------------------------- 12-29 12.3.2 initializing csio transmission ------------------------------------------------------------------------------- 12-30 12.3.3 starting csio transmission ---------------------------------------------------------------------------------- 12-32 12.3.4 successive csio transmission ----------------------------------------------------------------------------- 12-32 12.3.5 processing at end of csio transmission ----------------------------------------------------------------- 12-33 12.3.6 transmit interrupts ---------------------------------------------------------------------------------------------- 12-33 12.3.7 transmit dma transfer request ---------------------------------------------------------------------------- 12-33 12.3.8 example of csio transmit operation ---------------------------------------------------------------------- 12-35 12.4 receive operation in csio mode ------------------------------------------------------------------------------------- 12-37 12.4.1 initialization for csio reception ----------------------------------------------------------------------------- 12-37 12.4.2 starting csio reception -------------------------------------------------------------------------------------- 12-39 12.4.3 processing at end of csio reception --------------------------------------------------------------------- 12-39 12.4.4 about successive reception -------------------------------------------------------------------------------- 12-40 12.4.5 flags showing the status of csio receive o perati on ------------------------------------------------- 12-41 12.4.6 example of csio receive operation ----------------------------------------------------------------------- 12-42 12.5 notes on using csio mode ------------------------------------------------------------------------------------------- 12-44 12.6 transmit operation in uart mode ----------------------------------------------------------------------------------- 12-46 12.6.1 setting the uart baud rate -------------------------------------------------------------------------------- 12-46 12.6.2 uart transmit/receive data formats -------------------------------------------------------------------- 12-46 12.6.3 initializing uart transmission ------------------------------------------------------------------------------ 12-48 12.6.4 starting uart transmission --------------------------------------------------------------------------------- 12-50 12.6.5 successive uart transmission ---------------------------------------------------------------------------- 12-50 12.6.6 processing at end of uart transmission ---------------------------------------------------------------- 12-50 12.6.7 transmit interrupts --------------------------------------------------------------------------------------------- 12-50 12.6.8 transmit dma transfer request ---------------------------------------------------------------------------- 12-51 12.6.9 example of uart transmit operation --------------------------------------------------------------------- 12-52 12.7 receive operation in uart mode ------------------------------------------------------------------------------------ 12-54 12.7.1 initialization for uart reception ---------------------------------------------------------------------------- 12-54 12.7.2 starting uart reception ------------------------------------------------------------------------------------- 12-56 12.7.3 processing at end of uart reception -------------------------------------------------------------------- 12-56 12.7.4 example of uart receive operation ---------------------------------------------------------------------- 12-58 12.7.5 start bit detection and data sampling during uart reception ------------------------------------- 12-60 12.8 fixed period clock output function --------------------------------------------------------------------------------- 12-61 12.9 notes on using uart mode ------------------------------------------------------------------------------------------- 12-62 contents-8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 chapter 13 can module 13.1 outline of the can module --------------------------------------------------------------------------------------------- 13- 2 13.2 can module related registers --------------------------------------------------------------------------------------- 13-4 13.2.1 can bus mode control register ---------------------------------------------------------------------------- 13-23 13.2.2 can control registers ---------------------------------------------------------------------------------------- 13-26 13.2.3 can status registers ----------------------------------------------------------------------------------------- 13-29 13.2.4 can configuration registers --------------------------------------------------------------------------------- 13-32 13.2.5 can timestamp count registers --------------------------------------------------------------------------- 13-35 13.2.6 can error count registers ----------------------------------------------------------------------------------- 13-36 13.2.7 can baud rate prescalers ---------------------------------------------------------------------------------- 13-37 13.2.8 can interrupt related registers ---------------------------------------------------------------------------- 13-38 13.2.9 can cause of error registers ------------------------------------------------------------------------------- 13-67 13.2.10 can mode registers ------------------------------------------------------------------------------------------- 13-69 13.2.11 can dma transfer request select registers ----------------------------------------------------------- 13-70 13.2.12 can message slot number registers --------------------------------------------------------------------- 13-71 13.2.13 can clock select registers --------------------------------------------------------------------------------- 13-72 13.2.14 can frame format select registers ---------------------------------------------------------------------- 13-74 13.2.15 can mask registers ------------------------------------------------------------------------------------------- 13-76 13.2.16 can single-shot mode control registers ---------------------------------------------------------------- 13-80 13.2.17 can message slot control registers --------------------------------------------------------------------- 13-82 13.2.18 can message slots ------------------------------------------------------------------------------------------- 13-86 13.3 can protocol ------------------------------------------------------------------------------------------------------------- - 13-116 13.3.1 can protocol frames ----------------------------------------------------------------------------------------- 13-116 13.3.2 data formats during can transmission/reception ---------------------------------------------------- 13-117 13.3.3 can controller error states ---------------------------------------------------------------------------------- 13-118 13.4 initializing the can module -------------------------------------------------------------------------------------------- 13 -119 13.4.1 initializing the can module ----------------------------------------------------------------------------------- 13-119 13.5 transmitting data frames ---------------------------------------------------------------------------------------------- 13- 122 13.5.1 data frame transmit procedure ---------------------------------------------------------------------------- 13-122 13.5.2 data frame transmit operation ----------------------------------------------------------------------------- 13-123 13.5.3 transmit abort function --------------------------------------------------------------------------------------- 13-124 13.6 receiving data frames ------------------------------------------------------------------------------------------------- 13- 125 13.6.1 data frame receive procedure ----------------------------------------------------------------------------- 13-125 13.6.2 data frame receive operation ------------------------------------------------------------------------------ 13-126 13.6.3 reading out received data frames ----------------------------------------------------------------------- 13-128 13.7 transmitting re mote fr ames ------------------------------------------------------------------------------------------ 13-130 13.7.1 remote frame transmit procedure ------------------------------------------------------------------------ 13-130 13.7.2 remote frame transmit operation ------------------------------------------------------------------------- 13-131 13.7.3 reading out received data frames when set for remote frame transmission --------------- 13-133 13.8 receiving remote frames --------------------------------------------------------------------------------------------- 13-135 13.8.1 remote frame receive procedure ------------------------------------------------------------------------- 13-135 13.8.2 remote frame receive operation -------------------------------------------------------------------------- 13-136 13.9 notes on can module -------------------------------------------------------------------------------------------------- 13-139 contents-9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 chapter 14 direct ram interface (dri) 14.1 outline of the direct ram interface (dri) --------------------------------------------------------------------------- 14-2 14.2 dri related registers -------------------------------------------------------------------------------------------------- 14 -4 14.2.1 dd input pin select register -------------------------------------------------------------------------------- 14-6 14.2.2 dri interrupt related registers ----------------------------------------------------------------------------- 14-7 14.2.3 dri transfer control register ------------------------------------------------------------------------------- 14-13 14.2.4 dri special mode control register ------------------------------------------------------------------------ 14-15 14.2.5 dri data capture control register ------------------------------------------------------------------------ 14-18 14.2.6 dri data interleave control register ---------------------------------------------------------------------- 14-22 14.2.7 dd input event select register ----------------------------------------------------------------------------- 14-22 14.2.8 dd input enable registers ---------------------------------------------------------------------------------- 14-23 14.2.9 dri data capture event count setting register -------------------------------------------------------- 14-25 14.2.10 dri capture event counter ---------------------------------------------------------------------------------- 14-26 14.2.11 dri transfer counter ------------------------------------------------------------------------------------------ 14-27 14.2.12 dri address counters ---------------------------------------------------------------------------------------- 14-28 14.2.13 dri address reload registers ----------------------------------------------------------------------------- 14-29 14.2.14 din input processing control register ------------------------------------------------------------------- 14-30 14.2.15 dri event counter (dec) control registers ------------------------------------------------------------- 14-31 14.2.16 dri event counters (dec counters) ---------------------------------------------------------------------- 14-36 14.2.17 dri event counter (dec) reload registers ------------------------------------------------------------- 14-36 14.3 notes on dri ------------------------------------------------------------------------------------------------------------- - 14-37 chapter 15 real time debugger (rtd) 15.1 outline of the real-time debugger (rtd) -------------------------------------------------------------------------- 15-2 15.2 pin functions of the rtd ----------------------------------------------------------------------------------------------- 15 -3 15.3 rtd related register --------------------------------------------------------------------------------------------------- 15 -3 15.3.1 rtd write function disable register ---------------------------------- ----------------------------------- 15-3 15.4 functional description of the rtd ------------------------------------------------------------------------------------ 15-4 15.4.1 outline of the rtd operation -------------------------------------------------------------------------------- 15-4 15.4.2 operation of rdr (real-time ram content output) --------------------------------------------------- 15-4 15.4.3 operation of the wrr (ram content forcible rewrite) ---------------------------------------------- 15-6 15.4.4 operation of ver (continuous monitor) ------------------------------------------------------------------ 15-7 15.4.5 operation of vei (interrupt request) ----------------------------------------------------------------------- 15-7 15.4.6 operation of rcv (recover from runaway) -------------------------------------------------------------- 15-8 15.4.7 method for setting a specified address when using the rtd -------------------------------------- 15-9 15.4.8 resetting the rtd --------------------------------------------------------------------------------------------- 15-10 15.5 typical connection with the host ------------------------------------------------------------------------------------- 15-11 chapter 16 non-break debug (nbd) 16.1 outline of the non-break debug (nbd) ----------------------------------------------------------------------------- 16-2 16.2 pin functions of nbd --------------------------------------------------------------------------------------------------- 16 -4 16.2.1 nbd pin control register ------------------------------------------------------------------------------------ 16-4 16.3 nbd related registers ------------------------------------------------------------------------------------------------- 16- 6 16.3.1 nbd enable register ----------------------------------------------------------------------------------------- 16-6 16.4 communication protocol ----------------------------------------------------------------------------------------------- 16-7 contents-10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 16.5 ram monitor function -------------------------------------------------------------------------------------------------- 16- 8 16.5.1 description of nbd operation ------------------------------------------------------------------------------- 16-8 16.5.2 nbdd data format -------------------------------------------------------------------------------------------- 16-9 16.6 event detection function ----------------------------------------------------------------------------------------------- 16 -11 16.6.1 event address setting register ---------------------------------------------------------------------------- 16-11 16.6.2 event condition setting register --------------------------------------------------------------------------- 16-12 16.6.3 event generation register ----------------------------------------------------------------------------------- 16-12 chapter 17 external bus interface 17.1 outline of the external bus interface -------------------------------------------------------------------------------- 17-2 17.1.1 external bus interface related signals ------------------------------------------------------------------- 17-2 17.2 external bus interface related registers -------------------------------------------------------------------------- 17-5 17.2.1 port operation mode and port peripheral function select registers ----------------------------- 17-5 17.2.2 bus mode control register ---------------------------------------------------------------------------------- 17-15 17.2.3 clkout select register ------------------------------------------------------------------------------------- 17-16 17.3 read/write operations -------------------------------------------------------------------------------------------------- 17 -19 17.4 bus arbitration ---------------------------------------------------------------------------------------------------------- -- 17-25 17.5 typical connection of external extension memory -------------------------------------------------------------- 17-27 17.6 example of bus voltage settings using vcc-bus -------------------------------------------------------------- 17-30 chapter 18 wait controller 18.1 outline of the wait controller ------------------------------------------------------------------------------------------ 1 8-2 18.2 wait controller related registers ------------------------------------------------------------------------------------ 18-4 18.2.1 cs area wait control registers ---------------------------------------------------------------------------- 18-4 18.2.2 flash e/w wait select register ---------------------------------------------------------------------------- 18-6 18.3 typical operation of the wait controller ---------------------------------------------------------------------------- 18-7 chapter 19 ram backup mode 19.1 outline of ram backup mode ----------------------------------------------------------------------------------------- 19-2 19.2 example of ram backup when power is off --------------------------------------------------------------------------- 19-3 19.2.1 normal operating state --------------------------------------------------------------------------------------- 19-3 19.2.2 ram backup state --------------------------------------------------------------------------------------------- 19-4 19.3 example of ram backup for saving power consumption ------------------------------------------------------ 19-5 19.3.1 normal operating state --------------------------------------------------------------------------------------- 19-6 19.3.2 ram backup state --------------------------------------------------------------------------------------------- 19-7 19.3.3 precautions to be observed at power-on ---------------------------------------------------------------- 19-8 19.3.4 power-on limitation -------------------------------------------------------------------------------------------- 19-8 19.4 exiting ram backup mode (wakeup) ------------------------------------------------------------------------------- 19-9 chapter 20 oscillator circuit 20.1 oscillator circuit ------------------------------------------------------------------------------------------------------- --- 20-2 20.1.1 example of an oscillator circuit ----------------------------------------------------------------------------- 20-2 20.1.2 xin oscillation stoppage detection circuit --------------------------------------------------------------- 20-3 20.1.3 oscillation drive capability select function -------------------------------------------------------------- 20-5 20.1.4 system clock output function ------------------------------------------------------------------------------ 20-7 20.1.5 oscillation stabilization time at power-on --------------------------------------------------------------- 20-11 20.2 clock generator circuit ------------------------------------------------------------------------------------------------- 2 0-12 contents-11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 chapter 21 jtag 21.1 outline of jtag ---------------------------------------------------------------------------------------------------------- - 21-2 21.2 configuration of jtag circuit ------------------------------------------------------------------------------------------ 21 -3 21.3 jtag registers ----------------------------------------------------------------------------------------------------------- 21-4 21.3.1 instruction register (jtagir) -------------------------------------------------------------------------------- 21-4 21.3.2 data register ---------------------------------------------------------------------------------------------------- 21-5 21.4 basic operation of jtag ----------------------------------------------------------------------------------------------- 21- 6 21.4.1 outline of jtag operation ------------------------------------------------------------------------------------ 21-6 21.4.2 ir path sequence ---------------------------------------------------------------------------------------------- 21-8 21.4.3 dr path sequence --------------------------------------------------------------------------------------------- 21-9 21.4.4 inspecting and setting data registers --------------------------------------------------------------------- 21-10 21.5 boundary scan description language ------------------------------------------------------------------------------ 21-11 21.6 notes on board design when connecting jtag ------------------------------------------------------------------ 21-12 21.7 processing pins when not using jtag ---------------------------------------------------------------------------- 21-13 chapter 22 power supply circuit 22.1 configuration of the power supply circuit -------------------------------------------------------------------------- 22-2 22.2 power-on sequence ----------------------------------------------------------------------------------------------------- 22- 3 22.2.1 power-on sequence when not using ram backup --------------------------------------------------- 22-3 22.2.2 power-on sequence when using ram backup --------------------------------------------------------- 22-4 22.3 power-off sequence ----------------------------------------------------------------------------------------------------- 22 -5 22.3.1 power-off sequence when not using ram backup ---------------------------------------------------- 22-5 22.3.2 power-off sequence when using ram backup --------------------------------------------------------- 22-6 chapter 23 electrical characteristics 23.1 adapted table ------------------------------------------------------------------------------------------------------------ - 23-2 23.2 absolute maximum ratings ------------------------------------------------------------------------------------------- 23-2 23.3 electrical characteristics when vcce = 5 v, f(xin) = 20 mhz ----------------------------------------------- 23-3 23.3.1 recommended operating conditions (when vcce = 5 v 0.5 v, f(xin) = 20 mhz) ----------- 23-3 23.3.2 d.c. characteristics (when vcce = 5 v 0.5 v, f(xin) = 20 mhz) -------------------------------- 23-5 23.3.3 a/d conversion characteristics (when vcce = 5 v 0.5 v, f(xin) = 20 mhz) ------------------ 23-6 23.4 electrical characteristics when vcce = 5 v, f(xin) = 16 mhz ----------------------------------------------- 23-7 23.4.1 recommended operating conditions (when vcce = 5 v 0.5 v, f(xin) = 16 mhz) ----------- 23-7 23.4.2 d.c. characteristics (when vcce = 5 v 0.5 v, f(xin) = 16 mhz) -------------------------------- 23-9 23.4.3 a/d conversion characteristics (when vcce = 5 v 0.5 v, f(xin) = 16 mhz) ------------------ 23-10 23.5 electrical characteristics when vcce = 3.3 v, f(xin) = 20 mhz --------------------------------------------- 23-11 23.5.1 recommended operating conditions (when vcce = 3.3 v 0.3 v, f(xin) = 20 mhz) -------- 23-11 23.5.2 d.c. characteristics (when vcce = 3.3 v 0.3 v, f(xin) = 20 mhz) ------------------------------ 23-13 23.5.3 a/d conversion characteristics (when vcce = 3.3 v 0.3 v, f(xin) = 20 mhz) --------------- 23-14 23.6 electrical characteristics when vcce = 3.3 v, f(xin) = 16 mhz --------------------------------------------- 23-15 23.6.1 recommended operating conditions (when vcce = 3.3 v 0.3 v f(xin) = 16 mhz) --------- 23-15 23.6.2 d.c. characteristics (when vcce = 3.3 v 0.3 v, f(xin) = 16 mhz) ------------------------------ 23-17 23.6.3 a/d conversion characteristics (when vcce = 3.3 v 0.3 v, f(xin) = 8 mhz) ----------------- 23-18 23.7 flash memory related characteristics ----------------------------------------------------------------------------- 23-19 23.8 external capacitance for power supply ---------------------------------------------------------------------------- 23-19 23.9 a.c. characteristics (when vcce = 5 v) -------------------------------------------------------------------------- 23-20 23.10 a.c. characteristics (when vcce = 3.3 v) ---------------------------------------------------------------------- 23-42 contents-12 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 appendix 1 mechanical specificaitons appendix 1.1 dimensional outline drawing -------------------------------------------------------------------- appendix 1-2 appendix 2 instruction processing time appendix 2.1 32192/32195/32196 instruction processing time ------------------------------------------- appendix 2-2 appendix 3 processing of unused pins appendix 3.1 exa mple processing of unused pins ----------------------------------------------------------- appendix 3-2 appendix 4 summary of precautions appendix 4.1 notes on the cpu ---------------------------------------------------------------------------------- appendix 4-2 appendix 4.2 notes on address space ------------------------------------------------------------------------- appendix 4-3 appendix 4.3 notes on eit ----------------------------------------------------------------------------------------- appendix 4-3 appendix 4.4 notes on the internal ram ----------------------------------------------------------------------- appendix 4-3 appendix 4.5 notes on the internal flash memory ----------------------------------------------------------- appendix 4-4 appendix 4.6 things to be considered upon exiting reset ------------------------------------------------ appendix 4-4 appendix 4.7 notes on input/output ports ---------------------- ---------------------------------- ------------- appendix 4-5 appendix 4.8 notes on the dmac -------------------------------------------------------------------------------- appendix 4-6 appendix 4.9 notes on multijunction timers ------------------------------------------------------------------- appendix 4-7 appendix 4.9.1 notes on using top single-shot output mode ---------------------------------------- appendix 4-7 appendix 4.9.2 notes on using top delayed single-shot output mode ----------------------------- appendix 4-9 appendix 4.9.3 notes on using top continuous output mode ---------------------------------------- appendix 4-10 appendix 4.9.4 notes on using tio measure free-run/ clear input modes -------------------------- appendix 4-10 appendix 4.9.5 notes on using tio pwm output mode ------------------------------------------------- appendix 4-10 appendix 4.9.6 notes on using tio single-shot output mode ------------------------------------------ appendix 4-10 appendix 4.9.7 notes on using tio delayed single-shot output mode ------------------------------- appendix 4-11 appendix 4.9.8 notes on using tio continuous output mode ------------------------------------------ appendix 4-11 appendix 4.9.9 notes on using tms measure input ----------------------------------------------------- appendix 4-11 appendix 4.9.10 notes on using tml measure input ---------------------------------------------------- appendix 4-12 appendix 4.9.11 notes on using tou pwm output mode ---------------------------------------------- appendix 4-13 appendix 4.9.12 notes on using tou single-shot pwm output mode ------------------------------- appendix 4-16 appendix 4.9.13 notes on using tou delayed single-shot output mode ---------------------------- appendix 4-16 appendix 4.9.14 notes on using tou single -shot output mod e --------------------------------------- appendix 4-16 appendix 4.9.15 notes on using tou continuous output mode --------------------------------------- appendix 4-17 appendix 4.9.16 0% or 100% duty-cycle wave output during pwm output and single-shot pwm output modes ------------------------------------------------------- appendix 4-17 appendix 4.10 notes on the a/d converter ------ ----------------------------------------------- -------- -------- appendix 4-22 appendix 4.11 notes on serial interface ------------------------------------------------------------------------ appendix 4-25 appendix 4.11.1 notes on using csio mode ------------------------------------------------------------- appendix 4-25 appendix 4.11.2 notes on using uart mode ------------------------------------------------------------- appendix 4-26 appendix 4.12 notes on can module --------------------------------------------------------------------------- appendix 4-28 appendix 4.13 notes on dri --------------------------------------------------------------------------------------- appendix 4-29 appendix 4.14 notes on ram backup mode ------------------------------------------------------------------ appendix 4-29 appendix 4.14.1 precautions to be observed at power-on -------------------------------------------- appendix 4-29 appendix 4.14.2 power-on limitation ----------------------------------------------------------------------- appendix 4-29 contents-13 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 appendix 4.15 notes on jtag ------------------------------------------------------------------------------------ appendix 4-30 appendix 4.15.1 notes on board design when con necting jtag --------------- -------------- ------- appendix 4-30 appendix 4.15.2 processing pins when not using jtag ----------------------------------------------- appendix 4-31 appendix 4.16 notes on noise ------------------------------------------------------------------------------------ appendix 4-32 appendix 4.16.1 reduction of wiring length -------------------------------------------------------------- appendix 4-32 appendix 4.16.2 inserting a bypass capacitor between vss and vcc lines -------------------- appendix 4-34 appendix 4.16.3 processing analog input pin wiring --------------------------------------------------- appendix 4-34 appendix 4.16.4 consideration about the oscillator ---------------------------------------------------- appendix 4-35 appendix 4.16.5 processing input/output ports ---------------------------------------------------------- appendix 4-39 contents-14 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 to be written at a later time. chapter 1 overview 1.1 outline of the 32192/32195/32196 group 1.2 block diagram 1.3 pin functions 1.4 pin assignments 1-2 1 32192/32195/32196 group hardware manual overview rev.1.10 rej09b0123-0110 apr.06.07 1.1 outline of the 32192/32195/32196 group the 32192/32195/32196 group (hereinafter simply the 32192/32195/32196) belongs to the m32r/ecu series in the m32r family of renesas microcomputers. for details about the current development status of the 32192/32195/32196, please contact your nearest office of renesas or its distributor. table 1.1.1 product list type name rom ram frequency power supply voltage temperature range capacity capacity at single-supply at double-supply (note 1) m32192f8vfp 1 mbytes 176 kbytes 128 mhz 3.3v 5v, 3.3v ?40c to 125c m32192f8ufp 1 mbytes 176 kbytes 160 mhz 3.3v 5v, 3.3v ?40c to 105c m32192f8tfp 1 mbytes 176 kbytes 160 mhz 5v or 3.3v 5v, 3.3v ?40c to 85c m32192f8vwg 1 mbytes 176 kbytes 128 mhz 3.3v 5v, 3.3v ?40c to 125c m32192f8uwg 1 mbytes 176 kbytes 160 mhz 3.3v 5v, 3.3v ?40c to 105c M32192F8TWG 1 mbytes 176 kbytes 160 mhz 5v or 3.3v 5v, 3.3v ?40c to 85c m32195f4vfp 512 kbytes 32 kbytes 128 mhz 3.3v 5v, 3.3v ?40c to 125c m32195f4ufp 512 kbytes 32 kbytes 160 mhz 3.3v 5v, 3.3v ?40c to 105c m32195f4tfp 512 kbytes 32 kbytes 160 mhz 5v or 3.3v 5v, 3.3v ?40c to 85c m32196f8vfp 1 mbytes 64 kbytes 128 mhz 3.3v 5v, 3.3v ?40c to 125c m32196f8ufp 1 mbytes 64 kbytes 160 mhz 3.3v 5v, 3.3v ?40c to 105c m32196f8tfp 1 mbytes 64 kbytes 160 mhz 5v or 3.3v 5v, 3.3v ?40c to 85c note 1: this does not guarantee continuous operation and there is a limitation on the length of use (temperature profile). 1.1.1 m32r family cpu core with built-in fpu (m32r-fpu) (1) based on a risc architecture ? the 32192/32195/32196 is a group of 32-bit risc single-chip microcomputers. the m32r-fpu in this group of microcomputers incorporates a fully ieee 754-compliant, single-precision fpu in order to materialize the common instruction set and the high-precision arithmetic operation of the m32r cpu. the 32192/32195/32196 products listed in the above table are built around the m32r-fpu and incorporates flash memory, ram and various peripheral functions, all integrated into a single chip. ? the m32r-fpu is constructed based on a risc architecture. memory is accessed using load/store instruc- tions, and various arithmetic/logic operations are executed using register-to-register operation instructions. ? the m32r-fpu internally contains sixteen 32-bit general-purpose registers. the instruction set con- sists of 100 discrete instructions in total (83 instructions common to the m32r family plus 17 fpu and extended instructions). these instructions are either 16 bits or 32 bits long. ? in addition to the ordinary load/store instructions, the m32r-fpu supports compound instructions such as load & address update and store & address update. these instructions help to speed up data transfers. (2) six-stage pipelined processing ? the m32r-fpu supports six-stage pipelined instruction processing. not just load/store instructions and register-to-register operation instructions, but also floating-point arithmetic instructions and compound instructions such as load & address update and store & address update are executed in one cpuclk period (which is equivalent to 6.25 ns when f(cpuclk) = 160 mhz). ? although instructions are supplied to the execution stage in the order in which they were fetched, it is possible that if the load/store instruction supplied first is extended by wait cycles inserted in memory access, the subsequent register-to-register operation instruction will be executed before that instruction. using such a facility, which is known as the ?out-of-order-completion? mechanism, the m32r-fpu is able to control instruction execution without wasting clock cycles. 1.1 outline of the 32192/32195/32196 group 1 1-3 overview 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 1.1 outline of the 32192/32195/32196 group (3) compact instruction code ? the m32r-fpu supports two instruction formats: one 16 bits long, and one 32 bits long. use of the 16-bit instruction format especially helps to suppress the code size of a program. ? moreover, the availability of 32-bit instructions makes programming easier and provides higher per- formance at the same clock speed than in architectures where the address space is segmented. for example, some 32-bit instructions allow control to jump to an address 32 mbytes forward or back- ward from the currently executed address in one instruction, making programming easy. 1.1.2 built-in multiplier/accumulator (1) built-in high-speed multiplier ? the m32r-fpu contains a 32 bits 16 bits high-speed multiplier which enables the m32r-fpu to execute a 32 bits 32 bits integral multiplication instruction in three cpuclk periods. (2) dsp-comparable multiply-accumulate instructions ? the m32r-fpu supports the following four types of multiply-accumulate instructions (or multiplication instructions) which each can be executed in one cpuclk period using a 56-bit accumulator. (1) 16 high-order bits of register 16 high-order bits of register (2) 16 low-order bits of register 16 low-order bits of register (3) all 32 bits of register 16 high-order bits of register (4) all 32 bits of register 16 low-order bits of register ? the m32r-fpu has some special instructions to round the value stored in the accumulator to 16 or 32 bits or shift the accumulator value before storing in a register to have its digits adjusted. because these instructions too are executed in one cpuclk period, when used in combination with high- speed data transfer instructions such as load & address update or store & address update, they enable the m32r-fpu to exhibit superior data processing capability comparable to that of a dsp. 1.1.3 built-in single-precision fpu ? the m32r-fpu supports single-precision floating-point arithmetic fully compliant with ieee 754 standards. specifically, five exceptions specified in ieee 754 standards (inexact, underflow, divi- sion by zero, overflow and invalid operation) and four rounding modes (round to nearest, round toward 0, round toward + infinity and round toward ? infinity) are supported. what?s more, because general-purpose registers are used to perform floating-point arithmetic, the overhead associated with transferring the operand data can be reduced. 1.1.4 built-in flash memory and ram ? the 32192/32195/32196 contains a ram that can be accessed with zero wait state, allowing to design a high-speed embedded system. ? the internal flash memory can be written to while mounted on a printed circuit board (on-board writing). use of flash memory facilitates development work, because the chip used at the develop- ment stage can be used directly in mass-production, allowing for a smooth transition from prototype to mass-production without the need to change the printed circuit board. ? the internal flash memory can be rewritten as many as 100 times. 1-4 1 32192/32195/32196 group hardware manual overview rev.1.10 rej09b0123-0110 apr.06.07 1.1 outline of the 32192/32195/32196 group ? the internal flash memory has a virtual flash emulation function, allowing the internal ram to be superficially mapped into part of the internal flash memory. when combined with the internal real- time debugger (rtd) and the m32r family?s common debug interface (scalable debug interface or sdi), this function makes the rom table data tuning easy. ? the internal ram can be accessed for reading or rewriting data from an external device indepen- dently of the m32r-fpu by using the real-time debugger. the external device is communicated using the real-time debugger?s exclusive clock-synchronous serial interface. 1 1-5 overview 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 1.1 outline of the 32192/32195/32196 group 1.1.5 built-in clock frequency multiplier ? the 32192 /32195 /32196 contains a clock frequency multiplier, which is schematically shown in figure 1.1.1 below. x8 1/4 pll 1/2 clko sel clkout(external bus clock) (32mhz-40mhz or 16mhz-20mhz) xin pin (16mhz-20mhz) bclk (peripheral clock) (32mhz-40mhz) cpuclk (cpu clock) (128mhz-160mhz) figure 1.1.1 conceptual diagram of the clock frequency multiplier table 1.1.2 clock functional block features cpuclk ? cpu clock: defined as f(cpuclk) when it indicates the operating clock frequency for the m32r-fpu core, internal flash memory and internal ram. bclk ? peripheral clock: defined as f(bclk) when it indicates the operating clock frequency for the internal peripheral i/o and external data bus. clock output ? bclk pin output: a clock with the same frequency as f(bclk) is output from this pin. ? clkout pin output: a clock with the same or half frequency as f(bclk) is output from this pin. 1.1.6 powerful peripheral functions built-in (1) 8-level interrupt controller (icu) (2) 10-channel dmac (3) 55-channel multijunction timer (mjt) (4) 16-channel a/d converter (adc) (5) 6-channel serial interface (sio) (6) 2-channel full-can (7) direct ram interface (dri) (8) real-time debugger (rtd) (9) non-break debug (nbd) (10) wait controller (11) m32r family?s common debug function (scalable debug interface or sdi) 1-6 1 32192/32195/32196 group hardware manual overview rev.1.10 rej09b0123-0110 apr.06.07 1.2 block diagram 1.2 block diagram figure 1.2.1 shows a block diagram of the 32192 /32195 /32196. the features of each block are described in table 1.2.1. figure 1.2.1 block diagram of the 32192/32195/32196 m32r-fpu core (max. 160mhz) non-break debug (nbd) direct ram interface (dri) multiplier/accumulator (32 bits x 16 bits + 56 bits) single-precision fpu (fully ieee 754 compliant) internal 32-bit bus internal 32-bit bus internal flash memory (m32192f8: 1 mbyte) (m32195f4: 512 kbytes) (m32196f8: 1 mbyte) internal ram (m32192f8: 176 kbytes) (m32195f4: 32 kbytes) (m32196f8: 64 kbytes) pll clock generator internal power supply generator (vdc) address data external bus interface input/output ports, 97 lines real-time debugger (rtd) internal bus interface dmac (10 channels) multijunction timer (mjt: 55 channels) a/d converter (a/d0: 10-bit converter, 16 channels) serial interface (6 channels) interrupt controller (8 levels) internal 16-bit bus wait controller full can (2 channels) 1 1-7 overview 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 1.2 block diagram table 1.2.1 features of the 32192/32195/32196 (1/3) functional block features m32r-fpu cpu core ? implementation: six-stage pipelined instruction processing ? internal 32-bit structure of the core ? register configuration general-purpose registers: 32 bits 16 registers control registers: 32 bits 6 registers ? instruction set 16-bit and 32-bit instruction formats 100 discrete instructions and six addressing modes ? internal multiplier/accumulator (32 bits 16 bits + 56 bits) ? internal single-precision floating-point arithmetic unit (fpu) internal flash memory ? capacity: m32192f8 : 1 mbyte m32195f4 : 512 kbytes m32196f8 : 1 mbyte ? one wait access ? durability: rewritable 100 times internal ram ? capacity: m32192f8 : 176 kbytes m32195f4 : 32 kbytes m32196f8 : 64 kbytes ?zero wait access ? the internal ram can be accessed for reading or rewriting data from the outside independently of the m32r-fpu by using the real-time debugger, without ever causing the cpu performance to decrease. ? by using ram backup mode, a part of internal ram area can be backed up when turn off the power supply. bus specification ? fundamental bus cycle : 6.25 ns (when f(cpuclk) = 160 mhz) ? logical address space : 4 gbytes linear ? internal bus specification : internal 32-bit data bus (for cpu <-> internal flash memory and ram access) (or accessed in 64 bits when accessing the internal flash memory for instructions) : internal 16-bit data bus (for internal peripheral i/o access) ? external extension area: during processor mode: maximum 32 mbytes during external extension mode: maximum 31 mbytes (7 mbytes + 8 mbytes 3 blocks) ? external data address: 22-bit address ? external data bus: 16-bit data bus ? shortest external bus access: 1 clkout during read, 1 clkout during write multijunction timer (mjt) ? 55-channel multi-functional timer 16-bit output related timer 11 channels, 16-bit input/output related timer 10 channels, 16-bit input related timer 8 channels, 32-bit input related timer 8 channels, 16-bit input related up/down timer 2 channels, and 24-bit output related timer 16 channels ? flexible timer configuration is possible by interconnecting these timer channels. ? interrupt request: counter underflow or overflow and rising or falling or both edges or ?h? or ?l? level from the tin pin (tin pin can be used as external interrupt inputs irrespective of timer operation.) ? dma transfer request: counter underflow or overflow and rising or falling or both edges or ?h? or ?l? level from the tin pin (tin pin can be used as dma transfer request inputs irrespective of timer operation.) dmac ? number of channels: 10 ? transfers between internal peripheral i/os or internal rams or between internal peripheral i/o and internal ram are supported. ? capable of advanced dma transfers when used in combination with internal peripheral i/o ? transfer request: software or internal peripheral i/o (a/d converter, mjt, serial interface or can) ? dma channels can be cascaded. (dma transfer on a channel can be started by completion of a transfer on another channel.) ? interrupt request: dma transfer counter register underflow 1-8 1 32192/32195/32196 group hardware manual overview rev.1.10 rej09b0123-0110 apr.06.07 table 1.2.1 features of the 32192/32195/32196 (2/3) 1.2 block diagram functional block features a/d converter (adc) ? 16 channels: 10-bit resolution a/d converter 1 block ? conversion modes: in addition to ordinary a/d conversion mode, comparator mode and 2-channel simultaneous sampling mode. ? operation modes: single conversion mode and n-channel scan mode (n = 1?16) ? sample-and-hold function: performs a/d conversion with the analog input voltages sampled at start of a/d conversion. ? a/d disconnection detection assist function: suppresses effects of the analog input voltage leakage from the preceding channel during a/d conversion. ? an inflow current bypass circuit is built-in. ? can generate an interrupt or start dma transfer upon completion of a/d conversion. ? either 8-bit or 10-bit conversion results can be read out. ? interrupt request: completion of a/d conversion ? dma transfer request: completion of a/d conversion serial interface (sio) ? 6-channel serial interface ? can be chosen to be clock-synchronous serial interface or clock-asynchronous serial interface. ? data can be transferred at high speed (5 mbits per second during clock-synchronous mode or 2.5 mbits per second during clock-asynchronous mode when f(bclk) = 40 mhz). ? interrupt request: reception completed, receive error, transmit buffer empty or transmission completed ? dma transfer request: reception completed or transmit buffer empty can ? 32 message slots 2 blocks ? compliant with can specification 2.0b active. ? interrupt request: transmission completed, reception completed, bus error, error-passive, bus-off or single shot ? dma transfer request: failed to send, transmission completed or reception completed real-time debugger ? internal ram can be rewritten or monitored independently of the cpu by entering a command (rtd) from the outside. ? comes with exclusive clock-synchronous serial ports. ? interrupt request: rtd interrupt command input non-break debug ? can access to all resources on the address map from the outside (nbd) ? clock-synchronous parallel interface (4-bit) ? event output function ? ram monitor function direct ram interface ? can control capture of clock-synchronous parallel data to the internal ram independently of the cpu (dri) ? clock-synchronous parallel input (8-bit, 16-bit or 32-bit) ? maximum transfer rate: 40 mbytes/s (when f(cpuclk)=160 mhz) interrupt controller (icu) ? controls interrupt requests from the internal peripheral i/o. ? supports 8-level interrupt priority including an interrupt disabled state. ? external interrupt: 27 sources (sbi#, tin0, tin3?tin11, tin16?tin27, tin30?tin33) ? tin pin input sensing: rising, falling or both edges or ?h? or ?l? level wait controller ? controls wait states for access to the external extension area. ? insertion of 0?15 wait states by setting up in software + wait state extension by entering wait# signal pll ? a multiply-by-8 clock generating circuit clock ? maximum external input clock frequency (xin) is 20.0 mhz. (note 1) ? cpuclk: operating clock for the m32r-fpu core, internal flash memory and internal ram the maximum cpu clock is 160 mhz (when f(xin) = 20 mhz). ? bclk: operating clock for the internal peripheral i/o and external data bus the maximum peripheral clock is 40 mhz (peripheral module access when f(xin) = 20 mhz). ? bclk pin output: a clock with the same frequency as f(bclk) is output from this pin. ? clkout pin output: a clock with the same or half frequency as f(bclk) is output from this pin. 1 1-9 overview 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 1.2 block diagram functional block features jtag ? boundary scan function vdc ? internal power supply generating circuit: generates the internal power supply from an external power supply (5 or 3.3 v). ports ? input/output pin: 97 pins ? the port input threshold can be set in a program to one of three levels individually for each port group (with or without schmitt circuit, selectable). note 1: the maximum external input clock frequency (xin) for the m32192f8vfp, m32195f4vfp, and m32196f8vfp are 16.0 mhz. table 1.2.1 features of the 32192/32195/32196 (3/3) 1-10 1 32192/32195/32196 group hardware manual overview rev.1.10 rej09b0123-0110 apr.06.07 1.3 pin functions figure 1.3.1 and figure 1.3.2 show the 32192/32195/32196?s pin function diagram. pin functions are de- scribed in table 1.3.1. m32192 f8xfp, m3219 5f4xfp, m3219 6f8xfp note 1: mod2 must be connected to the ground (gnd). notes: . the symbol "#" suffixed to the pin (or signal) name means that the pins (or signals) are "l." . : operates with vcce power supply : operates with vcc-bus power supply xin clock multi- junction timer multi- junction timer data bus dri nbd address bus reset port 0 port 1 port 2 port 3 multi- junction timer multi- junction timer serial interface can address bus bus control bus control/ clock real time debugger port 4 port 7 flash interrupt controller mode a/d converter xout reset# mod0 mod1 16 mod2 (note 1) fp port 6 p61-p63 p70/clkout/wr#/bclk p71/wait# p72/hreq#/tin27 p73/hack#/tin26 p74/rtdtxd/txd3/nbdd0 p75/rtdrxd/rxd3/nbdd1 p76/rtdack/ctx1/nbdd2 p77/rtdclk/crx1/nbdd3 port 8 power supply p82/txd0/to26 p83/rxd0/to25 p84/sclki0/sclko0/to24 p85/txd1/to23 p86/rxd1/to22 p87/ sclki1/sclko1/to21 vcce excvcc vcc-bus vdde excvdd vss sbi# ad0in0-ad0in15 avcc0 avss0 vref0 p93/to16/sclki5/sclko5 p94/to17/txd5/dd15 p96/to19/dd13 p97/to20/dd12 p100/to8 p41/blw#/ble# p42/bhw#/bhe# p43/rd# p44/cs0#/tin8, p45/cs1#/tin9 p46/a13/tin10, p47/a14/tin11 p00/db0/to21/dd0- p07/db7/to28/dd7 p10/db8/to29/dd8- p17/db15/to36/dd15 p20/a23/dd24- p27/a30/dd31 p30/a15/tin4/dd16- p33/a18/tin7/dd19 multi- junction timer serial interface port 9 multi- junction timer serial interface serial interface address bus bus control can serial interface can serial interface can/ bus control nbd dri dri dri port 10 port 13 port 15 bus control/ clock address bus/ bus control port 11 port 12 p130/tin16/pwmoff0/din0 p131/tin17/pwmoff1/din1 p132/tin18/din2 p133/tin19/din3 p134/tin20/txd3/din4 p135/tin21/rxd3 p136/tin22/crx1 p137/tin23/ctx1 p150/tin0/clkout/wr# p153/tin3/wait# p95/to18/rxd5/dd14 p107/to15/rxd4/dd0 p110/to0/to29/dd11- p117/to7/to36/dd4 p124/tclk0/a9/dd3 p125/tclk1/a10/dd2 8 8 8 8 4 p34/a19/tin30/dd20- p37/a22/tin33/dd23 4 2 2 3 2 2 6 2 p101/to9/crx0 p102/to10/ctx0 p103/to11/tin24 p104/to12/tin25/dd3 p105/to13/sclki4/sclko4/dd2 p106/to14/txd4/dd1 p126/tclk2/cs2#/dd1 p127/tclk3/cs3#/dd0 port 22 jtag p220/ctx0/hack# p221/crx0/hreq# p224/a11/cs2# jtrst jtms jtck/nbdclk jtdo/nbdevnt# jtdi/nbdsync# p225/a12/cs3# port 17 p174/txd2/to28 p175/rxd2/to27 vccer vcce vcce vcc-bus vcce vcc-bus vcce vcc-bus vcc-bus vcce vcc-bus vcce 1.3 pin functions figure 1.3.1 pin function diagram (144pin lqfp) 1 1-11 overview 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 1.3.2 pin function diagram (224pin fbga) m32192 f8xwg note 1: mod2 must be connected to the ground (gnd). note 2: thermal ball must be connected to the ground (gnd). notes: . the symbol "#" suffixed to the pin (or signal) name means that the pins (or signals) are "l." . : operates with vcce power supply : operates with vcc-bus power supply xin clock multi- junction timer multi- junction timer data bus dri nbd address bus reset port 0 port 1 port 2 port 3 multi- junction timer multi- junction timer serial interface can address bus bus control bus control/ clock real time debugger port 4 port 7 flash interrupt controller mode a/d converter xout reset# mod0 mod1 16 mod2 (note 1) fp port 6 p61-p63 p70/clkout/wr#/bclk p71/wait# p72/hreq#/tin27 p73/hack#/tin26 p74/rtdtxd/txd3/nbdd0 p75/rtdrxd/rxd3/nbdd1 p76/rtdack/ctx1/nbdd2 p77/rtdclk/crx1/nbdd3 port 8 power supply p82/txd0/to26 p83/rxd0/to25 p84/sclki0/sclko0/to24 p85/txd1/to23 p86/rxd1/to22 p87/ sclki1/sclko1/to21 vcce excvcc vcc-bus vdde excvdd vss thermal-ball (note 2) sbi# ad0in0-ad0in15 avcc0 avss0 vref0 p93/to16/sclki5/sclko5 p94/to17/txd5/dd15 p96/to19/dd13 p97/to20/dd12 p100/to8 p41/blw#/ble# p42/bhw#/bhe# p43/rd# p44/cs0#/tin8, p45/cs1#/tin9 p46/a13/tin10, p47/a14/tin11 p00/db0/to21/dd0- p07/db7/to28/dd7 p10/db8/to29/dd8- p17/db15/to36/dd15 p20/a23/dd24- p27/a30/dd31 p30/a15/tin4/dd16- p33/a18/tin7/dd19 multi- junction timer serial interface port 9 multi- junction timer serial interface serial interface address bus bus control can serial interface can serial interface can/ bus control nbd dri dri dri port 10 port 13 port 15 bus control/ clock address bus/ bus control port 11 port 12 p130/tin16/pwmoff0/din0 p131/tin17/pwmoff1/din1 p132/tin18/din2 p133/tin19/din3 p134/tin20/txd3/din4 p135/tin21/rxd3 p136/tin22/crx1 p137/tin23/ctx1 p150/tin0/clkout/wr# p153/tin3/wait# p95/to18/rxd5/dd14 p107/to15/rxd4/dd0 p110/to0/to29/dd11- p117/to7/to36/dd4 p124/tclk0/a9/dd3 p125/tclk1/a10/dd2 8 8 8 8 4 p34/a19/tin30/dd20- p37/a22/tin33/dd23 4 2 2 3 3 2 12 49 2 2 p101/to9/crx0 p102/to10/ctx0 p103/to11/tin24 p104/to12/tin25/dd3 p105/to13/sclki4/sclko4/dd2 p106/to14/txd4/dd1 p126/tclk2/cs2#/dd1 p127/tclk3/cs3#/dd0 port 22 jtag p220/ctx0/hack# p221/crx0/hreq# p224/a11/cs2# jtrst jtms jtck/nbdclk jtdo/nbdevnt# jtdi/nbdsync# p225/a12/cs3# port 17 p174/txd2/to28 p175/rxd2/to27 vccer vcce vcce vcc-bus vcce vcc-bus vcce vcc-bus vcc-bus vcce vcc-bus vcce 1.3 pin functions 1-12 1 32192/32195/32196 group hardware manual overview rev.1.10 rej09b0123-0110 apr.06.07 table 1.3.1 description of pin functions (1/3) type pin name signal name input/output description power supply vccer internal power ? power supply input for the internal voltage generator circuit supply input (5.0 v 0.5 v or 3.3 v 0.3 v). vcce port/internal ? power supply input for the port and internal peripheral i/o peripheral i/o pin pins (5.0 v 0.5 v or 3.3 v 0.3 v). power supply input apply same voltage to the all vcce pins. vcc-bus port/bus interface ? power supply input for the port and bus interface pins pin power supply (5.0 v 0.5 v or 3.3 v 0.3 v). input apply same voltage to the all vcc-bus pins. vdde ram power supply ? backup power supply input for the internal ram (5.0 v 0.5 v input or 3.3 v 0.3 v). vss ground ? connect all vss pins to ground (gnd). thermal- thermal ball ? connect thermal ball to the ground (gnd). ball(note 2) excvcc vccer control ? this pin connects an external capacitor for the internal voltage generator circuit. excvdd vdde control ? this pin connects an external capacitor for the internal power supply of the internal ram. clock xin, clock input input these are clock input/output pins. including a pll-based 8 xout clock output output frequency multiplier, they input 1/8 of the cpu clock frequency. (xin input is 20 mhz when f(cpuclk) = 160 mhz.) clkout, system clock output the clkout pin outputs a clock that is equal to the external bclk input clock frequency, xin (i.e., clkout output is 20 mhz when f(cpuclk) = 160 mhz), or two times of xin (i.e., clkout output is 40 mhz when f(cpuclk) = 160 mhz). (it is used when operationg synchronous setting in external) this clock is used when operations are synchronous external to the chip.the bclk pin outputs a clock that is two times the external input clock frequency, xin (i.e., bclk output is 40 mhz when f(cpuclk) = 160 mhz). reset reset# reset input reset input pin for the internal circuit. mode mod0 ? mode input set the microcomputer?s operation mode. mod2 mod0 mod1 mod2 mode l l l single-chip mode l h l external extension mode h l l processor mode (boot mode) (note 1) h h l (settings inhibited) x x h (settings inhibited) x: don?t care flash protect fp flash protect input this special pin protects the flash memory against rewrites in hardware. address bus a9?a30 address bus output twenty-two address lines (a9?a30) are included, allowing four blocks each up to 8 mbyte memory space to be connected external to the chip. a31 is not output. note 1: boot mode requires that the fp pin should be at the ?h? level. for details about boot mode, see chapter 6, ?internal memory.? note 2: thermal ball has a pin only in the m32192f8xwg. 1.3 pin functions 1 1-13 overview 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 table 1.3.1 description of pin functions (2/3) type pin name signal name input/output description data bus db0?db15 data bus input/output this 16-bit data bus is used to connect external devices. when writing in byte units during a write cycle, the output data at the invalid byte position is undefined. during a read cycle, data on the entire 16-bit bus is always read in. however, only the data at the valid byte position is transferred into the internal circuit. bus control cs0#?cs3# chip select output these are chip select signals for external devices. rd# read output this signal is output when reading an external device. wr# write output this signal is output when writing to an external device. bhw#/blw# byte high/low write output when writing to an external device, this signal indicates the valid byte position to which data is transferred. bhw# and blw# correspond to the upper address side (bits 0?7 are valid) and the lower address side (bits 8?15 are valid), respectively. bhe# byte high enable output during an external device access, this signal indicates that the high-order data (bits 0?7) is valid. ble# byte low enable output during an external device access, this signal indicates that the low-order data (bits 8?15) is valid. wait# wait input when accessing an external device, a ?l? level input on wait# pin extends the wait cycle. hreq# hold request input this input pin is used by an external device to request control of the external bus. a ?l? level input on hreq# pin places the cpu in a hold state. hack# hold acknowledge output this signal notifies that the cpu has entered a hold state and relinquished control of the external bus. multijunction tin0, timer input input input pins for the multijunction timer. timer tin3?tin11, tin16?tin27, tin30?tin33 to0?to36 timer output output output pins for the multijunction timer. tclk0 timer clock input clock input pins for the multijunction timer. ?tclk3 a/d converter avcc0 analog power ? avcc0 is the power supply input for the a/d0 converter. supply input c onnect avcc0 to the power supply rail. avss0 analog ground ? avss0 is the analog ground for the a/d0 converter. connect avss0 to ground. ad0in0 analog input input 16-channel analog input pins for the a/d0 converter. ?ad0in15 vref0 reference voltage input vref0 is the reference voltage input pin for the a/d0 input converter. interrupt sbi# system break input this is the system break interrupt (sbi) input pin for the controller interrupt interrupt controller. serial interface sclki0/ uart transmit/ input/output when channel is in uart mode: sclko0, receive clock output this pin outputs a clock derived from brg output by sclki1/ or csio transmit/ dividing it by 2. sclko1, receive clock when channel is in csio mode: sclki4/ input/output this pin inputs a transmit/receive clock when external sclko4, clock is selected or outputs a transmit/receive clock sclki5/ when internal clock is selected. sclko5 1.3 pin functions 1-14 1 32192/32195/32196 group hardware manual overview rev.1.10 rej09b0123-0110 apr.06.07 table 1.3.1 description of pin functions (3/3) type pin name signal name input/output description serial interface txd0?txd5 transmit data output transmit data output pin for serial interface. rxd0?rxd5 received data input received data input pin for serial interface. real-time rtdtxd rtd transmit data output serial data output pin for the real-time debugger. debugger rtdrxd rtd received data input serial data input pin for the real-time debugger. (rtd) rtdclk rtd clock input input serial data transmit/receive clock input pin for the real-time debugger. rtdack rtd acknowledge output a ?l? level pulse is output from this pin synchronously with the start clock for the real-time debugger?s serial data output word. the ?l? level pulse width indicates the type of command/ data received by the real-time debugger. can ctx0, ctx1 transmit data output this pin outputs data from the can module. crx0, crx1 received data input this pin inputs the data for the can module. jtag jtms test mode select input test mode select input to control the state transition of the test circuit. jtck test clock input clock input for the debug module and test circuit. jtrst test reset input test reset input to initialize the test circuit asynchronously with device operation. jtdi test data input input this pin inputs the test instruction code or test data that is serially received. jtdo test data output output this pin outputs the test instruction code or test data serially. nbd nbdd0 command/ input/output nbd command, address, and data input/output pins. ?nbdd3 address/data nbdclk synchronous clock input nbd synchronous clock input pin. input nbdsync# top of data input input input pin to control the start position of nbd data. nbdevnt# event output output output pin used for event output when an nbd event occurs. dri dd0?dd31 dd input input dri data input pin. din0?din4 din input input dri event input pin. input/output p00?p07 input/output port 0 input/output programmable input/output port. ports p10?p17 input/output port 1 input/output (note 1) p20?p27 input/output port 2 input/output p30?p37 input/output port 3 input/output p41?p47 input/output port 4 input/output p61?p63 input/output port 6 input/output p70?p77 input/output port 7 input/output p82?p87 input/output port 8 input/output p93?p97 input/output port 9 input/output p100?p107 input/output port 10 input/output p110?p117 input/output port 11 input/output p124?p127 input/output port 12 input/output p130?p137 input/output port 13 input/output p150, p153 input/output port 15 input/output p174, p175 input/output port 17 input/output p220, input/output port 22 input/output p221 (note 2), p224, p225 note 1: input/output ports 5, 14, 16 and 18 ? 21 are nonexistent. note 2: p221 is input-only port. 1.3 pin functions 1 1-15 overview 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 1.4 pin assignments figure 1.4.1 and figure 1.4.2 show the 32192/32195/32196?s pin assignment diagram. a pin assignment table is shown in table 1.4.1 and table 1.4.2. figure 1.4.1 pin assignment diagram of the m32192f8xfp, m32195f4xfp, and m32196f8xfp (top view) m32192f8xfp m32195f4xfp m32196f8xfp 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 vss p87/sclki1/sclko1/to21 p86/rxd1/to22 p85/txd1/to23 p84/sclki0/sclko0/to24 p83/rxd0/to25 p82/txd0/to26 vccer p175/rxd2/to27 p174/txd2/to28 vss excvcc avss0 ad0in15 ad0in14 ad0in13 ad0in12 ad0in11 ad0in10 ad0in9 ad0in8 ad0in7 ad0in6 ad0in5 ad0in4 ad0in3 ad0in2 ad0in1 ad0in0 avcc0 vref0 p17/db15/to36/dd15 p16/db14/to35/dd14 p15/db13/to34/dd13 p14/db12/to33/dd12 p13/db11/to32/dd11 p221/crx0/hreq# p225/a12/cs3# vss xin xout vcc-bus p224/a11/cs2# p30/a15/tin4/dd16 p31/a16/tin5/dd17 p32/a17/tin6/dd18 p33/a18/tin7/dd19 p34/a19/tin30/dd20 p35/a20/tin31/dd21 p36/a21/tin32/dd22 p37/a22/tin33/dd23 p20/a23/dd24 p21/a24/dd25 p22/a25/dd26 p23/a26/dd27 vcc-bus vss p24/a27/dd28 p25/a28/dd29 p26/a29/dd30 p27/a30/dd31 p00/db0/to21/dd0 p01/db1/to22/dd1 p02/db2/to23/dd2 p03/db3/to24/dd3 p04/db4/to25/dd4 p05/db5/to26/dd5 p06/db6/to27/dd6 p07/db7/to28/dd7 p10/db8/to29/dd8 p11/db9/to30/dd9 p12/db10/to31/dd10 jtms jtck/nbdclk jtrst jtdo/nbdevnt# jtdi/nbdsync# p103/to11/tin24 p104/to12/tin25/dd3 p105/to13/sclki4/sclko4/dd2 p106/to14/txd4/dd1 p107/to15/rxd4/dd0 p124/tclk0/a9/dd3 p125/tclk1/a10/dd2 p126/tclk2/cs2#/dd1 p127/tclk3/cs3#/dd0 mod2(note 1) p130/tin16/pwmoff0/din0 p131/tin17/pwmoff1/din1 p132/tin18/din2 p133/tin19/din3 p134/tin20/txd3/din4 p135/tin21/rxd3 p136/tin22/crx1 p137/tin23/ctx1 vcce p150/tin0/clkout/wr# p153/tin3/wait# p41/blw#/ble# p42/bhw#/bhe# excvcc vss p43/rd# p44/cs0#/tin8 p45/cs1#/tin9 p46/a13/tin10 p47/a14/tin11 p220/ctx0/hack# vdde p102/to10/ctx0 p101/to9/crx0 p100/to8 p117/to7/to36/dd4 p116/to6/to35/dd5 p115/to5/to34/dd6 p114/to4/to33/dd7 p113/to3/to32/dd8 p112/to2/to31/dd9 p111/to1/to30/dd10 p110/to0/to29/dd11 vss vcce fp mod1 mod0 reset# p97/to20/dd12 p96/to19/dd13 p95/to18/rxd5/dd14 p94/to17/txd5/dd15 p93/to16/sclki5/sclko5 p77/rtdclk/crx1/nbdd3 p76/rtdack/ctx1/nbdd2 p75/rtdrxd/rxd3/nbdd1 p74/rtdtxd/txd3/nbdd0 p73/hack#/tin26 p72/hreq#/tin27 p71/wait# p70/clkout/wr#/bclk sbi# p63 p62 p61 excvdd package: 144pin lqfp(plqp0144ka-a) note 1: mod2 must be connected to the ground (gnd). notes: ? the symbol "#" suffixed to the pin (or signal) name means that the pins (or signals) are "l." as for package dimension, refer to "appendix1.1 package dimensional outline drawing." 1.4 pin assignments 1-16 1 32192/32195/32196 group hardware manual overview rev.1.10 rej09b0123-0110 apr.06.07 figure 1.4.2 pin assignment diagram of the m32192f8xwg (top view) 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 vss jtms jtdo p103/to11 p107/to15 p150/tin0 excvcc p45/cs1# vss vdde p100/to8 jtrst jtdi /nbdsync# p153/tin3 vss p46/a13 /tin10 p47/a14 /tin11 p44/cs0# /tin8 p31/a16 /tin5/dd17 p35/a20 /tin31/dd21 p20/a23 /dd24 p26/a29 /dd30 p02/db2 /to23/dd2 p17/db15 /to36/dd15 p221/crx0 /wr# /din1 /pwmoff1 mod2 (note 1) /tin24 /rxd4/dd0 p126/tclk2 /cs2#/dd1 p125/tclk1 /a10/dd2 /wait# /crx1 p132/tin18 /din2 p133/tin19 /din3 p127/tclk3 /cs3#/dd0 /txd4/dd1 p102/to10 /ctx0 p101/to9 /crx0 p116/to6 /to35/dd5 jtck vss /dd2 p225/a12 p41/blw# p43/rd# /sclki4 /sclko4 /ble# xout p115/to5 vss p224/a11 /cs2# p34/a19 /tin30/dd20 p37/a22 /tin33/dd23 p23/a26 /dd27 p27/a30 /dd31 p03/db3 /to24/dd3 p06/db6 /to27/dd6 p11/db9 /to30/dd9 xin /txd3/din4 p42/bhw# /bhe# vcce p130/tin16 /din0 /pwmoff0 /to34/dd6 p112/to2 /to31/dd9 p30/a15 /tin4/dd16 p33/a18 /tin7/dd19 p36/a21 /tin32/dd22 p22/a25 /dd26 p24/a27 /dd28 p00/db0 /to21/dd0 p04/db4 /to25/dd4 p07/db7 /to28/dd7 p12/db10 /to31/dd10 p13/db11 /to32/dd11 p14/db12 /to33/dd12 vccer vcc-bus p114/to4 /to33/dd7 p110/to0 /to29/dd11 p94/to17 /txd5/dd15 p76/rtdack /ctx1/nbdd2 p73/hack# /tin26 p70/clkout /wr#/bclk p86/rxd1 /to22 p113/to3 /to32/dd8 p95/to18 /rxd5/dd14 vcce vss mod1 fp vcc-bus mod0 reset# vss vss vss /crx1/nbdd3 /sclki5 /sclko5 p74/rtdtxd /txd3/nbdd0 /rxd3/nbdd1 vref0 ad0in2 ad0in6 ad0in10 ad0in15 vcce p71/wait avcc0 ad0in3 ad0in7 ad0in11 ad0in12 ad0in14 vss /sclko1 /to21 p63 sbi# excvdd ad0in0 ad0in4 ad0in8 excvcc vccer /sclko0 /to24 p62 p61 vss ad0in1 ad0in5 ad0in9 ad0in13 avss0 vss c ade fgh j klmnpr b /clkout p136 /tin22 /ctx1 p137/tin23 /rxd3 p135/tin21 p131/tin17 p134/tin20 p106/to14 /a9/dd3 p124/tclk0 ball thermal- ball (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) (note 2) thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- /to28 p174/txd2 /to26 p82/txd0 /to27 p175/rxd2 /tin25/dd3 p104/to12 /to30/dd10 p111/to1 /dd12 p97/to20 /dd13 p96/to19 /to23 p85/txd1 /to25 p83/rxd0 p105/to13 p93/to16 p87/sclki1 p84/sclk0 p75/rtdrxd /tin27 p72/hreq# p77/rtdclk /nbdevnt# tin9 p220/ctx0 /hack# /hreq# /cs3# p32/a17 /tin6/dd18 p21/a24 /dd25 p25/a28 /dd29 p01/db1 /to22/dd1 p05/db5 /to26/dd5 p10/db8 /to29/dd8 p15/db13 /to34/dd13 p16/db14 /to35/dd14 /nbdclk p117/to7 /to36/dd4 n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- ball thermal- package: 224pin fbga note 1: mod2 must be connected to the ground (gnd). note 2: thermal ball must be connected to the ground (gnd). note: the symbol "#" suffixed to the pin (or signal) name means that the pins (or signals) are "l." 1.4 pin assignments 1 1-17 overview 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 port function 1 function 2 dri function nbd function function type state during reset state upon exiting reset 1 p221/crx0/hreq# p221 crx0(note 1) hreq#(note 1) - input p221 input hi-z hi-z during single-chip and external extension modes p225 input hi-z hi-z during processor mode a12 output hi-z undefined 3 vss - vss - - - - vss - - - 4 xin - xin - - input xin input - - 5 xout - xout - - output xout output xout xout 6 vcc-bus - vcc-bus - - - - vcc-bus - - - during single-chip and external extension modes p224 input hi-z hi-z during processor mode a11 output hi-z undefined during single-chip and external extension modes p30 input hi-z hi-z during processor mode a15 output hi-z undefined during single-chip and external extension modes p31 input hi-z hi-z during processor mode a16 output hi-z undefined during single-chip and external extension modes p32 input hi-z hi-z during processor mode a17 output hi-z undefined during single-chip and external extension modes p33 input hi-z hi-z during processor mode a18 output hi-z undefined during single-chip and external extension modes p34 input hi-z hi-z during processor mode a19 output hi-z undefined during single-chip and external extension modes p35 input hi-z hi-z during processor mode a20 output hi-z undefined during single-chip and external extension modes p36 input hi-z hi-z during processor mode a21 output hi-z undefined during single-chip and external extension modes p37 input hi-z hi-z during processor mode a22 output hi-z undefined during single-chip and external extension modes p20 input hi-z hi-z during processor mode a23 output hi-z undefined during single-chip and external extension modes p21 input hi-z hi-z during processor mode a24 output hi-z undefined during single-chip and external extension modes p22 input hi-z hi-z during processor mode a25 output hi-z undefined during single-chip and external extension modes p23 input hi-z hi-z during processor mode a26 output hi-z undefined 20 vcc-bus - vcc-bus - - - - vcc-bus - - - 21 vss - vss - - - - vss - - - during single-chip and external extension modes p24 input hi-z hi-z during processor mode a27 output hi-z undefined during single-chip and external extension modes p25 input hi-z hi-z during processor mode a28 output hi-z undefined during single-chip and external extension modes p26 input hi-z hi-z during processor mode a29 output hi-z undefined during single-chip and external extension modes p27 input hi-z hi-z during processor mode a30 output hi-z undefined during single-chip and external extension modes p00 input hi-z hi-z during processor mode db0 input/output hi-z hi-z vcc-bus vcc-bus to21(note 1) 7 p224/a11/cs2# p224 a11 cs2#(note 1) - - - - - - tin30 tin31 tin32 tin33 cs3#(note 1) tin4 tin5 tin6 condition function pin no. pin state when reset symbol type power supply - input/ output dd16 input/ output - input/ output 2 p225/a12/cs3# 8 p30/a15/tin4/dd16 p30 a15 p225 a12 9 p31/a16/tin5/dd17 p31 a16 dd19 input/ output 10 p32/a17/tin6/dd18 p32 a17 tin7 dd17 input/ output dd18 input/ output dd20 input/ output 11 p33/a18/tin7/dd19 12 p34/a19/tin30/dd20 p34 a19 p33 a18 13 p35/a20/tin31/dd21 p35 a20 dd23 input/ output 14 p36/a21/tin32/dd22 p36 a21 dd21 input/ output dd22 input/ output dd24 input/ output 15 p37/a22/tin33/dd23 16 p20/a23/dd24 p20 a23 p37 a22 17 p21/a24/dd25 p21 a24 dd27 input/ output 18 p22/a25/dd26 p22 a25 dd25 input/ output dd26 input/ output dd28 input/ output 19 p23/a26/dd27 22 p24/a27/dd28 p24 a27 p23 a26 23 p25/a28/dd29 p25 a28 input/ output 24 p26/a29/dd30 p26 a29 25 p27/a30/dd31 dd31 - - p00 db0 p27 a30 26 p00/db0/to21/dd0 vcc-bus vcc-bus dd0(note 1) input/ output dd29 input/ output dd30 input/ output the pins directed for input go to a high-impedance state (hi-z) when reset. the term ?when reset? means that input on reset# pin is held ?l? (the device remains reset), and that the reset# pin is released back ?h? (the device comes out of reset). table 1.4.1 pin assignments of the m32192f8xfp, m32195f4xfp, and m32196f8xfp (1/4) note 1: the pins outputted at two places. 1.4 pin assignments 1-18 1 32192/32195/32196 group hardware manual overview rev.1.10 rej09b0123-0110 apr.06.07 port function 1 function 2 dri function nbd function function type state during reset state upon exiting reset during single-chip and external extension modes p01 input hi-z hi-z during processor mode db1 input/output hi-z hi-z during single-chip and external extension modes p02 input hi-z hi-z during processor mode db2 input/output hi-z hi-z during single-chip and external extension modes p03 input hi-z hi-z during processor mode db3 input/output hi-z hi-z during single-chip and external extension modes p04 input hi-z hi-z during processor mode db4 input/output hi-z hi-z during single-chip and external extension modes p05 input hi-z hi-z during processor mode db5 input/output hi-z hi-z during single-chip and external extension modes p06 input hi-z hi-z during processor mode db6 input/output hi-z hi-z during single-chip and external extension modes p07 input hi-z hi-z during processor mode db7 input/output hi-z hi-z during single-chip and external extension modes p10 input hi-z hi-z during processor mode db8 input/output hi-z hi-z during single-chip and external extension modes p11 input hi-z hi-z during processor mode db9 input/output hi-z hi-z during single-chip and external extension modes p12 input hi-z hi-z during processor mode db10 input/output hi-z hi-z during single-chip and external extension modes p13 input hi-z hi-z during processor mode db11 input/output hi-z hi-z during single-chip and external extension modes p14 input hi-z hi-z during processor mode db12 input/output hi-z hi-z during single-chip and external extension modes p15 input hi-z hi-z during processor mode db13 input/output hi-z hi-z during single-chip and external extension modes p16 input hi-z hi-z during processor mode db14 input/output hi-z hi-z during single-chip and external extension modes p17 input hi-z hi-z during processor mode db15 input/output hi-z hi-z 42 vref0 - vref0 - - - avcc0 vref0 - - - 43 avcc0 - avcc0 - - - - avcc0 - - - 44 ad0in0 - ad0in0 - - input ad0in0 input hi-z hi-z 45 ad0in1 - ad0in1 - - input ad0in1 input hi-z hi-z 46 ad0in2 - ad0in2 - - input ad0in2 input hi-z hi-z 47 ad0in3 - ad0in3 - - input ad0in3 input hi-z hi-z 48 ad0in4 - ad0in4 - - input ad0in4 input hi-z hi-z 49 ad0in5 - ad0in5 - - input ad0in5 input hi-z hi-z 50 ad0in6 - ad0in6 - - input ad0in6 input hi-z hi-z 51 ad0in7 - ad0in7 - - input ad0in7 input hi-z hi-z 52 ad0in8 - ad0in8 - - input ad0in8 input hi-z hi-z 53 ad0in9 - ad0in9 - - input ad0in9 input hi-z hi-z 54 ad0in10 - ad0in10 - - input ad0in10 input hi-z hi-z 55 ad0in11 - ad0in11 - - input ad0in11 input hi-z hi-z 56 ad0in12 - ad0in12 - - input ad0in12 input hi-z hi-z 57 ad0in13 - ad0in13 - - input ad0in13 input hi-z hi-z 58 ad0in14 - ad0in14 - - input ad0in14 input hi-z hi-z 59 ad0in15 - ad0in15 - - input ad0in15 input hi-z hi-z to35(note 1) to36(note 1) to31(note 1) to32(note 1) to33(note 1) to34(note 1) to24(note 1) to25(note 1) to26(note 1) to27(note 1) p02 db2 symbol type to22(note 1) to23(note 1) 31 p05/db5/ to26/ dd5 p05 db5 32 p06/db6/ to27/ dd6 p06 db6 db7 dd5(note 1) input/ output dd6(note 1) input/ output dd7(note 1) input/ output to28(note 1) 33 p07/db7/ to28/ dd7 34 p10/db8/ to29/ dd8 35 p11/db9/ to30/ dd9 p11 dd8(note 1) p10 db8 to29(note 1) to30(note 1) 37 p13/db11/ to32/ dd11 p13 input/ output 36 p12/db10/ to31/ dd10 p12 db10 dd10(note 1) input/ output 39 p15/db13/ to34/ dd13 p15 input/ output 38 p14/db12/ to33/ dd12 p14 db12 dd12(note 1) input/ output 40 p16/db14/ to35/ dd14 p16 db14 41 p17/db15/ to36/ dd15 p17 db15 28 p02/db2/ to23/ dd2 pin no. dd15(note 1) dd13(note 1) db13 dd11(note 1) db11 dd9(note 1) db9 27 p01/db1/ to22/ dd1 p01 db1 29 p03/db3/ to24/ dd3 p03 db3 30 p04/db4/ to25/ dd4 p04 db4 pin state when reset dd2(note 1) input/ output dd3(note 1) input/ output dd1(note 1) input/ output condition power supply vcc-bus avcc0 dd4(note 1) input/ output function input/ output input/ output dd14(note 1) input/ output input/ output p07 table 1.4.1 pin assignments of the m32192f8xfp, m32195f4xfp, and m32196f8xfp (2/4) note 1: the pins outputted at two places. 1.4 pin assignments 1 1-19 overview 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 table 1.4.1 pin assignments of the m32192f8xfp, m32195f4xfp, and m32196f8xfp (3/4) note 1: the pins outputted at two places. note 2: the jtck, jtdi, jtdo and jtms pins are reset by input from the jtrst pin, and not reset from the reset# pin. port function 1 function 2 dri function nbd function function type state during reset state upon exiting reset 60 avss0 - avss0 - - - - avss0 - - - 61 excvcc - excvcc - - - - excvcc - - - 62 vss - vss - - - - vss - - - 63 p174/txd2/to28 p174 txd2 to28(note 1) - input/output p174 input hi-z hi-z 64 p175/rxd2/to27 p175 rxd2 to27(note 1) - input/output p175 input hi-z hi-z 65 vccer - vccer - - input/output - vccer - - - 66 p82/txd0/to26 p82 txd0 to26(note 1) - input/output p82 input hi-z hi-z 67 p83/rxd0/to25 p83 rxd0 to25(note 1) - input/output p83 input hi-z hi-z 68 p84/sclki0/ sclko0/to24 p84 sclki0/ sclko0 to24(note 1) - input/ output p84 input hi-z hi-z 69 p85/txd1/to23 p85 txd1 to23(note 1) - input/output p85 input hi-z hi-z 70 p86/rxd1/to22 p86 rxd1 to22(note 1) - input/output p86 input hi-z hi-z 71 p87/sclki1/ sclko1/to21 p87 sclki1/ sclko1 to21(note 1) - input/ output p87 input hi-z hi-z 72 vss - vss - - - - vss - - - 73 excvdd - excvdd - - - - excvdd - - - 74 p61 p61 - - - input/output p61 input hi-z hi-z 75 p62 p62 - - - input/output p62 input hi-z hi-z 76 p63 p63 - - - input/output p63 input hi-z hi-z 77 sbi# sbi# - - input sbi# input hi-z hi-z 78 p70/clkout/wr# /bclk p70 clkout/ wr# bclk - input/ output p70 input hi-z hi-z 79 p71/wait# p71 wait# - - input/output p71 input hi-z hi-z 80 p72/hreq#/tin27 p72 hreq# tin27 - input/output p72 input hi-z hi-z 81 p73/hack#/tin26 p73 hack# tin26 - input/output p73 input hi-z hi-z 82 p74/rtdtxd/ txd3/nbdd0 p74 rtdtxd txd3(note 1) nbdd0 input/ output p74 input hi-z hi-z 83 p75/rtdrxd/ rxd3/nbdd1 p75 rtdrxd rxd3(note 1) nbdd1 input/ output p75 input hi-z hi-z 84 p76/rtdack/ ctx1/nbdd2 p76 rtdack ctx1(note 1) nbdd2 input/ output p76 input hi-z hi-z 85 p77/rtdclk/ crx1/nbdd3 p77 rtdclk crx1(note 1) nbdd3 input/ output p77 input hi-z hi-z 86 p93/to16/ sclki5/sclko5 p93 to16 sclki5/ sclko5 - input/ output p93 input hi-z hi-z 87 p94/to17/ txd5/dd15 p94 to17 txd5 dd15(note 1) input/ output p94 input hi-z hi-z 88 p95/to18/ rxd5/dd14 p95 to18 rxd5 dd14(note 1) input/ output p95 input hi-z hi-z 89 p96/to19/dd13 p96 to19 - dd13(note 1) input/output p96 input hi-z hi-z 90 p97/to20/dd12 p97 to20 - dd12(note 1) input/output p97 input hi-z hi-z 91 reset# - reset# - - input reset# input hi-z hi-z 92 mod0 - mod0 - - input mod0 input hi-z hi-z 93 mod1 - mod1 - - input mod1 input hi-z hi-z 94 fp - fp - - input fp input hi-z hi-z 95 vcce - vcce - - - - vcce - - - 96 vss - vss - - - - vss - - - pin state when reset pin no. symbol type condition function power supply vcce vcce vcce 97 p110/to0/to29/dd11 p110 to0 to29(note 1) dd11(note 1) input/output p110 input hi-z hi-z 98 p111/to1/to30/dd10 p111 to1 to30(note 1) dd10(note 1) input/output p111 input hi-z hi-z 99 p112/to2/to31/dd9 p112 to2 to31(note 1) dd9(note 1) input/output p112 input hi-z hi-z 100 p113/to3/to32/dd8 p113 to3 to32(note 1) dd8(note 1) input/output p113 input hi-z hi-z 101 p114/to4/to33/dd7 p114 to4 to33(note 1) dd7(note 1) input/output p114 input hi-z hi-z 102 p115/to5/to34/dd6 p115 to5 to34(note 1) dd6(note 1) input/output p115 input hi-z hi-z 103 p116/to6/to35/dd5 p116 to6 to35(note 1) dd5(note 1) input/output p116 input hi-z hi-z 104 p117/to7/to36/dd4 p117 to7 to36(note 1) dd4(note 1) input/output p117 input hi-z hi-z 105 p100/to8 p100 to8 - - input/output p100 input hi-z hi-z 106 p101/to9/crx0 p101 to9 crx0(note 1) - input/output p101 input hi-z hi-z 107 p102/to10/ctx0 p102 to10 ctx0(note 1) - input/output p102 input hi-z hi-z 108 vdde - vdde - - - - vdde - - - 109 jtms (note 2) - jtms - - input jtms input hi-z hi-z 110 jtck/nbdclk (note 2) - jtck - nbdclk input jtck input hi-z hi-z 111 jtrst (note 2) - jtrst - - input jtrst input hi-z hi-z 112 jtdo/nbdevnt# (note 2) - jtdo - nbdevnt# output jtdo output hi-z hi-z 113 jtdi/nbdsync# (note 2) - jtdi - nbdsync# input jtdi input hi-z hi-z 114 p103/to11/tin24 p103 to11 tin24 - input/output p103 input hi-z hi-z 115 p104/to12/tin25/dd3 p104 to12 tin25 dd3(note 1) input/output p104 input hi-z hi-z 116 p105/to13/ sclki4/sclko4/dd2 p105 to13 sclki4/ sclko4 dd2(note 1) input/ output p105 input hi-z hi-z 117 p106/to14/txd4/dd1 p106 to14 txd4 dd1(note 1) input/output p106 input hi-z hi-z vcce vcce 1.4 pin assignments 1-20 1 32192/32195/32196 group hardware manual overview rev.1.10 rej09b0123-0110 apr.06.07 table 1.4.1 pin assignments of the m32192f8xfp, m32195f4xfp, and m32196f8xfp (4/4) note 1: the pins outputted at two places. port function 1 function 2 dri function nbd function function type state during reset state upon exiting reset 118 p107/to15/rxd4/dd0 p107 to15 rxd4 dd0(*) input/output p107 input hi-z hi-z during single-chip and external extension modes p124 input hi-z hi-z during processor mode a9 output hi-z hi-z during single-chip and external extension modes p125 input hi-z hi-z during processor mode a10 output hi-z hi-z 121 p126/tclk2/ cs2#/dd1 p126 tclk2 cs2#(*) dd1(*) input/ output p126 input hi-z hi-z 122 p127/tclk3/ cs3#/dd0 p127 tclk3 cs3#(*) dd0(*) input/ output p127 input hi-z hi-z 123 mod2 - mod2 - - - mod2 - - - 124 p130/tin16/ pwmoff0/din0 p130 tin16/ pwmoff0 -din0 input/ output p130 input hi-z hi-z 125 p131/tin17/ pwmoff1/din1 p131 tin17/ pwmoff1 -din1 input/ output p131 input hi-z hi-z 126 p132/tin18/din2 p132 tin18 - din2 input/output p132 input hi-z hi-z 127 p133/tin19/din3 p133 tin19 - din3 input/output p133 input hi-z hi-z 128 p134/tin20/ txd3/din4 p134 tin20 txd3(*) din4 input/ output p134 input hi-z hi-z 129 p135/tin21/rxd3 p135 tin21 rxd3(*) - input/output p135 input hi-z hi-z 130 p136/tin22/crx1 p136 tin22 crx1(*) - input/output p136 input hi-z hi-z 131 p137/tin23/ctx1 p137 tin23 ctx1(*) - input/output p137 input hi-z hi-z 132 vcce - vcce - - - - vcce - - - 133 p150/tin0/ clkout/wr# p150 tin0 clkout(*)/ wr#(*) - input/ output p150 input hi-z hi-z 134 p153/tin3/wait# p153 tin3 wait#(*) - input/output p153 input hi-z hi-z during single-chip mode p41 input hi-z hi-z during external extension and processor modes blw#/ ble# output hi-z "h" level during single-chip mode p42 input hi-z hi-z during external extension and processor modes bhw#/ bhe# output hi-z "h" level 137 excvcc - excvcc - - - - excvcc - - - 138 vss - vss - - - - vss - - - during single-chip mode p43 input hi-z hi-z during external extension and processor modes rd# output hi-z "h" level during single-chip and external extension modes p44 input hi-z hi-z during processor mode cs0# output hi-z "h" level during single-chip and external extension modes p45 input hi-z hi-z during processor mode cs1# output hi-z "h" level during single-chip and external extension modes p46 input hi-z hi-z during processor mode a13 output hi-z undefined during single-chip and external extension modes p47 input hi-z hi-z during processor mode a14 output hi-z undefined 144 p220/ctx0/hack# p220 ctx0(*) hack#(*) - input/output p220 input hi-z hi-z a10 dd2(*) input/ output 119 p124/tclk0/a9/dd3 p124 tclk0 a9 dd3(*) input/ output 120 p125/tclk1/a10/dd2 p125 tclk1 symbol type condition 139 p43/rd# p43 rd# - input/ output function - input/ output 140 p44/cs0#/tin8 p44 cs0# - input/ output 142 p46/a13/tin10 p46 a13 143 p47/a14/tin11 p47 a14 pin state when reset pin no. - input/ output - input/ output 141 p45/cs1#/tin9 p45 cs1# tin11 - tin8 tin9 tin10 136 p42/bhw#/bhe# p42 bhw#/ bhe# -- input/ output 135 p41/blw#/ble# p41 blw#/ ble# -- input/ output power supply vcce vcc-bus vcc-bus 1.4 pin assignments 1 1-21 overview 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 1.4 pin assignments note 1: the pins outputted at two places. note 2: the jtck, jtdi, jtdo and jtms pins are reset by input from the jtrst pin, and not reset from the reset# pin. note 3: thermal ball must be connected to the ground (gnd). table 1.4.2 pin assignments of the m32192f8xwg (1/4) port function 1 function 2 dri function nbd function function type state during reset state upon exitin g reset a1 ------ - - - - - - - - - - a2 vss - vss - - - - vss - - - a3 p220/ctx0/hack# p220 ctx0 ( note 1 ) hack# ( note 1 ) -in p ut/out p ut vcc-bus p220 in p ut hi-z hi-z during single-chip and external extension modes p45 input hi-z hi-z durin g p rocessor mode cs1# out p ut hi-z "h" level a5 excvcc - excvcc - - - - excvcc - - - a6 p150/tin0/clkout/wr# p150 tin0 clkout (note 1 ) - input/output vcc-bus p150 input hi-z hi-z a7 p135/tin21/rxd3 p135 tin21 rxd3 ( note1 ) -in p ut/out p ut vcce p135 in p ut hi-z hi-z a8 p131/tin17/ pwmoff1/din1 p131 tin17/ pwmoff1 - din1 input/output vcce p131 input hi-z hi-z a9 mod2 - mod2 - - - vcce mod2 - - - a10 p126/tclk2/cs2#/dd1 p126 tclk2 cs2# ( note 1 ) dd1 ( note 1 ) in p ut/out p ut vcce p126 in p ut hi-z hi-z a11 p107/to15/rxd4/dd0 p107 to15 rxd4 dd0 ( note 1 ) in p ut/out p ut vcce p107 in p ut hi-z hi-z a12 p103/to11/tin24 p103 to11 tin24 - in p ut/out p ut vcce p103 in p ut hi-z hi-z a13 jtdo/nbdevnt# ( note 2 ) - jtdo - nbdevnt# out p ut vcce jtdo out p ut hi-z hi-z a14 jtms ( note 2 ) -jtms - - in p ut vcce jtms in p ut hi-z hi-z a15 vss - vss - - - - vss - - - b1 xin - xin - - in p ut vcc-bus xin in p ut - - b2 n.c. - - - - - - - - - - b3 p221/crx0/hreq# p221 crx0 ( note 1 ) hreq# ( note 1 ) -in p ut vcc-bus p221 in p ut hi-z hi-z during single-chip and external extension modes p46 input hi-z hi-z durin g p rocessor mode a13 out p ut hi-z undefined b5 vss - vss - - - - vss - - - b6 p153/tin3/wait# p153 tin3 wait# ( note 1 ) -in p ut/out p ut vcc-bus p153 in p ut hi-z hi-z b7 p136/tin22/crx1 p136 tin22 crx1 ( note 1 ) -in p ut/out p ut vcce p136 in p ut hi-z hi-z b8 p132/tin18/din2 p132 tin18 - din2 in p ut/out p ut vcce p132 in p ut hi-z hi-z b9 n.c. - - - - - - - - - - b10 n.c. - - - - - - - - - - b11 p106/to14/txd4/dd1 p106 to14 txd4 dd1 ( note 1 ) in p ut/out p ut vcce p106 in p ut hi-z hi-z b12 jtdi/nbdsync# ( note 2 ) - jtdi - nbdsync# in p ut vcce jtdi in p ut hi-z hi-z b13 jtrst ( note 2 ) -jtrst - - in p ut vcce jtrst in p ut hi-z hi-z b14 p102/to10/ctx0 p102 to10 ctx0 ( note 1 ) -in p ut/out p ut vcce p102 in p ut hi-z hi-z b15 vdde - vdde - - - - vdde - - - c1 xout - xout - - in p ut vcc-bus xout out p ut xout xout c2 n.c. - - - - - - - - - - input/output during single-chip and external extension modes p225 input hi-z hi-z in p ut/out p ut durin g p rocessor mode a12 out p ut hi-z undefined input/output during single-chip and external extension modes p47 input hi-z hi-z in p ut/out p ut durin g p rocessor mode a14 out p ut hi-z undefined in p ut/out p ut durin g sin g le-chi p mode p43 in p ut hi-z hi-z input/output during single-chip and external extension modes rd# output hi-z "h" level in p ut/out p ut durin g sin g le-chi p mode p41 in p ut hi-z hi-z input/output during single-chip and external extension modes blw#/ ble# output hi-z "h" level c7 p137/tin23/ctx1 p137 tin23 ctx1 ( note 1 ) -in p ut/out p ut vcce p137 in p ut hi-z hi-z c8 p133/tin19/din3 p133 tin19 - din3 in p ut/out p ut vcce p133 in p ut hi-z hi-z c9 p127/tclk3/cs3#/dd0 p127 tclk3 cs3# ( note 1 ) dd0 ( note 1 ) in p ut/out p ut vcce p127 in p ut hi-z hi-z input/output during single-chip and external extension modes p125 input hi-z hi-z in p ut/out p ut durin g p rocessor mode a10 out p ut hi-z hi-z c11 p105/to13/ sclki4/sclko4/dd2 p105 to13 sclki4/ sclko4 dd2 (note 1) input/output vcce p105 input hi-z hi-z c12 vss - vss - - - - vss - - - c13 jtck/nbdclk ( note 2 ) - jtck - nbdclk in p ut vcce jtck in p ut hi-z hi-z c14 p101/to9/crx0 p101 to9 crx0 ( note 1 ) -in p ut/out p ut vcce p101 in p ut hi-z hi-z c15 p100/to8 p100 to8 - - in p ut/out p ut vcce p100 in p ut hi-z hi-z input/output during single-chip and external extension modes p224 input hi-z hi-z in p ut/out p ut durin g p rocessor mode a11 out p ut hi-z undefined d2 vss - vss - - - - vss - - - d3 vcc-bus - vcc-bus - - - - vcc-bus - - - input/output during single-chip and external extension modes p44 input hi-z hi-z in p ut/out p ut durin g p rocessor mode cs0# out p ut hi-z "h" level in p ut/out p ut durin g sin g le-chi p mode p42 in p ut hi-z hi-z input/output during single-chip and external extension modes bhw#/ bhe# output hi-z "h" level d6 vcce - vcce - - - - vcce - - - d7 p134/tin20/txd3/din4 p134 tin20 txd3 ( note 1 ) din4 in p ut/out p ut vcce p134 in p ut hi-z hi-z d8 p130/tin16/ pwmoff0/din0 p130 tin16/ pwmoff0 - din0 input/output vcce p130 input hi-z hi-z d9 n.c. - - - - - - - - - - d10 n.c. - - - - - - - - - - input/output during single-chip and external extension modes p124 input hi-z hi-z in p ut/out p ut durin g p rocessor mode a9 out p ut hi-z hi-z d12 p104/to12/tin25/dd3 p104 to12 tin25 dd3 ( note 1 ) in p ut/out p ut vcce p104 in p ut hi-z hi-z d13 p117/to7/to36/dd4 p117 to7 to36 ( note 1 ) dd4 ( note 1 ) in p ut/out p ut vcce p117 in p ut hi-z hi-z d14 p116/to6/to35/dd5 p116 to6 to35 ( note 1 ) dd5 ( note 1 ) in p ut/out p ut vcce p116 in p ut hi-z hi-z d15 p115/to5/to34/dd6 p115 to5 to34 ( note 1 ) dd6 ( note 1 ) in p ut/out p ut vcce p115 in p ut hi-z hi-z e1 n.c. - - - - - - - - - - input/output during single-chip and external extension modes p30 input hi-z hi-z in p ut/out p ut durin g p rocessor mode a15 out p ut hi-z undefined e3 vccer - vccer - - in p ut/out p ut - vccer - - - input/output during single-chip and external extension modes p31 input hi-z hi-z in p ut/out p ut durin g p rocessor mode a16 out p ut hi-z undefined e5 thermal-ball ( note 3 ) -vss - - - - vss- - - pin no. symbol function type power supply condition pin state when reset a4 p45/cs1#/tin9 p45 cs1# tin9 - input/output vcc-bus b4 p46/a13/tin10 p46 a13 tin10 - input/output vcc-bus cs3# (note 1) - vcc-bus c3 p225/a12/cs3# p225 a12 tin11 - vcc-bus c4 p47/a14/tin11 p47 a14 - - vcc-bus c5 p43/rd# p43 rd# - - vcc-bus c6 p41/blw#/ble# p41 blw#/ ble# a10 dd2 (note 1) vcce c10 p125/tclk1/a10/dd2 p125 tclk1 cs2# (note 1) - vcc-bus d1 p224/a11/cs2# p224 a11 tin8 - vcc-bus d4 p44/cs0#/tin8 p44 cs0# - - vcc-bus d5 p42/bhw#/bhe# p42 bhw#/ bhe# a9 dd3 (note 1) vcce d11 p124/tclk0/a9/dd3 p124 tclk0 tin4 dd16 vcc-bus e2 p30/a15/tin4/dd16 p30 a15 tin5 dd17 vcc-bus e4 p31/a16/tin5/dd17 p31 a16 1-22 1 32192/32195/32196 group hardware manual overview rev.1.10 rej09b0123-0110 apr.06.07 1.4 pin assignments note 1: the pins outputted at two places. note 2: the jtck, jtdi, jtdo and jtms pins are reset by input from the jtrst pin, and not reset from the reset# pin. note 3: thermal ball must be connected to the ground (gnd). table 1.4.2 pin assignments of the m32192f8xwg (2/4) port function 1 function 2 dri function nbd function function type state during reset state upon exitin g reset e6 thermal-ball ( note 3 ) - vss - - - - vss - - - e7 thermal-ball ( note 3 ) - vss - - - - vss - - - e8 thermal-ball ( note 3 ) - vss - - - - vss - - - e9 thermal-ball ( note 3 ) - vss - - - - vss - - - e10 thermal-ball ( note 3 ) - vss - - - - vss - - - e11 thermal-ball ( note 3 ) - vss - - - - vss - - - e12 p111/to1/to30/dd10 p111 to1 to30 ( note 1 ) dd10 ( note 1 ) in p ut/out p ut vcce p111 in p ut hi-z hi-z e13 p114/to4/to33/dd7 p114 to4 to33 ( note 1 ) dd7 ( note 1 ) in p ut/out p ut vcce p114 in p ut hi-z hi-z e14 p113/to3/to32/dd8 p113 to3 to32 ( note 1 ) dd8 ( note 1 ) in p ut/out p ut vcce p113 in p ut hi-z hi-z e15 p112/to2/to31/dd9 p112 to2 to31 ( note 1 ) dd9 ( note 1 ) in p ut/out p ut vcce p112 in p ut hi-z hi-z during single-chip and external extension modes p34 input hi-z hi-z durin g p rocessor mode a19 out p ut hi-z undefined during single-chip and external extension modes p33 input hi-z hi-z durin g p rocessor mode a18 out p ut hi-z undefined during single-chip and external extension modes p32 input hi-z hi-z durin g p rocessor mode a17 out p ut hi-z undefined during single-chip and external extension modes p35 input hi-z hi-z durin g p rocessor mode a20 out p ut hi-z undefined f5 thermal-ball ( note 3 ) - vss - - - - vss - - - f6 thermal-ball ( note 3 ) - vss - - - - vss - - - f7 thermal-ball ( note 3 ) - vss - - - - vss - - - f8 thermal-ball ( note 3 ) - vss - - - - vss - - - f9 thermal-ball ( note 3 ) - vss - - - - vss - - - f10 thermal-ball ( note 3 ) - vss - - - - vss - - - f11 thermal-ball ( note 3 ) - vss - - - - vss - - - f12 vcce - vcce - - - - vcce - - - f13 p110/to0/to29/dd11 p110 to0 to29 ( note 1 ) dd11 ( note 1 ) in p ut/out p ut vcce p110 in p ut hi-z hi-z f14 n.c. - - - - - - - - - - f15 vss - vss - - - - vss - - - during single-chip and external extension modes p37 input hi-z hi-z durin g p rocessor mode a22 out p ut hi-z undefined during single-chip and external extension modes p36 input hi-z hi-z durin g p rocessor mode a21 out p ut hi-z undefined g3 n.c. - - - - - - - - - - during single-chip and external extension modes p20 input hi-z hi-z durin g p rocessor mode a23 out p ut hi-z undefined g5 thermal-ball ( note 3 ) - vss - - - - vss - - - g6 thermal-ball ( note 3 ) - vss - - - - vss - - - g7 thermal-ball ( note 3 ) - vss - - - - vss - - - g8 thermal-ball ( note 3 ) - vss - - - - vss - - - g9 thermal-ball ( note 3 ) - vss - - - - vss - - - g10 thermal-ball ( note 3 ) - vss - - - - vss - - - g11 thermal-ball ( note 3 ) - vss - - - - vss - - - g12 mod1 - mod1 - - in p ut vcce mod1 in p ut hi-z hi-z g13 n.c. - - - - - - - - - - g14 n.c. - - - - - - - - - - g15 fp - fp - - in p ut vcce fp in p ut hi-z hi-z during single-chip and external extension modes p23 input hi-z hi-z durin g p rocessor mode a26 out p ut hi-z undefined during single-chip and external extension modes p22 input hi-z hi-z durin g p rocessor mode a25 out p ut hi-z undefined during single-chip and external extension modes p21 input hi-z hi-z durin g p rocessor mode a24 out p ut hi-z undefined h4 vcc-bus - vcc-bus - - - - vcc-bus - - - h5 thermal-ball ( note 3 ) - vss - - - - vss - - - h6 thermal-ball ( note 3 ) - vss - - - - vss - - - h7 thermal-ball ( note 3 ) - vss - - - - vss - - - h8 thermal-ball ( note 3 ) - vss - - - - vss - - - h9 thermal-ball ( note 3 ) - vss - - - - vss - - - h10 thermal-ball ( note 3 ) - vss - - - - vss - - - h11 thermal-ball ( note 3 ) - vss - - - - vss - - - h12 p97/to20/dd12 p97 to20 - dd12 ( note 1 ) in p ut/out p ut vcce p97 in p ut hi-z hi-z h13 mod0 - mod0 - - in p ut vcce mod0 in p ut hi-z hi-z h14 reset# - reset# - - in p ut vcce reset# in p ut hi-z hi-z h15 n.c. - - - - - - - - - - j1 vss - vss - - - - vss - - - during single-chip and external extension modes p24 input hi-z hi-z durin g p rocessor mode a27 out p ut hi-z undefined during single-chip and external extension modes p25 input hi-z hi-z durin g p rocessor mode a28 out p ut hi-z undefined j4 vss - vss - - - - vss - - - j5 thermal-ball ( note 3 ) - vss - - - - vss - - - j6 thermal-ball ( note 3 ) - vss - - - - vss - - - j7 thermal-ball ( note 3 ) - vss - - - - vss - - - j8 thermal-ball ( note 3 ) - vss - - - - vss - - - j9 thermal-ball ( note 3 ) - vss - - - - vss - - - j10 thermal-ball ( note 3 ) - vss - - - - vss - - - j11 thermal-ball ( note 3 ) - vss - - - - vss - - - j12 p96/to19/dd13 p96 to19 - dd13 ( note 1 ) in p ut/out p ut vcce p96 in p ut hi-z hi-z j13 p94/to17/txd5/dd15 p94 to17 txd5 dd15 ( note 1 ) in p ut/out p ut vcce p94 in p ut hi-z hi-z j14 p95/to18/rxd5/dd14 p95 to18 rxd5 dd14 ( note 1 ) in p ut/out p ut vcce p95 in p ut hi-z hi-z j15 n.c. - - - - - - - - - - during single-chip and external extension modes p27 input hi-z hi-z durin g p rocessor mode a30 out p ut hi-z undefined during single-chip and external extension modes p00 input hi-z hi-z durin g p rocessor mode db0 in p ut/out p ut hi-z hi-z pin no. symbol function type power supply condition pin state when reset f1 p34/a19/tin30/dd20 p34 a19 tin30 dd20 input/output vcc-bus f2 p33/a18/tin7/dd19 p33 a18 tin7 dd19 input/output vcc-bus f3 p32/a17/tin6/dd18 p32 a17 tin6 dd18 input/output vcc-bus f4 p35/a20/tin31/dd21 p35 a20 tin31 dd21 input/output vcc-bus g1 p37/a22/tin33/dd23 p37 a22 tin33 dd23 input/output vcc-bus g2 p36/a21/tin32/dd22 p36 a21 tin32 dd22 input/output vcc-bus g4 p20/a23/dd24 p20 a23 - dd24 input/output vcc-bus h1 p23/a26/dd27 p23 a26 - dd27 input/output vcc-bus h2 p22/a25/dd26 p22 a25 - dd26 input/output vcc-bus h3 p21/a24/dd25 p21 a24 - dd25 input/output vcc-bus j2 p24/a27/dd28 p24 a27 - dd28 input/output vcc-bus j3 p25/a28/dd29 p25 a28 - dd29 input/output vcc-bus k1 p27/a30/dd31 p27 a30 - dd31 input/output vcc-bus k2 p00/db0/to21/dd0 p00 db0 to21 (note 1) dd0 (note 1) input/output vcc-bus 1 1-23 overview 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 1.4 pin assignments note 1: the pins outputted at two places. note 2: the jtck, jtdi, jtdo and jtms pins are reset by input from the jtrst pin, and not reset from the reset# pin. note 3: thermal ball must be connected to the ground (gnd). table 1.4.2 pin assignments of the m32192f8xwg (3/4) port function 1 function 2 dri function nbd function function type state during reset state upon exitin g reset during single-chip and external extension modes p01 input hi-z hi-z durin g p rocessor mode db1 in p ut/out p ut hi-z hi-z during single-chip and external extension modes p26 input hi-z hi-z durin g p rocessor mode a29 out p ut hi-z undefined k5 thermal-ball ( note 3 ) - vss - - - - vss - - - k6 thermal-ball ( note 3 ) - vss - - - - vss - - - k7 thermal-ball ( note 3 ) - vss - - - - vss - - - k8 thermal-ball ( note 3 ) - vss - - - - vss - - - k9 thermal-ball ( note 3 ) - vss - - - - vss - - - k10 thermal-ball ( note 3 ) - vss - - - - vss - - - k11 thermal-ball ( note 3 ) - vss - - - - vss - - - k12 vss - vss - - - - vss - - - k13 p76/rtdack/ctx1/nbdd2 p76 rtdack ctx1 ( note 1 ) nbdd2 in p ut/out p ut vcce p76 in p ut hi-z hi-z k14 p77/rtdclk/crx1/nbdd3 p77 rtdclk crx1 ( note 1 ) nbdd3 in p ut/out p ut vcce p77 in p ut hi-z hi-z k15 p93/to16/sclki5/sclko5 p93 to16 sclki5/ sclko5 - input/output vcce p93 input hi-z hi-z during single-chip and external extension modes p03 input hi-z hi-z durin g p rocessor mode db3 in p ut/out p ut hi-z hi-z during single-chip and external extension modes p04 input hi-z hi-z durin g p rocessor mode db4 in p ut/out p ut hi-z hi-z during single-chip and external extension modes p05 input hi-z hi-z durin g p rocessor mode db5 in p ut/out p ut hi-z hi-z during single-chip and external extension modes p02 input hi-z hi-z durin g p rocessor mode db2 in p ut/out p ut hi-z hi-z l5 thermal-ball ( note 3 ) - vss - - - - vss - - - l6 thermal-ball ( note 3 ) - vss - - - - vss - - - l7 thermal-ball ( note 3 ) - vss - - - - vss - - - l8 thermal-ball ( note 3 ) - vss - - - - vss - - - l9 thermal-ball ( note 3 ) - vss - - - - vss - - - l10 thermal-ball ( note 3 ) - vss - - - - vss - - - l11 thermal-ball ( note 3 ) - vss - - - - vss - - - l12n.c. --- - -- ---- l13 p73/hack#/tin26 p73 hack# tin26 - in p ut/out p ut vcce p73 in p ut hi-z hi-z l14 p74/rtdtxd/txd3/nbdd0 p74 rtdtxd txd3 ( note 1 ) nbdd0 in p ut/out p ut vcce p74 in p ut hi-z hi-z l15 p75/rtdrxd/rxd3/nbdd p75 rtdrxd rxd3 ( note 1 ) nbdd1 in p ut/out p ut vcce p75 in p ut hi-z hi-z during single-chip and external extension modes p06 input hi-z hi-z durin g p rocessor mode db6 in p ut/out p ut hi-z hi-z during single-chip and external extension modes p07 input hi-z hi-z durin g p rocessor mode db7 in p ut/out p ut hi-z hi-z during single-chip and external extension modes p10 input hi-z hi-z durin g p rocessor mode db8 in p ut/out p ut hi-z hi-z m4 vref0 - vref0 - - - avcc0 vref0 - - - m5 ad0in2 - ad0in2 - - in p ut avcc0 ad0in2 in p ut hi-z hi-z m6 ad0in6 - ad0in6 - - in p ut avcc0 ad0in6 in p ut hi-z hi-z m7 ad0in10 - ad0in10 - - in p ut avcc0 ad0in10 in p ut hi-z hi-z m8 ad0in14 - ad0in14 - - in p ut avcc0 ad0in14 in p ut hi-z hi-z m9 ad0in15 - ad0in15 - - in p ut avcc0 ad0in15 in p ut hi-z hi-z m10n.c. --- - -- ---- m11 p174/txd2/to28 p174 txd2 to28 ( note 1 ) -in p ut/out p ut vcce p174 in p ut hi-z hi-z m12 vcce - vcce - - - - vcce - - - m13 p70/clkout/wr#/bclk p70 clkout/ wr# bclk - input/output vcce p70 input hi-z hi-z m14 p71/wait# p71 wait# - - in p ut/out p ut vcce p71 in p ut hi-z hi-z m15 p72/hreq#/tin27 p72 hreq# tin27 - in p ut/out p ut vcce p72 in p ut hi-z hi-z during single-chip and external extension modes p11 input hi-z hi-z durin g p rocessor mode db9 in p ut/out p ut hi-z hi-z during single-chip and external extension modes p12 input hi-z hi-z durin g p rocessor mode db10 in p ut/out p ut hi-z hi-z during single-chip and external extension modes p15 input hi-z hi-z durin g p rocessor mode db13 in p ut/out p ut hi-z hi-z n4 n.c. - - - - - - - - - - n5 avcc0 - avcc0 - - - - avcc0 - - - n6 ad0in3 - ad0in3 - - in p ut avcc0 ad0in3 in p ut hi-z hi-z n7 ad0in7 - ad0in7 - - in p ut avcc0 ad0in7 in p ut hi-z hi-z n8 ad0in11 - ad0in11 - - in p ut avcc0 ad0in11 in p ut hi-z hi-z n9 vss - vss - - - - vss - - - n10n.c. --- - -- ---- n11 p82/txd0/to26 p82 txd0 to26 ( note 1 ) -in p ut/out p ut vcce p82 in p ut hi-z hi-z n12 p85/txd1/to23 p85 txd1 to23 ( note 1 ) -in p ut/out p ut vcce p85 in p ut hi-z hi-z n13 p87/sclki1/ sclko1/to21 p87 sclki1/ sclko1 to21 (note 1) - input/output vcce p87 input hi-z hi-z n14 p63 p63 - - - in p ut/out p ut vcce p63 in p ut hi-z hi-z n15 sbi# sbi# - - in p ut vcce sbi# in p ut hi-z hi-z p1 n.c. - - - - - - - - - - during single-chip and external extension modes p13 input hi-z hi-z durin g p rocessor mode db11 in p ut/out p ut hi-z hi-z during single-chip and external extension modes p16 input hi-z hi-z durin g p rocessor mode db14 in p ut/out p ut hi-z hi-z during single-chip and external extension modes p17 input hi-z hi-z durin g p rocessor mode db15 in p ut/out p ut hi-z hi-z p5 ad0in0 - ad0in0 - - in p ut avcc0 ad0in0 in p ut hi-z hi-z p6 ad0in4 - ad0in4 - - in p ut avcc0 ad0in4 in p ut hi-z hi-z p7 ad0in8 - ad0in8 - - in p ut avcc0 ad0in8 in p ut hi-z hi-z p8 ad0in12 - ad0in12 - - in p ut avcc0 ad0in12 in p ut hi-z hi-z pin no. symbol function type power supply condition pin state when reset k3 p01/db1/to22/dd1 p01 db1 to22 (note 1) dd1 (note 1) input/output vcc-bus k4 p26/a29/dd30 p26 a29 - dd30 input/output vcc-bus l1 p03/db3/to24/dd3 p03 db3 to24 (note 1) dd3 (note 1) input/output vcc-bus l2 p04/db4/to25/dd4 p04 db4 to25 (note 1) dd4 (note 1) input/output vcc-bus l3 p05/db5/to26/dd5 p05 db5 to26 (note 1) dd5 (note 1) input/output vcc-bus l4 p02/db2/to23/dd2 p02 db2 to23 (note 1) dd2 (note 1) input/output vcc-bus m1 p06/db6/to27/dd6 p06 db6 to27 (note 1) dd6 (note 1) input/output vcc-bus m2 p07/db7/to28/dd7 p07 db7 to28 (note 1) dd7 (note 1) input/output vcc-bus m3 p10/db8/to29/dd8 p10 db8 to29 (note 1) dd8 (note 1) input/output vcc-bus n1 p11/db9/to30/dd9 p11 db9 to30 (note 1) dd9 (note 1) input/output vcc-bus n2 p12/db10/to31/dd10 p12 db10 to31 (note 1) dd10 (note 1) input/output vcc-bus n3 p15/db13/to34/dd13 p15 db13 to34 (note 1) dd13 (note 1) input/output vcc-bus p2 p13/db11/to32/dd11 p13 db11 to32 (note 1) dd11 (note 1) input/output vcc-bus p3 p16/db14/to35/dd14 p16 db14 to35 (note 1) dd14 (note 1) input/output vcc-bus p4 p17/db15/to36/dd15 p17 db15 to36 (note 1) dd15 (note 1) input/output vcc-bus 1-24 1 32192/32195/32196 group hardware manual overview rev.1.10 rej09b0123-0110 apr.06.07 1.4 pin assignments note 1: the pins outputted at two places. note 2: the jtck, jtdi, jtdo and jtms pins are reset by input from the jtrst pin, and not reset from the reset# pin. note 3: thermal ball must be connected to the ground (gnd). table 1.4.2 pin assignments of the m32192f8xwg (4/4) port function 1 function 2 dri function nbd function function type state during reset state upon exitin g reset p9 excvcc - excvcc ---- excvcc --- p10n.c. --- - -- ---- p11 vccer - vccer -- input/output - vccer --- p12 p84/sclki0 / sclko0/to24 - sclki0 / sclko0 -- input/output vcce p84 input hi-z hi-z p13n.c. --- - -- ---- p14 p62 p62 -- - input/output vcce p62 input hi-z hi-z p15 p61 p61 -- - input/output vcce p61 input hi-z hi-z r1 n.c. - - - - - - - - - - during single-chip and external extension modes p14 input hi-z hi-z during processor mode db12 input/output hi-z hi-z r3 n.c. - - - - - - - - - - r4 vss - vss ---- vss --- r5 ad0in1 - ad0in1 -- input avcc0 ad0in1 input hi-z hi-z r6 ad0in5 - ad0in5 -- input avcc0 ad0in5 input hi-z hi-z r7 ad0in9 - ad0in9 -- input avcc0 ad0in9 input hi-z hi-z r8 ad0in13 - ad0in13 -- input avcc0 ad0in13 input hi-z hi-z r9 avss0 - avss0 ---- avss0 --- r10n.c. --- - -- ---- r11 p175/rxd2/to27 p175 rxd2 to27 (note 1) - input/output vcce p175 input hi-z hi-z r12 p83/rxd0/to25 p83 rxd0 to25 (note 1) - input/output vcce p83 input hi-z hi-z r13 p86/rxd1/to22 p86 rxd1 to22 (note 1) - input/output vcce p86 input hi-z hi-z r14 vss - vss ---- vss --- r15 excvdd - excvdd ---- excvdd --- pin no. symbol function type power supply condition pin state when reset r2 p14/db12/ to33/dd12 p14 db12 to33 (note 1) dd12 (note 1) input/output vcc-bus chapter 2 cpu 2.1 cpu registers 2.2 general-purpose registers 2.3 control registers 2.4 accumulator 2.5 program counter 2.6 data formats 2.7 supplementary explanation for bset, bclr, lock and unlock instruction execution 2-2 2 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 cpu 2.3 control registers there are 6 control registers which are the processor status word register (psw), the condition bit register (cbr), the interrupt stack pointer (spi), the user stack pointer (spu), the backup pc (bpc) and the floating- point status register (fpsr). the dedicated mvtc and mvfc instructions are used for writing and reading these control registers. in addition, the sm bit, ie bit and c bit of the psw can also be set by the setpsw or clrpsw instruction. figure 2.3.1 control registers 2.1 cpu registers 2.1 cpu registers the m32r-fpu has 16 general-purpose registers, 6 control registers, an accumulator and a program counter. the accumulator is of 56-bit configuration, and all other registers are of 32-bit configuration. 2.2 general-purpose registers the 16 general-purpose registers (r0?r15) are of 32-bit width and are used to retain data and base address, as well as for integer calculations, floating-point operations, etc. r14 is used as the link register and r15 as the stack pointer. the link register is used to store the return address when executing a subroutine call instruction. the interrupt stack pointer (spi) and the user stack pointer (spu) are alternately represented by r15 depend- ing on the value of the stack mode (sm) bit in the processor status word register (psw). upon exiting the reset state, the value of the general-purpose registers is undefined. figure 2.2.1 general-purpose registers b0 b0 b31 r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 (link register) r15 (stack pointer) (note 1) note 1: the stack pointer functions as either the spi or the spu depending on the value of the sm bit in the psw. b31 b0 backup pc bpc cr6 b31 psw cbr spi spu cr0 cr1 cr2 cr3 processor status word register condition bit register interrupt stack pointer user stack pointer crn notes: ? crn (n = 0-3, 6 and 7) denotes the control register number. the dedicated mvtc and mvfc instructions are used for writing and reading these control registers. the sm bit, ie bit and c bit of the psw can also be set by the setpsw or clrpsw instruction. floating-point status register fpsr cr7 2 2-3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 cpu 2.3 control registers 2.3.1 processor status word register: psw (cr0) 0000 0 00 0000000 7 6 5 4 3 2 1 8 9 1011121314b15 b0 ? ? 00000?00000000 bc sm ie c 23 24 25 26 27 28 29 30 b31 17 18 19 20 21 22 b16 bie bsm bpsw field 00 psw field 2-4 2 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 cpu 2.3 control registers 2.3.2 condition bit register: cbr (cr1) the condition bit register (cbr) is derived from the psw register by extracting its condition (c) bit. the value written to the psw register?s c bit is reflected in this register. the register can only be read. (writing to the register with the mvtc instruction is ignored.) upon exiting the reset state, the value of cbr is h?0000 0000. b0 b31 0000000000000000000000000000000 c cbr 2.3.3 interrupt stack pointer: spi (cr2) and user stack pointer: spu (cr3) the interrupt stack pointer (spi) and the user stack pointer (spu) retain the address of the current stack pointer. these registers can be accessed as the general-purpose register r15. r15 switches between repre- senting the spi and spu depending on the value of the stack mode (sm) bit in the psw. upon exiting the reset state, the values of the spi and spu are undefined. b0 b31 spi spi b0 b31 spu spu 2.3.4 backup pc: bpc (cr6) the backup pc (bpc) is used to save the value of the program counter (pc) when an eit occurs. bit 31 is fixed to "0." when an eit occurs, the register sets either the pc value when the eit occurred or the pc value for the next instruction depending on the type of eit. the bpc value is loaded to the pc when the rte instruction is executed. however, the values of the lower 2 bits of the pc are always "00" when returned. (pc always returns to the word-aligned address.) upon exiting the reset state, the value of the bpc is undefined. b0 b31 0 bpc bpc 2 2-5 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 cpu 2.3.5 floating-point status register: fpsr (cr7) 0000 0 0 00000000 234567891011121314b15 1 b0 0 0 00000100000000 ev dn ce cx cu cz co cv rm 18 19 20 21 22 23 24 25 26 27 28 29 30 b31 17 b16 eu ex fs fx fu fz 0 fo 0 fv ez eo 2-6 2 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 cpu 26 cu 0: no underflow exception occurred r (note 3) underflow exception cause bit 1: an underflow exception occurred. when the bit is set to "1", the execution of an fpu operation instruction will clear it to "0." 27 cz 0: no zero divide exception occurred. r (note 3) zero divide exception cause bit 1: a zero divide exception occurred. when the bit is set to "1", the execution of an fpu operation instruction will clear it to "0." 28 co 0: no overflow exception occurred. r (note 3) overflow exception cause bit 1: an overflow exception occurred. when the bit is set to "1", the execution of an fpu operation instruction will clear it to "0." 29 cv 0: no invalid operation exception occurred. r (note 3) invalid operation exception cause bit 1: an invalid operation exception occurred. when the bit is set to "1", the execution of an fpu operation instruction will clear it to "0." 30, 31 rm 00: round to nearest r w rounding mode selection bit 01: round toward zero 10: round toward + infinity 11: round toward ? infinity note 1: the phrase ?if eit processing unexecuted? means whenever one of the exceptions occurs, enable bits 17 to 21 are set to "0" which masks the eit processing so that it cannot be executed. if two exceptions occur at the same time and their corresponding exception enable bits are set differently (one enabled, and the other masked), eit processing is executed. in this case, these two flags do not change state regardless of the enable bits settings. note 2: if a denormalized number is given to the operand when dn = "0", an unimplemented exception occurs. note 3: this bit is cleared by writing "0." writing "1" has no effect (the bit retains the value it had before the write). 2.3 control registers 2 2-7 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 cpu 2.4 accumulator 2.4 accumulator the accumulator (acc) is a 56-bit register used for dsp function instructions. the accumulator is handled as a 64-bit register when accessed for read or write. when reading data from the accumulator, the value of bit 8 is sign-extended. when writing data to the accumulator, bits 0 to 7 are ignored. the accumulator is also used for the multiply instruction ?mul,? in which case the accumulator value is destroyed by instruction execution. use the mvtachi and mvtaclo instructions for writing to the accumulator. the mvtachi and mvtaclo instructions write data to the high-order 32 bits (bits 0?31) and the low-order 32 bits (bits 32?63), respectively. use the mvfachi, mvfaclo and mvfacmi instructions for reading data from the accumulator. the mvfachi, mvfaclo and mvfacmi instructions read data from the high-order 32 bits (bits 0?31), the low-order 32 bits (bits 32?63) and the middle 32 bits (bits 16?47), respectively. upon exiting the reset state, the value of accumulator is undefined. 15 b0 16 7 8 31 32 47 48 b6 3 a cc (note 1) read range of mvfacmi instruction write and read ranges of mvtaclo and mvfaclo instructions write and read ranges of mvtachi and mvfachi instructions note 1: when read, bits 0 to 7 always show the sign-extended value of the value of bit 8. writing to this bit field is ignored. 2.5 program counter the program counter (pc) is a 32-bit counter that retains the address of the instruction being executed. since the m32r fpu instruction starts with even-numbered addresses, the lsb (bit 31) is always "0." upon exiting the reset state, the value of pc is h?0000 0000. b0 b31 0 pc pc 2-8 2 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 cpu 2.6 data formats 2.6.1 data types the data types that can be handled by the m32r-fpu instruction set are signed or unsigned 8, 16 and 32-bit integers and single-precision floating-point numbers. the signed integers are represented by 2?s complements. figure 2.6.1 data types signed byte (8-bit) integer unsigned byte (8-bit) integer signed halfword (16-bit) integer unsigned halfword (16-bit) integer signed word (32-bit) integer unsigned word (32-bit) integer single-precision floating-point number b0 b0 b0 b0 b0 b0 b7 b7 b15 b15 b31 b31 s s s b0 b1 b8 b9 b31 se f s: sign bit; e: exponent field; f: fraction field 2.6 data formats 2 2-9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 cpu 2.6.2 data formats (1) data formats in registers the data sizes in the m32r-fpu registers are always words (32 bits). when loading byte (8-bit) or halfword (16-bit) data from memory into a register, the data is sign-extended (ldb, ldh instructions) or zero-extended (ldub, lduh instructions) to a word (32-bit) quantity before being loaded in the register. when storing data from a register into a memory, the 32-bit data, the 16-bit data on the lsb side and the 8-bit data on the lsb side of the register are stored into memory by the st, sth and stb instructions, respectively. figure 2.6.2 data formats in registers rn b0 b31 2-10 2 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 cpu bit endian (h'01) byte endian (h'01234567) big endian little endian note: even when bits are arranged in big endian, h'01 is not b'10000000. hh hl lh ll h'01 h'23 h'45 h'67 ll lh hl hh h'67 h'45 h'23 h'01 b'0000001 b0 b7 b'0000001 b7 b0 figure 2.6.4 general endian system (2) data formats in memory the data sizes in memory can be byte (8 bits), halfword (16 bits) or word (32 bits). although byte data can be located at any address, halfword and word data must be located at the addresses aligned with a halfword boundary (least significant address bit = "0") or a word boundary (two low-order address bits = "00"), respectively. if an attempt is made to access memory data that overlaps the halfword or word boundary, an address exception occurs. figure 2.6.3 data formats in memory (3) endian the diagrams below show a general endian system and the endian adopted for the m32r family micro- computers. address byte halfword word +0 address +1 address +2 address +3 address b0 b31 byte byte byte byte halfword halfword word 7 8 15 16 23 24 b0 15 b0 b31 b31 2.6 data formats 2 2-11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 cpu constant transfer ld24 rdest, #imm24 ldi rdest, #imm16 ldi rdest, #imm8 seth rdest, #imm16 b23 b0 rdest imm24 b31 b0 ld24 rdest, #imm24 b15 b0 rdest imm16 b31 b0 seth rdest, #imm16 00 8 15 00 00 register to register transfer mv rdest, rsrc control register transfer mvfc rdest, crsrc mvtc rsrc, crdest rsrc b31 b0 rdest b31 b0 rsrc b31 b0 crdest b31 b0 mvtc rsrc, crdest mv rdest, rsrc note: the condition bit c changes state when data is written to cr0 (psw) using the mvtc instruction. figure 2.6.6 transfer instructions little/little ll lh hl hh big/big hh hl lh ll little/big hh hl lh ll endian (bit/byte) data arrangement microcomputer family name 7700 and m16c families m32r family 31?24 7?0 23?16 15?8 0?7 24?31 8?15 16?23 bit number +0 +1 +2 +3 +0 +1 +2 +3 +0 +1 +2 +3 address example: 0x01234567 .byte 67,45,23,01 .byte 01,23,45,67 .byte 01,23,45,67 note: the m32r family uses the big endian for both bits and bytes. 7?0 31?24 15?8 23?16 figure 2.6.5 endian adopted for the m32r family (4) transfer instructions 2.6 data formats 2-12 2 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 cpu (5) transfer from memory (signed) to registers signed 32 bits ld24 rsrc, #label ld rdest, @rsrc signed 16 bits ld24 rsrc, #label ldh rdest, @rsrc signed 8 bits ld24 rsrc, #label ldb rdest, @rsrc label rdest b31 b0 +0 +1 +2 +3 rdest label 00 00 ff ff determined by msb b31 b0 +0 +1 +2 +3 rdest label 00 00 00 ff ff ff b31 b0 +0 +1 +2 +3 determined by msb memory register 0: positive number 1: negative number 0: positive number 1: negative number unsigned 32 bits ld24 rsrc, #label ld rdest, @rsrc unsigned 16 bits ld24 rsrc, #label ldub rdest, @rsrc unsigned 8 bits ld24 rsrc, #label lduh rdest, @rsrc rdest 00 00 b31 b0 label +0 +1 +2 +3 label +0 +1 +2 +3 rdest b31 b0 label +0 +1 +2 +3 rdest 00 00 00 b31 b0 memory register figure 2.6.7 transfer from memory (signed) to registers (6) transfer from memory (unsigned) to registers figure 2.6.8 transfer from memory (unsigned) to registers 2.6 data formats 2 2-13 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 cpu (7) notes on data transfer when transferring data, be aware that data arrangements in registers and memory are different. figure 2.6.9 differences in data arrangements word data (32 bits) +0 +1 +2 +3 b0 b31 hh hl lh ll b0 b31 hh hl lh ll halfword data (16 bits) +0 +1 +2 +3 b0 b31 h l b0 b15 h l byte data (8 bits) +0 +1 +2 +3 b0 b31 b0 b7 (r0?r15) (r0?r15) (r0?r15) +0 +1 +2 +3 b0 b31 b8 b15 (r0?r15) +0 +1 +2 +3 b0 b31 b16 b23 (r0?r15) +0 +1 +2 +3 b0 b31 b24 b31 (r0?r15) +0 +1 +2 +3 b0 b31 h l b16 b31 h l (r0?r15) data in registers data in memory 2.6 data formats 2-14 2 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 cpu 2.7 supplementary explanation for bset, bclr, lock and unlock instruction execution the lock bit is set when executing the bset or bclr instruction, and is cleared when the bset or bclr instruction finishes. the lock instruction sets the lock bit, as well as performs an ordinary load operation. the unlock instruc- tion is used to clear the lock bit. the lock bit is located inside the cpu, and cannot directly be accessed for read or write by users. this bit controls granting of bus control requested by devices other than the cpu. ? when lock bit = "0" control of the bus requested by devices other than the cpu is granted ? when lock bit = "1" control of the bus requested by devices other than the cpu is denied in the 32192/ 32195/ 32196 group, control of the bus may be requested by devices other than the cpu in the following two cases: ? when dma transfer is requested by the internal dmac ? when hreq# input is pulled low to request that the cpu be placed in a hold state 2.7 supplementary explanation for bset, bclr, lock and unlock instruction execution chapter 3 address space 3.1 outline of the address space 3.2 operation modes 3.3 internal rom and external extension areas 3.4 internal ram and sfr areas 3.5 eit vector entry 3.6 icu vector table 3.7 notes on address space address space 3-2 3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 3.1 outline of the address space the logical addresses of the m32r are always handled in 32 bits, providing a linear address space of up to 4 gbytes. the address space of the m32r/ecu consists of the following: (1) user space ? internal rom area ? external extension area ? internal ram area ? sfr (special function register) area the 2 gbytes from the address h?0000 0000 to the address h?7fff ffff comprise the user space. located in this space are the internal rom area, an external extension area, the internal ram area and the sfr (special function register) area (in which a set of internal peripheral i/o registers exist). of these, the internal rom and external extension areas are located differently depending on mode set- tings as will be described later. (2) system space (this area is closed to the user) the 2 gbytes from the address h?8000 0000 to the address h?ffff ffff comprise the system space. this space (except for sfr area for nbd control) is reserved for use by development tools such as an in- circuit emulator and debug monitor. 3.1 outline of the address space address space 3 3-3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 3.2 operation modes the microcomputer is placed in one of the following modes depending on how cpu operation mode is set by mod0 and mod1 pins. the operation mode used for rewriting the internal flash memory is described separately in section 6.6, "programming the internal flash memory." table 3.2.1 operation mode settings mod0 mod1 mod2 (note 1) operation mode (note 2) vss vss vss single-chip mode vss vcce vss external extension mode vcce vss vss processor mode (fp = vss) vcce vcce vss (settings inhibited) ? ? vcce (settings inhibited) note 1: connect vcce and vss to the vcce input power supply and ground, respectively. note 2: for the operation mode used to rewrite the internal flash memory (fp = vcce) which is not shown in the above table, see section 6.6, "programming the internal flash memory." the internal rom and external extension areas are located differently depending on how operation mode is set. (all other areas in the address space are located the same way.) the following diagram shows how the internal rom and external extension areas are mapped into the address space in each operation mode. (for flash rewrite mode, see section 6.6, "programming the internal flash memory.") 3.2 operation modes address space 3-4 3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 logical address single chip mode external extension mode processor mode logical address (64 mbytes) cs3 area (8 mbytes) sfr area (16 kbytes) internal ram area (176 kbytes) h'0000 0000 h'7fff ffff h'0000 0000 h'ffff ffff h'8000 0000 h'007f ffff h'0080 0000 h'0010 0000 h'0080 4000 h'0082 ffff h'0083 0000 h'00ff ffff h'03ff ffff h'0380 0000 h'037f ffff h'0300 0000 h'02ff ffff h'0280 0000 h'027f ffff h'0200 0000 h'01ff ffff h'0180 0000 h'017f ffff h'0100 0000 h'000f ffff h'0080 3fff internal rom area (1 mbyte) user space system space 2 gbytes 2 gbytes cs3 area (8 mbytes) cs2 area (8 mbytes) cs2 area (8 mbytes) cs1 area (8 mbytes) cs1 area (8 mbytes) cs0 area (8 mbytes) cs0 area (7 mbytes) internal rom area (1 mbyte) sfr area (16 kbytes) internal ram area (176 kbytes) (64 mbytes) (64 mbytes) ghost area in 64-mbyte units sfr area (16 kbytes) internal ram area (176 kbytes) notes: ? cs0?cs3 areas: external extension areas of up to 32 mbytes : indicates ghost area. this area must not be used during programming intentionally. h'e000 0000 nbd control . . . . . . figure 3.2.1 address space of the m32192f8 3.2 operation modes address space 3 3-5 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 3.2.2 address space of the m32195f4 logical address single chip mode external extension mode processor mode logical address (64 mbytes) cs3 area (8 mbytes) sfr area (16 kbytes) internal ram area (32 kbytes) h'0000 0000 h'7fff ffff h'0000 0000 h'ffff ffff h'8000 0000 h'007f ffff h'0080 0000 h'0008 0000 h'000f ffff h'0010 0000 h'0080 4000 h'0080 bfff h'0080 c000 h'00ff ffff h'03ff ffff h'0380 0000 h'037f ffff h'0300 0000 h'02ff ffff h'0280 0000 h'027f ffff h'0200 0000 h'01ff ffff h'0180 0000 h'017f ffff h'0100 0000 h'0007 ffff h'0080 3fff user space system space 2 gbytes 2 gbytes cs3 area (8 mbytes) cs2 area (8 mbytes) cs2 area (8 mbytes) cs1 area (8 mbytes) cs1 area (8 mbytes) cs0 area (8 mbytes) cs0 area (7 mbytes) internal rom area (512 kbytes) internal rom area (512 kbytes) reserved area (512 kbytes) sfr area (16 kbytes) internal ram area (32 kbytes) (64 mbytes) (64 mbytes) ghost area in 64-mbyte units sfr area (16 kbytes) internal ram area (32 kbytes) h'e000 0000 nbd control . . . . . . notes: cs0?cs3 areas: external extension areas of up to 32 mbytes : indicates ghost area. this area must not be used during programming intentionally. 3.2 operation modes address space 3-6 3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 3.2.3 address space of the m32196f8 logical address single chip mode external extension mode processor mode logical address (64 mbytes) cs3 area (8 mbytes) sfr area (16 kbytes) internal ram area (64 kbytes) h'0000 0000 h'7fff ffff h'0000 0000 h'ffff ffff h'8000 0000 h'007f ffff h'0080 0000 h'0010 0000 h'0080 4000 h'0081 3fff h'0081 4000 h'00ff ffff h'03ff ffff h'0380 0000 h'037f ffff h'0300 0000 h'02ff ffff h'0280 0000 h'027f ffff h'0200 0000 h'01ff ffff h'0180 0000 h'017f ffff h'0100 0000 h'000f ffff h'0080 3fff internal rom area (1 mbyte) user space system space 2 gbytes 2 gbytes cs3 area (8 mbytes) cs2 area (8 mbytes) cs2 area (8 mbytes) cs1 area (8 mbytes) cs1 area (8 mbytes) cs0 area (8 mbytes) cs0 area (7 mbytes) internal rom area (1 mbyte) sfr area (16 kbytes) internal ram area (64 kbytes) (64 mbytes) (64 mbytes) ghost area in 64-mbyte units sfr area (16 kbytes) internal ram area (64 kbytes) h'e000 0000 nbd control . . . . . . notes: cs0?cs3 areas: external extension areas of up to 32 mbytes : indicates ghost area. this area must not be used during programming intentionally. 3.2 operation modes address space 3 3-7 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 3.3 internal rom and external extension areas the 64-mbyte area in the user space from the address h?0000 0000 to the address h?03ff ffff comprise the internal rom and external extension areas. for the address mapping of these areas that differs with each operation mode, see section 3.2, "operation modes." 3.3.1 internal rom area the internal rom is allocated to the addresses shown below. located at the beginning of this area is the eit vector entry (and the icu vector table). table 3.3.1 internal rom allocation address type name size allocation address m32192f8, m32196f8 1 mbytes h?0000 0000 to h?000f ffff m32195f4 512 kbytes h'0000 0000 to h'0007 ffff 3.3.2 external extension area the external extension area is only available when external extension or processor mode is selected by opera- tion mode settings. when accessing the external extension area, the control signals necessary to access external devices are output. the cs0# through cs3# signals are output corresponding to the address mapping of the external extension area. the cs0#, cs1#, cs2# and cs3# signals are output for the cs0, cs1, cs2 and cs3 areas, respec- tively. table 3.3.2 address mapping of the external extension area in each operation mode operation mode address mapping of external extension area single-chip mode none external extension mode addresses h?0010 0000 to h?007f ffff (cs0 area: 7 mbytes) addresses h?0100 0000 to h?017f ffff (cs1 area: 8 mbytes) addresses h?0200 0000 to h?027f ffff (cs2 area: 8 mbytes) addresses h?0300 0000 to h?037f ffff (cs3 area: 8 mbytes) processor mode addresses h?0000 0000 to h?007f ffff (cs0 area: 8 mbytes) addresses h?0100 0000 to h?017f ffff (cs1 area: 8 mbytes) addresses h?0200 0000 to h?027f ffff (cs2 area: 8 mbytes) addresses h?0300 0000 to h?037f ffff (cs3 area: 8 mbytes) 3.3 internal rom and external extension areas 3.4 internal ram and sfr areas address space 3-8 3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 3.4 internal ram and sfr areas the 8-mbyte area from the address h?0080 0000 to the address h?00ff ffff comprise the internal ram and sfr (special function register) areas. of these, the space that the user can actually use is a 256-kbyte area from the address h?0080 0000 to the address h?0083 ffff. the other areas here are ghosts in 256-kbyte units. (do not use the ghost area intentionally during programming.) 3.4.1 internal ram area the internal ram area is allocated to the addresses shown below. table 3.4.1 internal ram allocation address type name size allocation address m32192f8 176 kbytes h?0080 4000 to h?0082 ffff m32195f4 32 kbytes h'0080 4000 to h'0080 bfff m32196f8 64 kbytes h?0080 4000 to h?0081 3fff 3.4.2 sfr (special function register) area the addresses h?0080 0000 to h?0080 3ffff comprise the sfr (special function register) area. located in this area are the internal peripheral i/o registers. figure 3.4.1 internal ram and sfr (special function register) areas of the m32192f8 h'0080 0000 h'0080 3fff h'0080 4000 h'0082 ffff h'0080 ffff h'0081 0000 sfr area (16 kbytes) internal ram (176 kbytes) virtual flash emulation areas separated in 8-kbyte units can be allocated here. for details, see section 6.7. 3.4 internal ram and sfr areas address space 3 3-9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 h'0080 0000 h'0080 3fff h'0080 4000 h'0080 bfff sfr area (16 kbytes) internal ram (32 kbytes) virtual flash emulation areas separated in 8-kbyte units can be allocated here. for details, see section 6.7. figure 3.4.2 internal ram and sfr (special function register) areas of the m32195f4 h'0080 0000 h'0080 3fff h'0080 4000 h'0081 3fff sfr area (16 kbytes) internal ram (64 kbytes) virtual flash emulation areas separated in 8-kbyte units can be allocated here. for details, see section 6.7. figure 3.4.3 internal ram and sfr (special function register) areas of the m32196f8 3.4 internal ram and sfr areas address space 3-10 3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (1/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 0000 interrupt vector register 5-5 (ivect) h'0080 0002 (use inhibited area) h'0080 0004 interrupt request mask register (use inhibited area) 5-6 (imask) h'0080 0006 sbi control register (use inhibited area) 5-7 (sbicr) (use inhibited area) h'0080 0056 ram write monitor interrupt control register can1 error interrupt control register 5-8 (iramwrcr) (ican1ercr) h'0080 0058 can1 single-shot interrupt control register can1 transmit/receive interrupt control register 5-8 (ican1sscr) (ican1trcr) h'0080 005a can0 error interrupt control register can0 single-shot interrupt control register 5-8 (ican0ercr) (ican0sscr) h'0080 005c can0 transmit/receive interrupt control register dri event detection interrupt control register 5-8 (ican0trcr) (idrievcr) h'0080 005e dri counter interrupt control register dri transfer interrupt control register 5-8 (idricntcr) (idritrcr) h'0080 0060 can0 transmit /receive & error interrupt control register tml1 input interrupt control register 5-8 (ican0cr) (itml1cr) h'0080 0062 (use inhibited area) h'0080 0064 sio4,5 transmit/receive interrupt control register tou1 output interrupt control register 5-8 (isio45cr) (itou1cr) h'0080 0066 tid1 output interrupt control register rtd interrupt control register 5-8 (itid1cr) (irtdcr) h'0080 0068 sio2,3 transmit/receive interrupt control register dma5?9 interrupt control register 5-8 (isio23cr) (idma59cr) h'0080 006a tou0 output interrupt control register tid0 output interrupt control register 5-8 (itou0cr) (itid0cr) h'0080 006c a/d0 conversion interrupt control register sio0 transmit interrupt control register 5-8 (iad0ccr) (isio0txcr) h'0080 006e sio0 receive interrupt control register sio1 transmit interrupt control register 5-8 (isio0rxcr) (isio1txcr) h'0080 0070 sio1 receive interrupt control register dma0?4 interrupt control register 5-8 (isio1rxcr) (idma04cr) h'0080 0072 mjt output interrupt control register 0 mjt output interrupt control register 1 5-8 (imjtocr0) (imjtocr1) h'0080 0074 mjt output interrupt control register 2 mjt output interrupt control register 3 5-8 (imjtocr2) (imjtocr3) h'0080 0076 mjt output interrupt control register 4 mjt output interrupt control register 5 5-8 (imjtocr4) (imjtocr5) h'0080 0078 mjt output interrupt control register 6 mjt output interrupt control register 7 5-8 (imjtocr6) (imjtocr7) h'0080 007a mjt input interrupt control register 0 mjt input interrupt control register 1 5-8 (imjticr0) (imjticr1) h'0080 007c mjt input interrupt control register 2 mjt input interrupt control register 3 5-8 (imjticr2) (imjticr3) h'0080 007e mjt input interrupt control register 4 can1 transmit/receive & error interrupt control register 5-8 (imjticr4) (ican1cr) h'0080 0080 a/d0 single mode register 0 a/d0 single mode register 1 11-17 (ad0sim0) (ad0sim1) 11-19 h'0080 0082 (use inhibited area) a/d0 single mode register 2 11-21 (ad0sim2) h'0080 0084 a/d0 scan mode register 0 a/d0 scan mode register 1 11-22 (ad0scm0) (ad0scm1) 11-24 h'0080 0086 a/d0 disconnection detection assist function control register a/d0 conversion speed control register 11-27 (ad0ddacr) (ad0cvscr) 11-26 h'0080 0088 a/d0 successive approximation register 11-31 (ad0sar) h'0080 008a a/d0 disconnection detection assist method select register 11-28 (ad0ddasel) h'0080 008c a/d0 comparate data register 11-32 (ad0cmp) h'0080 008e (use inhibited area) | 3.4 internal ram and sfr areas address space 3 3-11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (2/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 0090 10-bit a/d0 data register 0 11-33 (ad0dt0) h'0080 0092 10-bit a/d0 data register 1 11-33 (ad0dt1) h'0080 0094 10-bit a/d0 data register 2 11-33 (ad0dt2) h'0080 0096 10-bit a/d0 data register 3 11-33 (ad0dt3) h'0080 0098 10-bit a/d0 data register 4 11-33 (ad0dt4) h'0080 009a 10-bit a/d0 data register 5 11-33 (ad0dt5) h'0080 009c 10-bit a/d0 data register 6 11-33 (ad0dt6) h'0080 009e 10-bit a/d0 data register 7 11-33 (ad0dt7) h'0080 00a0 10-bit a/d0 data register 8 11-33 (ad0dt8) h'0080 00a2 10-bit a/d0 data register 9 11-33 (ad0dt9) h'0080 00a4 10-bit a/d0 data register 10 11-33 (ad0dt10) h'0080 00a6 10-bit a/d0 data register 11 11-33 (ad0dt11) h'0080 00a8 10-bit a/d0 data register 12 11-33 (ad0dt12) h'0080 00aa 10-bit a/d0 data register 13 11-33 (ad0dt13) h'0080 00ac 10-bit a/d0 data register 14 11-33 (ad0dt14) h'0080 00ae 10-bit a/d0 data register 15 11-33 (ad0dt15) (use inhibited area) h'0080 00d0 (use inhibited area) 8-bit a/d0 data register 0 11-34 (ad08dt0) h'0080 00d2 (use inhibited area) 8-bit a/d0 data register 1 11-34 (ad08dt1) h'0080 00d4 (use inhibited area) 8-bit a/d0 data register 2 11-34 (ad08dt2) h'0080 00d6 (use inhibited area) 8-bit a/d0 data register 3 11-34 (ad08dt3) h'0080 00d8 (use inhibited area) 8-bit a/d0 data register 4 11-34 (ad08dt4) h'0080 00da (use inhibited area) 8-bit a/d0 data register 5 11-34 (ad08dt5) h'0080 00dc (use inhibited area) 8-bit a/d0 data register 6 11-34 (ad08dt6) h'0080 00de (use inhibited area) 8-bit a/d0 data register 7 11-34 (ad08dt7) h'0080 00e0 (use inhibited area) 8-bit a/d0 data register 8 11-34 (ad08dt8) h'0080 00e2 (use inhibited area) 8-bit a/d0 data register 9 11-34 (ad08dt9) h'0080 00e4 (use inhibited area) 8-bit a/d0 data register 10 11-34 (ad08dt10) h'0080 00e6 (use inhibited area) 8-bit a/d0 data register 11 11-34 (ad08dt11) h'0080 00e8 (use inhibited area) 8-bit a/d0 data register 12 11-34 (ad08dt12) h'0080 00ea (use inhibited area) 8-bit a/d0 data register 13 11-34 (ad08dt13) h'0080 00ec (use inhibited area) 8-bit a/d0 data register 14 11-34 (ad08dt14) h'0080 00ee (use inhibited area) 8-bit a/d0 data register 15 11-34 (ad08dt15) (use inhibited area) | | 3.4 internal ram and sfr areas address space 3-12 3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (3/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 0100 sio23 interrupt request status register sio03 interrupt request mask register 12-9 (si23stat) (si03mask) 12-10 h'0080 0102 sio03 interrupt request source select register (use inhibited area) 12-11 (si03sel) (use inhibited area) h'0080 0110 sio0 transmit control register sio0 transmit/receive mode register 12-14 (s0tcnt) (s0mod) 12-15 h'0080 0112 sio0 transmit buffer register 12-19 (s0txb) h'0080 0114 sio0 receive buffer register 12-20 (s0rxb) h'0080 0116 sio0 receive control register sio0 baud rate register 12-21 (s0rcnt) (s0baur) 12-24 h'0080 0118 sio0 special mode register (use inhibited area) 12-27 (s0smod) (use inhibited area) h'0080 0120 sio1 transmit control register sio1 transmit/receive mode register 12-14 (s1tcnt) (s1mod) 12-15 h'0080 0122 sio1 transmit buffer register 12-19 (s1txb) h'0080 0124 sio1 receive buffer register 12-20 (s1rxb) h'0080 0126 sio1 receive control register sio1 baud rate register 12-21 (s1rcnt) (s1baur) 12-24 h'0080 0128 sio1 special mode register (use inhibited area) 12-27 (s1smod) (use inhibited area) h'0080 0130 sio2 transmit control register sio2 transmit/receive mode register 12-14 (s2tcnt) (s2mod) 12-15 h'0080 0132 sio2 transmit buffer register 12-19 (s2txb) h'0080 0134 sio2 receive buffer register 12-20 (s2rxb) h'0080 0136 sio2 receive control register sio2 baud rate register 12-21 (s2rcnt) (s2baur) 12-24 h'0080 0138 sio2 special mode register (use inhibited area) 12-27 (s2smod) (use inhibited area) h'0080 0140 sio3 transmit control register sio3 transmit/receive mode register 12-14 (s3tcnt) (s3mod) 12-15 h'0080 0142 sio3 transmit buffer register 12-19 (s3txb) h'0080 0144 sio3 receive buffer register 12-20 (s3rxb) h'0080 0146 sio3 receive control register sio3 baud rate register 12-21 (s3rcnt) (s3baur) 12-24 h'0080 0148 sio3 special mode register (use inhibited area) 12-27 (s3smod) (use inhibited area) h'0080 0180 cs0 area wait control register cs1 area wait control register 18-4 (cs0wtcr) (cs1wtcr) h'0080 0182 cs2 area wait control register cs3 area wait control register 18-4 (cs2wtcr) (cs3wtcr) (use inhibited area) h'0080 01a0 clkout select register (use inhibited area) 17-16 (clkoutsel) 20-8 h'0080 01a2 flash e/w wait select register (use inhibited area) 18-6 (fwait) (use inhibited area) h'0080 01e0 flash mode register flash status register 6-15 (fmod) (fstat) 6-16 | | | | | | | 3.4 internal ram and sfr areas address space 3 3-13 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (4/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 01e2 flash control register 1 flash control register 2 6-17 (fcnt1) (fcnt2) 6-18 h'0080 01e4 flash control register 3 flash control register 4 6-19 (fcnt3) (fcnt4) 6-22 (use inhibited area) h'0080 0200 common count clock select register clock bus & input event bus control register 10-12 (cntcksel) (ckiebcr) 10-17 h'0080 0202 prescaler register 0 prescaler register 1 10-13 (prs0) (prs1) h'0080 0204 prescaler register 2 output event bus control register 10-13 (prs2) (oebcr) 10-18 (use inhibited area) h'0080 0210 tclk input processing control register 10-21 (tclkcr) h'0080 0212 tin input processing control register 0 10-22 (tincr0) h'0080 0214 tin input processing control register 1 10-23 (tincr1) h'0080 0216 tin input processing control register 2 10-24 (tincr2) h'0080 0218 tin input processing control register 3 10-25 (tincr3) h'0080 021a tin input processing control register 4 10-25 (tincr4) (use inhibited area) h'0080 0220 f/f source select register 0 10-28 (ffs0) h'0080 0222 (use inhibited area) f/f source select register 1 10-29 (ffs1) h'0080 0224 f/f protect register 0 10-30 (ffp0) h'0080 0226 f/f data register 0 10-32 (ffd0) h'0080 0228 (use inhibited area) f/f protect register 1 10-30 (ffp1) h'0080 022a (use inhibited area) f/f data register 1 10-32 (ffd1) (use inhibited area) h'0080 0230 top interrupt control register 0 top interrupt control register 1 10-38 (topir0) (topir1) h'0080 0232 top interrupt control register 2 top interrupt control register 3 10-40 (topir2) (topir3) 10-41 h'0080 0234 tio interrupt control register 0 tio interrupt control register 1 10-42 (tioir0) (tioir1) 10-43 h'0080 0236 tio interrupt control register 2 tms interrupt control register 10-44 (tioir2) (tmsir) 10-45 h'0080 0238 tin interrupt control register 0 tin interrupt control register 1 10-46 (tinir0) (tinir1) 10-47 h'0080 023a tin interrupt control register 2 tin interrupt control register 3 10-48 (tinir2) (tinir3) h'0080 023c tin interrupt control register 4 tin interrupt control register 5 10-50 (tinir4) (tinir5) h'0080 023e tin interrupt control register 6 tin interrupt control register 7 10-52 (tinir6) (tinir7) 10-55 h'0080 0240 top0 counter 10-71 (top0ct) h'0080 0242 top0 reload register 10-72 (top0rl) h'0080 0244 (use inhibited area) h'0080 0246 top0 correction register 10-73 (top0cc) (use inhibited area) | | | | | 3.4 internal ram and sfr areas address space 3-14 3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (5/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 0250 top1 counter 10-71 (top1ct) h'0080 0252 top1 reload register 10-72 (top1rl) h'0080 0254 (use inhibited area) h'0080 0256 top1 correction register 10-73 (top1cc) (use inhibited area) h'0080 0260 top2 counter 10-71 (top2ct) h'0080 0262 top2 reload register 10-72 (top2rl) h'0080 0264 (use inhibited area) h'0080 0266 top2 correction register 10-73 (top2cc) (use inhibited area) h'0080 0270 top3 counter 10-71 (top3ct) h'0080 0272 top3 reload register 10-72 (top3rl) h'0080 0274 (use inhibited area) h'0080 0276 top3 correction register 10-73 (top3cc) (use inhibited area) h'0080 0280 top4 counter 10-71 (top4ct) h'0080 0282 top4 reload register 10-72 (top4rl) h'0080 0284 (use inhibited area) h'0080 0286 top4 correction register 10-73 (top4cc) (use inhibited area) h'0080 0290 top5 counter 10-71 (top5ct) h'0080 0292 top5 reload register 10-72 (top5rl) h'0080 0294 (use inhibited area) h'0080 0296 top5 correction register 10-73 (top5cc) h'0080 0298 (use inhibited area) h'0080 029a top0?5 control register 0 10-67 (top05cr0) h'0080 029c (use inhibited area) top0?5 control register 1 10-67 (top05cr1) (use inhibited area) h'0080 02a0 top6 counter 10-71 (top6ct) h'0080 02a2 top6 reload register 10-72 (top6rl) h'0080 02a4 (use inhibited area) h'0080 02a6 top6 correction register 10-73 (top6cc) h'0080 02a8 (use inhibited area) h'0080 02aa top6,7 control register 10-69 (top67cr) | | | | | 3.4 internal ram and sfr areas address space 3 3-15 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (6/37) address +0 address +1 address see pages b0 b7 b8 b15 (use inhibited area) h'0080 02b0 top7 counter 10-71 (top7ct) h'0080 02b2 top7 reload register 10-72 (top7rl) h'0080 02b4 (use inhibited area) h'0080 02b6 top7 correction register 10-73 (top7cc) (use inhibited area) h'0080 02c0 top8 counter 10-71 (top8ct) h'0080 02c2 top8 reload register 10-72 (top8rl) h'0080 02c4 (use inhibited area) h'0080 02c6 top8 correction register 10-73 (top8cc) (use inhibited area) h'0080 02d0 top9 counter 10-71 (top9ct) h'0080 02d2 top9 reload register 10-72 (top9rl) h'0080 02d4 (use inhibited area) h'0080 02d6 top9 correction register 10-73 (top9cc) (use inhibited area) h'0080 02e0 top10 counter 10-71 (top10ct) h'0080 02e2 top10 reload register 10-72 (top10rl) h'0080 02e4 (use inhibited area) h'0080 02e6 top10 correction register 10-73 (top10cc) h'0080 02e8 (use inhibited area) h'0080 02ea top8?10 control register 10-70 (top810cr) (use inhibited area) h'0080 02fa top0-10 external enable permit register 10-74 (topeen) h'0080 02fc top0-10 enable protect register 10-74 (toppro) h'0080 02fe top0-10 count enable register 10-75 (topcen) h'0080 0300 tio0 counter 10-105 (tio0ct) h'0080 0302 (use inhibited area) h'0080 0304 tio0 reload 1 register 10-107 (tio0rl1) h'0080 0306 tio0 reload 0/ measure register 10-106 (tio0rl0) (use inhibited area) h'0080 0310 tio1 counter 10-105 (tio1ct) h'0080 0312 (use inhibited area) h'0080 0314 tio1 reload 1 register 10-107 (tio1rl1) | | | | | | 3.4 internal ram and sfr areas address space 3-16 3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (7/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 0316 tio1 reload 0/ measure register 10-106 (tio1rl0) h'0080 0318 (use inhibited area) h'0080 031a tio0?3 control register 0 10-98 (tio03cr0) h'0080 031c (use inhibited area) tio0?3 control register 1 10-99 (tio03cr1) (use inhibited area) h'0080 0320 tio2 counter 10-105 (tio2ct) h'0080 0322 (use inhibited area) h'0080 0324 tio2 reload 1 register 10-107 (tio2rl1) h'0080 0326 tio2 reload 0/ measure register 10-106 (tio2rl0) (use inhibited area) h'0080 0330 tio3 counter 10-105 (tio3ct) h'0080 0332 (use inhibited area) h'0080 0334 tio3 reload 1 register 10-107 (tio3rl1) h'0080 0336 tio3 reload 0/ measure register 10-106 (tio3rl0) (use inhibited area) h'0080 0340 tio4 counter 10-105 (tio4ct) h'0080 0342 (use inhibited area) h'0080 0344 tio4 reload 1 register 10-107 (tio4rl1) h'0080 0346 tio4 reload 0/ measure register 10-106 (tio4rl0) h'0080 0348 (use inhibited area) h'0080 034a tio4 control register tio5 control register 10-100 (tio4cr) (tio5cr) 10-102 (use inhibited area) h'0080 0350 tio5 counter 10-105 (tio5ct) h'0080 0352 (use inhibited area) h'0080 0354 tio5 reload 1 register 10-107 (tio5rl1) h'0080 0356 tio5 reload 0/ measure register 10-106 (tio5rl0) (use inhibited area) h'0080 0360 tio6 counter 10-105 (tio6ct) h'0080 0362 (use inhibited area) h'0080 0364 tio6 reload 1 register 10-107 (tio6rl1) h'0080 0366 tio6 reload 0/ measure register 10-106 (tio6rl0) h'0080 0368 (use inhibited area) h'0080 036a tio6 control register tio7 control register 10-103 (tio6cr) (tio7cr) 10-104 (use inhibited area) | | | | | | 3.4 internal ram and sfr areas address space 3 3-17 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (8/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 0370 tio7 counter 10-105 (tio7ct) h'0080 0372 (use inhibited area) h'0080 0374 tio7 reload 1 register 10-107 (tio7rl1) h'0080 0376 tio7 reload 0/ measure register 10-106 (tio7rl0) (use inhibited area) h'0080 0380 tio8 counter 10-105 (tio8ct) h'0080 0382 (use inhibited area) h'0080 0384 tio8 reload 1 register 10-107 (tio8rl1) h'0080 0386 tio8 reload 0/ measure register 10-106 (tio8rl0) h'0080 0388 (use inhibited area) h'0080 038a tio8 control register tio9 control register 10-104 (tio8cr) (tio9cr) 10-105 (use inhibited area) h'0080 0390 tio9 counter 10-105 (tio9ct) h'0080 0392 (use inhibited area) h'0080 0394 tio9 reload 1 register 10-107 (tio9rl1) h'0080 0396 tio9 reload 0/ measure register 10-106 (tio9rl0) (use inhibited area) h'0080 03bc tio0-9 enable protect register 10-108 (tiopro) h'0080 03be tio0-9 count enable register 10-109 (tiocen) h'0080 03c0 tms0 counter 10-127 (tms0ct) h'0080 03c2 tms0 measure 3 register 10-127 (tms0mr3) h'0080 03c4 tms0 measure 2 register 10-127 (tms0mr2) h'0080 03c6 tms0 measure 1 register 10-127 (tms0mr1) h'0080 03c8 tms0 measure 0 register 10-127 (tms0mr0) h'0080 03ca tms0 control register tms1 control register 10-126 (tms0cr) (tms1cr) (use inhibited area) h'0080 03d0 tms1 counter 10-127 (tms1ct) h'0080 03d2 tms1 measure 3 register 10-127 (tms1mr3) h'0080 03d4 tms1 measure 2 register 10-127 (tms1mr2) h'0080 03d6 tms1 measure 1 register 10-127 (tms1mr1) h'0080 03d8 tms1 measure 0 register 10-127 (tms1mr0) (use inhibited area) h'0080 03e0 tml0 counter (upper) 10-132 (tml0ct) (tml0cth) h'0080 03e2 (lower) (tml0ctl) | | | | | 3.4 internal ram and sfr areas address space 3-18 3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (9/37) address +0 address +1 address see pages b0 b7 b8 b15 (use inhibited area) h'0080 03ea (use inhibited area) tml0 control register 10-131 (tml0cr) (use inhibited area) h'0080 03f0 tml0 measure 3 register (upper) 10-132 (tml0mr3) (tml0mr3h) h'0080 03f2 (lower) (tml0mr3l) h'0080 03f4 tml0 measure 2 register (upper) 10-132 (tml0mr2) (tml0mr2h) h'0080 03f6 (lower) (tml0mr2l) h'0080 03f8 tml0 measure 1 register (upper) 10-132 (tml0mr1) (tml0mr1h) h'0080 03fa (lower) (tml0mr1l) h'0080 03fc tml0 measure 0 register (upper) 10-132 (tml0mr0) (tml0mr0h) h'0080 03fe (lower) (tml0mr0l) h'0080 0400 dma0?4 interrupt request status register dma0?4 interrupt request mask register 9-35 (dm04itst) (dm04itmk) 9-36 (use inhibited area) h'0080 0408 dma5?9 interrupt request status register dma5?9 interrupt request mask register 9-35 (dm59itst) (dm59itmk) 9-36 (use inhibited area) h'0080 0410 dma0 channel control register 0 dma0 channel control register 1 9-6 (dm0cnt0) (dm0cnt1) 9-7 h'0080 0412 dma0 source address register 9-30 (dm0sa) h'0080 0414 dma0 destination address register 9-31 (dm0da) h'0080 0416 dma0 transfer count register 9-32 (dm0tct) h'0080 0418 dma5 channel control register 0 dma5 channel control register 1 9-16 (dm5cnt0) (dm5cnt1) 9-17 h'0080 041a dma5 source address register 9-30 (dm5sa) h'0080 041c dma5 destination address register 9-31 (dm5da) h'0080 041e dma5 transfer count register 9-32 (dm5tct) h'0080 0420 dma1 channel control register 0 dma1 channel control register 1 9-8 (dm1cnt0) (dm1cnt1) 9-9 h'0080 0422 dma1 source address register 9-30 (dm1sa) h'0080 0424 dma1 destination address register 9-31 (dm1da) h'0080 0426 dma1 transfer count register 9-32 (dm1tct) h'0080 0428 dma6 channel control register 0 dma6 channel control register 1 9-18 (dm6cnt0) (dm6cnt1) 9-19 h'0080 042a dma6 source address register 9-30 (dm6sa) h'0080 042c dma6 destination address register 9-31 (dm6da) h'0080 042e dma6 transfer count register 9-32 (dm6tct) h'0080 0430 dma2 channel control register 0 dma2 channel control register 1 9-10 (dm2cnt0) (dm2cnt1) 9-11 h'0080 0432 dma2 source address register 9-30 (dm2sa) h'0080 0434 dma2 destination address register 9-31 (dm2da) | | | | 3.4 internal ram and sfr areas address space 3 3-19 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (10/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 0436 dma2 transfer count register 9-32 (dm2tct) h'0080 0438 dma7 channel control register 0 dma7 channel control register 1 9-20 (dm7cnt0) (dm7cnt1) 9-21 h'0080 043a dma7 source address register 9-30 (dm7sa) h'0080 043c dma7 destination address register 9-31 (dm7da) h'0080 043e dma7 transfer count register 9-32 (dm7tct) h'0080 0440 dma3 channel control register 0 dma3 channel control register 1 9-12 (dm3cnt0) (dm3cnt1) 9-13 h'0080 0442 dma3 source address register 9-30 (dm3sa) h'0080 0444 dma3 destination address register 9-31 (dm3da) h'0080 0446 dma3 transfer count register 9-32 (dm3tct) h'0080 0448 dma8 channel control register 0 dma8 channel control register 1 9-22 (dm8cnt0) (dm8cnt1) 9-23 h'0080 044a dma8 source address register 9-30 (dm8sa) h'0080 044c dma8 destination address register 9-31 (dm8da) h'0080 044e dma8 transfer count register 9-32 (dm8tct) h'0080 0450 dma4 channel control register 0 dma4 channel control register 1 9-14 (dm4cnt0) (dm4cnt1) 9-15 h'0080 0452 dma4 source address register 9-30 (dm4sa) h'0080 0454 dma4 destination address register 9-31 (dm4da) h'0080 0456 dma4 transfer count register 9-32 (dm4tct) h'0080 0458 dma9 channel control register 0 dma9 channel control register 1 9-24 (dm9cnt0) (dm9cnt1) 9-25 h'0080 045a dma9 source address register 9-30 (dm9sa) h'0080 045c dma9 destination address register 9-31 (dm9da) h'0080 045e dma9 transfer count register 9-32 (dm9tct) h'0080 0460 dma0 software request generation register 9-29 (dm0sri) h'0080 0462 dma1 software request generation register 9-29 (dm1sri) h'0080 0464 dma2 software request generation register 9-29 (dm2sri) h'0080 0466 dma3 software request generation register 9-29 (dm3sri) h'0080 0468 dma4 software request generation register 9-29 (dm4sri) (use inhibited area) h'0080 0470 dma5 software request generation register 9-29 (dm5sri) h'0080 0472 dma6 software request generation register 9-29 (dm6sri) h'0080 0474 dma7 software request generation register 9-29 (dm7sri) h'0080 0476 dma8 software request generation register 9-29 (dm8sri) h'0080 0478 dma9 software request generation register 9-29 (dm9sri) (use inhibited area) h'0080 0480 (use inhibited area) dma0 channel control register 2 9-26 (dm0cnt2) | | 3.4 internal ram and sfr areas address space 3-20 3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (11/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 0482 (use inhibited area) dma1 channel control register 2 9-26 (dm1cnt2) h'0080 0484 (use inhibited area) dma2 channel control register 2 9-26 (dm2cnt2) h'0080 0486 (use inhibited area) dma3 channel control register 2 9-26 (dm3cnt2) h'0080 0488 (use inhibited area) dma4 channel control register 2 9-26 (dm4cnt2) (use inhibited area) h'0080 0490 (use inhibited area) dma5 channel control register 2 9-26 (dm5cnt2) h'0080 0492 (use inhibited area) dma6 channel control register 2 9-26 (dm6cnt2) h'0080 0494 (use inhibited area) dma7 channel control register 2 9-26 (dm7cnt2) h'0080 0496 (use inhibited area) dma8 channel control register 2 9-26 (dm8cnt2) h'0080 0498 (use inhibited area) dma9 channel control register 2 9-26 (dm9cnt2) (use inhibited area) h'0080 0500 port group 0,1 input level setting register port group 3 input level setting register 8-33 (pg01lev) (pg3lev) h'0080 0502 port group 4,5 input level setting register port group 6,7 input level setting register 8-33 (pg45lev) (pg67lev) h'0080 0504 port group 8 input level setting register (use inhibited area) 8-33 (pg8lev) h'0080 0506 (use inhibited area) h'0080 0508 port group 0,1 output drive capability setting register port group 3 output drive capability setting register 8-35 (pg01drv) (pg3drv) h'0080 050a port group 4,5 output drive capability setting register port group 6,7 output drive capability setting register 8-35 (pg45drv) (pg67drv) h'0080 050c port group 8 output drive capability setting register p70 output drive capability setting register 8-35 (pg8drv) (p70drv) 8-36 h'0080 050e (use inhibited area) h'0080 0510 noise canceller control register 8-38 (nzcnslcr) (use inhibited area) h'0080 0520 pwm output 0 disable control register ga pwm output 0 disable level control register ga 10-168 (po0disgacr) (po0lvgacr) 10-171 h'0080 0522 pwm output 1 disable control register ga pwm output 1 disable level control register ga 10-168 (po1disgacr) (po1lvgacr) 10-171 h'0080 0524 (use inhibited area) h'0080 0526 pwmoff 0 function enable register pwmoff 1 function enable register 10-173 (pwmoff0en) (pwmoff1en) h'0080 0528 (use inhibited area) h'0080 052a can bus mode control register dd input pin select register 13-23 (canbuscr) (ddsel) 14-6 (use inhibited area) h'0080 0530 ram write monitor interrupt status register 6-4 (ramwrist) h'0080 0532 (use inhibited area) h'0080 0534 ram write source status register 6-5 (ramwrfst) h'0080 0536 (use inhibited area) h'0080 0538 ram write disable control register 6-6 (ramwrcnt) h'0080 053a (use inhibited area) | | | | 3.4 internal ram and sfr areas address space 3 3-21 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (12/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 053c (use inhibited area) ram write disable protect register 6-7 (ramwrprot) (use inhibited area) h'0080 0600 dummy access area (note1) dummy access area (note1) 3-46 h'0080 0602 dummy access area (note1) dummy access area (note1) 3-46 (use inhibited area) h'0080 0700 p0 data register p1 data register 8-12 (p0data) (p1data) h'0080 0702 p2 data register p3 data register 8-12 (p2data) (p3data) h'0080 0704 p4 data register (use inhibited area) 8-12 (p4data) h'0080 0706 p6 data register p7 data register 8-12 (p6data) (p7data) h'0080 0708 p8 data register p9 data register 8-12 (p8data) (p9data) h'0080 070a p10 data register p11 data register 8-12 (p10data) (p11data) h'0080 070c p12 data register p13 data register 8-12 (p12data) (p13data) h'0080 070e (use inhibited area) p15 data register 8-12 (p15data) h'0080 0710 (use inhibited area) p17 data register 8-12 (p17data) (use inhibited area) h'0080 0716 p22 data register (use inhibited area) 8-12 (p22data) (use inhibited area) h'0080 0720 p0 direction register p1 direction register 8-13 (p0dir) (p1dir) h'0080 0722 p2 direction register p3 direction register 8-13 (p2dir) (p3dir) h'0080 0724 p4 direction register (use inhibited area) 8-13 (p4dir) h'0080 0726 p6 direction register p7 direction register 8-13 (p6dir) (p7dir) h'0080 0728 p8 direction register p9 direction register 8-13 (p8dir) (p9dir) h'0080 072a p10 direction register p11 direction register 8-13 (p10dir) (p11dir) h'0080 072c p12 direction register p13 direction register 8-13 (p12dir) (p13dir) h'0080 072e (use inhibited area) p15 direction register 8-13 (p15dir) h'0080 0730 (use inhibited area) p17 direction register 8-13 (p17dir) (use inhibited area) h'0080 0736 p22 direction register (use inhibited area) 8-13 (p22dir) (use inhibited area) h'0080 0740 p0 operation mode register p1 operation mode register 8-14.17-5 (p0mod) (p1mod) 8-15,17-7 h'0080 0742 p2 operation mode register p3 operation mode register 8-16,17-8 (p2mod) (p3mod) 8-17,17-9 h'0080 0744 p4 operation mode register port input special function control register 8-18,17-10 (p4mod) (picnt) 8-29,20-3 h'0080 0746 (use inhibited area) p7 operation mode register 8-19,17-11 (p7mod) 20-9 h'0080 0748 p8 operation mode register p9 operation mode register 8-20 (p8mod) (p9mod) 8-21 h'0080 074a p10 operation mode register p11 operation mode register 8-22 (p10mod) (p11mod) 8-23 | | | | | | 3.4 internal ram and sfr areas address space 3-22 3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (13/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 074c p12 operation mode register p13 operation mode register 8-24,17-12 (p12mod) (p13mod) 8-25 h'0080 074e (use inhibited area) p15 operation mode register 8-26,17-13 (p15mod) 20-10 h'0080 0750 (use inhibited area) p17 operation mode register 8-27 (p17mod) (use inhibited area) h'0080 0756 p22 operation mode register (use inhibited area) 8-28 (p22mod) 17-14 (use inhibited area) h'0080 0760 p0 peripheral function select register p1 peripheral function select register 8-14,17-6 (p0smod) (p1smod) 8-15,17-7 h'0080 0762 (use inhibited area) p3 peripheral function select register 8-17 (p3smod) 17-9 h'0080 0764 p4 peripheral function select register (use inhibited area) 8-18 (p4smod) 17-10 h'0080 0766 (use inhibited area) p7 peripheral function select register 8-19,17-11 (p7smod) 20-9 h'0080 0768 p8 peripheral function select register p9 peripheral function select register 8-20 (p8smod) (p9smod) 8-21 h'0080 076a p10 peripheral function select register p11 peripheral function select register 8-22 (p10smod) (p11smod) 8-23 h'0080 076c p12 peripheral function select register p13 peripheral function select register 8-24,17-12 (p12smod) (p13smod) 8-25 h'0080 076e (use inhibited area) p15 peripheral function select register 8-26,17-13 (p15smod) 20-10 h'0080 0770 (use inhibited area) p17 peripheral function select register 8-27 (p17smod) (use inhibited area) h'0080 0776 p22 peripheral function select register (use inhibited area) 8-28 (p22smod) 17-14 h'0080 0778 (use inhibited area) h'0080 077a (use inhibited area) rtd write function disable control register 15-3 (wrrdis) h'0080 077c (use inhibited area) h'0080 077e (use inhibited area) bus mode control register 17-15 (busmodc) h'0080 0780 pwm output 0 disable control register gb pwm output 0 disable level control register gb 10-168 (po0disgbcr) (po0lvgbcr) 10-171 h'0080 0782 pwm output 1 disable control register gb pwm output 1 disable level control register gb 10-169 (po1disgbcr) (po1lvgbcr) 10-171 h'0080 0784 (use inhibited area) h'0080 0786 clock control register (use inhibited area) 20-5 (clkcr) (use inhibited area) h'0080 078c tid0 counter 10-140 (tid0ct) h'0080 078e tid0 reload register 10-140 (tid0rl) h'0080 0790 tou0_0 counter (upper) 10-157 (tou00ctw) (tou00cth) h'0080 0792 (lower) 10-159 (tou00ct) h'0080 0794 tou0_0 reload register tou0_0 reload 1 register 10-160 (tou00rlw) (tou00rl1) 10-162 h'0080 0796 tou0_0 reload 0 register 10-161 (tou00rl0) h'0080 0798 tou0_1 counter (upper) 10-157 (tou01ctw) (tou01cth) h'0080 079a (lower) 10-159 (tou01ct) | | | | 3.4 internal ram and sfr areas address space 3 3-23 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (14/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 079c tou0_1 reload register tou0_1 reload 1 register 10-160 (tou01rlw) (tou01rl1) 10-162 h'0080 079e tou0_1 reload 0 register 10-161 (tou01rl0) h'0080 07a0 tou0_2 counter (upper) 10-157 (tou02ctw) (tou02cth) h'0080 07a2 (lower) 10-159 (tou02ct) h'0080 07a4 tou0_2 reload register tou0_2 reload 1 register 10-160 (tou02rlw) (tou02rl1) 10-162 h'0080 07a6 tou0_2 reload 0 register 10-161 (tou02rl0) h'0080 07a8 tou0_3 counter (upper) 10-157 (tou03ctw) (tou03cth) h'0080 07aa (lower) 10-159 (tou03ct) h'0080 07ac tou0_3 reload register tou0_3 reload 1 register 10-160 (tou03rlw) (tou03rl1) 10-162 h'0080 07ae tou0_3 reload 0 register 10-161 (tou03rl0) h'0080 07b0 tou0_4 counter (upper) 10-157 (tou04ctw) (tou04cth) h'0080 07b2 (lower) 10-159 (tou04ct) h'0080 07b4 tou0_4 reload register tou0_4 reload 1 register 10-160 (tou04rlw) (tou04rl1) 10-162 h'0080 07b6 tou0_4 reload 0 register 10-161 (tou04rl0) h'0080 07b8 tou0_5 counter (upper) 10-157 (tou05ctw) (tou05cth) h'0080 07ba (lower) 10-159 (tou05ct) h'0080 07bc tou0_5 reload register tou0_5 reload 1 register 10-160 (tou05rlw) (tou05rl1) 10-162 h'0080 07be tou0_5 reload 0 register 10-161 (tou05rl0) h'0080 07c0 tou0_6 counter (upper) 10-157 (tou06ctw) (tou06cth) h'0080 07c2 (lower) 10-159 (tou06ct) h'0080 07c4 tou0_6 reload register tou0_6 reload 1 register 10-160 (tou06rlw) (tou06rl1) 10-162 h'0080 07c6 tou0_6 reload 0 register 10-161 (tou06rl0) h'0080 07c8 tou0_7 counter (upper) 10-157 (tou07ctw) (tou07cth) h'0080 07ca (lower) 10-159 (tou07ct) h'0080 07cc tou0_7 reload register tou0_7 reload 1 register 10-160 (tou07rlw) (tou07rl1) 10-162 h'0080 07ce tou0_7 reload 0 register 10-161 (tou07rl0) h'0080 07d0 prescaler register 3 tid0 control & prescaler 3 enable register 10-13 (prs3) (tid0prs3en) 10-138 h'0080 07d2 tou0 interrupt request mask register tou0 interrupt request status register 10-56 (tou0ima) (tou0ist) h'0080 07d4 shorting prevention function f/f21-26 protect register f/f21-28 protect register 10-155 (shff2126p) (ff2128p) 10-31 h'0080 07d6 shorting prevention function f/f21-26 data register f/f21-28 data register 10-156 (shff2126d) (ff2128d) 10-33 h'0080 07d8 tou0 control register 1 10-153 (tou0cr1) h'0080 07da tou0 control register 0 10-153 (tou0cr0) h'0080 07dc (use inhibited area) tou0 enable protect register 10-163 (tou0pro) h'0080 07de (use inhibited area) tou0 count enable register 10-164 (tou0cen) 3.4 internal ram and sfr areas address space 3-24 3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (15/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 07e0 pwmoff0 input processing control register tin24,25 input processing control register 10-166 (pwmoff0cr) (tin2425cr) 10-26 h'0080 07e2 tin24,25 interrupt request mask register tin24,25 interrupt request status register 10-52 (tin2425ima) (tin2425ist) (use inhibited area) h'0080 07e8 virtual flash l bank register 0 6-24 (felbank0) h'0080 07ea virtual flash l bank register 1 6-24 (felbank1) h'0080 07ec virtual flash l bank register 2 6-24 (felbank2) h'0080 07ee virtual flash l bank register 3 6-24 (felbank3) h'0080 07f0 virtual flash l bank register 4 (note 3) 6-24 (felbank4) h'0080 07f2 virtual flash l bank register 5 (note 3) 6-24 (felbank5) h'0080 07f4 virtual flash l bank register 6 (note 3) 6-24 (felbank6) h'0080 07f6 virtual flash l bank register 7 (note 3) 6-24 (felbank7) h'0080 07f8 virtual flash l bank register 8 (note 2) 6-24 (felbank8) h'0080 07fa virtual flash l bank register 9 (note 2) 6-24 (felbank9) h'0080 07fc virtual flash l bank register 10 (note 2) 6-24 (felbank10) h'0080 07fe virtual flash l bank register 11 (note 2) 6-24 (felbank11) h'0080 0800 virtual flash l bank register 12 (note 2) 6-24 (felbank12) h'0080 0802 virtual flash l bank register 13 (note 2) 6-24 (felbank13) h'0080 0804 virtual flash l bank register 14 (note 2) 6-24 (felbank14) h'0080 0806 virtual flash l bank register 15 (note 2) 6-24 (felbank15) (use inhibited area) h'0080 0a00 sio45 interrupt request status register sio45 interrupt request mask register 12-9 (si45stat) (si45mask) 12-10 h'0080 0a02 sio45 interrupt request source select register (use inhibited area) 12-11 (si45sel) (use inhibited area) h'0080 0a10 sio4 transmit control register sio4 transmit/receive mode register 12-14 (s4tcnt) (s4mod) 12-15 h'0080 0a12 sio4 transmit buffer register 12-19 (s4txb) h'0080 0a14 sio4 receive buffer register 12-20 (s4rxb) h'0080 0a16 sio4 receive control register sio4 baud rate register 12-21 (s4rcnt) (s4baur) 12-24 h'0080 0a18 sio4 special mode register (use inhibited area) 12-27 (s4smod) (use inhibited area) h'0080 0a20 sio5 transmit control register sio5 transmit/receive mode register 12-14 (s5tcnt) (s5mod) 12-15 h'0080 0a22 sio5 transmit buffer register 12-19 (s5txb) h'0080 0a24 sio5 receive buffer register 12-20 (s5rxb) h'0080 0a26 sio5 receive control register sio5 baud rate register 12-21 (s5rcnt) (s5baur) 12-24 h'0080 0a28 sio5 special mode register (use inhibited area) 12-27 (s5smod) (use inhibited area) | | | | | 3.4 internal ram and sfr areas address space 3 3-25 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (16/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 0b8c tid1 counter 10-140 (tid1ct) h'0080 0b8e tid1 reload register 10-140 (tid1rl) h'0080 0b90 tou1_0 counter (upper) 10-157 (tou10ctw) (tou10cth) h'0080 0b92 (lower) 10-159 (tou10ct) h'0080 0b94 tou1_0 reload register tou1_0 reload 1 register 10-160 (tou10rlw) (tou10rl1) 10-162 h'0080 0b96 tou1_0 reload 0 register 10-161 (tou10rl0) h'0080 0b98 tou1_1 counter (upper) 10-157 (tou11ctw) (tou11cth) h'0080 0b9a (lower) 10-159 (tou11ct) h'0080 0b9c tou1_1 reload register tou1_1 reload 1 register 10-160 (tou11rlw) (tou11rl1) 10-162 h'0080 0b9e tou1_1 reload 0 register 10-161 (tou11rl0) h'0080 0ba0 tou1_2 counter (upper) 10-157 (tou12ctw) (tou12cth) h'0080 0ba2 (lower) 10-159 (tou12ct) h'0080 0ba4 tou1_2 reload register tou1_2 reload 1 register 10-160 (tou12rlw) (tou12rl1) 10-162 h'0080 0ba6 tou1_2 reload 0 register 10-161 (tou12rl0) h'0080 0ba8 tou1_3 counter (upper) 10-157 (tou13ctw) (tou13cth) h'0080 0baa (lower) 10-159 (tou13ct) h'0080 0bac tou1_3 reload register tou1_3 reload 1 register 10-160 (tou13rlw) (tou13rl1) 10-162 h'0080 0bae tou1_3 reload 0 register 10-161 (tou13rl0) h'0080 0bb0 tou1_4 counter (upper) 10-157 (tou14ctw) (tou14cth) h'0080 0bb2 (lower) 10-159 (tou14ct) h'0080 0bb4 tou1_4 reload register tou1_4 reload 1 register 10-160 (tou14rlw) (tou14rl1) 10-162 h'0080 0bb6 tou1_4 reload 0 register 10-161 (tou14rl0) h'0080 0bb8 tou1_5 counter (upper) 10-157 (tou15ctw) (tou15cth) h'0080 0bba (lower) 10-159 (tou15ct) h'0080 0bbc tou1_5 reload register tou1_5 reload 1 register 10-160 (tou15rlw) (tou15rl1) 10-162 h'0080 0bbe tou1_5 reload 0 register 10-161 (tou15rl0) h'0080 0bc0 tou1_6 counter (upper) 10-157 (tou16ctw) (tou16cth) h'0080 0bc2 (lower) 10-159 (tou16ct) h'0080 0bc4 tou1_6 reload register tou1_6 reload 1 register 10-160 (tou16rlw) (tou16rl1) 10-162 h'0080 0bc6 tou1_6 reload 0 register 10-161 (tou16rl0) h'0080 0bc8 tou1_7 counter (upper) 10-157 (tou17ctw) (tou17cth) h'0080 0bca (lower) 10-159 (tou17ct) h'0080 0bcc tou1_7 reload register tou1_7 reload 1 register 10-160 (tou17rlw) (tou17rl1) 10-162 h'0080 0bce tou1_7 reload 0 register 10-161 (tou17rl0) 3.4 internal ram and sfr areas address space 3-26 3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (17/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 0bd0 prescaler register 4 tid1 control & prescaler 4 enable register 10-13 (prs4) (tid1prs4en) 10-139 h'0080 0bd2 tou1 interrupt request mask register tou1 interrupt request status register 10-58 (tou1ima) (tou1ist) h'0080 0bd4 shorting prevention function f/f29-34 protect register f/f29-36 protect register 10-155 (shff2934p) (ff2936p) 10-31 h'0080 0bd6 shorting prevention function f/f29-34 data register f/f29-36 data register 10-156 (shff2934d) (ff2936d) 10-33 h'0080 0bd8 tou1 control register 1 10-154 (tou1cr1) h'0080 0bda tou1 control register 0 10-154 (tou1cr0) h'0080 0bdc (use inhibited area) tou1 enable protect register 10-163 (tou1pro) h'0080 0bde (use inhibited area) tou1 count enable register 10-164 (tou1cen) h'0080 0be0 pwmoff1 input processing control register tin26,27 input processing control register 10-166 (pwmoff1cr) (tin2627cr) 10-26 h'0080 0be2 tin26,27 interrupt request mask register tin26,27 interrupt request status register 10-53 (tin2627ima) (tin2627ist) (use inhibited area) h'0080 0fe0 tml1 counter (upper) 10-132 (tml1ct) (tml1cth) h'0080 0fe2 (lower) (tml1ctl) (use inhibited area) h'0080 0fea (use inhibited area) tml1 control register 10-131 (tml1cr) (use inhibited area) h'0080 0ff0 tml1 measure 3 register (upper) 10-132 (tml1mr3) (tml1mr3h) h'0080 0ff2 (lower) (tml1mr3l) h'0080 0ff4 tml1 measure 2 register (upper) 10-132 (tml1mr2) (tml1mr2h) h'0080 0ff6 (lower) (tml1mr2l) h'0080 0ff8 tml1 measure 1 register (upper) 10-132 (tml1mr1) (tml1mr1h) h'0080 0ffa (lower) (tml1mr1l) h'0080 0ffc tml1 measure 0 register (upper) 10-132 (tml1mr0) (tml1mr0h) h'0080 0ffe (lower) (tml1mr0l) | | | 3.4 internal ram and sfr areas address space 3 3-27 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (18/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 1000 can0 control register 13-26 (can0cnt) h'0080 1002 can0 status register 13-29 (can0stat) h'0080 1004 (use inhibited area) h'0080 1006 can0 configuration register 13-32 (can0conf) h'0080 1008 can0 timestamp count register 13-35 (can0tstmp) h'0080 100a can0 receive error count register can0 transmit error count register 13-36 (can0rec) (can0tec) h'0080 100c can0 slot interrupt request status register (upper) 13-40 (can0slistw) (can0slist) h'0080 100e (lower) (can0slistl) h'0080 1010 can0 slot interrupt request mask register (upper) 13-42 (can0slimkw) (can0slimk) h'0080 1012 (lower) (can0slimkl) h'0080 1014 can0 error interrupt request status register can0 error interrupt request mask register 13-43 (can0erist) (can0erimk) 13-44 h'0080 1016 can0 baud rate prescaler can0 cause of error register 13-37 (can0brp) (can0ef) 13-67 h'0080 1018 can0 mode register can0 dma transfer request select register 13-69 (can0mod) (can0dmarq) 13-70 h'0080 101a can0 message slot number register can0 clock select register 13-71 (can0msn) (can0cksel) 13-72 h'0080 101c can0 frame format select register (upper) 13-74 (can0ffsw) (can0ffs) h'0080 101e (lower) (can0ffsl) h'0080 1020 can0 global mask register a standard id0 can0 global mask register a standard id1 13-76 (c0gmskas0) (c0gmskas1) h'0080 1022 can0 global mask register a extended id0 can0 global mask register a extended id1 13-77 (c0gmskae0) (c0gmskae1) h'0080 1024 can0 global mask register a extended id2 (use inhibited area) 13-78 (c0gmskae2) h'0080 1026 (use inhibited area) h'0080 1028 can0 global mask register b standard id0 can0 global mask register b standard id1 13-76 (c0gmskbs0) (c0gmskbs1) h'0080 102a can0 global mask register b extended id0 can0 global mask register b extended id1 13-77 (c0gmskbe0) (c0gmskbe1) h'0080 102c can0 global mask register b extended id2 (use inhibited area) 13-78 (c0gmskbe2) h'0080 102e (use inhibited area) h'0080 1030 can0 local mask register a standard id0 can0 local mask register a standard id1 13-76 (c0lmskas0) (c0lmskas1) h'0080 1032 can0 local mask register a extended id0 can0 local mask register a extended id1 13-77 (c0lmskae0) (c0lmskae1) h'0080 1034 can0 local mask register a extended id2 (use inhibited area) 13-78 (c0lmskae2) h'0080 1036 (use inhibited area) h'0080 1038 can0 local mask register b standard id0 can0 local mask register b standard id1 13-76 (c0lmskbs0) (c0lmskbs1) h'0080 103a can0 local mask register b extended id0 can0 local mask register b extended id1 13-77 (c0lmskbe0) (c0lmskbe1) h'0080 103c can0 local mask register b extended id2 (use inhibited area) 13-78 (c0lmskbe2) h'0080 103e (use inhibited area) h'0080 1040 can0 single-shot mode control register (upper) 13-80 (can0ssmodew) (can0ssmode) h'0080 1042 (lower) (can0ssmodel) | 3.4 internal ram and sfr areas address space 3-28 3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (19/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 1044 can0 single-shot interrupt request status register (upper) 13-45 (can0ssistw) (can0ssist) h'0080 1046 (lower) (can0ssistl) h'0080 1048 can0 single-shot interrupt request mask register (upper) 13-47 (can0ssimkw) (can0ssimk) h'0080 104a (lower) (can0ssimkl) (use inhibited area) h'0080 1050 can0 message slot 0 control register can0 message slot 1 control register 13-82 (c0msl0cnt) (c0msl1cnt) h'0080 1052 can0 message slot 2 control register can0 message slot 3 control register 13-82 (c0msl2cnt) (c0msl3cnt) h'0080 1054 can0 message slot 4 control register can0 message slot 5 control register 13-82 (c0msl4cnt) (c0msl5cnt) h'0080 1056 can0 message slot 6 control register can0 message slot 7 control register 13-82 (c0msl6cnt) (c0msl7cnt) h'0080 1058 can0 message slot 8 control register can0 message slot 9 control register 13-82 (c0msl8cnt) (c0msl9cnt) h'0080 105a can0 message slot 10 control register can0 message slot 11 control register 13-82 (c0msl10cnt) (c0msl11cnt) h'0080 105c can0 message slot 12 control register can0 message slot 13 control register 13-82 (c0msl12cnt) (c0msl13cnt) h'0080 105e can0 message slot 14 control register can0 message slot 15 control register 13-82 (c0msl14cnt) (c0msl15cnt) h'0080 1060 can0 message slot 16 control register can0 message slot 17 control register 13-82 (c0msl16cnt) (c0msl17cnt) h'0080 1062 can0 message slot 18 control register can0 message slot 19 control register 13-82 (c0msl18cnt) (c0msl19cnt) h'0080 1064 can0 message slot 20 control register can0 message slot 21 control register 13-82 (c0msl20cnt) (c0msl21cnt) h'0080 1066 can0 message slot 22 control register can0 message slot 23 control register 13-82 (c0msl22cnt) (c0msl23cnt) h'0080 1068 can0 message slot 24 control register can0 message slot 25 control register 13-82 (c0msl24cnt) (c0msl25cnt) h'0080 106a can0 message slot 26 control register can0 message slot 27 control register 13-82 (c0msl26cnt) (c0msl27cnt) h'0080 106c can0 message slot 28 control register can0 message slot 29 control register 13-82 (c0msl28cnt) (c0msl29cnt) h'0080 106e can0 message slot 30 control register can0 message slot 31 control register 13-82 (c0msl30cnt) (c0msl31cnt) (use inhibited area) h'0080 1100 can0 message slot 0 standard id0 can0 message slot 0 standard id1 13-86 (c0msl0sid0) (c0msl0sid1) 13-88 h'0080 1102 can0 message slot 0 extended id0 can0 message slot 0 extended id1 13-90 (c0msl0eid0) (c0msl0eid1) 13-92 h'0080 1104 can0 message slot 0 extended id2 can0 message slot 0 data length register 13-94 (c0msl0eid2) (c0msl0dlc) 13-96 h'0080 1106 can0 message slot 0 data 0 can0 message slot 0 data 1 13-98 (c0msl0dt0) (c0msl0dt1) 13-100 h'0080 1108 can0 message slot 0 data 2 can0 message slot 0 data 3 13-102 (c0msl0dt2) (c0msl0dt3) 13-104 h'0080 110a can0 message slot 0 data 4 can0 message slot 0 data 5 13-106 (c0msl0dt4) (c0msl0dt5) 13-108 h'0080 110c can0 message slot 0 data 6 can0 message slot 0 data 7 13-110 (c0msl0dt6) (c0msl0dt7) 13-112 h'0080 110e can0 message slot 0 timestamp 13-114 (c0msl0tsp) h'0080 1110 can0 message slot 1 standard id0 can0 message slot 1 standard id1 13-86 (c0msl1sid0) (c0msl1sid1) 13-88 h'0080 1112 can0 message slot 1 extended id0 can0 message slot 1 extended id1 13-90 (c0msl1eid0) (c0msl1eid1) 13-92 h'0080 1114 can0 message slot 1 extended id2 can0 message slot 1 data length register 13-94 (c0msl1eid2) (c0msl1dlc) 13-96 h'0080 1116 can0 message slot 1 data 0 can0 message slot 1 data 1 13-98 (c0msl1dt0) (c0msl1dt1) 13-100 h'0080 1118 can0 message slot 1 data 2 can0 message slot 1 data 3 13-102 (c0msl1dt2) (c0msl1dt3) 13-104 | | 3.4 internal ram and sfr areas address space 3 3-29 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (20/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 111a can0 message slot 1 data 4 can0 message slot 1 data 5 13-106 (c0msl1dt4) (c0msl1dt5) 13-108 h'0080 111c can0 message slot 1 data 6 can0 message slot 1 data 7 13-110 (c0msl1dt6) (c0msl1dt7) 13-112 h'0080 111e can0 message slot 1 timestamp 13-114 (c0msl1tsp) h'0080 1120 can0 message slot 2 standard id0 can0 message slot 2 standard id1 13-86 (c0msl2sid0) (c0msl2sid1) 13-88 h'0080 1122 can0 message slot 2 extended id0 can0 message slot 2 extended id1 13-90 (c0msl2eid0) (c0msl2eid1) 13-92 h'0080 1124 can0 message slot 2 extended id2 can0 message slot 2 data length register 13-94 (c0msl2eid2) (c0msl2dlc) 13-96 h'0080 1126 can0 message slot 2 data 0 can0 message slot 2 data 1 13-98 (c0msl2dt0) (c0msl2dt1) 13-100 h'0080 1128 can0 message slot 2 data 2 can0 message slot 2 data 3 13-102 (c0msl2dt2) (c0msl2dt3) 13-104 h'0080 112a can0 message slot 2 data 4 can0 message slot 2 data 5 13-106 (c0msl2dt4) (c0msl2dt5) 13-108 h'0080 112c can0 message slot 2 data 6 can0 message slot 2 data 7 13-110 (c0msl2dt6) (c0msl2dt7) 13-112 h'0080 112e can0 message slot 2 timestamp 13-114 (c0msl2tsp) h'0080 1130 can0 message slot 3 standard id0 can0 message slot 3 standard id1 13-86 (c0msl3sid0) (c0msl3sid1) 13-88 h'0080 1132 can0 message slot 3 extended id0 can0 message slot 3 extended id1 13-90 (c0msl3eid0) (c0msl3eid1) 13-92 h'0080 1134 can0 message slot 3 extended id2 can0 message slot 3 data length register 13-94 (c0msl3eid2) (c0msl3dlc) 13-96 h'0080 1136 can0 message slot 3 data 0 can0 message slot 3 data 1 13-98 (c0msl3dt0) (c0msl3dt1) 13-100 h'0080 1138 can0 message slot 3 data 2 can0 message slot 3 data 3 13-102 (c0msl3dt2) (c0msl3dt3) 13-104 h'0080 113a can0 message slot 3 data 4 can0 message slot 3 data 5 13-106 (c0msl3dt4) (c0msl3dt5) 13-108 h'0080 113c can0 message slot 3 data 6 can0 message slot 3 data 7 13-110 (c0msl3dt6) (c0msl3dt7) 13-112 h'0080 113e can0 message slot 3 timestamp 13-114 (c0msl3tsp) h'0080 1140 can0 message slot 4 standard id0 can0 message slot 4 standard id1 13-86 (c0msl4sid0) (c0msl4sid1) 13-88 h'0080 1142 can0 message slot 4 extended id0 can0 message slot 4 extended id1 13-90 (c0msl4eid0) (c0msl4eid1) 13-92 h'0080 1144 can0 message slot 4 extended id2 can0 message slot 4 data length register 13-94 (c0msl4eid2) (c0msl4dlc) 13-96 h'0080 1146 can0 message slot 4 data 0 can0 message slot 4 data 1 13-98 (c0msl4dt0) (c0msl4dt1) 13-100 h'0080 1148 can0 message slot 4 data 2 can0 message slot 4 data 3 13-102 (c0msl4dt2) (c0msl4dt3) 13-104 h'0080 114a can0 message slot 4 data 4 can0 message slot 4 data 5 13-106 (c0msl4dt4) (c0msl4dt5) 13-108 h'0080 114c can0 message slot 4 data 6 can0 message slot 4 data 7 13-110 (c0msl4dt6) (c0msl4dt7) 13-112 h'0080 114e can0 message slot 4 timestamp 13-114 (c0msl4tsp) h'0080 1150 can0 message slot 5 standard id0 can0 message slot 5 standard id1 13-86 (c0msl5sid0) (c0msl5sid1) 13-88 h'0080 1152 can0 message slot 5 extended id0 can0 message slot 5 extended id1 13-90 (c0msl5eid0) (c0msl5eid1) 13-92 h'0080 1154 can0 message slot 5 extended id2 can0 message slot 5 data length register 13-94 (c0msl5eid2) (c0msl5dlc) 13-96 h'0080 1156 can0 message slot 5 data 0 can0 message slot 5 data 1 13-98 (c0msl5dt0) (c0msl5dt1) 13-100 h'0080 1158 can0 message slot 5 data 2 can0 message slot 5 data 3 13-102 (c0msl5dt2) (c0msl5dt3) 13-104 h'0080 115a can0 message slot 5 data 4 can0 message slot 5 data 5 13-106 (c0msl5dt4) (c0msl5dt5) 13-108 h'0080 115c can0 message slot 5 data 6 can0 message slot 5 data 7 13-110 (c0msl5dt6) (c0msl5dt7) 13-112 h'0080 115e can0 message slot 5 timestamp 13-114 (c0msl5tsp) 3.4 internal ram and sfr areas address space 3-30 3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (21/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 1160 can0 message slot 6 standard id0 can0 message slot 6 standard id1 13-86 (c0msl6sid0) (c0msl6sid1) 13-88 h'0080 1162 can0 message slot 6 extended id0 can0 message slot 6 extended id1 13-90 (c0msl6eid0) (c0msl6eid1) 13-92 h'0080 1164 can0 message slot 6 extended id2 can0 message slot 6 data length register 13-94 (c0msl6eid2) (c0msl6dlc) 13-96 h'0080 1166 can0 message slot 6 data 0 can0 message slot 6 data 1 13-98 (c0msl6dt0) (c0msl6dt1) 13-100 h'0080 1168 can0 message slot 6 data 2 can0 message slot 6 data 3 13-102 (c0msl6dt2) (c0msl6dt3) 13-104 h'0080 116a can0 message slot 6 data 4 can0 message slot 6 data 5 13-106 (c0msl6dt4) (c0msl6dt5) 13-108 h'0080 116c can0 message slot 6 data 6 can0 message slot 6 data 7 13-110 (c0msl6dt6) (c0msl6dt7) 13-112 h'0080 116e can0 message slot 6 timestamp 13-114 (c0msl6tsp) h'0080 1170 can0 message slot 7 standard id0 can0 message slot 7 standard id1 13-86 (c0msl7sid0) (c0msl7sid1) 13-88 h'0080 1172 can0 message slot 7 extended id0 can0 message slot 7 extended id1 13-90 (c0msl7eid0) (c0msl7eid1) 13-92 h'0080 1174 can0 message slot 7 extended id2 can0 message slot 7 data length register 13-94 (c0msl7eid2) (c0msl7dlc) 13-96 h'0080 1176 can0 message slot 7 data 0 can0 message slot 7 data 1 13-98 (c0msl7dt0) (c0msl7dt1) 13-100 h'0080 1178 can0 message slot 7 data 2 can0 message slot 7 data 3 13-102 (c0msl7dt2) (c0msl7dt3) 13-104 h'0080 117a can0 message slot 7 data 4 can0 message slot 7 data 5 13-106 (c0msl7dt4) (c0msl7dt5) 13-108 h'0080 117c can0 message slot 7 data 6 can0 message slot 7 data 7 13-110 (c0msl7dt6) (c0msl7dt7) 13-112 h'0080 117e can0 message slot 7 timestamp 13-114 (c0msl7tsp) h'0080 1180 can0 message slot 8 standard id0 can0 message slot 8 standard id1 13-86 (c0msl8sid0) (c0msl8sid1) 13-88 h'0080 1182 can0 message slot 8 extended id0 can0 message slot 8 extended id1 13-90 (c0msl8eid0) (c0msl8eid1) 13-92 h'0080 1184 can0 message slot 8 extended id2 can0 message slot 8 data length register 13-94 (c0msl8eid2) (c0msl8dlc) 13-96 h'0080 1186 can0 message slot 8 data 0 can0 message slot 8 data 1 13-98 (c0msl8dt0) (c0msl8dt1) 13-100 h'0080 1188 can0 message slot 8 data 2 can0 message slot 8 data 3 13-102 (c0msl8dt2) (c0msl8dt3) 13-104 h'0080 118a can0 message slot 8 data 4 can0 message slot 8 data 5 13-106 (c0msl8dt4) (c0msl8dt5) 13-108 h'0080 118c can0 message slot 8 data 6 can0 message slot 8 data 7 13-110 (c0msl8dt6) (c0msl8dt7) 13-112 h'0080 118e can0 message slot 8 timestamp 13-114 (c0msl8tsp) h'0080 1190 can0 message slot 9 standard id0 can0 message slot 9 standard id1 13-86 (c0msl9sid0) (c0msl9sid1) 13-88 h'0080 1192 can0 message slot 9 extended id0 can0 message slot 9 extended id1 13-90 (c0msl9eid0) (c0msl9eid1) 13-92 h'0080 1194 can0 message slot 9 extended id2 can0 message slot 9 data length register 13-94 (c0msl9eid2) (c0msl9dlc) 13-96 h'0080 1196 can0 message slot 9 data 0 can0 message slot 9 data 1 13-98 (c0msl9dt0) (c0msl9dt1) 13-100 h'0080 1198 can0 message slot 9 data 2 can0 message slot 9 data 3 13-102 (c0msl9dt2) (c0msl9dt3) 13-104 h'0080 119a can0 message slot 9 data 4 can0 message slot 9 data 5 13-106 (c0msl9dt4) (c0msl9dt5) 13-108 h'0080 119c can0 message slot 9 data 6 can0 message slot 9 data 7 13-110 (c0msl9dt6) (c0msl9dt7) 13-112 h'0080 119e can0 message slot 9 timestamp 13-114 (c0msl9tsp) h'0080 11a0 can0 message slot 10 standard id0 can0 message slot 10 standard id1 13-86 (c0msl10sid0) (c0msl10sid1) 13-88 h'0080 11a2 can0 message slot 10 extended id0 can0 message slot 10 extended id1 13-90 (c0msl10eid0) (c0msl10eid1) 13-92 h'0080 11a4 can0 message slot 10 extended id2 can0 message slot 10 data length register 13-94 (c0msl10eid2) (c0msl10dlc) 13-96 3.4 internal ram and sfr areas address space 3 3-31 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (22/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 11a6 can0 message slot 10 data 0 can0 message slot 10 data 1 13-98 (c0msl10dt0) (c0msl10dt1) 13-100 h'0080 11a8 can0 message slot 10 data 2 can0 message slot 10 data 3 13-102 (c0msl10dt2) (c0msl10dt3) 13-104 h'0080 11aa can0 message slot 10 data 4 can0 message slot 10 data 5 13-106 (c0msl10dt4) (c0msl10dt5) 13-108 h'0080 11ac can0 message slot 10 data 6 can0 message slot 10 data 7 13-110 (c0msl10dt6) (c0msl10dt7) 13-112 h'0080 11ae can0 message slot 10 timestamp 13-114 (c0msl10tsp) h'0080 11b0 can0 message slot 11 standard id0 can0 message slot 11 standard id1 13-86 (c0msl11sid0) (c0msl11sid1) 13-88 h'0080 11b2 can0 message slot 11 extended id0 can0 message slot 11 extended id1 13-90 (c0msl11eid0) (c0msl11eid1) 13-92 h'0080 11b4 can0 message slot 11 extended id2 can0 message slot 11 data length register 13-94 (c0msl11eid2) (c0msl11dlc) 13-96 h'0080 11b6 can0 message slot 11 data 0 can0 message slot 11 data 1 13-98 (c0msl11dt0) (c0msl11dt1) 13-100 h'0080 11b8 can0 message slot 11 data 2 can0 message slot 11 data 3 13-102 (c0msl11dt2) (c0msl11dt3) 13-104 h'0080 11ba can0 message slot 11 data 4 can0 message slot 11 data 5 13-106 (c0msl11dt4) (c0msl11dt5) 13-108 h'0080 11bc can0 message slot 11 data 6 can0 message slot 11 data 7 13-110 (c0msl11dt6) (c0msl11dt7) 13-112 h'0080 11be can0 message slot 11 timestamp 13-114 (c0msl11tsp) h'0080 11c0 can0 message slot 12 standard id0 can0 message slot 12 standard id1 13-86 (c0msl12sid0) (c0msl12sid1) 13-88 h'0080 11c2 can0 message slot 12 extended id0 can0 message slot 12 extended id1 13-90 (c0msl12eid0) (c0msl12eid1) 13-92 h'0080 11c4 can0 message slot 12 extended id2 can0 message slot 12 data length register 13-94 (c0msl12eid2) (c0msl12dlc) 13-96 h'0080 11c6 can0 message slot 12 data 0 can0 message slot 12 data 1 13-98 (c0msl12dt0) (c0msl12dt1) 13-100 h'0080 11c8 can0 message slot 12 data 2 can0 message slot 12 data 3 13-102 (c0msl12dt2) (c0msl12dt3) 13-104 h'0080 11ca can0 message slot 12 data 4 can0 message slot 12 data 5 13-106 (c0msl12dt4) (c0msl12dt5) 13-108 h'0080 11cc can0 message slot 12 data 6 can0 message slot 12 data 7 13-110 (c0msl12dt6) (c0msl12dt7) 13-112 h'0080 11ce can0 message slot 12 timestamp 13-114 (c0msl12tsp) h'0080 11d0 can0 message slot 13 standard id0 can0 message slot 13 standard id1 13-86 (c0msl13sid0) (c0msl13sid1) 13-88 h'0080 11d2 can0 message slot 13 extended id0 can0 message slot 13 extended id1 13-90 (c0msl13eid0) (c0msl13eid1) 13-92 h'0080 11d4 can0 message slot 13 extended id2 can0 message slot 13 data length register 13-94 (c0msl13eid2) (c0msl13dlc) 13-96 h'0080 11d6 can0 message slot 13 data 0 can0 message slot 13 data 1 13-98 (c0msl13dt0) (c0msl13dt1) 13-100 h'0080 11d8 can0 message slot 13 data 2 can0 message slot 13 data 3 13-102 (c0msl13dt2) (c0msl13dt3) 13-104 h'0080 11da can0 message slot 13 data 4 can0 message slot 13 data 5 13-106 (c0msl13dt4) (c0msl13dt5) 13-108 h'0080 11dc can0 message slot 13 data 6 can0 message slot 13 data 7 13-110 (c0msl13dt6) (c0msl13dt7) 13-112 h'0080 11de can0 message slot 13 timestamp 13-114 (c0msl13tsp) h'0080 11e0 can0 message slot 14 standard id0 can0 message slot 14 standard id1 13-86 (c0msl14sid0) (c0msl14sid1) 13-88 h'0080 11e2 can0 message slot 14 extended id0 can0 message slot 14 extended id1 13-90 (c0msl14eid0) (c0msl14eid1) 13-92 h'0080 11e4 can0 message slot 14 extended id2 can0 message slot 14 data length register 13-94 (c0msl14eid2) (c0msl14dlc) 13-96 h'0080 11e6 can0 message slot 14 data 0 can0 message slot 14 data 1 13-98 (c0msl14dt0) (c0msl14dt1) 13-100 h'0080 11e8 can0 message slot 14 data 2 can0 message slot 14 data 3 13-102 (c0msl14dt2) (c0msl14dt3) 13-104 h'0080 11ea can0 message slot 14 data 4 can0 message slot 14 data 5 13-106 (c0msl14dt4) (c0msl14dt5) 13-108 3.4 internal ram and sfr areas address space 3-32 3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (23/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 11ec can0 message slot 14 data 6 can0 message slot 14 data 7 13-110 (c0msl14dt6) (c0msl14dt7) 13-112 h'0080 11ee can0 message slot 14 timestamp 13-114 (c0msl14tsp) h'0080 11f0 can0 message slot 15 standard id0 can0 message slot 15 standard id1 13-86 (c0msl15sid0) (c0msl15sid1) 13-88 h'0080 11f2 can0 message slot 15 extended id0 can0 message slot 15 extended id1 13-90 (c0msl15eid0) (c0msl15eid1) 13-92 h'0080 11f4 can0 message slot 15 extended id2 can0 message slot 15 data length register 13-94 (c0msl15eid2) (c0msl15dlc) 13-96 h'0080 11f6 can0 message slot 15 data 0 can0 message slot 15 data 1 13-98 (c0msl15dt0) (c0msl15dt1) 13-100 h'0080 11f8 can0 message slot 15 data 2 can0 message slot 15 data 3 13-102 (c0msl15dt2) (c0msl15dt3) 13-104 h'0080 11fa can0 message slot 15 data 4 can0 message slot 15 data 5 13-106 (c0msl15dt4) (c0msl15dt5) 13-108 h'0080 11fc can0 message slot 15 data 6 can0 message slot 15 data 7 13-110 (c0msl15dt6) (c0msl15dt7) 13-112 h'0080 11fe can0 message slot 15 timestamp 13-114 (c0msl15tsp) h'0080 1200 can0 message slot 16 standard id0 can0 message slot 16 standard id1 13-86 (c0msl16sid0) (c0msl16sid1) 13-88 h'0080 1202 can0 message slot 16 extended id0 can0 message slot 16 extended id1 13-90 (c0msl16eid0) (c0msl16eid1) 13-92 h'0080 1204 can0 message slot 16 extended id2 can0 message slot 16 data length register 13-94 (c0msl16eid2) (c0msl16dlc) 13-96 h'0080 1206 can0 message slot 16 data 0 can0 message slot 16 data 1 13-98 (c0msl16dt0) (c0msl16dt1) 13-100 h'0080 1208 can0 message slot 16 data 2 can0 message slot 16 data 3 13-102 (c0msl16dt2) (c0msl16dt3) 13-104 h'0080 120a can0 message slot 16 data 4 can0 message slot 16 data 5 13-106 (c0msl16dt4) (c0msl16dt5) 13-108 h'0080 120c can0 message slot 16 data 6 can0 message slot 16 data 7 13-110 (c0msl16dt6) (c0msl16dt7) 13-112 h'0080 120e can0 message slot 16 timestamp 13-114 (c0msl16tsp) h'0080 1210 can0 message slot 17 standard id0 can0 message slot 17 standard id1 13-86 (c0msl17sid0) (c0msl17sid1) 13-88 h'0080 1212 can0 message slot 17 extended id0 can0 message slot 17 extended id1 13-90 (c0msl17eid0) (c0msl17eid1) 13-92 h'0080 1214 can0 message slot 17 extended id2 can0 message slot 17 data length register 13-94 (c0msl17eid2) (c0msl17dlc) 13-96 h'0080 1216 can0 message slot 17 data 0 can0 message slot 17 data 1 13-98 (c0msl17dt0) (c0msl17dt1) 13-100 h'0080 1218 can0 message slot 17 data 2 can0 message slot 17 data 3 13-102 (c0msl17dt2) (c0msl17dt3) 13-104 h'0080 121a can0 message slot 17 data 4 can0 message slot 17 data 5 13-106 (c0msl17dt4) (c0msl17dt5) 13-108 h'0080 121c can0 message slot 17 data 6 can0 message slot 17 data 7 13-110 (c0msl17dt6) (c0msl17dt7) 13-112 h'0080 121e can0 message slot 17 timestamp 13-114 (c0msl17tsp) h'0080 1220 can0 message slot 18 standard id0 can0 message slot 18 standard id1 13-86 (c0msl18sid0) (c0msl18sid1) 13-88 h'0080 1222 can0 message slot 18 extended id0 can0 message slot 18 extended id1 13-90 (c0msl18eid0) (c0msl18eid1) 13-92 h'0080 1224 can0 message slot 18 extended id2 can0 message slot 18 data length register 13-94 (c0msl18eid2) (c0msl18dlc) 13-96 h'0080 1226 can0 message slot 18 data 0 can0 message slot 18 data 1 13-98 (c0msl18dt0) (c0msl18dt1) 13-100 h'0080 1228 can0 message slot 18 data 2 can0 message slot 18 data 3 13-102 (c0msl18dt2) (c0msl18dt3) 13-104 h'0080 122a can0 message slot 18 data 4 can0 message slot 18 data 5 13-106 (c0msl18dt4) (c0msl18dt5) 13-108 h'0080 122c can0 message slot 18 data 6 can0 message slot 18 data 7 13-110 (c0msl18dt6) (c0msl18dt7) 13-112 h'0080 122e can0 message slot 18 timestamp 13-114 (c0msl18tsp) h'0080 1230 can0 message slot 19 standard id0 can0 message slot 19 standard id1 13-86 (c0msl19sid0) (c0msl19sid1) 13-88 3.4 internal ram and sfr areas address space 3 3-33 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (24/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 1232 can0 message slot 19 extended id0 can0 message slot 19 extended id1 13-90 (c0msl19eid0) (c0msl19eid1) 13-92 h'0080 1234 can0 message slot 19 extended id2 can0 message slot 19 data length register 13-94 (c0msl19eid2) (c0msl19dlc) 13-96 h'0080 1236 can0 message slot 19 data 0 can0 message slot 19 data 1 13-98 (c0msl19dt0) (c0msl19dt1) 13-100 h'0080 1238 can0 message slot 19 data 2 can0 message slot 19 data 3 13-102 (c0msl19dt2) (c0msl19dt3) 13-104 h'0080 123a can0 message slot 19 data 4 can0 message slot 19 data 5 13-106 (c0msl19dt4) (c0msl19dt5) 13-108 h'0080 123c can0 message slot 19 data 6 can0 message slot 19 data 7 13-110 (c0msl19dt6) (c0msl19dt7) 13-112 h'0080 123e can0 message slot 19 timestamp 13-114 (c0msl19tsp) h'0080 1240 can0 message slot 20 standard id0 can0 message slot 20 standard id1 13-86 (c0msl20sid0) (c0msl20sid1) 13-88 h'0080 1242 can0 message slot 20 extended id0 can0 message slot 20 extended id1 13-90 (c0msl20eid0) (c0msl20eid1) 13-92 h'0080 1244 can0 message slot 20 extended id2 can0 message slot 20 data length register 13-94 (c0msl20eid2) (c0msl20dlc) 13-96 h'0080 1246 can0 message slot 20 data 0 can0 message slot 20 data 1 13-98 (c0msl20dt0) (c0msl20dt1) 13-100 h'0080 1248 can0 message slot 20 data 2 can0 message slot 20 data 3 13-102 (c0msl20dt2) (c0msl20dt3) 13-104 h'0080 124a can0 message slot 20 data 4 can0 message slot 20 data 5 13-106 (c0msl20dt4) (c0msl20dt5) 13-108 h'0080 124c can0 message slot 20 data 6 can0 message slot 20 data 7 13-110 (c0msl20dt6) (c0msl20dt7) 13-112 h'0080 124e can0 message slot 20 timestamp 13-114 (c0msl20tsp) h'0080 1250 can0 message slot 21 standard id0 can0 message slot 21 standard id1 13-86 (c0msl21sid0) (c0msl21sid1) 13-88 h'0080 1252 can0 message slot 21 extended id0 can0 message slot 21 extended id1 13-90 (c0msl21eid0) (c0msl21eid1) 13-92 h'0080 1254 can0 message slot 21 extended id2 can0 message slot 21 data length register 13-94 (c0msl21eid2) (c0msl21dlc) 13-96 h'0080 1256 can0 message slot 21 data 0 can0 message slot 21 data 1 13-98 (c0msl21dt0) (c0msl21dt1) 13-100 h'0080 1258 can0 message slot 21 data 2 can0 message slot 21 data 3 13-102 (c0msl21dt2) (c0msl21dt3) 13-104 h'0080 125a can0 message slot 21 data 4 can0 message slot 21 data 5 13-106 (c0msl21dt4) (c0msl21dt5) 13-108 h'0080 125c can0 message slot 21 data 6 can0 message slot 21 data 7 13-110 (c0msl21dt6) (c0msl21dt7) 13-112 h'0080 125e can0 message slot 21 timestamp 13-114 (c0msl21tsp) h'0080 1260 can0 message slot 22 standard id0 can0 message slot 22 standard id1 13-86 (c0msl22sid0) (c0msl22sid1) 13-88 h'0080 1262 can0 message slot 22 extended id0 can0 message slot 22 extended id1 13-90 (c0msl22eid0) (c0msl22eid1) 13-92 h'0080 1264 can0 message slot 22 extended id2 can0 message slot 22 data length register 13-94 (c0msl22eid2) (c0msl22dlc) 13-96 h'0080 1266 can0 message slot 22 data 0 can0 message slot 22 data 1 13-98 (c0msl22dt0) (c0msl22dt1) 13-100 h'0080 1268 can0 message slot 22 data 2 can0 message slot 22 data 3 13-102 (c0msl22dt2) (c0msl22dt3) 13-104 h'0080 126a can0 message slot 22 data 4 can0 message slot 22 data 5 13-106 (c0msl22dt4) (c0msl22dt5) 13-108 h'0080 126c can0 message slot 22 data 6 can0 message slot 22 data 7 13-110 (c0msl22dt6) (c0msl22dt7) 13-112 h'0080 126e can0 message slot 22 timestamp 13-114 (c0msl22tsp) h'0080 1270 can0 message slot 23 standard id0 can0 message slot 23 standard id1 13-86 (c0msl23sid0) (c0msl23sid1) 13-88 h'0080 1272 can0 message slot 23 extended id0 can0 message slot 23 extended id1 13-90 (c0msl23eid0) (c0msl23eid1) 13-92 h'0080 1274 can0 message slot 23 extended id2 can0 message slot 23 data length register 13-94 (c0msl23eid2) (c0msl23dlc) 13-96 h'0080 1276 can0 message slot 23 data 0 can0 message slot 23 data 1 13-98 (c0msl23dt0) (c0msl23dt1) 13-100 3.4 internal ram and sfr areas address space 3-34 3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (25/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 1280 can0 message slot 24 standard id0 can0 message slot 24 standard id1 13-86 (c0msl24sid0) (c0msl24sid1) 13-88 h'0080 1282 can0 message slot 24 extended id0 can0 message slot 24 extended id1 13-90 (c0msl24eid0) (c0msl24eid1) 13-92 h'0080 1284 can0 message slot 24 extended id2 can0 message slot 24 data length register 13-94 (c0msl24eid2) (c0msl24dlc) 13-96 h'0080 1286 can0 message slot 24 data 0 can0 message slot 24 data 1 13-98 (c0msl24dt0) (c0msl24dt1) 13-100 h'0080 1288 can0 message slot 24 data 2 can0 message slot 24 data 3 13-102 (c0msl24dt2) (c0msl24dt3) 13-104 h'0080 128a can0 message slot 24 data 4 can0 message slot 24 data 5 13-106 (c0msl24dt4) (c0msl24dt5) 13-108 h'0080 128c can0 message slot 24 data 6 can0 message slot 24 data 7 13-110 (c0msl24dt6) (c0msl24dt7) 13-112 h'0080 128e can0 message slot 24 timestamp 13-114 (c0msl24tsp) h'0080 1290 can0 message slot 25 standard id0 can0 message slot 25 standard id1 13-86 (c0msl25sid0) (c0msl25sid1) 13-88 h'0080 1292 can0 message slot 25 extended id0 can0 message slot 25 extended id1 13-90 (c0msl25eid0) (c0msl25eid1) 13-92 h'0080 1294 can0 message slot 25 extended id2 can0 message slot 25 data length register 13-94 (c0msl25eid2) (c0msl25dlc) 13-96 h'0080 1296 can0 message slot 25 data 0 can0 message slot 25 data 1 13-98 (c0msl25dt0) (c0msl25dt1) 13-100 h'0080 1298 can0 message slot 25 data 2 can0 message slot 25 data 3 13-102 (c0msl25dt2) (c0msl25dt3) 13-104 h'0080 129a can0 message slot 25 data 4 can0 message slot 25 data 5 13-106 (c0msl25dt4) (c0msl25dt5) 13-108 h'0080 129c can0 message slot 25 data 6 can0 message slot 25 data 7 13-110 (c0msl25dt6) (c0msl25dt7) 13-112 h'0080 129e can0 message slot 25 timestamp 13-114 (c0msl25tsp) h'0080 12a0 can0 message slot 26 standard id0 can0 message slot 26 standard id1 13-86 (c0msl26sid0) (c0msl26sid1) 13-88 h'0080 12a2 can0 message slot 26 extended id0 can0 message slot 26 extended id1 13-90 (c0msl26eid0) (c0msl26eid1) 13-92 h'0080 12a4 can0 message slot 26 extended id2 can0 message slot 26 data length register 13-94 (c0msl26eid2) (c0msl26dlc) 13-96 h'0080 12a6 can0 message slot 26 data 0 can0 message slot 26 data 1 13-98 (c0msl26dt0) (c0msl26dt1) 13-100 h'0080 12a8 can0 message slot 26 data 2 can0 message slot 26 data 3 13-102 (c0msl26dt2) (c0msl26dt3) 13-104 h'0080 12aa can0 message slot 26 data 4 can0 message slot 26 data 5 13-106 (c0msl26dt4) (c0msl26dt5) 13-108 h'0080 12ac can0 message slot 26 data 6 can0 message slot 26 data 7 13-110 (c0msl26dt6) (c0msl26dt7) 13-112 h'0080 12ae can0 message slot 26 timestamp 13-114 (c0msl26tsp) h'0080 12b0 can0 message slot 27 standard id0 can0 message slot 27 standard id1 13-86 (c0msl27sid0) (c0msl27sid1) 13-88 h'0080 12b2 can0 message slot 27 extended id0 can0 message slot 27 extended id1 13-90 (c0msl27eid0) (c0msl27eid1) 13-92 h'0080 12b4 can0 message slot 27 extended id2 can0 message slot 27 data length register 13-94 (c0msl27eid2) (c0msl27dlc) 13-96 h'0080 12b6 can0 message slot 27 data 0 can0 message slot 27 data 1 13-98 (c0msl27dt0) (c0msl27dt1) 13-100 h'0080 12b8 can0 message slot 27 data 2 can0 message slot 27 data 3 13-102 (c0msl27dt2) (c0msl27dt3) 13-104 h'0080 12ba can0 message slot 27 data 4 can0 message slot 27 data 5 13-106 (c0msl27dt4) (c0msl27dt5) 13-108 h'0080 12bc can0 message slot 27 data 6 can0 message slot 27 data 7 13-110 (c0msl27dt6) (c0msl27dt7) 13-112 h'0080 1278 can0 message slot 23 data 2 can0 message slot 23 data 3 13-102 (c0msl23dt2) (c0msl23dt3) 13-104 h'0080 127a can0 message slot 23 data 4 can0 message slot 23 data 5 13-106 (c0msl23dt4) (c0msl23dt5) 13-108 h'0080 127c can0 message slot 23 data 6 can0 message slot 23 data 7 13-110 (c0msl23dt6) (c0msl23dt7) 13-112 h'0080 127e can0 message slot 23 timestamp 13-114 (c0msl23tsp) 3.4 internal ram and sfr areas address space 3 3-35 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (26/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 12be can0 message slot 27 timestamp 13-114 (c0msl27tsp) h'0080 12c0 can0 message slot 28 standard id0 can0 message slot 28 standard id1 13-86 (c0msl28sid0) (c0msl28sid1) 13-88 h'0080 12c2 can0 message slot 28 extended id0 can0 message slot 28 extended id1 13-90 (c0msl28eid0) (c0msl28eid1) 13-92 h'0080 12c4 can0 message slot 28 extended id2 can0 message slot 28 data length register 13-94 (c0msl28eid2) (c0msl28dlc) 13-96 h'0080 12c6 can0 message slot 28 data 0 can0 message slot 28 data 1 13-98 (c0msl28dt0) (c0msl28dt1) 13-100 h'0080 12c8 can0 message slot 28 data 2 can0 message slot 28 data 3 13-102 (c0msl28dt2) (c0msl28dt3) 13-104 h'0080 12ca can0 message slot 28 data 4 can0 message slot 28 data 5 13-106 (c0msl28dt4) (c0msl28dt5) 13-108 h'0080 12cc can0 message slot 28 data 6 can0 message slot 28 data 7 13-110 (c0msl28dt6) (c0msl28dt7) 13-112 h'0080 12ce can0 message slot 28 timestamp 13-114 (c0msl28tsp) h'0080 12d0 can0 message slot 29 standard id0 can0 message slot 29 standard id1 13-86 (c0msl29sid0) (c0msl29sid1) 13-88 h'0080 12d2 can0 message slot 29 extended id0 can0 message slot 29 extended id1 13-90 (c0msl29eid0) (c0msl29eid1) 13-92 h'0080 12d4 can0 message slot 29 extended id2 can0 message slot 29 data length register 13-94 (c0msl29eid2) (c0msl29dlc) 13-96 h'0080 12d6 can0 message slot 29 data 0 can0 message slot 29 data 1 13-98 (c0msl29dt0) (c0msl29dt1) 13-100 h'0080 12d8 can0 message slot 29 data 2 can0 message slot 29 data 3 13-102 (c0msl29dt2) (c0msl29dt3) 13-104 h'0080 12da can0 message slot 29 data 4 can0 message slot 29 data 5 13-106 (c0msl29dt4) (c0msl29dt5) 13-108 h'0080 12dc can0 message slot 29 data 6 can0 message slot 29 data 7 13-110 (c0msl29dt6) (c0msl29dt7) 13-112 h'0080 12de can0 message slot 29 timestamp 13-114 (c0msl29tsp) h'0080 12e0 can0 message slot 30 standard id0 can0 message slot 30 standard id1 13-86 (c0msl30sid0) (c0msl30sid1) 13-88 h'0080 12e2 can0 message slot 30 extended id0 can0 message slot 30 extended id1 13-90 (c0msl30eid0) (c0msl30eid1) 13-92 h'0080 12e4 can0 message slot 30 extended id2 can0 message slot 30 data length register 13-94 (c0msl30eid2) (c0msl30dlc) 13-96 h'0080 12e6 can0 message slot 30 data 0 can0 message slot 30 data 1 13-98 (c0msl30dt0) (c0msl30dt1) 13-100 h'0080 12e8 can0 message slot 30 data 2 can0 message slot 30 data 3 13-102 (c0msl30dt2) (c0msl30dt3) 13-104 h'0080 12ea can0 message slot 30 data 4 can0 message slot 30 data 5 13-106 (c0msl30dt4) (c0msl30dt5) 13-108 h'0080 12ec can0 message slot 30 data 6 can0 message slot 30 data 7 13-110 (c0msl30dt6) (c0msl30dt7) 13-112 h'0080 12ee can0 message slot 30 timestamp 13-114 (c0msl30tsp) h'0080 12f0 can0 message slot 31 standard id0 can0 message slot 31 standard id1 13-86 (c0msl31sid0) (c0msl31sid1) 13-88 h'0080 12f2 can0 message slot 31 extended id0 can0 message slot 31 extended id1 13-90 (c0msl31eid0) (c0msl31eid1) 13-92 h'0080 12f4 can0 message slot 31 extended id2 can0 message slot 31 data length register 13-94 (c0msl31eid2) (c0msl31dlc) 13-96 h'0080 12f6 can0 message slot 31 data 0 can0 message slot 31 data 1 13-98 (c0msl31dt0) (c0msl31dt1) 13-100 h'0080 12f8 can0 message slot 31 data 2 can0 message slot 31 data 3 13-102 (c0msl31dt2) (c0msl31dt3) 13-104 h'0080 12fa can0 message slot 31 data 4 can0 message slot 31 data 5 13-106 (c0msl31dt4) (c0msl31dt5) 13-108 h'0080 12fc can0 message slot 31 data 6 can0 message slot 31 data 7 13-110 (c0msl31dt6) (c0msl31dt7) 13-112 h'0080 12fe can0 message slot 31 timestamp 13-114 (c0msl31tsp) (use inhibited area) | 3.4 internal ram and sfr areas address space 3-36 3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (27/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 1400 can1 control register 13-26 (can1cnt) h'0080 1402 can1 status register 13-29 (can1stat) h'0080 1404 (use inhibited area) h'0080 1406 can1 configuration register 13-32 (can1conf) h'0080 1408 can1 timestamp count register 13-35 (can1tstmp) h'0080 140a can1 receive error count register can1 transmit error count register 13-36 (can1rec) (can1tec) h'0080 140c can1 slot interrupt request status register (upper) 13-40 (can1slistw) (can1slist) h'0080 140e (lower) (can1slistl) h'0080 1410 can1 slot interrupt request mask register (upper) 13-42 (can1slimkw) (can1slimk) h'0080 1412 (lower) (can1slimkl) h'0080 1414 can1 error interrupt request status register can1 error interrupt request mask register 13-43 (can1erist) (can1erimk) 13-44 h'0080 1416 can1 baud rate prescaler can1 cause of error register 13-37 (can1brp) (can1ef) 13-67 h'0080 1418 can1 mode register can1 dma transfer request select register 13-69 (can1mod) (can1dmarq) 13-70 h'0080 141a can1 message slot number register can1 clock select register 13-71 (can1msn) (can1cksel) 13-72 h'0080 141c can1 frame format select register (upper) 13-74 (can1ffsw) (can1ffs) h'0080 141e (lower) (can1ffsl) h'0080 1420 can1 global mask register a standard id0 can1 global mask register a standard id1 13-76 (c1gmskas0) (c1gmskas1) h'0080 1422 can1 global mask register a extended id0 can1 global mask register a extended id1 13-77 (c1gmskae0) (c1gmskae1) h'0080 1424 can1 global mask register a extended id2 (use inhibited area) 13-78 (c1gmskae2) h'0080 1426 (use inhibited area) h'0080 1428 can1 global mask register b standard id0 can1 global mask register b standard id1 13-76 (c1gmskbs0) (c1gmskbs1) h'0080 142a can1 global mask register b extended id0 can1 global mask register b extended id1 13-77 (c1gmskbe0) (c1gmskbe1) h'0080 142c can1 global mask register b extended id2 (use inhibited area) 13-78 (c1gmskbe2) h'0080 142e (use inhibited area) h'0080 1430 can1 local mask register a standard id0 can1 local mask register a standard id1 13-76 (c1lmskas0) (c1lmskas1) h'0080 1432 can1 local mask register a extended id0 can1 local mask register a extended id1 13-77 (c1lmskae0) (c1lmskae1) h'0080 1434 can1 local mask register a extended id2 (use inhibited area) 13-78 (c1lmskae2) h'0080 1436 (use inhibited area) h'0080 1438 can1 local mask register b standard id0 can1 local mask register b standard id1 13-76 (c1lmskbs0) (c1lmskbs1) h'0080 143a can1 local mask register b extended id0 can1 local mask register b extended id1 13-77 (c1lmskbe0) (c1lmskbe1) h'0080 143c can1 local mask register b extended id2 (use inhibited area) 13-78 (c1lmskbe2) h'0080 143e (use inhibited area) h'0080 1440 can1 single-shot mode control register (upper) 13-80 (can1ssmodew) (can1ssmode) h'0080 1442 (lower) (can1ssmodel) 3.4 internal ram and sfr areas address space 3 3-37 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (28/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 1444 can1 single-shot interrupt request status register (upper) 13-45 (can1ssistw) (can1ssist) h'0080 1446 (lower) (can1ssistl) h'0080 1448 can1 single-shot interrupt request mask register (upper) 13-47 (can1ssimkw) (can1ssimk) h'0080 144a (lower) (can1ssimkl) (use inhibited area) h'0080 1450 can1 message slot 0 control register can1 message slot 1 control register 13-82 (c1msl0cnt) (c1msl1cnt) h'0080 1452 can1 message slot 2 control register can1 message slot 3 control register 13-82 (c1msl2cnt) (c1msl3cnt) h'0080 1454 can1 message slot 4 control register can1 message slot 5 control register 13-82 (c1msl4cnt) (c1msl5cnt) h'0080 1456 can1 message slot 6 control register can1 message slot 7 control register 13-82 (c1msl6cnt) (c1msl7cnt) h'0080 1458 can1 message slot 8 control register can1 message slot 9 control register 13-82 (c1msl8cnt) (c1msl9cnt) h'0080 145a can1 message slot 10 control register can1 message slot 11 control register 13-82 (c1msl10cnt) (c1msl11cnt) h'0080 145c can1 message slot 12 control register can1 message slot 13 control register 13-82 (c1msl12cnt) (c1msl13cnt) h'0080 145e can1 message slot 14 control register can1 message slot 15 control register 13-82 (c1msl14cnt) (c1msl15cnt) h'0080 1460 can1 message slot 16 control register can1 message slot 17 control register 13-83 (c1msl16cnt) (c1msl17cnt) h'0080 1462 can1 message slot 18 control register can1 message slot 19 control register 13-83 (c1msl18cnt) (c1msl19cnt) h'0080 1464 can1 message slot 20 control register can1 message slot 21 control register 13-83 (c1msl20cnt) (c1msl21cnt) h'0080 1466 can1 message slot 22 control register can1 message slot 23 control register 13-83 (c1msl22cnt) (c1msl23cnt) h'0080 1468 can1 message slot 24 control register can1 message slot 25 control register 13-83 (c1msl24cnt) (c1msl25cnt) h'0080 146a can1 message slot 26 control register can1 message slot 27 control register 13-83 (c1msl26cnt) (c1msl27cnt) h'0080 146c can1 message slot 28 control register can1 message slot 29 control register 13-83 (c1msl28cnt) (c1msl29cnt) h'0080 146e can1 message slot 30 control register can1 message slot 31 control register 13-83 (c1msl30cnt) (c1msl31cnt) (use inhibited area) h'0080 1500 can1 message slot 0 standard id0 can1 message slot 0 standard id1 13-86 (c1msl0sid0) (c1msl0sid1) 13-88 h'0080 1502 can1 message slot 0 extended id0 can1 message slot 0 extended id1 13-90 (c1msl0eid0) (c1msl0eid1) 13-92 h'0080 1504 can1 message slot 0 extended id2 can1 message slot 0 data length register 13-94 (c1msl0eid2) (c1msl0dlc) 13-96 h'0080 1506 can1 message slot 0 data 0 can1 message slot 0 data 1 13-98 (c1msl0dt0) (c1msl0dt1) 13-100 h'0080 1508 can1 message slot 0 data 2 can1 message slot 0 data 3 13-102 (c1msl0dt2) (c1msl0dt3) 13-104 h'0080 150a can1 message slot 0 data 4 can1 message slot 0 data 5 13-106 (c1msl0dt4) (c1msl0dt5) 13-108 h'0080 150c can1 message slot 0 data 6 can1 message slot 0 data 7 13-110 (c1msl0dt6) (c1msl0dt7) 13-112 h'0080 150e can1 message slot 0 timestamp 13-114 (c1msl0tsp) h'0080 1510 can1 message slot 1 standard id0 can1 message slot 1 standard id1 13-86 (c1msl1sid0) (c1msl1sid1) 13-88 h'0080 1512 can1 message slot 1 extended id0 can1 message slot 1 extended id1 13-90 (c1msl1eid0) (c1msl1eid1) 13-92 h'0080 1514 can1 message slot 1 extended id2 can1 message slot 1 data length register 13-94 (c1msl1eid2) (c1msl1dlc) 13-96 h'0080 1516 can1 message slot 1 data 0 can1 message slot 1 data 1 13-98 (c1msl1dt0) (c1msl1dt1) 13-100 h'0080 1518 can1 message slot 1 data 2 can1 message slot 1 data 3 13-102 (c1msl1dt2) (c1msl1dt3) 13-104 | | 3.4 internal ram and sfr areas address space 3-38 3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (29/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 151a can1 message slot 1 data 4 can1 message slot 1 data 5 13-106 (c1msl1dt4) (c1msl1dt5) 13-108 h'0080 151c can1 message slot 1 data 6 can1 message slot 1 data 7 13-110 (c1msl1dt6) (c1msl1dt7) 13-112 h'0080 151e can1 message slot 1 timestamp 13-114 (c1msl1tsp) h'0080 1520 can1 message slot 2 standard id0 can1 message slot 2 standard id1 13-86 (c1msl2sid0) (c1msl2sid1) 13-88 h'0080 1522 can1 message slot 2 extended id0 can1 message slot 2 extended id1 13-90 (c1msl2eid0) (c1msl2eid1) 13-92 h'0080 1524 can1 message slot 2 extended id2 can1 message slot 2 data length register 13-94 (c1msl2eid2) (c1msl2dlc) 13-96 h'0080 1526 can1 message slot 2 data 0 can1 message slot 2 data 1 13-98 (c1msl2dt0) (c1msl2dt1) 13-100 h'0080 1528 can1 message slot 2 data 2 can1 message slot 2 data 3 13-102 (c1msl2dt2) (c1msl2dt3) 13-104 h'0080 152a can1 message slot 2 data 4 can1 message slot 2 data 5 13-106 (c1msl2dt4) (c1msl2dt5) 13-108 h'0080 152c can1 message slot 2 data 6 can1 message slot 2 data 7 13-110 (c1msl2dt6) (c1msl2dt7) 13-112 h'0080 152e can1 message slot 2 timestamp 13-114 (c1msl2tsp) h'0080 1530 can1 message slot 3 standard id0 can1 message slot 3 standard id1 13-86 (c1msl3sid0) (c1msl3sid1) 13-88 h'0080 1532 can1 message slot 3 extended id0 can1 message slot 3 extended id1 13-90 (c1msl3eid0) (c1msl3eid1) 13-92 h'0080 1534 can1 message slot 3 extended id2 can1 message slot 3 data length register 13-94 (c1msl3eid2) (c1msl3dlc) 13-96 h'0080 1536 can1 message slot 3 data 0 can1 message slot 3 data 1 13-98 (c1msl3dt0) (c1msl3dt1) 13-100 h'0080 1538 can1 message slot 3 data 2 can1 message slot 3 data 3 13-102 (c1msl3dt2) (c1msl3dt3) 13-104 h'0080 153a can1 message slot 3 data 4 can1 message slot 3 data 5 13-106 (c1msl3dt4) (c1msl3dt5) 13-108 h'0080 153c can1 message slot 3 data 6 can1 message slot 3 data 7 13-110 (c1msl3dt6) (c1msl3dt7) 13-112 h'0080 153e can1 message slot 3 timestamp 13-114 (c1msl3tsp) h'0080 1540 can1 message slot 4 standard id0 can1 message slot 4 standard id1 13-86 (c1msl4sid0) (c1msl4sid1) 13-88 h'0080 1542 can1 message slot 4 extended id0 can1 message slot 4 extended id1 13-90 (c1msl4eid0) (c1msl4eid1) 13-92 h'0080 1544 can1 message slot 4 extended id2 can1 message slot 4 data length register 13-94 (c1msl4eid2) (c1msl4dlc) 13-96 h'0080 1546 can1 message slot 4 data 0 can1 message slot 4 data 1 13-98 (c1msl4dt0) (c1msl4dt1) 13-100 h'0080 1548 can1 message slot 4 data 2 can1 message slot 4 data 3 13-102 (c1msl4dt2) (c1msl4dt3) 13-104 h'0080 154a can1 message slot 4 data 4 can1 message slot 4 data 5 13-106 (c1msl4dt4) (c1msl4dt5) 13-108 h'0080 154c can1 message slot 4 data 6 can1 message slot 4 data 7 13-110 (c1msl4dt6) (c1msl4dt7) 13-112 h'0080 154e can1 message slot 4 timestamp 13-114 (c1msl4tsp) h'0080 1550 can1 message slot 5 standard id0 can1 message slot 5 standard id1 13-86 (c1msl5sid0) (c1msl5sid1) 13-88 h'0080 1552 can1 message slot 5 extended id0 can1 message slot 5 extended id1 13-90 (c1msl5eid0) (c1msl5eid1) 13-92 h'0080 1554 can1 message slot 5 extended id2 can1 message slot 5 data length register 13-94 (c1msl5eid2) (c1msl5dlc) 13-96 h'0080 1556 can1 message slot 5 data 0 can1 message slot 5 data 1 13-98 (c1msl5dt0) (c1msl5dt1) 13-100 h'0080 1558 can1 message slot 5 data 2 can1 message slot 5 data 3 13-102 (c1msl5dt2) (c1msl5dt3) 13-104 h'0080 155a can1 message slot 5 data 4 can1 message slot 5 data 5 13-106 (c1msl5dt4) (c1msl5dt5) 13-108 h'0080 155c can1 message slot 5 data 6 can1 message slot 5 data 7 13-110 (c1msl5dt6) (c1msl5dt7) 13-112 h'0080 155e can1 message slot 5 timestamp 13-114 (c1msl5tsp) 3.4 internal ram and sfr areas address space 3 3-39 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (30/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 1560 can1 message slot 6 standard id0 can1 message slot 6 standard id1 13-86 (c1msl6sid0) (c1msl6sid1) 13-88 h'0080 1562 can1 message slot 6 extended id0 can1 message slot 6 extended id1 13-90 (c1msl6eid0) (c1msl6eid1) 13-92 h'0080 1564 can1 message slot 6 extended id2 can1 message slot 6 data length register 13-94 (c1msl6eid2) (c1msl6dlc) 13-96 h'0080 1566 can1 message slot 6 data 0 can1 message slot 6 data 1 13-98 (c1msl6dt0) (c1msl6dt1) 13-100 h'0080 1568 can1 message slot 6 data 2 can1 message slot 6 data 3 13-102 (c1msl6dt2) (c1msl6dt3) 13-104 h'0080 156a can1 message slot 6 data 4 can1 message slot 6 data 5 13-106 (c1msl6dt4) (c1msl6dt5) 13-108 h'0080 156c can1 message slot 6 data 6 can1 message slot 6 data 7 13-110 (c1msl6dt6) (c1msl6dt7) 13-112 h'0080 156e can1 message slot 6 timestamp 13-114 (c1msl6tsp) h'0080 1570 can1 message slot 7 standard id0 can1 message slot 7 standard id1 13-86 (c1msl7sid0) (c1msl7sid1) 13-88 h'0080 1572 can1 message slot 7 extended id0 can1 message slot 7 extended id1 13-90 (c1msl7eid0) (c1msl7eid1) 13-92 h'0080 1574 can1 message slot 7 extended id2 can1 message slot 7 data length register 13-94 (c1msl7eid2) (c1msl7dlc) 13-96 h'0080 1576 can1 message slot 7 data 0 can1 message slot 7 data 1 13-98 (c1msl7dt0) (c1msl7dt1) 13-100 h'0080 1578 can1 message slot 7 data 2 can1 message slot 7 data 3 13-102 (c1msl7dt2) (c1msl7dt3) 13-104 h'0080 157a can1 message slot 7 data 4 can1 message slot 7 data 5 13-106 (c1msl7dt4) (c1msl7dt5) 13-108 h'0080 157c can1 message slot 7 data 6 can1 message slot 7 data 7 13-110 (c1msl7dt6) (c1msl7dt7) 13-112 h'0080 157e can1 message slot 7 timestamp 13-114 (c1msl7tsp) h'0080 1580 can1 message slot 8 standard id0 can1 message slot 8 standard id1 13-86 (c1msl8sid0) (c1msl8sid1) 13-88 h'0080 1582 can1 message slot 8 extended id0 can1 message slot 8 extended id1 13-90 (c1msl8eid0) (c1msl8eid1) 13-92 h'0080 1584 can1 message slot 8 extended id2 can1 message slot 8 data length register 13-94 (c1msl8eid2) (c1msl8dlc) 13-96 h'0080 1586 can1 message slot 8 data 0 can1 message slot 8 data 1 13-98 (c1msl8dt0) (c1msl8dt1) 13-100 h'0080 1588 can1 message slot 8 data 2 can1 message slot 8 data 3 13-102 (c1msl8dt2) (c1msl8dt3) 13-104 h'0080 158a can1 message slot 8 data 4 can1 message slot 8 data 5 13-106 (c1msl8dt4) (c1msl8dt5) 13-108 h'0080 158c can1 message slot 8 data 6 can1 message slot 8 data 7 13-110 (c1msl8dt6) (c1msl8dt7) 13-112 h'0080 158e can1 message slot 8 timestamp 13-114 (c1msl8tsp) h'0080 1590 can1 message slot 9 standard id0 can1 message slot 9 standard id1 13-86 (c1msl9sid0) (c1msl9sid1) 13-88 h'0080 1592 can1 message slot 9 extended id0 can1 message slot 9 extended id1 13-90 (c1msl9eid0) (c1msl9eid1) 13-92 h'0080 1594 can1 message slot 9 extended id2 can1 message slot 9 data length register 13-94 (c1msl9eid2) (c1msl9dlc) 13-96 h'0080 1596 can1 message slot 9 data 0 can1 message slot 9 data 1 13-98 (c1msl9dt0) (c1msl9dt1) 13-100 h'0080 1598 can1 message slot 9 data 2 can1 message slot 9 data 3 13-102 (c1msl9dt2) (c1msl9dt3) 13-104 h'0080 159a can1 message slot 9 data 4 can1 message slot 9 data 5 13-106 (c1msl9dt4) (c1msl9dt5) 13-108 h'0080 159c can1 message slot 9 data 6 can1 message slot 9 data 7 13-110 (c1msl9dt6) (c1msl9dt7) 13-112 h'0080 159e can1 message slot 9 timestamp 13-114 (c1msl9tsp) h'0080 15a0 can1 message slot 10 standard id0 can1 message slot 10 standard id1 13-86 (c1msl10sid0) (c1msl10sid1) 13-88 h'0080 15a2 can1 message slot 10 extended id0 can1 message slot 10 extended id1 13-90 (c1msl10eid0) (c1msl10eid1) 13-92 h'0080 15a4 can1 message slot 10 extended id2 can1 message slot 10 data length register 13-94 (c1msl10eid2) (c1msl10dlc) 13-96 3.4 internal ram and sfr areas address space 3-40 3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (31/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 15a6 can1 message slot 10 data 0 can1 message slot 10 data 1 13-98 (c1msl10dt0) (c1msl10dt1) 13-100 h'0080 15a8 can1 message slot 10 data 2 can1 message slot 10 data 3 13-102 (c1msl10dt2) (c1msl10dt3) 13-104 h'0080 15aa can1 message slot 10 data 4 can1 message slot 10 data 5 13-106 (c1msl10dt4) (c1msl10dt5) 13-108 h'0080 15ac can1 message slot 10 data 6 can1 message slot 10 data 7 13-110 (c1msl10dt6) (c1msl10dt7) 13-112 h'0080 15ae can1 message slot 10 timestamp 13-114 (c1msl10tsp) h'0080 15b0 can1 message slot 11 standard id0 can1 message slot 11 standard id1 13-86 (c1msl11sid0) (c1msl11sid1) 13-88 h'0080 15b2 can1 message slot 11 extended id0 can1 message slot 11 extended id1 13-90 (c1msl11eid0) (c1msl11eid1) 13-92 h'0080 15b4 can1 message slot 11 extended id2 can1 message slot 11 data length register 13-94 (c1msl11eid2) (c1msl11dlc) 13-96 h'0080 15b6 can1 message slot 11 data 0 can1 message slot 11 data 1 13-98 (c1msl11dt0) (c1msl11dt1) 13-100 h'0080 15b8 can1 message slot 11 data 2 can1 message slot 11 data 3 13-102 (c1msl11dt2) (c1msl11dt3) 13-104 h'0080 15ba can1 message slot 11 data 4 can1 message slot 11 data 5 13-106 (c1msl11dt4) (c1msl11dt5) 13-108 h'0080 15bc can1 message slot 11 data 6 can1 message slot 11 data 7 13-110 (c1msl11dt6) (c1msl11dt7) 13-112 h'0080 15be can1 message slot 11 timestamp 13-114 (c1msl11tsp) h'0080 15c0 can1 message slot 12 standard id0 can1 message slot 12 standard id1 13-86 (c1msl12sid0) (c1msl12sid1) 13-88 h'0080 15c2 can1 message slot 12 extended id0 can1 message slot 12 extended id1 13-90 (c1msl12eid0) (c1msl12eid1) 13-92 h'0080 15c4 can1 message slot 12 extended id2 can1 message slot 12 data length register 13-94 (c1msl12eid2) (c1msl12dlc) 13-96 h'0080 15c6 can1 message slot 12 data 0 can1 message slot 12 data 1 13-98 (c1msl12dt0) (c1msl12dt1) 13-100 h'0080 15c8 can1 message slot 12 data 2 can1 message slot 12 data 3 13-102 (c1msl12dt2) (c1msl12dt3) 13-104 h'0080 15ca can1 message slot 12 data 4 can1 message slot 12 data 5 13-106 (c1msl12dt4) (c1msl12dt5) 13-108 h'0080 15cc can1 message slot 12 data 6 can1 message slot 12 data 7 13-110 (c1msl12dt6) (c1msl12dt7) 13-112 h'0080 15ce can1 message slot 12 timestamp 13-114 (c1msl12tsp) h'0080 15d0 can1 message slot 13 standard id0 can1 message slot 13 standard id1 13-86 (c1msl13sid0) (c1msl13sid1) 13-88 h'0080 15d2 can1 message slot 13 extended id0 can1 message slot 13 extended id1 13-90 (c1msl13eid0) (c1msl13eid1) 13-92 h'0080 15d4 can1 message slot 13 extended id2 can1 message slot 13 data length register 13-94 (c1msl13eid2) (c1msl13dlc) 13-96 h'0080 15d6 can1 message slot 13 data 0 can1 message slot 13 data 1 13-98 (c1msl13dt0) (c1msl13dt1) 13-100 h'0080 15d8 can1 message slot 13 data 2 can1 message slot 13 data 3 13-102 (c1msl13dt2) (c1msl13dt3) 13-104 h'0080 15da can1 message slot 13 data 4 can1 message slot 13 data 5 13-106 (c1msl13dt4) (c1msl13dt5) 13-108 h'0080 15dc can1 message slot 13 data 6 can1 message slot 13 data 7 13-110 (c1msl13dt6) (c1msl13dt7) 13-112 h'0080 15de can1 message slot 13 timestamp 13-114 (c1msl13tsp) h'0080 15e0 can1 message slot 14 standard id0 can1 message slot 14 standard id1 13-86 (c1msl14sid0) (c1msl14sid1) 13-88 h'0080 15e2 can1 message slot 14 extended id0 can1 message slot 14 extended id1 13-90 (c1msl14eid0) (c1msl14eid1) 13-92 h'0080 15e4 can1 message slot 14 extended id2 can1 message slot 14 data length register 13-94 (c1msl14eid2) (c1msl14dlc) 13-96 h'0080 15e6 can1 message slot 14 data 0 can1 message slot 14 data 1 13-98 (c1msl14dt0) (c1msl14dt1) 13-100 h'0080 15e8 can1 message slot 14 data 2 can1 message slot 14 data 3 13-102 (c1msl14dt2) (c1msl14dt3) 13-104 h'0080 15ea can1 message slot 14 data 4 can1 message slot 14 data 5 13-106 (c1msl14dt4) (c1msl14dt5) 13-108 3.4 internal ram and sfr areas address space 3 3-41 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (32/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 15ec can1 message slot 14 data 6 can1 message slot 14 data 7 13-110 (c1msl14dt6) (c1msl14dt7) 13-112 h'0080 15ee can1 message slot 14 timestamp 13-114 (c1msl14tsp) h'0080 15f0 can1 message slot 15 standard id0 can1 message slot 15 standard id1 13-86 (c1msl15sid0) (c1msl15sid1) 13-88 h'0080 15f2 can1 message slot 15 extended id0 can1 message slot 15 extended id1 13-90 (c1msl15eid0) (c1msl15eid1) 13-92 h'0080 15f4 can1 message slot 15 extended id2 can1 message slot 15 data length register 13-94 (c1msl15eid2) (c1msl15dlc) 13-96 h'0080 15f6 can1 message slot 15 data 0 can1 message slot 15 data 1 13-98 (c1msl15dt0) (c1msl15dt1) 13-100 h'0080 15f8 can1 message slot 15 data 2 can1 message slot 15 data 3 13-102 (c1msl15dt2) (c1msl15dt3) 13-104 h'0080 15fa can1 message slot 15 data 4 can1 message slot 15 data 5 13-106 (c1msl15dt4) (c1msl15dt5) 13-108 h'0080 15fc can1 message slot 15 data 6 can1 message slot 15 data 7 13-110 (c1msl15dt6) (c1msl15dt7) 13-112 h'0080 15fe can1 message slot 15 timestamp 13-114 (c1msl15tsp) h'0080 1600 can1 message slot 16 standard id0 can1 message slot 16 standard id1 13-87 (c1msl16sid0) (c1msl16sid1) 13-89 h'0080 1602 can1 message slot 16 extended id0 can1 message slot 16 extended id1 13-91 (c1msl16eid0) (c1msl16eid1) 13-93 h'0080 1604 can1 message slot 16 extended id2 can1 message slot 16 data length register 13-95 (c1msl16eid2) (c1msl16dlc) 13-97 h'0080 1606 can1 message slot 16 data 0 can1 message slot 16 data 1 13-99 (c1msl16dt0) (c1msl16dt1) 13-101 h'0080 1608 can1 message slot 16 data 2 can1 message slot 16 data 3 13-103 (c1msl16dt2) (c1msl16dt3) 13-105 h'0080 160a can1 message slot 16 data 4 can1 message slot 16 data 5 13-107 (c1msl16dt4) (c1msl16dt5) 13-109 h'0080 160c can1 message slot 16 data 6 can1 message slot 16 data 7 13-111 (c1msl16dt6) (c1msl16dt7) 13-113 h'0080 160e can1 message slot 16 timestamp 13-115 (c1msl16tsp) h'0080 1610 can1 message slot 17 standard id0 can1 message slot 17 standard id1 13-87 (c1msl17sid0) (c1msl17sid1) 13-89 h'0080 1612 can1 message slot 17 extended id0 can1 message slot 17 extended id1 13-91 (c1msl17eid0) (c1msl17eid1) 13-93 h'0080 1614 can1 message slot 17 extended id2 can1 message slot 17 data length register 13-95 (c1msl17eid2) (c1msl17dlc) 13-97 h'0080 1616 can1 message slot 17 data 0 can1 message slot 17 data 1 13-99 (c1msl17dt0) (c1msl17dt1) 13-101 h'0080 1618 can1 message slot 17 data 2 can1 message slot 17 data 3 13-103 (c1msl17dt2) (c1msl17dt3) 13-105 h'0080 161a can1 message slot 17 data 4 can1 message slot 17 data 5 13-107 (c1msl17dt4) (c1msl17dt5) 13-109 h'0080 161c can1 message slot 17 data 6 can1 message slot 17 data 7 13-111 (c1msl17dt6) (c1msl17dt7) 13-113 h'0080 161e can1 message slot 17 timestamp 13-115 (c1msl17tsp) h'0080 1620 can1 message slot 18 standard id0 can1 message slot 18 standard id1 13-87 (c1msl18sid0) (c1msl18sid1) 13-89 h'0080 1622 can1 message slot 18 extended id0 can1 message slot 18 extended id1 13-91 (c1msl18eid0) (c1msl18eid1) 13-93 h'0080 1624 can1 message slot 18 extended id2 can1 message slot 18 data length register 13-95 (c1msl18eid2) (c1msl18dlc) 13-97 h'0080 1626 can1 message slot 18 data 0 can1 message slot 18 data 1 13-99 (c1msl18dt0) (c1msl18dt1) 13-101 h'0080 1628 can1 message slot 18 data 2 can1 message slot 18 data 3 13-103 (c1msl18dt2) (c1msl18dt3) 13-105 h'0080 162a can1 message slot 18 data 4 can1 message slot 18 data 5 13-107 (c1msl18dt4) (c1msl18dt5) 13-109 h'0080 162c can1 message slot 18 data 6 can1 message slot 18 data 7 13-111 (c1msl18dt6) (c1msl18dt7) 13-113 h'0080 162e can1 message slot 18 timestamp 13-115 (c1msl18tsp) h'0080 1630 can1 message slot 19 standard id0 can1 message slot 19 standard id1 13-87 (c1msl19sid0) (c1msl19sid1) 13-89 3.4 internal ram and sfr areas address space 3-42 3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (33/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 1632 can1 message slot 19 extended id0 can1 message slot 19 extended id1 13-91 (c1msl19eid0) (c1msl19eid1) 13-93 h'0080 1634 can1 message slot 19 extended id2 can1 message slot 19 data length register 13-95 (c1msl19eid2) (c1msl19dlc) 13-97 h'0080 1636 can1 message slot 19 data 0 can1 message slot 19 data 1 13-99 (c1msl19dt0) (c1msl19dt1) 13-101 h'0080 1638 can1 message slot 19 data 2 can1 message slot 19 data 3 13-103 (c1msl19dt2) (c1msl19dt3) 13-105 h'0080 163a can1 message slot 19 data 4 can1 message slot 19 data 5 13-107 (c1msl19dt4) (c1msl19dt5) 13-109 h'0080 163c can1 message slot 19 data 6 can1 message slot 19 data 7 13-111 (c1msl19dt6) (c1msl19dt7) 13-113 h'0080 163e can1 message slot 19 timestamp 13-115 (c1msl19tsp) h'0080 1640 can1 message slot 20 standard id0 can1 message slot 20 standard id1 13-87 (c1msl20sid0) (c1msl20sid1) 13-89 h'0080 1642 can1 message slot 20 extended id0 can1 message slot 20 extended id1 13-91 (c1msl20eid0) (c1msl20eid1) 13-93 h'0080 1644 can1 message slot 20 extended id2 can1 message slot 20 data length register 13-95 (c1msl20eid2) (c1msl20dlc) 13-97 h'0080 1646 can1 message slot 20 data 0 can1 message slot 20 data 1 13-99 (c1msl20dt0) (c1msl20dt1) 13-101 h'0080 1648 can1 message slot 20 data 2 can1 message slot 20 data 3 13-103 (c1msl20dt2) (c1msl20dt3) 13-105 h'0080 164a can1 message slot 20 data 4 can1 message slot 20 data 5 13-107 (c1msl20dt4) (c1msl20dt5) 13-109 h'0080 164c can1 message slot 20 data 6 can1 message slot 20 data 7 13-111 (c1msl20dt6) (c1msl20dt7) 13-113 h'0080 164e can1 message slot 20 timestamp 13-115 (c1msl20tsp) h'0080 1650 can1 message slot 21 standard id0 can1 message slot 21 standard id1 13-87 (c1msl21sid0) (c1msl21sid1) 13-89 h'0080 1652 can1 message slot 21 extended id0 can1 message slot 21 extended id1 13-91 (c1msl21eid0) (c1msl21eid1) 13-93 h'0080 1654 can1 message slot 21 extended id2 can1 message slot 21 data length register 13-95 (c1msl21eid2) (c1msl21dlc) 13-97 h'0080 1656 can1 message slot 21 data 0 can1 message slot 21 data 1 13-99 (c1msl21dt0) (c1msl21dt1) 13-101 h'0080 1658 can1 message slot 21 data 2 can1 message slot 21 data 3 13-103 (c1msl21dt2) (c1msl21dt3) 13-105 h'0080 165a can1 message slot 21 data 4 can1 message slot 21 data 5 13-107 (c1msl21dt4) (c1msl21dt5) 13-109 h'0080 165c can1 message slot 21 data 6 can1 message slot 21 data 7 13-111 (c1msl21dt6) (c1msl21dt7) 13-113 h'0080 165e can1 message slot 21 timestamp 13-115 (c1msl21tsp) h'0080 1660 can1 message slot 22 standard id0 can1 message slot 22 standard id1 13-87 (c1msl22sid0) (c1msl22sid1) 13-89 h'0080 1662 can1 message slot 22 extended id0 can1 message slot 22 extended id1 13-91 (c1msl22eid0) (c1msl22eid1) 13-93 h'0080 1664 can1 message slot 22 extended id2 can1 message slot 22 data length register 13-95 (c1msl22eid2) (c1msl22dlc) 13-97 h'0080 1666 can1 message slot 22 data 0 can1 message slot 22 data 1 13-99 (c1msl22dt0) (c1msl22dt1) 13-101 h'0080 1668 can1 message slot 22 data 2 can1 message slot 22 data 3 13-103 (c1msl22dt2) (c1msl22dt3) 13-105 h'0080 166a can1 message slot 22 data 4 can1 message slot 22 data 5 13-107 (c1msl22dt4) (c1msl22dt5) 13-109 h'0080 166c can1 message slot 22 data 6 can1 message slot 22 data 7 13-111 (c1msl22dt6) (c1msl22dt7) 13-113 h'0080 166e can1 message slot 22 timestamp 13-115 (c1msl22tsp) h'0080 1670 can1 message slot 23 standard id0 can1 message slot 23 standard id1 13-87 (c1msl23sid0) (c1msl23sid1) 13-89 h'0080 1672 can1 message slot 23 extended id0 can1 message slot 23 extended id1 13-91 (c1msl23eid0) (c1msl23eid1) 13-93 h'0080 1674 can1 message slot 23 extended id2 can1 message slot 23 data length register 13-95 (c1msl23eid2) (c1msl23dlc) 13-97 h'0080 1676 can1 message slot 23 data 0 can1 message slot 23 data 1 13-99 (c1msl23dt0) (c1msl23dt1) 13-101 3.4 internal ram and sfr areas address space 3 3-43 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (34/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 1678 can1 message slot 23 data 2 can1 message slot 23 data 3 13-103 (c1msl23dt2) (c1msl23dt3) 13-105 h'0080 167a can1 message slot 23 data 4 can1 message slot 23 data 5 13-107 (c1msl23dt4) (c1msl23dt5) 13-109 h'0080 167c can1 message slot 23 data 6 can1 message slot 23 data 7 13-111 (c1msl23dt6) (c1msl23dt7) 13-113 h'0080 167e can1 message slot 23 timestamp 13-115 (c1msl23tsp) h'0080 1680 can1 message slot 24 standard id0 can1 message slot 24 standard id1 13-87 (c1msl24sid0) (c1msl24sid1) 13-89 h'0080 1682 can1 message slot 24 extended id0 can1 message slot 24 extended id1 13-91 (c1msl24eid0) (c1msl24eid1) 13-93 h'0080 1684 can1 message slot 24 extended id2 can1 message slot 24 data length register 13-95 (c1msl24eid2) (c1msl24dlc) 13-97 h'0080 1686 can1 message slot 24 data 0 can1 message slot 24 data 1 13-99 (c1msl24dt0) (c1msl24dt1) 13-101 h'0080 1688 can1 message slot 24 data 2 can1 message slot 24 data 3 13-103 (c1msl24dt2) (c1msl24dt3) 13-105 h'0080 168a can1 message slot 24 data 4 can1 message slot 24 data 5 13-107 (c1msl24dt4) (c1msl24dt5) 13-109 h'0080 168c can1 message slot 24 data 6 can1 message slot 24 data 7 13-111 (c1msl24dt6) (c1msl24dt7) 13-113 h'0080 168e can1 message slot 24 timestamp 13-115 (c1msl24tsp) h'0080 1690 can1 message slot 25 standard id0 can1 message slot 25 standard id1 13-87 (c1msl25sid0) (c1msl25sid1) 13-89 h'0080 1692 can1 message slot 25 extended id0 can1 message slot 25 extended id1 13-91 (c1msl25eid0) (c1msl25eid1) 13-93 h'0080 1694 can1 message slot 25 extended id2 can1 message slot 25 data length register 13-95 (c1msl25eid2) (c1msl25dlc) 13-97 h'0080 1696 can1 message slot 25 data 0 can1 message slot 25 data 1 13-99 (c1msl25dt0) (c1msl25dt1) 13-101 h'0080 1698 can1 message slot 25 data 2 can1 message slot 25 data 3 13-103 (c1msl25dt2) (c1msl25dt3) 13-105 h'0080 169a can1 message slot 25 data 4 can1 message slot 25 data 5 13-107 (c1msl25dt4) (c1msl25dt5) 13-109 h'0080 169c can1 message slot 25 data 6 can1 message slot 25 data 7 13-111 (c1msl25dt6) (c1msl25dt7) 13-113 h'0080 169e can1 message slot 25 timestamp 13-115 (c1msl25tsp) h'0080 16a0 can1 message slot 26 standard id0 can1 message slot 26 standard id1 13-87 (c1msl26sid0) (c1msl26sid1) 13-89 h'0080 16a2 can1 message slot 26 extended id0 can1 message slot 26 extended id1 13-91 (c1msl26eid0) (c1msl26eid1) 13-93 h'0080 16a4 can1 message slot 26 extended id2 can1 message slot 26 data length register 13-95 (c1msl26eid2) (c1msl26dlc) 13-97 h'0080 16a6 can1 message slot 26 data 0 can1 message slot 26 data 1 13-99 (c1msl26dt0) (c1msl26dt1) 13-101 h'0080 16a8 can1 message slot 26 data 2 can1 message slot 26 data 3 13-103 (c1msl26dt2) (c1msl26dt3) 13-105 h'0080 16aa can1 message slot 26 data 4 can1 message slot 26 data 5 13-107 (c1msl26dt4) (c1msl26dt5) 13-109 h'0080 16ac can1 message slot 26 data 6 can1 message slot 26 data 7 13-111 (c1msl26dt6) (c1msl26dt7) 13-113 h'0080 16ae can1 message slot 26 timestamp 13-115 (c1msl26tsp) h'0080 16b0 can1 message slot 27 standard id0 can1 message slot 27 standard id1 13-87 (c1msl27sid0) (c1msl27sid1) 13-89 h'0080 16b2 can1 message slot 27 extended id0 can1 message slot 27 extended id1 13-91 (c1msl27eid0) (c1msl27eid1) 13-93 h'0080 16b4 can1 message slot 27 extended id2 can1 message slot 27 data length register 13-95 (c1msl27eid2) (c1msl27dlc) 13-97 h'0080 16b6 can1 message slot 27 data 0 can1 message slot 27 data 1 13-99 (c1msl27dt0) (c1msl27dt1) 13-101 h'0080 16b8 can1 message slot 27 data 2 can1 message slot 27 data 3 13-103 (c1msl27dt2) (c1msl27dt3) 13-105 h'0080 16ba can1 message slot 27 data 4 can1 message slot 27 data 5 13-107 (c1msl27dt4) (c1msl27dt5) 13-109 h'0080 16bc can1 message slot 27 data 6 can1 message slot 27 data 7 13-111 (c1msl27dt6) (c1msl27dt7) 13-113 3.4 internal ram and sfr areas address space 3-44 3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (35/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 16be can1 message slot 27 timestamp 13-115 (c1msl27tsp) h'0080 16c0 can1 message slot 28 standard id0 can1 message slot 28 standard id1 13-87 (c1msl28sid0) (c1msl28sid1) 13-89 h'0080 16c2 can1 message slot 28 extended id0 can1 message slot 28 extended id1 13-91 (c1msl28eid0) (c1msl28eid1) 13-93 h'0080 16c4 can1 message slot 28 extended id2 can1 message slot 28 data length register 13-95 (c1msl28eid2) (c1msl28dlc) 13-97 h'0080 16c6 can1 message slot 28 data 0 can1 message slot 28 data 1 13-99 (c1msl28dt0) (c1msl28dt1) 13-101 h'0080 16c8 can1 message slot 28 data 2 can1 message slot 28 data 3 13-103 (c1msl28dt2) (c1msl28dt3) 13-105 h'0080 16ca can1 message slot 28 data 4 can1 message slot 28 data 5 13-107 (c1msl28dt4) (c1msl28dt5) 13-109 h'0080 16cc can1 message slot 28 data 6 can1 message slot 28 data 7 13-111 (c1msl28dt6) (c1msl28dt7) 13-113 h'0080 16ce can1 message slot 28 timestamp 13-115 (c1msl28tsp) h'0080 16d0 can1 message slot 29 standard id0 can1 message slot 29 standard id1 13-87 (c1msl29sid0) (c1msl29sid1) 13-89 h'0080 16d2 can1 message slot 29 extended id0 can1 message slot 29 extended id1 13-91 (c1msl29eid0) (c1msl29eid1) 13-93 h'0080 16d4 can1 message slot 29 extended id2 can1 message slot 29 data length register 13-95 (c1msl29eid2) (c1msl29dlc) 13-97 h'0080 16d6 can1 message slot 29 data 0 can1 message slot 29 data 1 13-99 (c1msl29dt0) (c1msl29dt1) 13-101 h'0080 16d8 can1 message slot 29 data 2 can1 message slot 29 data 3 13-103 (c1msl29dt2) (c1msl29dt3) 13-105 h'0080 16da can1 message slot 29 data 4 can1 message slot 29 data 5 13-107 (c1msl29dt4) (c1msl29dt5) 13-109 h'0080 16dc can1 message slot 29 data 6 can1 message slot 29 data 7 13-111 (c1msl29dt6) (c1msl29dt7) 13-113 h'0080 16de can1 message slot 29 timestamp 13-115 (c1msl29tsp) h'0080 16e0 can1 message slot 30 standard id0 can1 message slot 30 standard id1 13-87 (c1msl30sid0) (c1msl30sid1) 13-89 h'0080 16e2 can1 message slot 30 extended id0 can1 message slot 30 extended id1 13-91 (c1msl30eid0) (c1msl30eid1) 13-93 h'0080 16e4 can1 message slot 30 extended id2 can1 message slot 30 data length register 13-95 (c1msl30eid2) (c1msl30dlc) 13-97 h'0080 16e6 can1 message slot 30 data 0 can1 message slot 30 data 1 13-99 (c1msl30dt0) (c1msl30dt1) 13-101 h'0080 16e8 can1 message slot 30 data 2 can1 message slot 30 data 3 13-103 (c1msl30dt2) (c1msl30dt3) 13-105 h'0080 16ea can1 message slot 30 data 4 can1 message slot 30 data 5 13-107 (c1msl30dt4) (c1msl30dt5) 13-109 h'0080 16ec can1 message slot 30 data 6 can1 message slot 30 data 7 13-111 (c1msl30dt6) (c1msl30dt7) 13-113 h'0080 16ee can1 message slot 30 timestamp 13-115 (c1msl30tsp) h'0080 16f0 can1 message slot 31 standard id0 can1 message slot 31 standard id1 13-87 (c1msl31sid0) (c1msl31sid1) 13-89 h'0080 16f2 can1 message slot 31 extended id0 can1 message slot 31 extended id1 13-91 (c1msl31eid0) (c1msl31eid1) 13-93 h'0080 16f4 can1 message slot 31 extended id2 can1 message slot 31 data length register 13-95 (c1msl31eid2) (c1msl31dlc) 13-97 h'0080 16f6 can1 message slot 31 data 0 can1 message slot 31 data 1 13-99 (c1msl31dt0) (c1msl31dt1) 13-101 h'0080 16f8 can1 message slot 31 data 2 can1 message slot 31 data 3 13-103 (c1msl31dt2) (c1msl31dt3) 13-105 h'0080 16fa can1 message slot 31 data 4 can1 message slot 31 data 5 13-107 (c1msl31dt4) (c1msl31dt5) 13-109 h'0080 16fc can1 message slot 31 data 6 can1 message slot 31 data 7 13-111 (c1msl31dt6) (c1msl31dt7) 13-113 h'0080 16fe can1 message slot 31 timestamp 13-115 (c1msl31tsp) (use inhibited area) | 3.4 internal ram and sfr areas address space 3 3-45 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (36/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 2000 din interrupt request status register din interrupt request enable register 14-9 (dridinist) (dridinien) h'0080 2002 dec interrupt request status register dec interrupt request enable register 14-10 (dridecist) (dridecien) h'0080 2004 dri transfer interrupt request status register dri transfer interrupt request enable register 14-11 (dritrmist) (dritrmien) 14-12 h'0080 2006 dri transfer control register dri special mode register 14-13 (dritrmcnt) (drispmod) 14-15 h'0080 2008 dri data capture control register 14-18 (dridcapcnt) h'0080 200a dri data interleave control register din input event select register 14-22 (dridselcnt) (dinsel) h'0080 200c dd input enable register 0 dd input enable register 1 14-23 (dridden0) (dridden1) h'0080 200e dd input enable register 2 dd input enable register 3 14-23 (dridden2) (dridden3) 14-24 h'0080 2010 dri data capture event count setting register (upper) 14-25 (dridcapnum) h'0080 2012 (lower) h'0080 2014 dri capture event counter (upper) 14-26 (dridcapct) h'0080 2016 (lower) h'0080 2018 dri transfer counter (upper) 14-27 (dritrmct) h'0080 201a (lower) (use inhibited area) h'0080 2020 dri address reload register 0 (upper) 14-29 (driadr0rld) h'0080 2022 (lower) h'0080 2024 dri address counter 0 (upper) 14-28 (driadr0ct) h'0080 2026 (lower) h'0080 2028 dri address reload register 1 (upper) 14-29 (driadr1rld) h'0080 202a (lower) h'0080 202c dri address counter 1 (upper) 14-28 (driadr1ct) h'0080 202e (lower) h'0080 2030 din input processing control register 14-30 (dincnt) h'0080 2032 dec0 control register (use inhibited area) 14-31 (dec0cnt) h'0080 2034 dec0 reload register 14-36 (dec0rld) h'0080 2036 dec0 counter 14-36 (dec0ct) h'0080 2038 dec1 control register (use inhibited area) 14-31 (dec1cnt) h'0080 203a dec1 reload register 14-36 (dec1rld) h'0080 203c dec1 counter 14-36 (dec1ct) h'0080 203e dec2 control register (use inhibited area) 14-32 (dec2cnt) h'0080 2040 dec2 reload register 14-36 (dec2rld) h'0080 2042 dec2 counter 14-36 (dec2ct) h'0080 2044 dec3 control register (use inhibited area) 14-32 (dec3cnt) | 3.4 internal ram and sfr areas address space 3-46 3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sfr area register map (37/37) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 2046 dec3 reload register 14-36 (dec3rld) h'0080 2048 dec3 counter 14-36 (dec3ct) h'0080 204a dec4 control register (use inhibited area) 14-33 (dec4cnt) h'0080 204c dec4 reload register 14-36 (dec4rld) h'0080 204e dec4 counter 14-36 (dec4ct) (use inhibited area) h'0080 3ffe (use inhibited area) | note 1 : address h'0080 0600 to h'0080 0603 are dummy areas. when there is access to these areas, writing value is disabled and reading value is undefinited. in addition, it does not effect on the other sfr area by writing and reading out operation to dummy access area. note 2 : this area exists only in the 32192 and it is use prohibition area in the 32195/32196. note 3 : this area exists only in the 32192/32196 and it is use prohibition area in the 32195. 3.4 internal ram and sfr areas address space 3 3-47 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 nbd control area register map address +0 address +1 address see pages b0 b7 b8 b15 h'e000 0000 nbd enable register (use inhibited area) 16-6 (nbdenb) h'e000 0002 (use inhibited area) h'e000 0004 nbd pin control register (use inhibited area) 16-4 (nbdcnt) h'e000 0006 (use inhibited area) h'e000 0008 event generation register (use inhibited area) 16-12 (nevntgen) address space 3-48 3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 3.5 eit vector entry 3.5 eit vector entry the eit vector entry is located at the beginning of the internal rom/external extension areas. the branch in- struction for jumping to the start address of each eit event processing handler is written here. note that it is the branch instruction and not the jump address itself that is written here. for details, see chapter 4, "eit." h'0000 0040 h'0000 0044 h'0000 0048 h'0000 004c h'0000 0050 h'0000 0054 h'0000 0058 h'0000 005c h'0000 0060 h'0000 0064 h'0000 0068 h'0000 006c h'0000 0070 h'0000 0074 h'0000 0078 h'0000 007c h'0000 0080 h'0000 0090 h'0000 0030 h'0000 0020 h'0000 0010 h'0000 0000 h'0000 0034 h'0000 0038 h'0000 003c h'0000 0024 h'0000 0028 h'0000 002c h'0000 0004 h'0000 0008 h'0000 000c h'0000 0014 h'0000 0018 h'0000 001c trap0 trap1 trap2 trap3 trap4 trap5 trap6 trap7 trap8 trap9 trap10 trap11 trap12 trap13 trap14 trap15 ae (address exception) ei (external interrupt) (note 1) ri (reset interrupt) sbi (system break interrupt) rie (reserved instruction exception) fpe (floating-point exception) 031 note 1: when flash entry bit = 1 (flash e/w enable mode), the ei vector entry is located at h'0080 4000. figure 3.5.1 eit vector entry address space 3 3-49 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 3.6 icu vector table the icu vector table is used by the internal interrupt controller of the microcomputer. this table has the ad- dresses shown below, at which the start addresses of interrupt handlers for the interrupt requests from respec- tive internal peripheral i/os are set. for details, see chapter 5, "interrupt controller." icu vector table memory map (1/3) address +0 address +1 address b0 b7 b8 b15 h'0000 0094 mjt input interrupt 4 handler start address (a0?a15) h'0000 0096 mjt input interrupt 4 handler start address (a16?a31) h'0000 0098 mjt input interrupt 3 handler start address (a0?a15) h'0000 009a mjt input interrupt 3 handler start address (a16?a31) h'0000 009c mjt input interrupt 2 handler start address (a0?a15) h'0000 009e mjt input interrupt 2 handler start address (a16?a31) h'0000 00a0 mjt input interrupt 1 handler start address (a0?a15) h'0000 00a2 mjt input interrupt 1 handler start address (a16?a31) h'0000 00a4 mjt input interrupt 0 handler start address (a0?a15) h'0000 00a6 mjt input interrupt 0 handler start address (a16?a31) h'0000 00a8 mjt output interrupt 7 handler start address (a0?a15) h'0000 00aa mjt output interrupt 7 handler start address (a16?a31) h'0000 00ac mjt output interrupt 6 handler start address (a0?a15) h'0000 00ae mjt output interrupt 6 handler start address (a16?a31) h'0000 00b0 mjt output interrupt 5 handler start address (a0?a15) h'0000 00b2 mjt output interrupt 5 handler start address (a16?a31) h'0000 00b4 mjt output interrupt 4 handler start address (a0?a15) h'0000 00b6 mjt output interrupt 4 handler start address (a16?a31) h'0000 00b8 mjt output interrupt 3 handler start address (a0?a15) h'0000 00ba mjt output interrupt 3 handler start address (a16?a31) h'0000 00bc mjt output interrupt 2 handler start address (a0?a15) h'0000 00be mjt output interrupt 2 handler start address (a16?a31) h'0000 00c0 mjt output interrupt 1 handler start address (a0?a15) h'0000 00c2 mjt output interrupt 1 handler start address (a16?a31) h'0000 00c4 mjt output interrupt 0 handler start address (a0?a15) h'0000 00c6 mjt output interrupt 0 handler start address (a16?a31) h'0000 00c8 dma0?4 interrupt handler start address (a0?a15) h'0000 00ca dma0?4 interrupt handler start address (a16?a31) h'0000 00cc sio1 receive interrupt handler start address (a0?a15) h'0000 00ce sio1 receive interrupt handler start address (a16?a31) h'0000 00d0 sio1 transmit interrupt handler start address (a0?a15) h'0000 00d2 sio1 transmit interrupt handler start address (a16?a31) h'0000 00d4 sio0 receive interrupt handler start address (a0?a15) h'0000 00d6 sio0 receive interrupt handler start address (a16?a31) 3.6 icu vector table address space 3-50 3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 icu vector table memory map (2/3) address +0 address +1 address b0 b7 b8 b15 h'0000 00d8 sio0 transmit interrupt handler start address (a0?a15) h'0000 00da sio0 transmit interrupt handler start address (a16?a31) h'0000 00dc a/d0 conversion interrupt handler start address (a0?a15) h'0000 00de a/d0 conversion interrupt handler start address (a16?a31) h'0000 00e0 tid0 input interrupt handler start address (a0?a15) h'0000 00e2 tid0 input interrupt handler start address (a16?a31) h'0000 00e4 tou0 output interrupt handler start address (a0?a15) h'0000 00e6 tou0 output interrupt handler start address (a16?a31) h'0000 00e8 dma5?9 interrupt handler start address (a0?a15) h'0000 00ea dma5?9 interrupt handler start address (a16?a31) h'0000 00ec sio2, 3 transmit/receive interrupt handler start address (a0?a15) h'0000 00ee sio2, 3 transmit/receive interrupt handler start address (a16?a31) h'0000 00f0 rtd interrupt handler start address (a0?a15) h'0000 00f2 rtd interrupt handler start address (a16?a31) h'0000 00f4 tid1 input interrupt handler start address (a0?a15) h'0000 00f6 tid1 input interrupt handler start address (a16?a31) h'0000 00f8 tou1 output interrupt handler start address (a0?a15) h'0000 00fa tou1 output interrupt handler start address (a16?a31) h'0000 00fc sio4, 5 transmit/receive interrupt handler start address (a0?a15) h'0000 00fe sio4, 5 transmit/receive interrupt handler start address (a16?a31) h'0000 0100 h'0000 0102 h'0000 0104 h'0000 0106 h'0000 0108 tml1 input interrupt handler start address (a0?a15) h'0000 010a tml1 input interrupt handler start address (a16?a31) h'0000 010c can0 transmit/receive & error interrupt handler start address (a0?a15) h'0000 010e can0 transmit/receive & error interrupt handler start address (a16?a31) h'0000 0110 can1 transmit/receive & error interrupt handler start address (a0?a15) h'0000 0112 can1 transmit/receive & error interrupt handler start address (a16?a31) h'0000 0114 dri transfer interrupt handler start address (a0?a15) h'0000 0116 dri transfer interrupt handler start address (a16?a31) h'0000 0118 dri counter interrupt handler start address (a0?a15) h'0000 011a dri counter interrupt handler start address (a16?a31) h'0000 011c dri event detection interrupt handler start address (a0?a15) h'0000 011e dri event detection interrupt handler start address (a16?a31) h'0000 0120 can0 transmit/receive completion interrupt handler start address (a0?a15) h'0000 0122 can0 transmit/receive completion interrupt handler start address (a16?a31) 3.6 icu vector table address space 3 3-51 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 3.6 icu vector table icu vector table memory map (3/3) address +0 address +1 address b0 b7 b8 b15 h'0000 0124 can0 single-shot interrupt handler start address (a0?a15) h'0000 0126 can0 single-shot interrupt handler start address (a16?a31) h'0000 0128 can0 error interrupt handler start address (a0?a15) h'0000 012a can0 error interrupt handler start address (a16?a31) h'0000 012c can1 transmit/receive completion interrupt handler start address (a0?a15) h'0000 012e can1 transmit/receive completion interrupt handler start address (a16?a31) h'0000 0130 can1 single-shot interrupt handler start address (a0?a15) h'0000 0132 can1 single-shot interrupt handler start address (a16?a31) h'0000 0134 can1 error interrupt handler start address (a0?a15) h'0000 0136 can1 error interrupt handler start address (a16?a31) h'0000 0138 ram write monitor interrupt handler start address (a0?a15) h'0000 013a ram write monitor interrupt handler start address (a16?a31) address space 3-52 3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 3.7 notes on address space 3.7 notes on address space ? virtual flash emulation function the microcomputer has the function to map 8-kbyte memory blocks of the internal ram (maximum for 32192 is 16 blocks, for 32195 is 4 blocks, for 32196 is 8 blocks) into areas (l banks) of the internal flash memory that are divided in 8-kbyte units. this functions is referred to as the virtual flash emulation function. this function allows the data located in 8-kbyte blocks of the internal ram to be changed with the contents of internal flash memory at the addresses specified by the virtual flash l bank register. that way, the relevant ram data can read out by reading the content of internal flash memory. for details about this function, see section 6.7, "virtual flash emulation function." ? dummy access area address h'0080 0600 to h'0080 0603 are dummy areas. when there is access to these areas, writing value is disabled and reading value is undefinited. in addition, it does not effect on the other sfr area by writing and reading out operation to dummy access area. chapter 4 eit 4.1 outline of eit 4.2 eit events 4.3 eit processing procedure 4.4 eit processing mechanism 4.5 acceptance of eit events 4.6 saving and restoring the pc and psw 4.7 eit vector entry 4.8 exception processing 4.9 interrupt processing 4.10 trap processing 4.11 eit priority levels 4.12 example of eit processing 4.13 notes on eit 4 eit 4-2 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 4.1 outline of eit if some event occurs when the cpu is executing an ordinary program, it may become necessary to suspend the program being executed and execute another program. events like this one are referred to by a generic name as eit (exception, interrupt and trap). (1) exception this is an event related to the context being executed. it is generated by an error or violation during instruction execution. this type of event includes address exception (ae), reserved instruction exception (rie) and float- ing-point exception (fpe). (2) interrupt this is an event generated irrespective of the context being executed. it is generated by a hardware-derived signal from an external source, as well as by the internal peripheral i/o. this type of event includes reset interrupt (ri), system break interrupt (sbi) and external interrupt (ei). (3) trap this refers to a software interrupt generated by executing a trap instruction. this type of event is intentionally generated in a program as in the os?s system call by the programmer. 4.1 outline of eit figure 4.1.1 classification of eits eit exception (exception) reserved instruction exception (rie) address exception (ae) floating-point exception (fpe) reset interrupt (ri) system break interrupt (sbi) external interrupt (ei) trap (trap) interrupt (interrupt) trap (trap) 4 eit 4-3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 4.2 eit events 4.2 eit events 4.2.1 exception (1) reserved instruction exception (rie) reserved instruction exception (rie) occurs when execution of a reserved instruction (unimplemented instruction) is detected. (2) address exception (ae) address exception (ae) occurs when an attempt is made to access a misaligned address in load or store instructions. (3) floating-point exception (fpe) floating-point exception (fpe) occurs when unimplemented exception (uipl) or one of the five excep- tions specified in the ieee 754 standard (ovf/udf/ixct/div0/ivld) is detected. each exception pro- cessing is outlined below. 1) overflow exception (ovf) the exception occurs when the absolute value of the operation result exceeds the largest describable precision in the floating-point format. the following table shows the operation results when an ovf occurs. table 4.2.1 operation results when an ovf occurred note 1: when the overflow exception enable (eo) bit (fpsr register bit 20) = "0" note 2: when the overflow exception enable (eo) bit (fpsr register bit 20) = "1" notes: if an ovf occurs while eit processing for ovf is masked, an ixct occurs at the same time. +max = h?7f7f ffff, ?max = h?ff7f ffff 2) underflow exception (udf) the exception occurs when the absolute value of the operation result is less than the largest describable precision in the floating-point format. the following table shows the operation results when a udf occurs. table 4.2.2 operation results when a udf occurred note 1: when the underflow exception enable (eu) bit (fpsr register bit 18) = "0" note 2: when the underflow exception enable (eu) bit (fpsr register bit 18) = "1" + - + - + - + - sign of the resul t -infinity +infinity 0 rounding mode nearest operation res ult (conten t when the ovf eit processing is masked (note 1) +max -infinity +infinity -max +max -max +infinity -infinity of the destination register) when the ovf eit processing is executed (note 2) no change operation result (conten t when udf eit processing is masked (note 1) dn = 0: an unimplemented exception occurs dn = 1: 0 is returned of the destination register) when udf eit processing is executed (note 2) no change 4 eit 4-4 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 note 1: when the zero division exception enable (ez) bit (fpsr register bit 19) = "0" note 2: when the zero division exception enable (ez) bit (fpsr register bit 19) = "1" please note that the div0 eit processing does not occur in the following conditions. table 4.2.5 cases in which no div0 occur 4.2 eit events 3) inexact exception (ixct) the exception occurs when the operation result differs from a result led out with an infinite range of precision. the following table shows the operation results and the respective conditions in which each ixct occurs. table 4.2.3 operation results when an ixct occurred note 1: when the inexact exception enable (ex) bit (fpsr register bit 17) = "0" note 2: when the inexact exception enable (ex) bit (fpsr register bit 17) = "1" 4) zero division exception (div0) the exception occurs when a finite nonzero value is divided by zero. the following table shows the operation results when a div0 is occurs. table 4.2.4 operation results when a div0 occurred overflow occurs in ovf masked condition rounding occurs occurrence condition operation result (content o f when the ixct eit processing is masked (note 1) reference ovf operation results rounded value the destination register) when the ixct eit processing i s executed (note 2) no change no change nonzero finite value dividend of the destination register) when the div0 eit processing is executed (note 2) no change operation result (conten t when the div0 eit processing is masked (note 1) +-infinity (sign is derived by exclusive oring the signs of the divisor and dividend.) dividend 0 infinity behavior an invalid operation exception occurs no exceptions occur (with the result = " infinity") 4 eit 4-5 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 4.2 eit events 5) invalid operation exception (ivld) the exception occurs when an invalid operation is executed. the following table shows the operation results and the respective conditions in which each ivld occurs. table 4.2.6 operation results when an ivld occurred note 1: when the invalid operation exception enable (ev) bit (fpsr register bit 21) = "0" note 2: when the invalid operation exception enable (ev) bit (fpsr register bit 21) = "1" note: nan (not a number) snan (signaling nan): a nan in which the msb of the decimal field is "0." when snan is used as the source operand in an operation, an ivld occurs. snans are useful in identifying program bugs when used as the initial value in a variable. however, snans cannot be generated by hardware. qnan (quiet nan): a nan in which the msb of the decimal field is "1." even when qnan is used as the source operand in an operation, an ivld will not occur (excluding comparison and format conversion). because a result can be influenced by the arithmetic operations, qnan allows the user to debug without executing an eit processing. qnans are created by hardware. 6) unimplemented exception (uipl) the exception occurs when the denormalized number zero flush (dn) bit (fpsr register bit 23) = "0" and a denormalized number is given as an operation operand. (note 1) because the uipl has no enable bits available, it cannot be masked when they occur. the destination register remains unchanged. note 1: a udf occurs when the intermediate result of an operation is a denormalized number, in which case if the dn bit (fpsr register bit 23) = "0", an uipl occurs. 4.2.2 interrupt (1) reset interrupt (ri) reset interrupt (ri) is always accepted by entering the reset# signal. the reset interrupt is assigned the highest priority. for details about the reset interrupt, see chapter 7, ?reset.? (2) system break interrupt (sbi) system break interrupt (sbi) is an emergency interrupt which is used when power outage is detected or a fault condition is notified by an external watchdog timer. this interrupt can only be used in cases when after interrupt processing, control will not return to the program that was being executed when the interrupt occurred. (3) external interrupt (ei) external interrupt (ei) is requested from internal peripheral i/os managed by the interrupt controller. the interrupt controller manages these interrupts by assigning each one of eight priority levels including an interrupt-disabled state. when an integer conversion overflowed when ftoi instruction was executed when nan or infinity was converted into an integer when ftos instruction was executed occurrence condition operation for snan operand +infi ni ty-(+infi ni ty), -infi ni ty-(-infi ni ty) 0 x infinity 0 / 0, infinity / infinity when < or > comparison was performed on nan operation result (content of the destination register) when the ivld eit processing is masked (note 1) when the ivld eit processing is executed (note 2) return value when pre-conversion signed bit is: "0": h?7fff ffff "1": h?8000 0000 return value when pre-conversion signed bit is: "0": h?0000 7fff "1": h?ffff 8000 comparison results (comparison invalid) qnan no change 4 eit 4-6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 4.2.3 trap traps are software interrupts which are generated by executing the trap instruction. sixteen distinct vector addresses are provided corresponding to trap instruction operands 0?15. 4.3 eit processing procedure eit processing consists of two parts, one in which they are handled automatically by hardware, and one in which they are handled by user-created programs (eit handlers). the procedure for processing eits when accepted, except for a reset interrupt, is shown below. 4.2 eit events figure 4.3.1 outline of the eit processing procedure when an eit is accepted, the cpu branches to the eit vector after hardware preprocessing (as will be described later). the eit vector has an entry address assigned for each eit. this is where the bra (branch) instruction for the eit handler (not the jump address itself) is written. in the hardware preprocessing, the pc is transferred to the bpc (backup pc), and the content of the psw register?s psw field is transferred to the bpsw field in that register. other necessary operations must be performed in the user-created eit handler. these include saving the bpc and psw registers (including the bpsw field) and the general-purpose registers to be used in the eit handler to the stack. in addition, the accumulator and the fpsr register must be saved to the stack as necessary. remem- ber that all these registers must be saved to the stack in a program by the user. when processing by the eit handler is completed, restore the saved registers from the stack and finally execute the rte instruction. control is thereby returned from the eit processing to the program that was being executed when the eit occurred. (this does not apply to the system break interrupt, however.) in the hardware postprocessing, the bpc is returned to the pc, and the content of the psw register?s bpsw field is returned to the psw field in that register. note that the values stored in the bpc and the psw register?s bpsw field after executing the rte instruction are undefined. instruction a pc bpc psw bpsw eit vector entry eit handler except for sbi rte instruction program suspended and eit request accepted instruction processing-canceled type (rie, ae) instruction processing-completed type (fpe, ei, trap) program execution restarted eit request generated hardware preprocessing bpc, psw, fpsr and general-purpose registers are saved to the stack branch instruction bpc, psw, fpsr and general-purpose registers are restored from the stack hardware postprocessing (sbi) program terminated or system is reset user-created eit handler bpsw psw bpc pc processing by handler note 1: indicates saving and restoring the psw register bits between its psw and bpsw fields. (note 1) (note 1) sbi (system break interrupt processing) instruction b instruction c instruction c instruction d 4 eit 4-7 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 4.4 eit processing mechanism the eit processing mechanism consists of the m32r cpu core and the interrupt controller for internal peripheral i/os. it also has the backup registers for the pc and psw (the bpc register and the bpsw field of the psw register). the eit processing mechanism is shown below. 4.4 eit processing mechanism figure 4.4.1 eit processing mechanism interrupt controller (icu) sbi ei internal peripheral i/os reset# ri ae, rie, fpe, trap ie flag (psw) m32r cpu core sbi# low high priority sbi ei ri m32r/ecu psw register psw bpsw bpc register pc register 4 eit 4-8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 4.5 acceptance of eit events when an eit event occurs, the cpu suspends the program it has hitherto been executed and branches to eit processing by the relevant handler. conditions under which each eit event occurs and the timing at which they are accepted are shown below. table 4.5.1 acceptance of eit events eit event type of processing acceptance timing values set in bpc register reserved instruction instruction processing- during instruction execution pc value of the instruction that exception (rie) canceled type generated rie address exception (ae) instruction processing- during instruction execution pc value of the instruction that canceled type generated ae floating-point exception instruction processing- break in instructions pc value of the instruction that (fpe) completed type generated fpe + 4 reset interrupt (ri) instruction processing- each machine cycle undefined value aborted type system break interrupt instruction processing- break in instructions pc value of the next instruction (sbi) completed type (word boundary only) external interrupt (ei) instruction processing- break in instructions pc value of the next instruction completed type (word boundary only) trap (trap) instruction processing- break in instructions pc value of trap instruction + 4 completed type 4.6 saving and restoring the pc and psw the following describes operation of the microcomputer at the time when it accepts an eit and when it executes the rte instruction. (1) hardware preprocessing when an eit is accepted [1] save the psw register?s sm, ie and c bits in its backup field. bsm sm bie ie bc c [2] update the psw register?s sm, ie and c bits sm remains unchanged (rie, ae, fpe, trap) or cleared to "0" (sbi, ei, ri) ie cleared to "0" c cleared to "0" [3] save the pc register bpc pc [4] set the vector address in the pc register branches to the eit vector and executes the branch (bra) instruction written in it, thereby transferring control to the user-created eit handler. (2) hardware postprocessing when the rte instruction is executed [a] restore the psw register?s sm, ie and c bits from its backup field. sm bsm ie bie c bc [b] restore the pc register from the bpc register. pc bpc note: the values stored in the bpc and the psw register?s bsm, bie and bc bits after executing the rte instruction are undefined. 4.5 acceptance of eit events 4 eit 4-9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 4.6 saving and restoring the pc and psw psw bpc pc when eit is accepted when rte instruction is executed [1] saving the sm, ie and c bits bsm bie bc sm ie c [2] updating the sm, ie and c bits sm ie c unchanged or 0 0 0 [3] saving the pc bpc pc [4] setting the vector address in the pc pc vector address [b] restoring the pc from the bpc register the value stored in the bpc register after executing the rte instruction is undefined. [a] restoring the sm, ie and c bits from the backup field sm ie c the values stored in the bsm, bie and bc bits after executing the rte instruction are undefined. bsm bie bc [1] [a] [b] [2] [3] [4] figure 4.6.1 saving and restoring the pc and psw 16 17 23 24 25 31(lsb) 15 8 7 0(msb) sm ie c bc bsm bie 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 psw bpsw field psw field 4 eit 4-10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 4.7 eit vector entry the eit vector entry is located in the user space beginning with the address h?0000 0000. the table below lists the eit vector entry and shows the states of sm bit, ie bit, and bpc bit after the occurrence of each eit event. table 4.7.1 eit vector entry name abbreviation vector address sm ie bpc reset interrupt ri h'0000 0000 (note 1) 0 0 undefined system break sbi h'0000 0010 0 0 pc of the next instruction interrupt reserved instruction rie h'0000 0020 unchanged 0 pc of the instruction that generated rie exception address exception ae h'0000 0030 unchanged 0 pc of the instruction that generated ae trap trap0 h'0000 0040 unchanged 0 pc of trap instruction + 4 trap1 h'0000 0044 unchanged 0 pc of trap instruction + 4 trap2 h'0000 0048 unchanged 0 pc of trap instruction + 4 trap3 h'0000 004c unchanged 0 pc of trap instruction + 4 trap4 h'0000 0050 unchanged 0 pc of trap instruction + 4 trap5 h'0000 0054 unchanged 0 pc of trap instruction + 4 trap6 h'0000 0058 unchanged 0 pc of trap instruction + 4 trap7 h'0000 005c unchanged 0 pc of trap instruction + 4 trap8 h'0000 0060 unchanged 0 pc of trap instruction + 4 trap9 h'0000 0064 unchanged 0 pc of trap instruction + 4 trap10 h'0000 0068 unchanged 0 pc of trap instruction + 4 trap11 h'0000 006c unchanged 0 pc of trap instruction + 4 trap12 h'0000 0070 unchanged 0 pc of trap instruction + 4 trap13 h'0000 0074 unchanged 0 pc of trap instruction + 4 trap14 h'0000 0078 unchanged 0 pc of trap instruction + 4 trap15 h'0000 007c unchanged 0 pc of trap instruction + 4 external interrupt ei h'0000 0080 (note 2) 0 0 pc of the next instruction floating-point exception fpe h'0000 0090 unchanged 0 pc of the instruction that generated fpe + 4 note 1: during boot mode, the cpu starts executing the boot program after exiting the reset state. for details, see section 6.6, ?programming the internal flash memory.? note 2: during flash e/w enable mode, this vector address is moved to the beginning of the internal ram (address h?0080 4000). for details, see section 6.6, ?programming the internal flash memory.? 4.7 eit vector entry 4 eit 4-11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 4.8 exception processing 4.8 exception processing 4.8.1 reserved instruction exception (rie) [occurrence conditions] reserved instruction exception (rie) occurs when a reserved instruction (unimplemented instruction) is detected. instruction check is performed on the op-code part of the instruction. when a reserved instruction exception occurs, the instruction that generated it is not executed. if an external interrupt is requested at the same time a reserved instruction exception is detected, it is the reserved instruction exception that is accepted. [eit processing] (1) saving sm, ie and c bits the psw register?s sm, ie and c bits are saved to the respective backup bits: bsm, bie and bc. bsm sm bie ie bc c (2) updating sm, ie and c bits the psw register?s sm, ie and c bits are updated as shown below. sm unchanged ie 0 c 0 (3) saving the pc the pc value of the instruction that generated the reserved instruction exception is set in the bpc regis- ter. for example, if the instruction that generated the reserved instruction exception is at address 4, the value 4 is set in the bpc register. similarly, if the instruction that generated the reserved instruction exception is at address 6, the value 6 is set in the bpc register. in this case, the value of the bpc register bit 30 indicates whether the instruction that generated the reserved instruction exception resides on a word boundary (bpc register bit 30 = "0") or not on a word boundary (bpc register bit 30 = "1"). however, in either case of the above, the address to which the rte instruction returns after the eit handler has terminated is address 4. (this is because the 2 low-order address bits are cleared to ?00? when returned to the pc.) figure 4.8.1 example of a return address for reserved instruction exception (rie) h'00 address rie occurred h'04 h'08 h'0c +0 +1 +2 +3 h'00 address rie occurred h'04 h'08 h'0c +0 +1 +2 +3 return address bpc h'06 bpc h'04 return address 4 eit 4-12 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 4.8 exception processing (4) branching to the eit vector entry the cpu branches to the address h?0000 0020 in the user space. this is the last operation performed in hardware preprocessing. (5) jumping from the eit vector entry to the user-created handler the cpu executes the bra instruction written by the user at the address h?0000 0020 of the eit vector entry to jump to the start address of the user-created handler. at the beginning of the user-created eit handler, first save the bpc and psw registers and the necessary general-purpose registers to the stack. also, save the accumulator and fpsr register as necessary. (6) returning from the eit handler at the end of the eit handler, restore the saved registers from the stack and execute the rte instruction. when the rte instruction is executed, hardware postprocessing is automatically performed. at this time, the cpu restarts from a word-boundary instruction including the instruction that generated a rie (see figure 4.8.1). except when using reserved instruction exceptions intentionally, occurrence of a reserved instruction exception suggests that the system has some fatal fault already existing in it. in such a case, therefore, do not return from the reserved instruction exception handler to the program that was being executed when the exception occurred. 4.8.2 address exception (ae) [occurrence conditions] address exception (ae) occurs when an attempt is made to access a misaligned address in load or store instructions. the following lists the combination of instructions and accessed addresses that may cause address exceptions to occur. two low-order address bits accessed in the ldh, lduh or sth instruction are ?01? or ?11? two low-order address bits accessed in the ld, st, lock or unlock instruction are ?01,? ?10? or ?11? when an address exception occurs, memory access by the instruction that generated the exception is not performed. if an external interrupt is requested at the same time an address exception is detected, it is the address exception that is accepted. [eit processing] (1) saving sm, ie and c bits the psw register?s sm, ie and c bits are saved to the respective backup bits: bsm, bie and bc. bsm sm bie ie bc c (2) updating sm, ie and c bits the psw register?s sm, ie and c bits are updated as shown below. sm unchanged ie 0 c 0 (3) saving the pc the pc value of the instruction that generated the address exception is set in the bpc register. for example, if the instruction that generated the address exception is at address 4, the value 4 is set in the bpc register. similarly, if the instruction that generated the address exception is at address 6, the value 6 is set in the bpc register. in this case, the value of the bpc register bit 30 indicates whether the instruction that generated the reserved instruction exception resides on a word boundary (bpc register bit 30 = "0") or not on a word boundary (bpc register bit 30 = "1"). however, in either case of the above, the address to which the rte instruction returns after the eit handler has terminated is address 4. (this is because the 2 low-order address bits are cleared to ?00? when returned to the pc.) 4 eit 4-13 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 4.8 exception processing figure 4.8.2 example of a return address for address exception (ae) (4) branching to the eit vector entry the cpu branches to the address h?0000 0030 in the user space. this is the last operation performed in hardware preprocessing. (5) jumping from the eit vector entry to the user-created handler the cpu executes the bra instruction written by the user at the address h?0000 0030 of the eit vector entry to jump to the start address of the user-created handler. at the beginning of the user-created eit handler, first save the bpc and psw registers and the necessary general-purpose registers to the stack. also, save the accumulator and fpsr register as necessary. (6) returning from the eit handler at the end of the eit handler, restore the saved registers from the stack and execute the rte instruction. when the rte instruction is executed, hardware postprocessing is automatically performed. at this time, the cpu restarts from a word-boundary instruction including the instruction that generated an ae (see figure 4.8.2). except when using address exceptions intentionally, occurrence of an address exception suggests that the system has some fatal fault already existing in it. in such a case, therefore, do not return from the address exception handler to the program that was being executed when the exception occurred. 4.8.3 floating-point exception (fpe) [occurrence conditions] floating-point exception (fpe) occurs when unimplemented exception (uipl) or one of the five excep- tions specified in ieee 754 standards (ovf, udf, ixct, div0 or ivld) is detected. note, however, that the eit processing described below is executed only when the exception that oc- curred is one whose exception enable bit in the fpsr register is set to "1" or an unimplemented excep- tion. [eit processing] (1) saving sm, ie and c bits the psw register?s sm, ie and c bits are saved to the respective backup bits: bsm, bie and bc. bsm sm bie ie bc c (2) updating sm, ie and c bits the psw register?s sm, ie and c bits are updated as shown below. sm unchanged ie 0 c 0 h'00 address ae occurred h'04 h'08 h'0c +0 +1 +2 +3 h'00 address ae occurred h'04 h'08 h'0c +0 +1 +2 +3 bpc h'06 bpc h'04 return address return address 4 eit 4-14 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (3) saving the pc the pc value of the instruction that generated the fpe + 4 is set in the bpc register. because all of the instructions that generate an fpe are 32 bits long, the address to which the rte instruction returns is always the instruction next to the one that generated the fpe. (4) branching to the eit vector entry the cpu branches to the address h?0000 0090 in the user space. this is the last operation performed in hardware preprocessing. (5) jumping from the eit vector entry to the user-created handler the cpu executes the bra instruction written by the user at the address h?0000 0090 of the eit vector entry to jump to the start address of the user-created handler. at the beginning of the user-created eit handler, first save the bpc, psw and fpsr registers and the necessary general-purpose registers to the stack. (6) returning from the eit handler at the end of the eit handler, restore the saved registers from the stack and execute the rte instruction. when the rte instruction is executed, hardware postprocessing is automatically performed. 4.8 exception processing 4 eit 4-15 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 4.9 interrupt processing 4.9 interrupt processing 4.9.1 reset interrupt (ri) [occurrence conditions] a reset interrupt is accepted in machine cycle by pulling the reset# input signal "l." the reset interrupt is assigned the highest priority among all eits. [eit processing] (1) initializing sm, ie and c bits the psw register?s sm, ie and c bits are initialized as shown below. sm 0 ie 0 c 0 for the reset interrupt, the values of bsm, bie and bc bits are undefined. (2) branching to the eit vector entry the cpu branches to the address h?0000 0000 in the user space. however, when operating in boot mode, the cpu jumps to the boot program. for details, see section 6.6, ?programming the internal flash memory.? (3) jumping from the eit vector entry to the user program the cpu executes the instruction written by the user at the address h?0000 0000 of the eit vector entry. in the reset vector entry, be sure to initialize the psw and spi registers before jumping to the start address of the user program. 4.9.2 system break interrupt (sbi) system break interrupt (sbi) is an emergency interrupt which is used when power outage is detected or a fault condition is notified by an external watchdog timer. the system break interrupt cannot be masked by the psw register ie bit. therefore, the system break interrupt can only be used when the system has some fatal event already existing in it when the interrupt is detected. also, this interrupt must be used on condition that after processing by the sbi handler, control will not return to the program that was being executed when the system break interrupt occurred. [occurrence conditions] a system break interrupt is accepted by a falling edge on sbi# input pin. (the system break interrupt cannot be masked by the psw register ie bit.) in no case will a system break interrupt be activated immediately after executing a 16-bit instruction that starts from a word boundary. (for 16-bit branch instructions, however, the interrupt is accepted immedi- ately after branching.) note also that because of the instruction processing-completed type, a system break interrupt is accepted after the instruction is completed. 4 eit 4-16 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 4.9 interrupt processing 16-bit instruction order in which instructions are executed 32-bit instruction address 1000 address 1002 address 1004 address 1008 interrupt may be accepted interrupt cannot be accepted 16-bit instruction interrupt may be accepted interrupt may be accepted figure 4.9.1 timing at which system break interrupt (sbi) is accepted [eit processing] (1) saving sm, ie and c bits the psw register?s sm, ie and c bits are saved to the respective backup bits: bsm, bie and bc. bsm sm bie ie bc c (2) updating sm, ie and c bits the psw register?s sm, ie and c bits are updated as shown below. sm 0 ie 0 c 0 (3) saving the pc the address of the next instruction (always on word boundary) following one in which the interrupt was detected is stored in the bpc register. if the interrupt was detected in a branch instruction, then the next instruction is one that exists at the jump address. (4) branching to the eit vector entry the cpu branches to the address h?0000 0010 in the user space. this is the last operation performed in hardware preprocessing. (5) jumping from the eit vector entry to the user-created handler the cpu executes the bra instruction written by the user at the address h?0000 0010 of the eit vector entry to jump to the start address of the user-created handler. the system break interrupt can only be used when the system has some fatal event already existing in it when the interrupt is detected. also, this interrupt must be used on condition that after processing by the sbi handler, control will not return to the program that was being executed when the system break inter- rupt occurred. 4 eit 4-17 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 4.9.2 timing at which external interrupt (ei) is accepted [eit processing] (1) saving sm, ie and c bits the psw register?s sm, ie and c bits are saved to the respective backup bits: bsm, bie and bc. bsm sm bie ie bc c (2) updating sm, ie and c bits the psw register?s sm, ie and c bits are updated as shown below. sm 0 ie 0 c 0 (3) saving the pc the content of the pc register (always on word boundary) is saved to the bpc register. (4) branching to the eit vector entry the cpu branches to the address h?0000 0080 in the user space. however, when operating in flash e/w enable mode, the cpu goes to the beginning of the internal ram (address h?0080 4000). (for details, see section 6.6, ?programming the internal flash memory.?) this is the last operation performed in hardware preprocessing. (5) jumping from the eit vector entry to the user-created handler the cpu executes the bra instruction written by the user at the address h?0000 0080 of the eit vector entry to jump to the start address of the user-created handler. at the beginning of the user-created eit handler, first save the bpc and psw registers and the necessary general-purpose registers to the stack. also, save the accumulator and fpsr register as necessary. 4.9.3 external interrupt (ei) an external interrupt is generated upon an interrupt request which is output by the microcomputer?s internal interrupt controller. the interrupt controller manages interrupt requests by assigning each one of seven priority levels. for details, see chapter 5, ?interrupt controller.? for details about the interrupt request sources, see each section in which the relevant internal peripheral i/o is described. [occurrence conditions] external interrupts are managed based on interrupt requests from each internal peripheral i/o by the microcomputer?s internal interrupt controller, and are sent to the cpu via the interrupt controller. the cpu checks these interrupt requests at a break in instructions residing on word boundaries, and when an interrupt request is detected and the psw register ie flag = "1", accepts it as an external interrupt. in no case will an external interrupt be activated immediately after executing a 16-bit instruction that starts from a word boundary. (for 16-bit branch instructions, however, the interrupt is accepted immediately after branching.) 4.9 interrupt processing 16-bit instruction order in which instructions are executed 32-bit instruction address 1000 address 1002 address 1004 address 1008 interrupt may be accepted interrupt cannot be accepted 16-bit instruction interrupt may be accepted interrupt may be accepted 4 eit 4-18 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 4.9 interrupt processing figure 4.10.1 example of a return address for trap (trap) h'00 address h'04 h'08 h'0c +0 +1 +2 +3 h'00 address h'04 h'08 h'0c +0 +1 +2 +3 bpc h'0a bpc h'08 trap instruction return address return address trap instruction (6) returning from the eit handler at the end of the eit handler, restore the saved registers from the stack and execute the rte instruction. when the rte instruction is executed, hardware postprocessing is automatically performed. 4.10 trap processing 4.10.1 trap [occurrence conditions] traps are software interrupts which are generated by executing the trap instruction. sixteen traps are generated, each corresponding to one of trap instruction operands 0?15. accordingly, sixteen vector entries are provided. [eit processing] (1) saving sm, ie and c bits the psw register?s sm, ie and c bits are saved to the respective backup bits: bsm, bie and bc. bsm sm bie ie bc c (2) updating sm, ie and c bits the psw register?s sm, ie and c bits are updated as shown below. sm unchanged ie 0 c 0 (3) saving the pc when the trap instruction is executed, the pc value of trap instruction + 4 is set in the bpc register. for example, if the trap instruction is located at address 4, the value h?08 is set in the bpc register. similarly, if the trap instruction is located at address 6, the value h?0a is set in the bpc register. the value of the bpc register bit 30 indicates whether the trap instruction resides on a word boundary (bpc register bit 30 = "0") or not on a word boundary (bpc register bit 30 = "1"). however, in either case of the above, the address to which the rte instruction returns after the eit handler has terminated is address 8. (this is because the 2 low-order address bits are cleared to ?00? when returned to the pc.) 4 eit 4-19 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 4.10 trap processing (4) branching to the eit vector entry the cpu branches to the addresses h?0000 0040?h?0000 007c in the user space. this is the last opera- tion performed in hardware preprocessing. (5) jumping from the eit vector entry to the user-created handler the cpu executes the bra instruction written by the user at the addresses h?0000 0040?h?0000 007c of the eit vector entry to jump to the start address of the user-created handler. at the beginning of the user- created eit handler, first save the bpc and psw registers and the necessary general-purpose registers to the stack. also, save the accumulator and fpsr register as necessary. (6) returning from the eit handler at the end of the eit handler, restore the general-purpose registers and the bpc and psw registers from the stack and execute the rte instruction. when the rte instruction is executed, hardware postprocessing is automatically performed. at this time, the cpu restarts from the next word-boundary instruction including the instruction that generates a trap (see figure 4.10.1). 4.11 eit priority levels the table below lists the priority levels of eit events. when two or more eits occur simultaneously, the event with the highest priority is accepted first. table 4.11.1 priority of eit events and how returned from eit priority eit event type of processing values set in bpc register highest 1 reset interrupt (ri) instruction processing-aborted type undefined 2 address exception (ae) instruction processing-canceled type pc of the instruction that generated ae reserved instruction instruction processing-canceled type pc of the instruction that exception (rie) generated rie floating-point exception instruction processing-completed type pc of the instruction that (fpe) generated fpe + 4 trap (trap) instruction processing-completed type trap instruction + 4 3 system break interrupt instruction processing-completed type pc of the next instruction (sbi) lowest 4 external interrupt (ei) instruction processing-completed type pc of the next instruction note that for external interrupt (ei), the priority levels of interrupt requests from each peripheral i/o are set by the microcomputer?s internal interrupt controller. for details, see chapter 5, ?interrupt controller.? 4 eit 4-20 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 4.12 example of eit processing 4.12 example of eit processing (1) when rie, ae, fpe, sbi, ei or trap occurs singly figure 4.12.1 processing of events when rie, ae, fpe, sbi, ei or trap occurs singly (2) when rie, ae, fpe or trap and ei occur simultaneously figure 4.12.2 processing of events when rie, ae, fpe or trap and ei occur simultaneously rte instruction ie = 0 rie, ae, fpe or trap is accepted first. bpc register = return address a ie = 1 rie, ae, fpe or trap and ei occur simultaneously return address a: ie = 1 ie = 0 ie = 1 rte instruction : eit handler ei is accepted next. bpc register = return address a rte instruction ie = 0 ie = 1 bpc register = return address a ie = 1 rie, ae, fpe, sbi, ei or trap occurs singly return address a: if ie = 0, no events but reset and sbi are accepted. : eit handler 4 eit 4-21 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 4.12 example of eit processing figure 4.12.3 example of eit processing bra instruction rte eit handler eit vector entry program being executed save bpc to the stack save psw to the stack save general-purpose registers to the stack processing by eit handler restore general-purpose registers from the stack restore psw from the stack restore bpc from the stack eit event occurs (sbi) system break interrupt (sbi) processing program terminated or system reset (other than sbi) pc bpc psw bpsw hardware preprocessing hardware postprocessing bpsw psw bpc pc (note 1) (note 1) note 1: indicates saving and restoring the psw register bits between its psw and bpsw fields. 4 eit 4-22 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 4.13 notes on eit 4.13 notes on eit the address exception (ae) requires caution because if one of the instructions that use ?register indirect + register update? addressing mode (following three) generates an address exception when it is executed, the values of the registers to be automatically updated (rsrc and rsrc2) become undefined. except that the values of rsrc and rsrc2 become undefined, these instructions behave the same way as when used in other addressing modes. applicable instructions ld rdest, @rsrc+ st rsrc1, @-rsrc2 st rsrc1, @+rsrc2 if the above case applies, consider the fact that the register values become undefined when you design the processing to be performed after executing said instructions. (if an address exception occurs, it means that the system has some fatal fault already existing in it. therefore, address exceptions must be used on condition that control will not be returned from the address exception handler to the program that was being executed when the exception occurred.) chapter 5 interrupt controller (icu) 5.1 outline of the interrupt controller 5.2 icu related registers 5.3 interrupt request sources in internal peripheral i/o 5.4 icu vector table 5.5 description of interrupt operation 5.6 description of system break interrupt (sbi) operation 5 interrupt controller (icu) 5-2 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 5.1 outline of the interrupt controller the interrupt controller (icu) manages maskable interrupts from internal peripheral i/os and a system break interrupt (sbi). the maskable interrupts from internal peripheral i/os are sent to the m32r cpu as external interrupts (ei). the maskable interrupts from internal peripheral i/os are managed by assigning them one of eight priority levels including an interrupt-disabled state. if two or more interrupt requests with the same priority level occur at the same time, their priorities are resolved by predetermined hardware priority. the source of an interrupt request generated in internal peripheral i/os is identified by reading the relevant interrupt status register provided for internal peripheral i/os. on the other hand, the system break interrupt (sbi) is recognized when a low-going transition occurs on the sbi# signal input pin. this interrupt is used for emergency purposes such as when power outage is detected or a fault condition is notified by an external watchdog timer, so that it is always accepted irrespective of the psw register ie bit status. when the cpu has finished servicing an sbi, shut down or reset the system without returning to the program that was being executed when the interrupt occurred. specifications of the interrupt controller are outlined below. table 5.1.1 outline of the interrupt controller (icu) item specification interrupt request source maskable interrupt requests from internal peripheral i/os : 40 sources (note 1) system break interrupt request : 1 source (entered from sbi# pin) priority management 8 priority levels including an interrupt-disabled state (however, interrupts with the same priority level have their priorities resolved by fixed hardware priority.) note 1: it is the number which summarized the number of interrupt requests for every group, and they are 257 factors as an interrupt request factor total. 5.1 outline of the interrupt controller 5 interrupt controller (icu) 5-3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 new_imask ilevel sbi# ei sbi sbireq ireq ireq ireq ireq ireq ireq interrupt vector register (ivect) interrupt request mask register (imask) external interrupt (ei) request generated (maskable) imask compari- son system break interrupt (sbi) request generated (nonmaskable) interrupt controller (icu) interrupt control register sbi control register (sbicr) to the cpu core to the cpu cor e priority resolved by interrupt priority levels set priority resolved by fixed hardware priority note 1: interrupt control circuit indicates interrupt request status register and interrupt request mask register in each peri pheral function. internal peripheral circuits interrupt control circuit interrupt request interrupt request interrupt request interrupt control circuit interrupt control circuit edge edge edge level level level (note 1) figure 5.1.1 block diagram of the interrupt controller 5.1 outline of the interrupt controller 5 interrupt controller (icu) 5-4 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 5.2 icu related registers 5.2 icu related registers the diagram below shows a register map associated with the interrupt controller (icu). icu related register map address +0 address +1 address see pages b0 b7 b8 b15 h'0080 0000 interrupt vector register 5-5 (ivect) h'0080 0002 (use inhibited area) h'0080 0004 interrupt request mask register (use inhibited area) 5-6 (imask) h'0080 0006 sbi control register (use inhibited area) 5-7 (sbicr) (use inhibited area) h'0080 0056 ram write monitor interrupt control register can1 error interrupt control register 5-8 (iramwrcr) (ican1ercr) h'0080 0058 can1 single-shot interrupt control register can1 transmit/receive interrupt control register 5-8 (ican1sscr) (ican1trcr) h'0080 005a can0 error interrupt control register can0 single-shot interrupt control register 5-8 (ican0ercr) (ican0sscr) h'0080 005c can0 transmit/receive interrupt control register dri event detection interrupt control register 5-8 (ican0trcr) (idrievcr) h'0080 005e dri counter interrupt control register dri transfer interrupt control register 5-8 (idricntcr) (idritrcr) h'0080 0060 can0 transmit/receive & error interrupt control register tml1 input interrupt control register 5-8 (ican0cr) (itml1cr) h'0080 0062 (use inhibited area) h'0080 0064 sio4,5 transmit/receive interrupt control register tou1 output interrupt control register 5-8 (isio45cr) (itou1cr) h'0080 0066 tid1 output interrupt control register rtd interrupt control register 5-8 (itid1cr) (irtdcr) h'0080 0068 sio2,3 transmit/receive interrupt control register dma5?9 interrupt control register 5-8 (isio23cr) (idma59cr) h'0080 006a tou0 output interrupt control register tid0 output interrupt control register 5-8 (itou0cr) (itid0cr) h'0080 006c a/d0 conversion interrupt control register sio0 transmit interrupt control register 5-8 (iad0ccr) (isio0txcr) h'0080 006e sio0 receive interrupt control register sio1 transmit interrupt control register 5-8 (isio0rxcr) (isio1txcr) h'0080 0070 sio1 receive interrupt control register dma0?4 interrupt control register 5-8 (isio1rxcr) (idma04cr) h'0080 0072 mjt output interrupt control register 0 mjt output interrupt control register 1 5-8 (imjtocr0) (imjtocr1) h'0080 0074 mjt output interrupt control register 2 mjt output interrupt control register 3 5-8 (imjtocr2) (imjtocr3) h'0080 0076 mjt output interrupt control register 4 mjt output interrupt control register 5 5-8 (imjtocr4) (imjtocr5) h'0080 0078 mjt output interrupt control register 6 mjt output interrupt control register 7 5-8 (imjtocr6) (imjtocr7) h'0080 007a mjt input interrupt control register 0 mjt input interrupt control register 1 5-8 (imjticr0) (imjticr1) h'0080 007c mjt input interrupt control register 2 mjt input interrupt control register 3 5-8 (imjticr2) (imjticr3) h'0080 007e mjt input interrupt control register 4 can1 transmit/receive & error interrupt control register 5-8 (imjticr4) (ican1cr) | 5 interrupt controller (icu) 5-5 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 5.2 icu related registers 5.2.1 interrupt vector register interrupt vector register (ivect) 5 interrupt controller (icu) 5-6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 5.2 icu related registers 5.2.2 interrupt request mask register interrupt request mask register (imask) 5 interrupt controller (icu) 5-7 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 5.2 icu related registers 5.2.3 sbi (system break interrupt) control register sbi (system break interrupt) control register (sbicr) 5 interrupt controller (icu) 5-8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 5.2 icu related registers 5.2.4 interrupt control registers ram write monitor interrupt control register (iramwrcr) 5 interrupt controller (icu) 5-9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 5.2 icu related registers 9 1011121314b15) (b8 123456b7 b0 ilevel ire q 0 111 0 0 0 0 5 interrupt controller (icu) 5-10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 5.2.1 configuration of the interrupt control register (edge-recognized type) 5.2 icu related registers figure 5.2.2 configuration of the interrupt control register (level-recognized type) (2) ilevel (interrupt priority level) (bits 5?7 or bits 13?15) these bits set the priority levels of interrupt requests from each internal peripheral i/o. set these bits to ?111? to disable or any value ?000? through ?110? to enable the interrupt from some internal peripheral i/o. when an interrupt occurs, the interrupt controller resolves priority between this interrupt and other interrupt sources based on ilevel settings and finally compares priority with the imask value to determine whether to forward an ei request to the cpu or keep the interrupt request pending. the table below shows the relationship between ilevel settings and the imask values at which interrupts are accepted. table 5.2.1 ilevel settings and accepted imask values ilevel values set imask values at which interrupts are accepted 0 (ilevel = "000") accepted when imask is 1?7 1 (ilevel = "001") accepted when imask is 2?7 2 (ilevel = "010") accepted when imask is 3?7 3 (ilevel = "011") accepted when imask is 4?7 4 (ilevel = "100") accepted when imask is 5?7 5 (ilevel = "101") accepted when imask is 6?7 6 (ilevel = "110") accepted when imask is 7 7 (ilevel = "111") not accepted (interrupts disabled) interrupt request from each internal peripheral i/o interrupt enabled ilevel (levels 0-7) data bus bits 5-7 or bits 13-15 3 f/f set set/clear ireq interrupt priority resolving circuit f/f reset ivect read imask write clear to the cpu core bit 3 or bit 11 set ei group interrupt request from each internal peripheral i/o interrupt enabled bit 3 or bit 11 data bus bits 5-7 or bits 13-15 read 3 ireq read-only circuit ilevel (levels 0-7) group interrupt interrupt priority resolving circuit f/f clear to the cpu core set ei reset ivect read imask write 5 interrupt controller (icu) 5-11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 5.3 interrupt request sources in internal peripheral i/o the interrupt controller receives as inputs the interrupt requests from mjt (multijunction timer), dmac, serial interface, a/d converter, rtd, can, dri and ram write monitor. for details about these interrupts, see each section in which the relevant internal peripheral i/o is described. table 5.3.1 interrupt request sources in internal peripheral i/o interrupt request sources contents number of icu type of input input sources source ( note 1) mjt input interrupt 4 mjt input interrupt group 4 (tin3?tin6 inputs) 4 level-recognized mjt input interrupt 3 mjt input interrupt group 3 (tin20?tin27 inputs) 8 level-recognized mjt input interrupt 2 mjt input interrupt group 2 (tin16?tin19 inputs) 4 level-recognized mjt input interrupt 1 mjt input interrupt group 1 (tin0 input) 1 level-recognized mjt input interrupt 0 mjt input interrupt group 0 (tin7?tin11 inputs) 5 level-recognized mjt output interrupt 7 mjt output interrupt group 7 (tms0, tms1 output) 2 level-recognized mjt output interrupt 6 mjt output interrupt group 6 (top8, top9 output) 2 level-recognized mjt output interrupt 5 mjt output interrupt group 5 (top10 output) 1 edge-recognized mjt output interrupt 4 mjt output interrupt group 4 (tio4?tio7 outputs) 4 level-recognized mjt output interrupt 3 mjt output interrupt group 3 (tio8, tio9 outputs) 2 level-recognized mjt output interrupt 2 mjt output interrupt group 2 (top0?top5 outputs) 6 level-recognized mjt output interrupt 1 mjt output interrupt group 1 (top6, top7 outputs) 2 level-recognized mjt output interrupt 0 mjt output interrupt group 0 (tio0?tio3 outputs) 4 level-recognized dma0?4 interrupt dma0?4 transfer-completed 5 level-recognized sio1 receive interrupt sio1 reception-completed or receive error interrupt 1 edge-recognized sio1 transmit interrupt sio1 transmission-completed or transmit buffer empty interrupt 1 edge-recognized sio0 receive interrupt sio0 reception-completed or receive error interrupt 1 edge-recognized sio0 transmit interrupt sio0 transmission-completed or transmit buffer empty interrupt 1 edge-recognized a/d0 conversion interrupt a/d0 conversion (single mode, scan single-shot mode, or 1 cycle 1 edge-recognized of scan continuous mode) completed and comparate-completed tid0 output interrupt tid0 output 1 edge-recognized tou0 output interrupt tou0_0?tou0_7 outputs 8 level-recognized dma5?9 interrupt dma5?9 transfer-completed 5 level-recognized sio2,3 transmit/receive interrupt sio2,3 reception-completed or receive error interrupt, 4 level-recognized transmission-completed or transmit buffer empty interrupt rtd interrupt rtd interrupt generation command 1 edge-recognized tid1 output interrupt tid1 output 1 edge-recognized tou1 output interrupt tou1_0?tou1_7 outputs 8 level-recognized sio4,5 transmit/receive interrupt sio4,5 reception-completed or receive error interrupt, 4 level-recognized transmission-completed or transmit buffer empty interrupt tml1 input interrupt tml1 input (tin30?tin33 inputs) 4 level-recognized can0 transmit/receive & error can0 transmission or reception completed, can0 bus error, 67 level-recognized interrupt can0 error passive, can0 bus-off, can0 single-shot can1 transmit/receive & error can1 transmission or reception completed, can1 bus error, 67 level-recognized interrupt can1 error passive, can1 bus-off, can1 single-shot dri transfer interrupt dri address counter 0 transfer-completed, 5 level-recognized dri address counter 1 transfer-completed, overrun error, latch enable error and dri transfer counter underflow dri counter interrupt dec0?dec4 underflow 5 level-recognized dri event detection interrupt din0?din5 event detected 6 level-recognized can0 transmit/receive interrupt can0 transmission-completed, can0 reception-completed 32 level-recognized can0 single-shot interrupt can0 single-shot 32 level-recognized can0 error interrupt can0 bus error, can0 error passive, can0 bus off 3 level-recognized can1 transmit/receive interrupt can1 transmission-completed, can1 reception-completed 32 level-recognized can1 single-shot interrupt can1 single-shot 32 level-recognized can1 error interrupt can1 bus error, can1 error passive, can1 bus off 3 level-recognized ram write monitor interrupt ram write 16 level-recognized note 1: icu type of input source edge-recognized: interrupt requests are generated on a falling edge of the interrupt signal supplied to the icu. level-recognized: interrupt requests are generated when the interrupt signal supplied to the icu is held "l." for this type of interrupt, the icu?s interrupt control register irq bit cannot be set or cleared in software. 5.3 interrupt request sources in internal peripheral i/o 5 interrupt controller (icu) 5-12 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 5.4 icu vector table 5.4 icu vector table the icu vector table is used to set the start addresses of interrupt handlers for each internal peripheral i/o. the 40-source interrupt requests are assigned the following vector table addresses. the interrupt request sources are also assigned the following hardware fixed priority levels. table 5.4.1 icu vector table priority interrupt request source icu vector table address number of icu type of input input source source (note 1) high mjt input interrupt 4 h'0000 0094 ? h'0000 0097 4 level-recognized mjt input interrupt 3 h'0000 0098 ? h'0000 009b 8 level-recognized mjt input interrupt 2 h'0000 009c ? h'0000 009f 4 level-recognized mjt input interrupt 1 h'0000 00a0 ? h'0000 00a3 1 level-recognized mjt input interrupt 0 h'0000 00a4 ? h'0000 00a7 5 level-recognized mjt output interrupt 7 h'0000 00a8 ? h'0000 00ab 2 level-recognized mjt output interrupt 6 h'0000 00ac ? h'0000 00af 2 level-recognized mjt output interrupt 5 h'0000 00b0 ? h'0000 00b3 1 edge-recognized mjt output interrupt 4 h'0000 00b4 ? h'0000 00b7 4 level-recognized mjt output interrupt 3 h'0000 00b8 ? h'0000 00bb 2 level-recognized mjt output interrupt 2 h'0000 00bc ? h'0000 00bf 6 level-recognized mjt output interrupt 1 h'0000 00c0 ? h'0000 00c3 2 level-recognized mjt output interrupt 0 h'0000 00c4 ? h'0000 00c7 4 level-recognized dma0?4 interrupt h'0000 00c8 ? h'0000 00cb 5 level-recognized sio1 receive interrupt h'0000 00cc ? h'0000 00cf 1 edge-recognized sio1 transmit interrupt h'0000 00d0 ? h'0000 00d3 1 edge-recognized sio0 receive interrupt h'0000 00d4 ? h'0000 00d7 1 edge-recognized sio0 transmit interrupt h'0000 00d8 ? h'0000 00db 1 edge-recognized a/d0 conversion interrupt h'0000 00dc ? h'0000 00df 1 edge-recognized tid0 output interrupt h'0000 00e0 ? h'0000 00e3 1 edge-recognized tou0 output interrupt h'0000 00e4 ? h'0000 00e7 8 level-recognized dma5?9 interrupt h'0000 00e8 ? h'0000 00eb 5 level-recognized sio2,3 transmit/receive interrupt h'0000 00ec ? h'0000 00ef 4 level-recognized rtd interrupt h'0000 00f0 ? h'0000 00f3 1 edge-recognized tid1 output interrupt h'0000 00f4 ? h'0000 00f7 1 edge-recognized tou1 output interrupt h'0000 00f8 ? h'0000 00fb 8 level-recognized sio4,5 transmit/receive interrupt h'0000 00fc ? h'0000 00ff 4 level-recognized tml1 input interrupt h'0000 0108 ? h'0000 010b 4 level-recognized can0 transmit/receive & error interrupt h'0000 010c ? h'0000 010f 67 level-recognized can1 transmit/receive & error interrupt h'0000 0110 ? h'0000 0113 67 level-recognized dri transfer interrupt h'0000 0114 ? h'0000 0117 5 level-recognized dri counter interrupt h'0000 0118 ? h'0000 011b 5 level-recognized dri event detection interrupt h'0000 011c ? h'0000 011f 6 level-recognized can0 transmit/receive interrupt h'0000 0120 ? h'0000 0123 32 level-recognized can0 single-shot interrupt h'0000 0124 ? h'0000 0127 32 level-recognized can0 error interrupt h'0000 0128 ? h'0000 012b 3 level-recognized can1 transmit/receive interrupt h'0000 012c ? h'0000 012f 32 level-recognized can1single-shot interrupt h'0000 0130 ? h'0000 0133 32 level-recognized can1 error interrupt h'0000 0134 ? h'0000 0137 3 level-recognized low ram write monitor interrupt h'0000 0138 ? h'0000 013b 16 level-recognized note 1: icu type of input source edge-recognized: interrupt requests are generated on a falling edge of the interrupt signal supplied to the icu. level-recognized: interrupt requests are generated when the interrupt signal supplied to the icu is held low. for this type of interrupt, the icu?s interrupt control register irq bit cannot be set or cleared in software. 5 interrupt controller (icu) 5-13 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 5.5.1 example of priority resolution when accepting interrupt requests table 5.5.1 ilevel settings and accepted imask values ilevel values set imask values at which interrupts are accepted 0 (ilevel = "000") accepted when imask is 1?7 1 (ilevel = "001") accepted when imask is 2?7 2 (ilevel = "010") accepted when imask is 3?7 3 (ilevel = "011") accepted when imask is 4?7 4 (ilevel = "100") accepted when imask is 5?7 5 (ilevel = "101") accepted when imask is 6?7 6 (ilevel = "110") accepted when imask is 7 7 (ilevel = "111") not accepted (interrupts disabled) 5.5 description of interrupt operation 5.5.1 acceptance of internal peripheral i/o interrupts an interrupt request from any internal peripheral i/o is checked to see whether or not to accept by comparing its ilevel value set in the interrupt control register and the imask value of the interrupt request mask register. if its priority is higher than the imask value, the interrupt request is accepted. however, if two or more interrupt requests occur simultaneously, the interrupt controller resolves priority between these interrupt requests fol- lowing the procedure described below. 1) the ilevel values set in the interrupt control registers for the respective internal peripheral i/os are compared with each other. 2) if the ilevel values are the same, priorities are resolved according to the predetermined hardware priority. 3) the ilevel and imask values are compared. if two or more interrupt requests occur simultaneously, the interrupt controller first compares their priority levels set in each interrupt control register?s ilevel bit to select an interrupt request that has the highest priority. if the interrupt requests have the same ilevel value, their priorities are resolved according to the hardware fixed priority. the interrupt request thus selected has its ilevel value compared with the imask value and if its priority is higher than the imask value, the interrupt controller sends an ei request to the cpu. interrupt requests may be masked by setting the interrupt request mask register and the interrupt control register?s ilevel bit (disabled at level 7) provided for each internal peripheral i/o and the psw register ie bit. 5.5 description of interrupt operation interrupt requested or not resolve priority according to interrupt priority level (ilevel) resolve priority according to hardware priority compare with imask value tin3 input interrupt request (mjt input interrupt 4) tio5 output interrupt request (mjt output interrupt 4) top8 output interrupt request (mjt output interrupt 6) sio0 transmit interrupt request dma1 interrupt request (dma0-4 interrupt) a/d0 conversion interrupt request (ilevel settings) level 3 level 4 level 5 level 3 level 1 level 3 not requested requested requested requested requested requested hardware fixed priority accept interrupt if psw register ie bit = 1 level 3 level 3 level 3 can be accepted when imask = 4-7 1) 2) 3) 5 interrupt controller (icu) 5-14 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 5.5.2 processing by internal peripheral i/o interrupt handlers (1) branching to the interrupt handler upon accepting an interrupt request, the cpu branches to the eit vector entry after performing the hard- ware preprocessing as described in section 4.3, ?eit processing procedure.? the eit vector entry for external interrupt (ei) is located at the address h?0000 0080. this address is where the instruction (not the jump address itself) for branching to the beginning of the interrupt handler routine for external interrupt requests is written. (2) processing in the external interrupt (ei) handler a typical operation of the external interrupt (ei) handler (for interrupts from internal peripheral i/o) is shown in figure 5.5.2. [1] saving each register to the stack save the bpc, psw and general-purpose registers to the stack. also, save the accumulator and fpsr register to the stack as necessary. [2] reading the interrupt request mask register (imask) and saving to the stack read the interrupt request mask register and save its content to the stack. [3] reading the interrupt vector register (ivect) read the interrupt vector register. this register holds the 16 low-order address bits of the icu vector table for the accepted interrupt request source that was stored in it when accepting an interrupt request. when the interrupt vector register is read, the following processing is automatically performed in hardware: the interrupt priority level of the accepted interrupt request (ilevel) is set in the imask register as a new imask value. (interrupts with lower priority levels than that of the accepted interrupt request source are masked.) the accepted interrupt request source is cleared (not cleared for level-recognized interrupt request sources). the interrupt request (ei) to the cpu core is dropped. the icu?s internal sequencer is activated to start internal processing (interrupt priority resolution). [4] reading and overwriting the interrupt request mask register (imask) read the interrupt request mask register and overwrite it with the read value. this write to the imask register causes the following processing to be automatically performed in hardware: the interrupt request (ei) to the cpu core is dropped. the icu?s internal sequencer is activated to start internal processing (interrupt priority resolution). [5] reading the icu vector table read the icu vector table for the accepted interrupt request source. the relevant icu vector table address can be obtained by zero-extending the content of the interrupt vector register that was read in [3] (i.e., the 16 low-order address bits of the icu vector table for the accepted interrupt request source). the icu vector table must have set in it the start address of the interrupt handler for the interrupt request source concerned.) [6] enabling multiple interrupts to enable another higher priority interrupt while processing the accepted interrupt (i.e., enabling mul- tiple interrupts), set the psw register ie bit to "1." notes: there are precautions to be taken when reenabling interrupts (by setting the ie bit to "1") after reading the interrupt vector register (ivect). for details, see the section 5.2.1, "interrupt vector register (ivect)." the precautions apply to the process [4], therefore, other processes are not required to add. there are precautions to be taken when reenabling interrupts (by setting the ie bit to "1") after writing to the interrupt request mask register (imask). for details, see the section 5.2.2, "interrupt request mask register (imask)." 5.5 description of interrupt operation 5 interrupt controller (icu) 5-15 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 5.5 description of interrupt operation [7] branching to the internal peripheral i/o interrupt handler branch to the start address of the interrupt handler that was read out in [5]. [8] processing in the internal peripheral i/o interrupt handler [9] disabling interrupts clear the psw register ie bit to "0" to disable interrupts. [10] restoring the interrupt request mask register (imask) restore the interrupt request mask register that was saved to the stack in [2]. [11] restoring registers from the stack restore the registers that were saved to the stack in [1]. [12] completion of external interrupt processing execute the rte instruction to complete the external interrupt processing. the program returns to the state in which it was before the interrupt request currently being processed was accepted. (3) identifying the source of the interrupt request generated if any internal peripheral i/o has two or more interrupt request sources, check the interrupt request status register provided for each internal peripheral i/o to identify the source of the interrupt request generated. (4) enabling multiple interrupts to enable multiple interrupts in the interrupt handler, set the psw register ie (interrupt enable) bit to enable interrupt requests to be accepted. however, before writing "1" to the ie bit, be sure to save each register (bpc, psw, general-purpose registers and imask) to the stack. note: before enabling multiple interrupts, read the interrupt vector register (ivect) and then the icu vector table, as shown in figure 5.5.2, ?typical handler operation for interrupts from internal peripheral i/o.? 5 interrupt controller (icu) 5-16 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 5.5.2 typical handler operation for interrupts from internal peripheral i/o 5.5 description of interrupt operation h'0000 0080 bra instruction read interrupt vector register (ivect) read icu vector table branch to the interrupt handler for each internal peripheral i/o rte h'0080 0004 h'0000 0094 h'0000 013b interrupt handler ei (external interrupt) handler ei (external interrupt) vector entry interrupt handler start address program being executed interrupt generated ivect save bpc to the stack save psw to the stack save general-purpose registers to the stack restore bpc from the stack restore psw from the stack restore general-purpose registers from the stack read and save interrupt request mask register (imask) to the stack imask h'0080 0000 set psw register ie bit to 1 clear psw register ie bit to 0 restore interrupt request mask register (imask) from the stack [1] [2] [3] [5] [7] [8] [9] [6] [10] [11] icu vector table (note 1) (note 1) hardware preprocessing when eit is accepted hardware postprocessing when rte instruction is executed read and overwrite interrupt request mask register (imask) [4] [12] (note 2) (note 2) (note 3) (note 4) (note 3) (note 2) interrupt handler [1] to [12]: processing of ei by interrupt handler note 1: for operations at eit acceptance and return from eit, also see section 4.3, "eit processing procedure." note 2: do not read the interrupt vector register (ivect) or write to the interrupt request mask register (imask) in the eit handler unless interrupts are disabled (psw register ie bit = 0). note 3: to enable multiple interrupts, execute processing in [6] and [9]. note 4: there are precautions to be taken when reenabling interrupts (by setting the ie bit to "1") after reading the interrupt vector register (ivect). for details, see the section 5.2.1, "interrupt vector register (ivect)." the precautions apply to the process [4], therefore, other processes are not required to add. also, there are precautions to be taken when reenabling interrupts (by setting the ie bit to "1") after writing to the interrupt request mask register (imask). for details, see the section 5.2.2, "interrupt request mask register (imask)." 5 interrupt controller (icu) 5-17 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 5.6 description of system break interrupt (sbi) operation 5.6.1 acceptance of sbi system break interrupt (sbi) is an emergency interrupt which is used when power outage is detected or a fault condition is notified by an external watchdog timer. the system break interrupt is accepted anytime upon detection of a falling edge on the sbi# signal input pin no matter how the psw register ie bit is set, and cannot be masked. if falling edge is inputted to sbi# pin again, system break is not occured while sbi request bit is set to "1." 5.6.2 sbi processing by handler when the system break interrupt generated has been serviced, shut down or reset the system without return- ing to the program that was being executed when the interrupt occurred. 5.6 description of system break interrupt (sbi) operation figure 5.6.1 typical sbi operation h'0000 0010 bra instruction sbi (system break interrupt) handler sbi (system break interrupt) vector entry program being executed sbi generated processing to shut down the system (note 1) note 1: do not return to the p ro g ram that was bein g executed when the interru p t occurred. shut down or reset the system 5 interrupt controller (icu) 5-18 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 5.6 description of system break interrupt (sbi) operation this page is blank for reasons of layout. chapter 6 internal memory 6.1 outline of the internal memory 6.2 internal ram 6.3 internal ram protect function 6.4 internal flash memory 6.5 registers associated with the internal flash memory 6.6 programming the internal flash memory 6.7 virtual flash emulation function 6.8 connecting to a serial programmer (csio mode) 6.9 connecting to a serial programmer (uart mode) 6.10 internal flash memory protect function 6.11 notes on the internal ram 6.12 notes on the internal flash memory internal memory 6-2 6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.1 outline of the internal memory the 32192/32195/32196 internally contains the following types of memory: ? 176-kbyte, 32-kbyte, 64-kbyte ram ? 1-mbyte (1024 kbytes) and 512-kbyte flash memory 6.2 internal ram specifications of the internal ram are shown below. table 6.2.1 specifications of the internal ram item specification size m32192f8 : 176 kbytes m32195f4 : 32 kbytes m32196f8 : 64 kbytes location address m32192f8 : h?0080 4000 to h?0082 ffff m32195f4 : h'0080 4000 to h'0080 bfff m32196f8 : h?0080 4000 to h?0081 3fff wait insertion operates with zero wait states internal bus connection connected by 32-bit bus dual port by using the real-time debugger (rtd), data can be read (monitored) or written to any area of the internal ram via serial communication from external devices independently of the cpu. (see chapter 15, ?real-time debugger.?) note: ? the value of ram is undefined immediately after reset is deasserted during power-on (the power-on in which vdde also rises at gnd). however, in the ram backup mode (power to vdde only), the value of before deassertion of reset is held only in the ram backup area. 6.3 internal ram protect function this function monitors writes to the internal ram. writes to the ram can be disabled in 16-kbyte units for area of h'0080 4000 to h'0084 3fff. and if a write area set to disable is accessed for write, an interrupt can be generated. note: ? the internal resources that are likely to access the internal ram for write include six modules: cpu, dma, sdi (tool), nbd, rtd, and dri. of these, the rtd and dri are not subject to the ram protect function, so that write accesses made to the internal ram by the rtd or dri cannot be detected. 6.1 outline of the internal memory internal memory 6 6-3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 the diagram below shows the areas in 16-kbyte units of the internal ram that can individually be disabled against write by the ram protect function. table 6.3.1 definition of the write disabled area area target address m32192f8 m32195f4 m32196f8 area 0 h'0080 4000 - h'0080 7fff area 1 h'0080 8000 ? h'0080 bfff area 2 h'0080 c000 ? h'0080 ffff area 3 h'0081 0000 ? h'0081 3fff area 4 h'0081 4000 ? h'0081 7fff area 5 h'0081 8000 ? h'0081 bfff area 6 h'0081 c000 ? h'0081 ffff area 7 h'0082 0000 ? h'0082 3fff area 8 h'0082 4000 ? h'0082 7fff area 9 h'0082 8000 ? h'0082 bfff area 10 h'0082 c000 ? h'0082 ffff area 11 h'0083 0000 ? h'0083 3fff area 12 h'0083 4000 ? h'0083 7fff area 13 h'0083 8000 ? h'0083 bfff area 14 h'0083 c000 ? h'0083 ffff area 15 h'0084 0000 ? h'0084 3fff a register map associated with the internal ram protect function is shown below. internal ram protect related register map address +0 address +1 address see pages b0 b7 b8 b15 h'0080 0530 ram write monitor interrupt status register 6-4 (ramwrist) h'0080 0532 (use inhibited area) h'0080 0534 ram write source status register 6-5 (ramwrfst) h'0080 0536 (use inhibited area) h'0080 0538 ram write disable control register 6-6 (ramwrcnt) h'0080 053a (use inhibited area) h'0080 053c (use inhibited area) ram write disable protect register 6-7 (ramwrprot) 6.3 internal ram protect function m32196f8 internal ram 64-kbyte m32192f8 internal ram 176-kbyte external area 192-kbyte external area 80-kbyte m32195f4 internal ram 32-kbyte external area 224-kbyte internal memory 6-4 6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 internal memory 6 6-5 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 ram write source status register (ramwrfst) internal memory 6-6 6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 internal memory 6 6-7 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 ram write disable protect register (ramwrprot) internal memory 6-8 6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.3 internal ram protect function if a write cycle to any other area occurs during this interval, the value that was set in the ramwrcntpro bits is not reflected. (note 1) ramwrcntp "1" ramwrcntp "0" ramwrcntpro set value ? example of correct settings cases where settings have no effect because a write cycle to other area exists, the set value is not reflected. (note 1) ramwrcntp "1" write to other area ramwrcntp "0" ramwrcntpro set value (1) (2) ramwrcntp "1" ramwrcntp "1" ramwrcntp "0" ramwrcntpro set value because these two consecutive writes comprise a pair, the next set value is not reflected. note 1: the writing cycle to the other area is the writing cycle from cpu, dma, sdi (tool), nbd to any other area. the writing cycle from rtd and dri are not effected. figure 6.3.1 ramwrcntpro setting procedure internal memory 6 6-9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 6.3.2 block diagram of ram write monitor interrupt request (1/2) f/f f/f ramwrcnt0 ramwrist0 b0 data bus write to area 0 the remaining 8-source inputs in the next page ram write monitor interrupt reques t (level) 16-source inputs ramwrist (h'0080 0530) ramwrcnt (h'0080 0538) wr f/f (ramwrcntpro) wr b0 f/f f/f ramwrcnt1 ramwrist1 b1 write to area 1 wr b1 f/f f/f ramwrcnt2 ramwrist2 b2 write to area 2 wr b2 f/f f/f ramwrcnt3 ramwrist3 b3 write to area 3 wr b3 f/f f/f ramwrcnt4 ramwrist4 b4 write to area 4 wr b4 f/f f/f ramwrcnt5 ramwrist5 b5 write to area 5 wr b5 f/f f/f ramwrcnt6 ramwrist6 b6 write to area 6 wr b6 f/f f/f ramwrcnt7 ramwrist7 b7 write to area 7 wr b7 to the next page ram write disable protect 6.3 internal ram protect function internal memory 6-10 6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 6.3.3 block diagram of ram write monitor interrupt request (2/2) to the previous page (level) 8-source inputs f/f f/f ramwrcnt8 ramwrist8 b8 data bus write to area 8 ramwrist (h'0080 0530) ramwrcnt (h'0080 0538) wr b8 f/f f/f ramwrcnt9 ramwrist9 b9 write to area 9 wr b9 f/f f/f ramwrcnt10 ramwrist10 b10 write to area 10 wr b10 f/f f/f ramwrcnt11 ramwrist11 b11 write to area 11 wr b11 f/f f/f ramwrcnt12 ramwrist12 b12 write to area 12 wr b12 f/f f/f ramwrcnt13 ramwrist13 b13 write to area 13 wr b13 f/f f/f ramwrcnt14 ramwrist14 b14 write to area 14 wr b14 f/f f/f ramwrcnt15 ramwrist15 b15 write to area 15 wr b15 from the previous page 6.3 internal ram protect function internal memory 6 6-11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.4 internal flash memory specifications of the internal flash memory are shown below. table 6.4.1 specifications of the internal flash memory item specification size m32192f8 : 1 mbyte (1024 kbytes) m32195f4 : 512 kbytes m32196f8 : 1 mbyte (1024 kbytes) location address m32192f8 : h?0000 0000 to h?000f ffff m32195f4 : h'0000 0000 to h'0007 ffff m32196f8 : h'0000 0000 to h'000f ffff wait insertion operates with one wait state durability standard product : 100 times internal bus connection instruction access: connected by 64-bit bus (32-bit: transfer rate equivalent to zero-wait states achieved) data access: connected by 32-bit bus other virtual flash emulation function is incorporated. (see section 6.7, ?virtual flash emulation function.?) 6.4 internal flash memory internal memory 6-12 6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 6.4.1 block configuration of the internal flash memory for the m32192f8 and m32196f8 6.4 internal flash memory 16kb 32kb 64kb 64kb 64kb 64kb 64kb 64kb 64kb 8kb 4kb 4kb 64kb 64kb 64kb 64kb 64kb 64kb 64kb 64kb h'0002 0000 h'0000 7fff h'0000 8000 h'0001 ffff h'0000 ffff h'0001 0000 h'0000 4000 h'0002 ffff h'0003 0000 h'0003 ffff h'0004 0000 h'0004 ffff h'0005 0000 h'0005 ffff h'0006 0000 h'0006 ffff h'0007 0000 h'0007 ffff h'0000 0000 h'0000 1fff h'0000 2000 h'0000 2fff h'0000 3000 h'0000 3fff h'0008 0000 h'0008 ffff h'0009 0000 h'0009 ffff h'000a 0000 h'000a ffff h'000b 0000 h'000b ffff h'000c 0000 h'000c ffff h'000d 0000 h'000d ffff h'000e 0000 h'000e ffff h'000f 0000 h'000f ffff internal flash memory area of the m32192f8 and m32196f8 (1024 kbytes) block 0 unequal blocks equal blocks block 1 block 2 block 3 block 19 block 18 block 17 block 16 block 15 block 14 block 13 block 12 block 11 block 10 block 9 block 8 block 7 block 6 block 5 block 4 internal memory 6 6-13 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.4 internal flash memory 16kb 32kb 64kb 64kb 64kb 64kb 64kb 64kb 64kb 8kb 4kb 4kb h'0002 0000 h'0000 7fff h'0000 8000 h'0001 ffff h'0000 ffff h'0001 0000 h'0000 4000 h'0002 ffff h'0003 0000 h'0003 ffff h'0004 0000 h'0004 ffff h'0005 0000 h'0005 ffff h'0006 0000 h'0006 ffff h'0007 0000 h'0007 ffff h'0000 0000 h'0000 1fff h'0000 2000 h'0000 2fff h'0000 3000 h'0000 3fff internal flash memory area of the m32195f4 (512 kbytes) block 0 unequal blocks equal blocks block 1 block 2 block 3 block 11 block 10 block 9 block 8 block 7 block 6 block 5 block 4 figure 6.4.2 block configuration of the internal flash memory for the m32195f4 internal memory 6-14 6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.5 registers associated with the internal flash memory 6.5 registers associated with the internal flash memory a register map associated with the internal flash memory is shown below. internal flash memory related register map address +0 address +1 address see pages b0 b7 b8 b15 h'0080 01e0 flash mode register flash status register 6-15 (fmod) (fstat) 6-16 h'0080 01e2 flash control register 1 flash control register 2 6-17 (fcnt1) (fcnt2) 6-18 h'0080 01e4 flash control register 3 flash control register 4 6-19 (fcnt3) (fcnt4) 6-22 h'0080 07e8 virtual flash l bank register 0 6-24 (felbank0) h'0080 07ea virtual flash l bank register 1 6-24 (felbank1) h'0080 07ec virtual flash l bank register 2 6-24 (felbank2) h'0080 07ee virtual flash l bank register 3 6-24 (felbank3) h'0080 07f0 virtual flash l bank register 4 (note 2) 6-24 (felbank4) h'0080 07f2 virtual flash l bank register 5 (note 2) 6-24 (felbank5) h'0080 07f4 virtual flash l bank register 6 (note 2) 6-24 (felbank6) h'0080 07f6 virtual flash l bank register 7 (note 2) 6-24 (felbank7) h'0080 07f8 virtual flash l bank register 8 (note 1) 6-24 (felbank8) h'0080 07fa virtual flash l bank register 9 (note 1) 6-24 (felbank9) h'0080 07fc virtual flash l bank register 10 (note 1) 6-24 (felbank10) h'0080 07fe virtual flash l bank register 11 (note 1) 6-24 (felbank11) h'0080 0800 virtual flash l bank register 12 (note 1) 6-24 (felbank12) h'0080 0802 virtual flash l bank register 13 (note 1) 6-24 (felbank13) h'0080 0804 virtual flash l bank register 14 (note 1) 6-24 (felbank14) h'0080 0806 virtual flash l bank register 15 (note 1) 6-24 (felbank15) | note 1: this area exists only in the 32192 and it is use prohibition area in the 32195/32196. note 2: this area exists only in the 32192/32196 and it is use prohibition area in the 32195. internal memory 6 6-15 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.5.1 flash mode register flash mode register (fmod) internal memory 6-16 6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.5 registers associated with the internal flash memory 6.5.2 flash status register flash status register (fstat) internal memory 6 6-17 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.5 registers associated with the internal flash memory 6.5.3 flash control registers flash control register 1 (fcnt1) internal memory 6-18 6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.5 registers associated with the internal flash memory flash control register 2 (fcnt2) internal memory 6 6-19 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 fprot = 0 fentry = 1 yes no fentry = 1 fprot = 1 fprot is not set to 1 if a write cycle to any other area occurs during this time. fpro t = 0 fpro t = 1 figure 6.5.1 protection unlocking flow flash control register 3 (fcnt3) internal memory 6-20 6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.5 registers associated with the internal flash memory (2) fpbsyck (prebusy check) bit (bit 7) the fpbsyck bit is used to check whether the command of two or more cycles (confirmation command h'd0d0 or a command that requires write data) issued to the flash memory during flash e/w enable mode has been accepted normally. if the fpbsyck bit is found to be "0" after issuing the prebusy check target command (see table 6.5.2), it means that the prebusy check target command has been accepted normally. conversely, if the fpbsyck bit is found to be "1," it means that the prebusy check target command has not been accepted normally. in addition to the above, the fpbsyck bit is set to "1" in the following cases: 1) when in a ready state (fbusy bit = "h" after a prebusy check target command has been accepted) 2) when the clear status register command is issued 3) when the freset bit = "1" 4) when input on reset# pin is pulled "l" table 6.5.2 prebusy, busy check target comand ( note 1) ( note 2) ( note 1) ( note 2) ( note 1) ( note 2) (note 1) ( note 2) __ _ _ _ _ ___ _ _ _ __ __ __ _ _ _ lock bit program write h'7777 (lock bit program command) write h'2020 (block erase command) write h'7171 (read lock bit status command) write h'4343 (4 halfword program command) write h'd0d0 (confirmation command) write h'd0d0 (confirmation command) write h'd0d0 (confirmation command) write halfword data write halfword data write halfword data write halfword data block erase read lock bit status (during register read mode) 4 halfword program note 1: prebusy check target command note 2: busy check target command internal memory 6 6-21 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 end confirm execution result (note 3) start write a prebusy check target command (note 1) fbusy = "1" time out ? yes no forcibly terminate yes no fpbsyck = "0" yes write a busy check target command (note 1) 1 s wait (by hardware timer or software timer) (note 2) operation starts fbsyck = "0" yes write a clear status command, h'5050 no no note 1: refer to table 6.5.2 for prebusy check target command and busy check target command. note 2: it is not required during read lock bit status command (during register read command). note 3: confirm by erase bit of the fstat register, wrerr bit, or flockst bit of the fcnt4 register depending on the respective commands. figure 6.5.2 method to confirm the command acceptance by checking fcnt3 6.5 registers associated with the internal flash memory internal memory 6-22 6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 flash control register 4 (fcnt4) internal memory 6 6-23 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 6.5.3 example of freset bit 1 (initializing flash status register 2) 6.5 registers associated with the internal flash memory figure 6.5.4 example of freset bit 2 (forcibly terminating programming/erasing operation) yes no 10s wait (by hardware timer or software timer) fmod register faens = 1? yes no freset = 1 fentry = 1 program/erase the flash memory error found freset = 0 program/erase the flash memory fentry = 0 programming/erase operation terminated normally yes no freset = 1 freset = 0 forcibly terminate flash programming/erase operation has timed ou t 10s wait (by hardware timer or software timer) fmod register faens = 1? internal memory 6-24 6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.5.4 virtual flash l bank registers virtual flash l bank register 0 (felbank0) internal memory 6 6-25 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.6 programming the internal flash memory 6.6 programming the internal flash memory 6.6.1 outline of internal flash memory programming to program or erase the internal flash memory, there are following two methods to choose depending on the situation: (1) when the flash write/erase program does not exist in the internal flash memory (2) when the flash write/erase program already exists in the internal flash memory for (1), set the fp pin = "h," mod0 = "h" and mod1 = "l" to enter boot mode. in this case, the cpu starts running the boot program upon exiting the reset state. the boot program transfers the flash write/erase program into the internal ram. after the transfer, jump to a location in the ram and use the ram-resident program to set the flash control register 1 (fcnt1) fentry bit to "1" to make the internal flash memory ready for programming/erase operation (i.e., placed in boot mode + flash e/w enable mode). when the above is done, use the flash write/erase program that has been transferred into the internal ram to program or erase the internal flash memory. for (2), set the fp pin = "h," mod0 = "l" and mod1 = "l" to enter single-chip mode. transfer the flash write/ erase program from the internal flash memory in which it has been prepared into the internal ram. after the transfer, jump to the ram and use the program transferred into the ram to set the flash control register 1 (fcnt1) fentry bit to "1" to make the internal flash memory ready for programming/erase operation (i.e., placed in single-chip mode + flash e/w enable mode). when the above is done, use the flash write/erase program that has been transferred into the internal ram to program or erase the internal flash memory. or flash e/w enable mode can be entered from external extension mode by setting the fp pin = "h," mod0 = "l" and mod1 = "h." during flash e/w enable mode (fp pin = "h", fentry = "1"), the eit vector entry for external interrupt (ei) is relocated to the start address (h?0080 4000) of the internal ram. during normal mode, it is located in the flash area (h?0000 0080). to use an external interrupt (ei) in flash e/w enable mode, write at the beginning of the internal ram an instruction for branching to the external interrupt (ei) handler that has been transferred into the internal ram. furthermore, because the ivect register which is read out in the external interrupt (ei) handler has stored in it the flash memory address of the icu vector table, make sure the icu vector table to be used during flash e/ w enable mode is prepared in the internal ram so that the value of the ivect register will be converted into the internal ram address of the icu vector table (for example, by adding an offset) before performing branch processing. when started by boot mode, internal ram value is indefinite after started by boot mode in order to "flash writing/erasing program" is transferred to internal ram. internal memory 6-26 6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 ei vector entry (h'0000 0080) internal rom area internal ram h'0000 0000 h'00ff ffff h'0080 4000 internal rom area internal ram h'0080 3fff flash e/w enable mode (fentry = 1) normal mode (fentry = 0) h'0000 0000 h'0080 3fff ei vector entry (h'0080 4000) h'0080 4000 h'00ff ffff figure 6.6.1 ei vector entry during flash e/w enable mode 6.6 programming the internal flash memory internal memory 6 6-27 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 6.6.2 procedure for programming/erasing the internal flash memory (when the flash write/erase program does not exist in it) (1) when the flash write/erase program does not exist in the internal flash memory in this case, the boot program is used to program or erase the internal flash memory. to transfer the write data, use sio1 of serial interface 1 in clock-synchronous serial interface, or clock-asynchronous serial interface mode. to program or erase the internal flash memory using a flash programmer, follow the procedure described below. sio1 cpu sio1 cpu flash write/ erase program mod1 = l sio1 cpu internal ram internal flash memory fp = l or h internal ram internal ram internal memory 6-28 6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 reset# pin mod0 pin fentry bit fp pin mod1 pin power on mode selected reset signal deasserted (boot program starts) mode selected reset signal deasserted flash programming/erasing by the boot program settings by the boot program figure 6.6.3 internal flash memory write/erase timing (when the flash write/erase program does not exist in it) 6.6 programming the internal flash memory internal memory 6 6-29 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 6.6.4 procedure for programming/erasing the internal flash memory (when the flash write/erase program already exists in it) (2) when the flash write/erase program already exists in the internal flash memory in this case, the flash write/erase program prepared in the internal flash memory is used to program or erase the internal flash memory. for programming/erase operation here, use the internal peripheral circuits in the manner suitable for the programming system. (all resources of the internal peripheral circuits such as the data bus, serial interface and ports can be used.) the following shows an example for programming or erasing the internal flash memory by using sio0 in single-chip mode. sio0 cpu flash write/ erase program sio0 cpu flash write/ erase program mod1 = l sio0 cpu internal ram flash write/ erase program fp = l or h write data internal ram internal ram internal memory 6-30 6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 reset# pin mod0 pin fentry bit fp pin "h" or "l" "h" or "l" (single-chip or external extension) mod1 pin "l" "h" or "l" flash programming/erasing by the flash write/erase program flash rewrite starts flash mode turned on flash mode turned off flash write/erase program transferred into the ram figure 6.6.5 internal flash memory write/erase control pin timing (when the flash write/erase program already exists in it) 6.6 programming the internal flash memory internal memory 6 6-31 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.6.2 controlling operation modes during flash programming the microcomputer?s operation mode is set by mod0, mod1 and flash control register 1 (fcnt1) fentry bit. the table below lists operation modes that may be used when programming or erasing the internal flash memory. table 6.6.1 operation modes set during flash programming/erase fp mod0 mod1 fentry (note 1) operation mode reset vector entry ei vector entry 0 0 0 0 single-chip mode start address of internal flash area 1 0 0 0 flash memory (h'0000 0080) (h'0000 0000) 0 1 0 0 processor mode start address of external external area area (h'0000 0000) (h'0000 0080) 0 0 1 0 external extension start address of internal flash area 1 0 1 0 mode flash memory (h'0000 0080) (h'0000 0000) 1 0 0 1 single-chip mode start address of internal beginning of internal ram + flash e/w enable flash memory (h'0080 4000) (h'0000 0000) 1 1 0 0 boot mode boot program startup flash area address (h'0000 0080) 1 1 0 1 boot mode + flash boot program startup beginning of internal ram e/w enable address (h'0080 4000) 1 0 1 1 external extension start address of internal beginning of internal ram mode + flash e/w flash memory (h'0080 4000) enable (h'0000 0000) ? 1 1 ? setting inhibited ? ? note 1: indicates the flash control register 1 (fcnt1) fentry bit status (? denotes ?don?t care?). however, if fp = "0," writing "1" to fentry only results in it cleared to "0." note: ? always make sure the mod2 pin is connected low (= 0) to ground (gnd). 6.6 programming the internal flash memory internal memory 6-32 6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.6 programming the internal flash memory (1) flash e/w enable mode flash e/w enable mode is a mode in which the internal flash memory can be programmed or erased. in flash e/w enable mode, no programs can be executed in the internal flash memory. therefore, the neces- sary program must be transferred into the internal ram before entering flash e/w enable mode, so that it can be executed in the ram. (2) entering flash e/w enable mode flash e/w enable mode can only be entered when operating in single-chip, external extension or boot mode. furthermore, it is only when the fp pin = "h" and the flash control register 1 (fcnt1) fentry bit = "1" that flash e/w enable mode can be entered. flash e/w enable mode cannot be entered when operat- ing in processor mode or the fp pin = "l." (3) detecting the mod0 and mod1 pin levels the mod0 and mod1 pin levels ("h" or "l") can be known by checking the p8 data register (port data register, h?0080 0708) mod0dt and mod1dt bits. p8 data register (p8data) internal memory 6 6-33 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 6.6.6 procedure for entering flash e/w enable mode end start enter one of the following modes: single-chip mode boot mode external extension mode transfer the flash write/erase program into the internal ram set the flash control register in sfr area (fcnt1) fentry bit to 0 set the flash control register in sfr area (fcnt1) fentry bit to 1 execute flash write/erase command and various read commands (note 1) switched to the flash write/erase program wait for 1 s (using a hardware or software timer) jump to the flash memory or apply reset switched to normal mode check mod0/1 and fp (note 2) pin levels yes no end note 1: for details about each command, see section 6.6.3, "procedure for programming/erasing the internal flash memory." note 2: check fmod register, fpmod bit and p8data register mod0dt and mod1dt bits go to flash e/w enable mode 6.6 programming the internal flash memory internal memory 6-34 6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 6.6.7 procedure for entering normal mode start execute flash write/erase command and various read commands fbusy bit = 1 (note 1) yes no execute read array command or reset flash memory with the freset bit in flash control register 4 (fcnt4) faens bit = 1 (note 2) yes no set the fentry bit of the flash control register 1 (fcnt1) to 0 wait for more than 8 cpuclk cycles (note 3) end note 1: if it is checked that the value of fbusy bit in flash status register (fstat) is "1" after executing the command in flash e/w enable mode, it is not necessary to check that the value of fbusy bit is "1." note 2: if flash memory reset by freset bit in flash control register 4 (fcnt4) is not executed, it is not necessary to check that the value of faens bit in flash mode register (fmod) is "1." note 3: insert any instructions for more than 8 cpuclk waits other than nop that do not require clock cycles (one that is automatically inserted by the assembler for alignment adjustment: instruction code h'f000). as the ei vector entry address is exchanged in the instructions for 8 cpuclk waits, disenable the external interrupt (ei). note: when switching to normal mode by entering a "l" level signal to the reset# pin in flash e/w enable mode, enter the signal to the reset# pin after checking that the value of fbusy bit is "1"(ready). jump to the flash memory or apply reset switched to normal mode 6.6 programming the internal flash memory internal memory 6 6-35 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.6.3 procedure for programming/erasing the internal flash memory to program or erase the internal flash memory, set up chip mode to enter flash e/w enable mode and execute the flash write/erase program in the internal ram into which it has been transferred from the internal flash memory. in flash e/w enable mode, because the internal flash memory cannot be accessed for read as in normal mode, no programs present in it can be executed. therefore, the flash write/erase program must be made available in the internal ram before entering flash e/w enable mode. (once flash e/w enable mode is entered into, only flash command and no other commands can be used to access the internal flash memory.) to access the internal flash memory in flash e/w enable mode, issue commands for the internal flash memory address to be operated on. the table below lists the commands that can be issued in flash e/w enable mode. note: ? during flash e/w enable mode, the internal flash memory cannot be accessed for read or write wordwise. table 6.6.2 commands in flash e/w enable mode command name issued command data read array command h'ffff 4 halfword program command h'4343 lock bit program command h'7777 block erase command h'2020 clear status register command h'5050 read lock bit status command h'7171 verify command (note 1) h'd0d0 note 1: this command must be issued immediately after the lock bit program, block erase or read lock bit status command. if the lock bit program, block erase or read lock bit status command is followed by other than the verify (h'd0d0) command, the lock bit program, block erase or read lock bit status command is not executed normally and terminated in error. (1) read array command writing the read array command (h?ffff) to any address of the internal flash memory places it in read mode. then read the desired flash memory address, and the content of that address will be read out. before exiting flash e/w enable mode, always be sure to execute the read array command. 6.6 programming the internal flash memory start write the read array command (h'ffff) to any address of the internal flash memory read the desired flash memory address end final address? yes no figure 6.6.8 read array internal memory 6-36 6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.6 programming the internal flash memory end confirm the result of execution of the programming process (note 1) last address? yes no start write the program data (2 bytes x 4) to the internal flash memory address to be programmed write the 4 halfword program command (h'4343) to any address of the internal flash memory internal flash memory is programmed by 4 halfword program wait for 1 s (using a hardware or software timer) fbusy bit = 1 time out? 1600 s (note 2) yes no forcibly terminated yes no to next 4 halfword note 1: check flash status register (fstat) erase bit (for the erase status) and wrerr bit (for the write status). note 2: it is a timeout period for 4-kbyte block. the timeout period for other than 4 kbytes is 800 s. figure 6.6.9 4 halfword program (2) 4 halfword program command this command performs write (programming) to the flash memory in 4 halfword units (8-byte unit), or every 2 bytes (half word) x 4 times. also, the initial address at write must always be written with the address of 4 halfword boundary (low-order address, b'000). to program data to the flash memory, write the program command (h?4343) to any address of the internal flash memory, and then the program data to the address to be programmed. the protected flash memory blocks cannot be accessed for write by the 4 halfword program command. 4 halfword programming is automatically performed by the internal control circuit, and whether the 4 halfword program command has finished can be known by checking the fbusy (flash busy) bit in the flash status register. while the fbusy bit = "0," the next programming cannot be performed. internal memory 6 6-37 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.6 programming the internal flash memory (3) lock bit program command the internal flash memory can be protected against programming/erase operation one block at a time. the lock bit program command is provided for protecting the flash memory blocks. write the lock bit program command (h?7777) to any address of the internal flash memory. next, write the verify command (h?d0d0) to the last even address of the flash memory block to be protected, and this memory block is thereby protected against programming/erase operation. to remove protection, use the flash control register 2 (fcnt2) fprot (rock bit protect control) bit to invalidate protection by a lock bit and erase the flash memory block whose protection is to be removed. (the content of that memory block is also erased.) lock bit programming is automatically performed by the internal control circuit, and whether the lock bit program command has finished can be known by checking fbusy (flash busy) bit in the flash status register (fstat). while the fbusy bit = "0," the next programming cannot be performed. the table below lists the target flash memory blocks and their addresses to be specified when writing the verify command data. table 6.6.3 target blocks and specified addresses target block specified address 0 h'0000 1ffe 1 h'0000 2ffe 2 h'0000 3ffe 3 h'0000 7ffe 4 h'0000 fffe 5 h'0001 fffe 6 h'0002 fffe 7 h'0003 fffe 8 h'0004 fffe 9 h'0005 fffe 10 h'0006 fffe 11 h'0007 fffe 12 h'0008 fffe 13 h'0009 fffe 14 h'000a fffe 15 h'000b fffe 16 h'000c fffe 17 h'000d fffe 18 h'000e fffe 19 h'000f fffe note: ? because the internal flash memory of the m32195f4 is 512 kbytes, block 12 to block 19 do not exist. internal memory 6-38 6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 end start write the verify command (h'd0d0) to the last even address of the flash memory block to be protected write the lock bit program command (h'7777) to any address of the internal flash memory lock bit is programmed by lock bit program wait for 1 s (using a hardware or software timer) fbusy bit = 1 time out? yes no forcibly terminated yes no confirm the result of execution of the programming process (note 1) note 1: check flash status register (fstat) erase bit (for the erase status) and wrerr bit (for the write status). note 2: it is a timeout period for 4-kbyte block. the timeout period for other than 4 kbytes is 800 s. 1600 s (note 2) figure 6.6.10 lock bit program 6.6 programming the internal flash memory internal memory 6 6-39 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 6.6.11 block erase 6.6 programming the internal flash memory (4) block erase command the block erase command erases the content of the internal flash memory one block at a time. to perform this operation, write the command data (h?2020) to any address of the internal flash memory. next, write the verify command (h?d0d0) to the last even address of the flash memory block to be erased (see table 6.6.3, ?target blocks and specified addresses?). the protected flash memory blocks cannot be erased by the block erase command. block erase operation is automatically performed by the internal control circuit, and whether the block erase command has finished can be known by checking fbusy (flash busy) bit in the flash status register (fstat). while the fbusy bit = "0," the next block erase operation cannot be performed. end start write the verify command (h'd0d0) to the last even address of the flash memory block to be erased write the block erase command (h'2020) to any address of the internal flash memory internal flash memory contents are erased by the block erase command wait for 1 s (using a hardware or software timer) time out? yes no forcibly terminated yes no confirm the result of execution of the erase process (note 1) fbusy bit = 1 6 s note 1: check flash status register (fstat) erase bit (for the erase status) and wrerr bit (for the write status). internal memory 6-40 6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.6 programming the internal flash memory (5) clear status register command the clear status register command clears the flash status register (fstat) erase (erase status), and wrerr (write status) bits to "0." write the command data (h?5050) to any address of the internal flash memory, and flash status register is thereby initialized. also, issue the clear status register command, and flash status register 3 (fcnt3) is initialized. if an error occurs when programming or erasing the flash memory and the flash status register (fstat) erase (erase status) or wrerr (write status) bit is set to "1," the next programming or erase operation cannot be executed unless each status bit is cleared to "0." start write the clear status register command (h'5050) to any address of the internal flash memory end figure 6.6.12 clear status register internal memory 6 6-41 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b01234567891011121314b15 flbst ? ??????????????? 6.6 programming the internal flash memory start write the read lock bit status command (h'7171) to any address of the internal flash memory read the last even address of the flash memory block to be checked end figure 6.6.13 read lock bit status (memory area read mode) 2) register read mode (flocks bit = 1) write the command data (h?7171) to any address of the target block. next, write the verify command data (h'd0d0), and the flash control register 4 (fcnt4) flockst (lock bit status) bit shows whether the target block is protected. (6) read lock bit status command the read lock bit status command is provided for checking whether a flash memory block is protected against programming/erase operation. the method for reading lock bit can be chosen from the following depends on the setting for flash control register 2 (fcnt2) flocks (lock bit read mode select) bit. 1) memory area read mode (flocks bit = 0) write the command data (h?7171) to any address of the internal flash memory. next, read the last even address of the flash memory block to be checked (see table 6.6.3, ?target blocks and specified ad- dresses?), and the read data shows whether the target block is protected. if the flbst (lock bit) in the read data is "0," it means that the target memory block is protected. if the flbst (lock bit) is "1," it means that the target memory block is not protected. lock bit status register (flbst) internal memory 6-42 6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.6 programming the internal flash memory figure 6.6.14 read lock bit status (register read mode) the following describes how to write to the lock bit. a) to clear the lock bit to "0" (flash protected) issue the lock bit program command (h?7777) to the memory block to be protected. b) to set the lock bit to "1" (flash unprotected) after setting the fprot bit in flash control register 2 to "1" (protection by lock bit disabled), use the block erase command (h?2020) to erase the memory block to be unprotected. the lock bit cannot be set to "1" directly by writing to it. c) lock bit status when reset because the lock bit is a nonvolatile bit, it remains unaffected when the microcomputer is reset or powered off. end start write the verify command (h'd0d0) to any address of the block write the read lock bit status command (h'7171) to any address of the block to be read time out? yes no forcibly terminated yes no confirm the lock bit status bit (note 1) fbusy bit = 1 10 s note 1: check flash control register 4 (fcnt4) flockst bit. internal memory 6 6-43 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.6 programming the internal flash memory 6.6.4 flash programming time (reference) the following shows the time needed to program internal flash memory for reference. (1) m32192f8 and m32196f8 [1] transfer time by sio (when the capacity of transfer data : 1024kb) 1 / 57600bps x 1(fram) x 11(the number of transfer bit) x 1024kb = approx. 200.2 [s] [2] flash writing time other than 4kb block (1024kb - 4kb x 2) / 8byte x 100ms = approx.13.0 [s] 4kb block 4kb x 2 / 8byte x 200ms = approx.0.2 [s] total 13.2 [s] [3] erase time (all areas) 0.3s x 3block + 0.5s x 1block + 0.7s x 1block x 1.2s x 15block = 20.1 [s] [4] total flash writing time (1024kb all areas) during 57600bps connection,flash writing time to serial connection is so short that it is able to be ignored for this reason, flash writing time is calculable with the following formula. [1] + [3] = approx.220.3 [s] in addition, the quickest data writing time with high speed is by speeding up serial connection or other means is calculable with the following formula. [2] + [3] = approx.33.3 [s] (2) m32195f4 [1] transfer time by sio (when the capacity of transfer data : 512kb) 1 / 57600bps x 1(fram) x 11(the number of transfer bit) x 512kb = approx. 100.1 [s] [2] flash writing time other than 4kb block (512kb - 4kb x 2) / 8byte x 100ms = approx.6.5 [s] 4kb block 4kb x 2 / 8byte x 200ms = approx.0.2 [s] total 6.7 [s] [3] erase time (all areas) 0.3s x 3block + 0.5s x 1block + 0.7s x 1block x 1.2s x 7block = 10.5 [s] [4] total flash writing time (512kb all areas) during 57600bps connection,flash writing time to serial connection is so short that it is able to be ignored for this reason, flash writing time is calculable with the following formula. [1] + [3] = approx.110.6 [s] in addition, the quickest data writing time with high speed is by speeding up serial connection or other means is calculable with the following formula. [2] + [3] = approx.17.2 [s] internal memory 6-44 6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.7 virtual flash emulation function the microcomputer has the function to map 8-kbyte mem ory blocks of the internal ram (max imum for 32192 is 16 blocks, for 32195 is 4 blocks for 32196 is 8 blocks) into areas (l banks) of the internal flash memory that are divided in 8-kbyte units. this functions is referred to as the virtual flash emulation function. this function allows the data located in 8-kbyte blocks of the internal ram to be changed with the contents of internal flash memory at the addresses specified by the virtual flash l bank register. that way, the relevant internal ram data can read out by reading the content of internal flash memory. for applications that require modifying the contents of internal flash memory (e.g., data table) during operation, this function enables dynamic data modification by modifying the relevant internal ram data. the internal ram blocks allocated for virtual flash emulation can be accessed for read and write the same way as in usual internal ram. this function, when used in combination with the microcomputer?s internal real-time debugger (rtd), allows the data table, etc. created in the internal flash memory to be referenced or rewritten from the outside, thereby facilitat- ing data table tuning from an external device. note: ? before programming/erasing the internal flash memory, always be sure to exit this virtual flash emulation mode. figure 6.7.1 internal ram bank configuration of the 32192 6.7 virtual flash emulation function h'0080 4000 h'0081 0000 h'0081 1fff h'0081 2000 h'0081 3fff h'0081 4000 unusable for virtual flash emulation function 48 kbytes h'0080 ffff h'0081 6000 h'0081 7fff h'0081 8000 h'0081 9fff h'0081 a000 h'0081 5fff h'0081 c000 h'0081 dfff h'0081 e000 h'0081 ffff h'0082 0000 h'0081 bfff h'0082 2000 h'0082 3fff h'0082 4000 h'0082 5fff h'0082 6000 h'0082 1fff h'0082 8000 h'0082 9fff h'0082 a000 h'0082 bfff h'0082 c000 h'0082 7fff h'0082 e000 h'0082 ffff h'0082 dfff ram bank l block 0 (felbank0) 8 kbytes ram bank l block 1 (felbank1) 8 kbytes ram bank l block 2 (felbank2) 8 kbytes ram bank l block 3 (felbank3) 8 kbytes ram bank l block 4 (felbank4) 8 kbytes ram bank l block 5 (felbank5) 8 kbytes ram bank l block 6 (felbank6) 8 kbytes ram bank l block 7 (felbank7) 8 kbytes ram bank l block 8 (felbank8) 8 kbytes ram bank l block 9 (felbank9) 8 kbytes ram bank l block 10 (felbank10) 8 kbytes ram bank l block 11 (felbank11) 8 kbytes ram bank l block 12 (felbank12) 8 kbytes ram bank l block 13 (felbank13) 8 kbytes ram bank l block 14 (felbank14) 8 kbytes ram bank l block 15 (felbank15) 8 kbytes internal memory 6 6-45 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 6.7.3 internal ram bank configuration of the 32196 h'0080 4000 h'0080 5fff h'0080 6000 h'0080 7fff h'0080 8000 h'0080 a000 h'0080 bfff h'0080 c000 h'0080 dfff h'0080 e000 h'0080 9fff h'0081 0000 h'0081 1fff h'0081 2000 h'0081 3fff h'0080 ffff ram bank l block 0 (felbank0) 8 kbytes ram bank l block 1 (felbank1) 8 kbytes ram bank l block 2 (felbank2) 8 kbytes ram bank l block 3 (felbank3) 8 kbytes ram bank l block 4 (felbank4) 8 kbytes ram bank l block 5 (felbank5) 8 kbytes ram bank l block 6 (felbank6) 8 kbytes ram bank l block 7 (felbank7) 8 kbytes 6.7 virtual flash emulation function figure 6.7.2 internal ram bank configuration of the 32195 h'0080 4000 h'0080 5fff h'0080 6000 h'0080 7fff h'0080 8000 h'0080 a000 h'0080 bfff h'0080 9fff ram bank l block 0 (felbank0) 8 kbytes ram bank l block 1 (felbank1) 8 kbytes ram bank l block 2 (felbank2) 8 kbytes ram bank l block 3 (felbank3) 8 kbytes internal memory 6-46 6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.7.1 virtual flash emulation area figure 6.7.1 to figure 6.7.3 show the internal flash memory areas in which the virtual flash emulation function is applicable. using the virtual flash l bank register (m32192 f8: felbank0 to felbank15, m32195f4: felbank0 to felbank3, m32196f8: felbank0 to felbank7), select one among all l banks of internal flash memory that are divided in 8-kbyte units (by setting the eight start address bits a11?a18 of the desired l bank in the virtual flash l bank register lbankad bits). then set the virtual flash l bank register?s flash emulation l enable bit (modenl) to "1," and the selected l bank area will be replaced with 8-kbyte blocks of the internal ram, (max imum for 32192 is 16 blocks, for 32195 is 4 blocks, for 32196 is 8 blocks). notes: ? if the same bank area is set in two or more virtual flash l bank registers and accessed while each register?s flash emulation enable bit is enabled, the data will be destroyed. therefore, do not set the same bank area in two or more registers. ? during virtual flash emulation mode, ram can be accessed for read and write from the internal ram area and the virtual flash set area. ? before reading any virtual flash set area after setting the flash control register 1 virtual flash emulation mode bit to "1," be sure to check that the virtual flash emulation mode bit has been set to "1" by reading it once. ? before reading any virtual flash set area after setting the virtual flash l bank register virtual flash emulation l enable bit and l bank address bits, be sure to check that the virtual flash emulation l enable bit and l bank address bits have been set to the intended values by reading them once. 6.7 virtual flash emulation function figure 6.7.4 virtual flash emulation area divided in 8-kbyte units for the m32192f8 h'0000 0000 h'0000 2000 h'0081 0000 h'0000 4000 h'000f e000 h'000f c000 h'0081 2000 h'0081 4000 h'0082 e000 h'0080 4000 internal memory 6 6-47 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.7 virtual flash emulation function figure 6.7.6 virtual flash emulation area divided in 8-kbyte units for m32196f8 h'0000 0000 h'0000 2000 h'0000 4000 h'000f e000 h'000f c000 internal memory 6-48 6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.7 virtual flash emulation function figure 6.7.7 values set in virtual flash bank register when divided in 8-kbyte units (32192/32196) h'0000 0000 l bank start address of bank in flash memory values set in l bank address (lbankad) bit l bank 0 l bank 1 l bank 2 l bank 126 l bank 127 h'0000 2000 h'0000 4000 h'000f c000 h'000f e000 h'000 h'002 h'004 h'0fc h'0fe (note 1) (note 1) (note 1) (note 1) (note 1) note 1: set the eight start address bits a11-a18 of each l bank of internal flash memory that is divided in 8-kbyte units in the virtual flash l bank register's l bank address (lbankad) bits. note: because the internal flash memory of the m32192f8 and m32196f8 are 1m (1024k) bytes, the address b7 (a11) must always be set to "0." figure 6.7.8 values set in virtual flash bank register when divided in 8-kbyte units (32195) h'0000 0000 l bank start address of bank in flash memory values set in l bank address (lbankad) bit l bank 0 l bank 1 l bank 2 l bank 62 l bank 63 h'0000 2000 h'0000 4000 h'0007 c000 h'0007 e000 h'000 h'002 h'004 h'07c h'07e (note 1) (note 1) (note 1) (note 1) (note 1) note 1: set the eight start address bits a11-a18 of each l bank of internal flash memory that is divided in 8-kbyte units in the virtual flash l bank register's l bank address (lbankad) bits. note: because the internal flash memory of the m32195f4 is 512 kbytes, the address b7 (a11) and b8 (a12) must always be set to "0." internal memory 6 6-49 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.7.2 entering virtual flash emulation mode to enter virtual flash emulation mode, set the flash control register 1 (fcnt1) femmod bit by writing "1." after entering virtual flash emulation mode, set the virtual flash l bank register modenl bit to "1" to enable the virtual flash emulation function. even during virtual flash emulation mode, the internal ram area ( m32192f8 : h?0080 4000 to h?0082 ffff, m32195f4 : h?0080 4000 to h?0080 bfff, m32196f8 : h?0080 4000 to h?0081 3fff ) can be accessed the same way as in usual internal ram. figure 6.7.9 virtual flash emulation mode sequence set ram location address in virtual flash l bank register lbankad address a11?a18 write flash data to ram enable virtual flash emulation modenl 1 settings completed enter virtual flash emulation mode femmod 1 settings start 6.7 virtual flash emulation function internal memory 6-50 6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.8 connecting to a serial programmer (csio mode) 6.8 connecting to a serial programmer (csio mode) for the internal flash memory to be rewritten in boot mode + flash e/w enable mode by using a general-purpose serial programmer, several pins on the microcomputer must be processed to make them suitable for the serial programmer, as shown below. table 6.8.1 processing microcomputer pins before using a serial programmer (csio mode) note: ? pin processing is not required for those that are not listed above. pin name pin no. function remark sclki1 71 transfer clock input pull high rxd1 70 serial data input (received data) pull high txd1 69 serial data output (transmit data) p84 68 transmit/receive enable output pull high fp 94 flash memory protect pull high mod0 92 operation mode 0 connect to the main power supply mod1 93 operation mode 1 connect to ground mod2 123 operation mode 2 connect to ground reset# 91 reset after setting mod0/mod1, ground and back to main power supply xin 4 clock input xout 5 clock output sbi# 77 system break interrupt (sbi) input pull high or low vref0 42 reference voltage input for a/d converter connect to the main power supply avcc0 43 analog power supply connect to the main power supply avss0 60 analog ground connect to ground vdde 108 ram backup power supply connect to the main power supply vccer 65 power supply for the internal voltage generator circuit 5 v +/- 10% or 3.3 v +/- 10% vcce 95, 132 main power supply 5 v +/- 10% or 3.3 v +/- 10% excvcc 61, 137 connects external capacitance for the internal power supply need to be grounded to earth via capacitor excvdd 73 connects external capacitance for the ram power supply need to be grounded to earth via capacitor vcc-bus 6, 20 external bus power supply depends on the target system vss 3, 21, 62, 72, 96, 138 ground 0v jtrst 111 jtag reset input pull low (0 - 100k ) internal memory 6 6-51 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.8 connecting to a serial programmer (csio mode) figure 6.8.1 pin connection diagram (csio mode) the diagram below shows an example of a user system configuration which has had a serial programmer con- nected. after the user system is powered on, the serial programmer writes to the internal flash memory in clock- synchronous serial mode (csio mode). no communication problems associated with the oscillator frequency may occur. if the system uses any pins that are to be connected to a serial programmer, care must be taken to prevent adverse effects on the system when a serial programmer is connected. note that the serial programmer uses the addresses h?0000 0084 through h?0000 008f as an area in which to check the id for flash memory protection. if the internal flash memory needs to be protected, set any id in this area. vcc-bus 32192/32195/32196 xout xin jtrst mod1 avss0 vss reset# fp mod0 p84/sclki0/sclko0 p87/sclki1/sclko1 p86/rxd1 p85/txd1 excvdd excvcc vref0 avcc0 vdde vccer connect to the vcce (5 or 3.3 v) power supply rail main power supply connect to the vcce (5 or 3.3v) power supply rail main power supply (for reference) rxd (input) txd (output) sclk0 (output) busy (input) mod0 (output) fp (output) reset (output) gnd (common) connector flash programmer signals to system circuit set microcomputer operating conditions user system board note 1: sbi# must be fixed "h" or "l" to ensure that no interrupts will be generated. notes: turn on the power for the user system before writing to the internal flash memory. if p84-p87 are used in the system circuit, connection to a serial programmer must be taken into consideration. the pullup resistance values of p84, p86 and p87 must be selected to suit the system design condition. the typical pullup resistance values of p84, p86 and p87 are 4.7 to 10 k ? . the status of any other ports that are not shown here will not affect flash memory programming. make sure the mode setting pin/power supply voltages do not fluctuate to prevent unintended changes of modes while rewriting the internal flash memory. mod2 connect to the user system power supply rail sbi# (note 1) vcce internal memory 6-52 6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.9 connecting to a serial programmer (uart mode) 6.9 connecting to a serial programmer (uart mode) for the internal flash memory to be rewritten in boot mode + flash e/w enable mode by using a general-purpose serial programmer, several pins on the microcomputer must be processed to make them suitable for the serial programmer, as shown below. table 6.9.1 processing microcomputer pins before using a serial programmer (uart mode) note: ? pin processing is not required for those that are not listed above. pin name pin no. function remark sclki1 71 sio mode selection pull low ("l" level input) rxd1 70 serial data input (received data) pull high txd1 69 serial data output (transmit data) p84 68 general-purpose port input not used during uart mode pull high or pull low fp 94 flash memory protect pull high mod0 92 operation mode 0 connect to the main power supply mod1 93 operation mode 1 connect to ground mod2 123 operation mode 2 connect to ground reset# 91 reset xin 4 clock input xout 5 clock output sbi# 77 system break interrupt (sbi) input pull high or low vref0 42 reference voltage input for a/d converter connect to the main power supply avcc0 43 analog power supply connect to the main power supply avss0 60 analog ground connect to ground vdde 108 ram backup power supply connect to the main power supply vccer 65 power supply for the internal voltage generator circuit 5 v +/- 10% or 3.3 v +/- 10% vcce 95, 132 main power supply 5 v +/- 10% or 3.3 v +/- 10% excvcc 61, 137 connects external capacitance for the internal power supply need to be grounded to earth via capacitor excvdd 73 connects external capacitance for the ram power supply need to be grounded to earth via capacitor vcc-bus 6, 20 external bus power supply depends on the target system vss 3, 21, 62, 72, 96, 138 ground 0v jtrst 111 jtag reset input pull low (0 - 100k ) internal memory 6 6-53 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.9 connecting to a serial programmer (uart mode) the diagram below shows an example of a user system configuration which has had a serial programmer con- nected. after the user system is powered on, the serial programmer writes to the internal flash memory in clock- asynchronous serial mode (uart mode). no communication problems associated with the oscillator frequency may occur. if the system uses any pins that are to be connected to a serial programmer, care must be taken to prevent adverse effects on the system when a serial programmer is connected. note that the serial programmer uses the addresses h?0000 0084 through h?0000 008f as an area in which to check the id for flash memory protection. if the internal flash memory needs to be protected, set any id in this area. 32192/32195/32196 xout xin jtrst mod1 mod2 avss0 vss reset# fp mod0 p84/sclki0/sclko0 p87/sclki1/sclko1 p86/rxd1 p85/txd1 excvdd excvcc vcc-bus vref0 avcc0 vdde vccer connect to the vcce (5 or 3.3 v) power supply rail main power supply connect to the vcce (5 or 3.3v) power supply rail main power supply (for reference) rxd (input) txd (output) mode selection (output) gnd (common) connector flash programmer signals to system circuit set microcomputer operating conditions user system board connect to the user system power supply rail vcce sbi# (note 1) note 1: sbi# must be fixed "h" or "l" to ensure that no interrupts will be generated. notes: turn on the power for the user system before writing to the internal flash memory. if p84-p87 are used in the system circuit, connection to a serial programmer must be taken into consideration. the pullup/pulldown resistance values of p84, p86, p87, fp and mod0 must be selected to suit the system design con dition. the typical pullup/pulldown resistance values of p84, p86, p87, fp and mod0 are 4.7 to 10 k ? . the status of any other ports that are not shown here will not affect flash memory programming. make sure the mode setting pin/power supply voltages do not fluctuate to prevent unintended changes of modes while rewriting the internal flash memory. figure 6.9.1 pin connection diagram (uart mode) internal memory 6-54 6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.10 internal flash memory protect function the internal flash memory has the following four types of protect functions to prevent it from being inadvertently rewritten or illegally copied, programmed or erased. (1) flash memory protect id when using a tool to program/erase the internal flash memory such as a general-purpose programmer or emulator, the id entered by a tool and the id stored in the internal flash memory are collated. unless the correct id is entered, the internal flash memory cannot be read out, programmed nor erased. (for some tools, tool execution is enabled after erasing the entire flash memory area, and the internal flash memory becomes accessible for write.) (2) protection by fp pin the internal flash memory is protected in hardware against programming/erase operation by pulling the fp (flash protect) pin "l". for systems that do not require rewriting flash memory or systems in which flash reprogramming is prohibited as in the case of automotive applications, make sure the fp pin is fixed "l" except when programming or erasing the internal flash memory. furthermore, because the fp pin level can be known by reading the flash mode register (fmod)?s fpmod (external fp pin status) bit in the flash write/erase program, the internal flash memory can also be protected in software. for systems that do not require protec- tion by setting external pins, the fp pin may be fixed "h" to simplify the operation to program/erase the internal flash memory. however, to prevent the flash memory from being inadvertently rewritten by an erratic operation in software, use the protection by a lock bit described in (4) below. when programming/erasing via jtag, the flash memory can be programmed or erased regardless of the pin state because the fp pin is controlled internally within the chip. (3) protection by fentry bit flash e/w enable mode cannot be entered into unless the flash control register 1 (fcnt1)?s fentry (flash mode entry) bit is set to "1." to set the fentry bit to "1," write "0" and then "1" in succession while the fp pin is "h." (4) protection by a lock bit any block of internal flash memory can be protected by setting the lock bit provided for it to "0." that memory block is disabled against programming/erase operation. 6.10 internal flash memory protect function internal memory 6 6-55 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.11 notes on the internal ram 6.11 notes on the internal ram precautions about the internal memory is shown below. ? the writes from dri,rtd to internal ram uncompete with access from other bus masters (cpu, dma, nbd, sdi), because of using dedicated bus not m32r-fpu. but in case dri,rtd transfers and access from other bus masters for area in 16-kbyte of internal ram occur at same time, access competition occurs. when access competition occurs, arbitration is performed according to the following priority. nbd/sdi > dma > cpu > dri > rtd ? when started by boot mode, internal ram value is indefinite after started by boot mode in order to "flash writing/erasing program" is transferred to internal ram. 6.12 notes on the internal flash memory the following describes precautions to be taken when programming/erasing the internal flash memory. ? when the internal flash memory is programmed or erased, a high voltage is generated internally. because mode transitions during programming/erase operation may cause the chip to break down, make sure the mode setting/reset pin and power supply voltages do not fluctuate to prevent unintended changes of modes. ? if the system uses any pins that are to be used by a general-purpose programming/erase tool, care must be taken to prevent adverse effects on the system when the tool is connected. ? if the internal flash memory needs to be protected while using a general-purpose programming/erase tool, set any id in the flash memory protect id verification area (h?0000 0084 to h?0000 008f). ? if the internal flash memory does not need to be protected while using a general-purpose programming/erase tool, fill the entire flash memory protect id verification area (h?0000 0084 to h?0000 008f) with h?ff. ? if the flash status register (fstat)?s each error status is to be cleared (initialized to h?80) by resetting the flash control register 4 (fcnt4) freset bit, check to see that the flash status register (fstat) fbusy bit = "1" (ready) before clearing the error status. ? before resetting the flash control register 1 (fcnt1) fentry bit from "1" to "0," check to see that the flash status register (fstat) fbusy bit = "1" (ready). ? do not clear the fentry bit if the flash control register 1 (fcnt1) fentry bit = "1" and the flash status register (fstat) fbusy bit = "0" (being programmed or erased). ? when programming/erasing via jtag, the flash memory can be programmed or erased regardless of the pin state because the fp pin is controlled internally within the chip. internal memory 6-56 6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 6.12 notes on the internal flash memory this page is blank for reasons of layout. chapter 7 reset 7.1 outline of reset 7.2 reset operation 7.3 internal state upon exiting reset 7.4 things to be considered upon exiting reset reset 7-2 7 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 7.1 outline of reset the microcomputer is reset by applying a "l" level signal to the reset# input pin. the microcomputer is gotten out of a reset state by releasing the reset# input back high, upon which the reset vector entry address is set in the program counter (pc) and the cpu starts executing from the reset vector entry. 7.2 reset operation when a "l" level signal in width of more than 300 ns is applied to the reset# pin, the microcomputer enters a reset state. at this time, the internal circuits (including the cpu) are reset. (for details about the pin state when reset, see table 1.4.1, ?pin assignments of the m32192f8xfp, m32195f4xfp,and m32196f8xfp? and table 1.4.2 "pin assignments of the m32192f8xwg") when the reset# input is returned "h," the internal circuits get out of a reset state (2333 to 2334 bclk) periods after that. 7.1 outline of reset noise canceller s r ovf pin reset signal internal circuit reset signal flip-flop counter reset# extended for a duration during which the reset# input is held "l" 2333 to 2334 bclk reset# pin reset signal (internal signal) past the noise canceller internal circuit reset signal (internal signal) duration needed for noise cancellation(50 to 300ns) figure 7.2.2 reset sequence figure 7.2.1 reset circuit reset 7 7-3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 7.2 reset operation 7.2.1 reset at power-on when powering on the microcomputer, hold the reset# signal input pin "l" until the rated power supply voltage is reached and the microcomputer?s internal x8 clock generator becomes oscillating stably. for details, see section 22.2, "power-on sequence." 7.2.2 reset during operation to reset the microcomputer during operation, hold the reset# signal input pin "l" for more than 300 ns. 7.2.3 reset vector relocation during flash programming when the microcomputer is reset after entering boot mode, the reset vector entry address is moved to the boot program startup address. the boot program starts running after the reset state is deasserted. for details, see section 6.6, ?programming the internal flash memory.? reset 7-4 7 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 7.3 internal state upon exiting reset 7.3 internal state upon exiting reset the table below lists the internal state of the microcomputer when it has gotten out of a reset state. for details about the initial register state of each internal peripheral i/o, see each section in this manual in which the relevant internal peripheral i/o is described. table 7.3.1 internal state upon exiting reset register state upon exiting reset psw (cr0) b'0000 0000 0000 0000 ??00 000? 0000 0000 (bsm, bie, bc bits = undefined) cbr (cr1) h'0000 0000 (c bits = 0) spi (cr2) undefined spu (cr3) undefined bpc (cr6) undefined fpsr (cr7) h'0000 0100 (only dn bit = 1) pc h'0000 0000 (executed beginning with the address h?0000 0000) (note 1) r0?r15 undefined acc (accumulator) undefined ram undefined when reset at power-on. (however, if the ram is gotten out of reset after returning from backup mode, it retains the content it had before being reset.) note 1: when in boot mode, the cpu executes the boot program. 7.4 things to be considered upon exiting reset ? input/output ports when exiting reset, the microcomputer?s input/output ports are disabled against input in order to prevent shoot- through current. to use any ports in input mode, set the port input special function control register (picnt) pien0 bit to enable them for input. for details, see section 8.3, ?input/output port related registers.? chapter 8 input/output ports and pin functions 8.1 outline of input/output ports 8.2 selecting pin functions 8.3 input/output port related registers 8.4 port input level switching function 8.5 port output drive capability setting function 8.6 noise canceller control function 8.7 port peripheral circuits 8.8 notes on input/output ports input/output ports and pin functions 8-2 8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 8.1 outline of input/output ports the 32192 /32195/32196 has a total of 97 input/output ports from p0?p13, p15, p17 and p22 (except p5, which is reserved for future use). these input/output ports can be used as input or output ports by setting the respective direction registers. each input/output port has double or triple functions shared with other internal peripheral i/o or external bus interface related signal lines, or multiple functions shared with multi-function peripheral i/os. pin functions are selected depending on the operation mode of the cpu or by setting the operation mode register and peripheral function select register for the input/output port. (if any internal peripheral i/o has still another function, it is also necessary to set the register provided for that internal peripheral i/o.) abundant port functions are incorporated, including a port input level switching function, port output drive capa- bility setting function, and noise canceller control function. note that before any ports can be used in input mode, this port input function enable bit must be set accordingly. the input/output ports are outlined below. table 8.1.1 outline of input/output ports item specification number of ports total 97 ports p0 : p00?p07 (8 ports) p1 : p10?p17 (8 ports) p2 : p20?p27 (8 ports) p3 : p30?p37 (8 ports) p4 : p41?p47 (7 ports) p6 : p61?p63 (3 ports) p7 : p70?p77 (8 ports) p8 : p82?p87 (6 ports) p9 : p93?p97 (5 ports) p10 : p100?p107 (8 ports) p11 : p110?p117 (8 ports) p12 : p124?p127 (4 ports) p13 : p130?p137 (8 ports) p15 : p150, p153 (2 ports) p17 : p174, p175 (2 ports) p22 : p220, p221, p224, p225 (4 ports) port function the input/output ports can individually be set for input or output mode using the direction control register provided for each input/output port. (however, p221 is an input-only port.) pin function shared with peripheral i/o or external bus interface signals to serve dual-functions (or shared with two or more peripheral i/o functions to serve multiple functions) note: ? p5, p14, p16, p18-p21 are nonexist. 8.1 outline of input/output ports input/output ports and pin functions 8 8-3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 8.2 selecting pin functions 8.2 selecting pin functions each input/output port has double or triple functions shared with other internal peripheral i/o or external bus interface related signal lines, or multiple functions shared with multi-function peripheral i/os. pin functions are selected depending on the operation mode of the cpu or by setting the operation mode register and peripheral function select register for the input/output port. (if any internal peripheral i/o has still another function, it is also necessary to set the register provided for that internal peripheral i/o.) p0?p4, p124, p125, p224 and p225, when the cpu is set to operate in processor mode, all are switched to serve as signal pins for external access. the cpu operation mode is determined depending on how the mod0 and mod1 pins are set (see the table below). table 8.2.1 cpu operation modes and p0?p4, p124, p125, p224 and p225 pin functions mod0 mod1 operation mode p0?p4, p124, p125, p224 and p225 pin function vss vss single-chip mode input/output port pin vss vcce external extension mode input/output port or external bus interface signal pin (note 1) vcce vss processor mode external bus interface signal pin vcce vcce (settings inhibited) ? note 1: p41?p43 only function as external bus interface signal pins. note: ? vcce and vss are connected to main power supply and gnd, respectively. each input/output port has their functions switched between input/output port pins and internal peripheral i/o pins by setting the respective port operation mode and peripheral function select registers. if any internal periph- eral i/o has two or more pin functions, use the register provided for that internal peripheral i/o to select the desired pin function. note that fp pin operations during internal flash memory programming do not affect the pin functions. input/output ports and pin functions 8-4 8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 8.2 selecting pin functions figure 8.2.1 input/output ports and pin function assignments during single chip mode 0 1 2 3 4 5 6 7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17 p18 p19 p20 p21 p22 tin16 / tin17 / tin20 / tin18 / tin19 / tin21 / tin22 / tin23 / pwmoff0 / pwmoff1 / txd3 / din2 din3 rxd3 crx1 ctx1 din0 din1 din4 to21 / to22 / to23 / to24 / to25 / to26 / to27 / to28 / dd0 dd1 dd2 dd3 dd4 dd5 dd6 dd7 clkout / rtdtxd / rtdrxd / rtdack / rtdclk / hreq# / hack# / wr# / wait# txd3 / rxd3 / ctx1 / crx1 / tin27 tin26 bclk( note 2) nbdd0 nbdd1 nbdd2 nbdd3 to29 / to30 / to31 / to32 / to33 / to34 / to35 / to36 / dd8 dd9 dd10 dd11 dd12 dd13 dd14 dd15 tclk0 / tclk1 / tclk2 / tclk3 / dd3 dd2 dd1 dd0 tin0 / tin3 / clkout / wait# wr#( note 2) to0 / to1 / to2 / to3 / to4 / to5 / to6 / to7 / to29 / to30 / to31 / to32 / to33 / to34 / to35 / to36 / dd11 dd10 dd9 dd8 dd7 dd6 dd5 dd4 tin4 / tin5 / tin6 / tin7 / tin30 / tin31 / tin32 / tin33 / dd16 dd17 dd18 dd19 dd20 dd21 dd22 dd23 to12 / to14 / to15 / to9 / to10 / to11 / to8 tin25 / txd4 / rxd4 / crx0 ctx0 tin24 dd3 dd1 dd0 to13 / sclki4 / sclko4 dd2 sclki0 / sclki1 / mod0 mod1 txd0 / rxd0 / txd1 / rxd1 / sclko0 / sclko1 / ( note 1) ( note 1) to26 to25 to23 to22 to24 to21 to16 / to17 / to18 / to19 / to20 / sclki5 / txd5 / rxd5 / dd13 dd12 sclko5 dd15 dd14 dd24 dd25 dd26 dd27 dd28 dd29 dd30 dd31 p41 p42 p43 tin8 tin9 tin10 tin11 ( port only) ( port only) ( port only) p61 p62 p63 sbi# ( port only) ( port only) ( port only) ( note 1) txd2 / rxd2 / to28 to27 ctx0 / crx0 / p224 p225 hack# hreq# ( port only) ( port only) pin functions are selected by the settings for the port operation mode and port peripheral function select registers pin functions are selected by the settings for the port operation mode, port peripheral function select and nbd function select registers note 1: these ports cannot be used for input/output port function. the sbi#, mod0 and mod1 pin input levels can be read from these ports. note 2: respective functions are selected by the bus mode control register. notes: ? p5, p14, p16, p18, p19, p20 and p21 are not provided. some functions have two separate pins assigned per function. for details, see table 8.2.2. input/output ports and pin functions 8 8-5 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 8.2.2 input/output ports and pin function assignments during external extension mode 0 1 2 3 4 5 6 7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17 p18 p19 p20 p21 p22 tin16 / tin17 / tin20 / tin18 / tin19 / tin21 / tin22 / tin23 / pwmoff0 / pwmoff1 / txd3 / din2 din3 rxd3 crx1 ctx1 din0 din1 din4 db0 / db1 / db2 / db3 / db4 / db5 / db6 / db7 / to21 / to22 / to23 / to24 / to25 / to26 / to27 / to28 / dd0 dd1 dd2 dd3 dd4 dd5 dd6 dd7 blw# / bhw# / rd# cs0# / cs1# / a13 / a14 / ble# bhe# ( note 1) tin8 tin9 tin10 tin11 ( note 1, 3) ( note 1, 3) clkout / rtdtxd / rtdrxd / rtdack / rtdclk / hreq# / hack# / wr# / wait# txd3 / rxd3 / ctx1 / crx1 / tin27 tin26 bclk (note 3) nbdd0 nbdd1 nbdd2 nbdd3 db8 / db9 / db10 / db11 / db12 / db13 / db14 / db15 / to29 / to30 / to31 / to32 / to33 / to34 / to35 / to36 / dd8 dd9 dd10 dd11 dd12 dd13 dd14 dd15 tclk0 / tclk1 / tclk2 / tclk3 / a9 / a10 / cs2# / cs3# / dd3 dd2 dd1 dd0 tin0 / tin3 / clkout / wait# wr# (note 3) to0 / to1 / to2 / to3 / to4 / to5 / to6 / to7 / to29 / to30 / to31 / to32 / to33 / to34 / to35 / to36 / dd11 dd10 dd9 dd8 dd7 dd6 dd5 dd4 a15 / a16 / a17 / a18 / a19 / a20 / a21 / a22 / tin4 / tin5 / tin6 / tin7 / tin30 / tin31 / tin32 / tin33 / dd16 dd17 dd18 dd19 dd20 dd21 dd22 dd23 to12 / to14 / to15 / to9 / to10 / to11 / to8 tin25 / txd4 / rxd4 / crx0 ctx0 tin24 dd3 dd1 dd0 to13 / sclki4 / sclko4 dd2 sclki0 / sclki1 / mod0 mod1 txd0 / rxd0 / txd1 / rxd1 / sclko0 / sclko1 / (note 2) (note 2) to26 to25 to23 to22 to24 to21 to16 / to17 / to18 / to19 / to20 / sclki5 / txd5 / rxd5 / dd13 dd12 sclko5 dd15 dd14 a23 / a24 / a25 / a26 / a27 / a28 / a29 / a30 / dd24 dd25 dd26 dd27 dd28 dd29 dd30 dd31 p61 p62 p63 sbi# (port only) (port only) (port only) (note 2) txd2 / rxd2 / to28 to27 ctx0 / crx0 / a11 / a12 / hack# hreq# cs2# cs3# note 1: these ports cannot be used for input/output port function, function as external bus interface related signals. note 2: these ports cannot be used for input/output port function. the sbi#, mod0 and mod1 pin input levels can be read from these ports. note 3: respective functions are selected by the bus mode control register. notes: p5, p14, p16, p18, p19, p20 and p21 are not provided. some functions have two separate pins assigned per function. for details, see table 8.2.2. pin functions are selected by the settings for the port operation mode and port peripheral function select registers pin functions are selected by the settings for the port operation mode, port peripheral function select and nbd function select registers 8.2 selecting pin functions input/output ports and pin functions 8-6 8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 8.2.3 input/output ports and pin function assignments during processor mode 8.2 selecting pin functions p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17 p18 p19 p20 p21 p22 (note 1) tin16 / tin17 / tin20 / tin18 / tin19 / tin21 / tin22 / tin23 / pwmoff0 / pwmoff1 / txd3 / din2 din3 rxd3 crx1 ctx1 din0 din1 din4 db0 db1 db2 db3 db4 db5 db6 db7 clkout / rtdtxd / rtdrxd / rtdack / rtdclk / hreq# / hack# / wr# / wait# txd3 / rxd3 / ctx1 / crx1 / tin27 tin26 bclk( note 3) nbdd0 nbdd1 nbdd2 nbdd3 db8 db9 db10 db11 db12 db13 db14 db15 tclk2 / tclk3 / a9 a10 cs2# / cs3# / (note 1) (note 1) dd1 dd0 tin0 / tin3 / clkout / wait# wr#( note 3) to0 / to1 / to2 / to3 / to4 / to5 / to6 / to7 / to29 / to30 / to31 / to32 / to33 / to34 / to35 / to36 / dd11 dd10 dd9 dd8 dd7 dd6 dd5 dd4 a15 a16 a17 a18 a19 a20 a21 a22 to12 / to14 / to15 / to9 / to10 / to11 / to8 tin25 / txd4 / rxd4 / crx0 ctx0 tin24 dd3 dd1 dd0 to13 / sclki4 / sclko4 dd2 sclki0 / sclki1 / mod0 mod1 txd0 / rxd0 / txd1 / rxd1 / sclko0 / sclko1 / (note 2) (note 2) to26 to25 to23 to22 to24 to21 to16 / to17 / to18 / to19 / to20 / sclki5 / txd5 / rxd5 / dd13 dd12 sclko5 dd15 dd14 a23 a24 a25 a26 a27 a28 a29 a30 blw# / bhw# / rd# cs0# cs1# a13 a14 ble#( note 3) bhe#( note 3) p61 p62 p63 sbi# ( port only) ( port only) ( port only) (note 2) txd2 / rxd2 / to28 to27 ctx0 / crx0 / a11/cs2# a12/cs3# hack# hreq# (note 1) (note 1) pin functions are selected by the settings for the port operation mode, port peripheral function select and nbd function select registers note 1: these ports cannot be used for input/output port function, function as external bus interface related signals. note 2: these ports cannot be used for input/output port function. the sbi#, mod0 and mod1 pin input levels can be read from these ports. note 3: respective functions are selected by the bus mode control register. notes: p5, p14, p16, p18, p19, p20 and p21 are not provided. some functions have two separate pins assigned per function. for details, see table 8.2.2. 0 1 2 3 4 5 6 7 input/output ports and pin functions 8 8-7 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 8.2 selecting pin functions one peripheral i/o can be assigned to two separate pins by setting the cpu operation mode and peripheral function select register. table 8.2.2 peripheral i/os allowed for input/output at two pins and pin assignments (1/2) module signal name pin group a pin group b note dri dd0 p127/tclk3/cs3#/dd0 p00/db0/to21/dd0 p107/to15/rxd4/dd0 dd1 p126/tclk2/cs2/dd1 p01/db1/to22/dd1 p106/to14/txd4/dd1 dd2 p125/tclk1/a10/dd2 p02/db2/to23/dd2 p105/to13/sclki4/sclko4/dd2 dd3 p124/tclk0/a9/dd3 p03/db3/to24/dd3 p104/to12/tin25/dd3 dd4 p117/to7/to36/dd4 p04/db4/to25/dd4 dd5 p116/to6/to35/dd5 p05/db5/to26/dd5 dd6 p115/to5/to34/dd6 p06/db6/to27/dd6 dd7 p114/to4/to33/dd7 p07/db7/to28/dd7 dd8 p113/to3/to32/dd8 p10/db8/to29/dd8 dd9 p112/to2/to31/dd9 p11/db9/to30/dd9 dd10 p111/to1/to30/dd10 p12/db10/to31/dd10 dd11 p110/to0/to29/dd11 p13/db11/to32/dd11 dd12 p97/to20/dd12 p14/db12/to33/dd12 dd13 p96/to19/dd13 p15/db13/to34/dd13 dd14 p95/to18/rxd5/dd14 p16/db14/to35/dd14 dd15 p94/to17/txd5/dd15 p17/db15/to36/dd15 tou to21 p87/sclki1/sclko1/to21 p00/db0/to21/dd0 to22 p86/rxd1/to22 p01/db1/to22/dd1 to23 p85/txd1/to23 p02/db2/to23/dd2 to24 p84/sclki0/sclko0/to24 p03/db3/to24/dd3 to25 p83/rxd0/to25 p04/db4/to25/dd4 to26 p82/txd0/to26 p05/db5/to26/dd5 to27 p175/rxd2/to27 p06/db6/to27/dd6 to28 p174/txd2/to28 p07/db7/to28/dd7 to29 p110/to0/to29/dd11 p10/db8/to29/dd8 to30 p111/to1/to30/dd10 p11/db9/to30/dd9 to31 p112/to2/to31/dd9 p12/db10/to31/dd10 to32 p113/to3/to32/dd8 p13/db11/to32/dd11 to33 p114/to4/to33/dd7 p14/db12/to33/dd12 to34 p115/to5/to34/dd6 p15/db13/to34/dd13 to35 p116/to6/to35/dd5 p16/db14/to35/dd14 to36 p117/to7/to36/dd4 p17/db15/to36/dd15 sio txd3 p134/tin20/txd3/din4 p74/rtdtxd/txd3/nbdd0 rxd3 p135/tin21/rxd3 p75/rtdrxd/rxd3/nbdd1 can ctx0 p102/to10/ctx0 p220/ctx0/hack# crx0 p101/to9/crx0 p221/crx0/hreq# ctx1 p137/tin23/ctx1 p76/rtdack/ctx1/nbdd2 crx1 p136/tin22/crx1 p77/rtdclk/crx1/nbdd3 (note 1) (note 2) (note 1) (note 2) (note 1) (note 2) (note 1) input/output ports and pin functions 8-8 8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 table 8.2.2 peripheral i/os allowed for input/output at two pins and pin assignments (2/2) module signal name pin group a pin group b note (external bus cs2# p126/tclk2/cs2#/dd1 p224/a11/cs2# interface cs3# p127/tclk3/cs3#/dd0 p225/a12/cs3# related) clkout p150/tin0/clkout/wr# p70/clkout/wr#/bclk wr# p150/tin0/clkout/wr# p70/clkout/wr#/bclk wait# p153/tin3/wait# p71/wait# hack# p220/ctx0/hack# p73/hack#/tin26 hreq# p221/crx0/hreq# p72/hreq#/tin27 note 1: if pin group a and pin group b have the same internal peripheral input pin set, the setting for pin group a comes into effect so that input from pin group a is accepted as input for the relevant internal peripheral i/o. for the 16 high-order dd input bits of the dri (dd0?dd15), which pins to use can be selected in the dri related register. (for details, refer to the chapter 14, "direct ram interface.") note 2: if pin group a and pin group b have the same internal peripheral input pin set, the signal is output from both pins. 8.2 selecting pin functions (note 1) (note 2) (note 1) (note 2) input/output ports and pin functions 8 8-9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 8.3 input/output port related registers the tables below show an input/output port related register map. input/output port related register map (1/3) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 0500 port group 0,1 input level setting register port group 3 input level setting register 8-33 (pg01lev) (pg3lev) h'0080 0502 port group 4,5 input level setting register port group 6,7 input level setting register 8-33 (pg45lev) (pg67lev) h'0080 0504 port group 8 input level setting register (use inhibited area) 8-33 (pg8lev) h'0080 0506 (use inhibited area) h'0080 0508 port group 0,1 output drive capability setting register port group 3 output drive capability setting register 8-35 (pg01drv) (pg3drv) h'0080 050a port group 4,5 output drive capability setting register port group 6,7 output drive capability setting register 8-35 (pg45drv) (pg67drv) h'0080 050c port group 8 output drive capability setting register p70 output drive capability setting register 8-35 (pg8drv) (p70drv) 8-36 h'0080 050e (use inhibited area) h'0080 0510 noise canceller control register 8-38 (nzcnslcr) h'0080 0700 p0 data register p1 data register 8-12 (p0data) (p1data) h'0080 0702 p2 data register p3 data register 8-12 (p2data) (p3data) h'0080 0704 p4 data register (use inhibited area) 8-12 (p4data) h'0080 0706 p6 data register p7 data register 8-12 (p6data) (p7data) h'0080 0708 p8 data register p9 data register 8-12 (p8data) (p9data) h'0080 070a p10 data register p11 data register 8-12 (p10data) (p11data) h'0080 070c p12 data register p13 data register 8-12 (p12data) (p13data) h'0080 070e (use inhibited area) p15 data register 8-12 (p15data) h'0080 0710 (use inhibited area) p17 data register 8-12 (p17data) (use inhibited area) h'0080 0716 p22 data register (use inhibited area) 8-12 (p22data) (use inhibited area) 8.3 input/output port related registers | | | input/output ports and pin functions 8-10 8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 input/output port related register map (2/3) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 0720 p0 direction register p1 direction register 8-13 (p0dir) (p1dir) h'0080 0722 p2 direction register p3 direction register 8-13 (p2dir) (p3dir) h'0080 0724 p4 direction register (use inhibited area) 8-13 (p4dir) h'0080 0726 p6 direction register p7 direction register 8-13 (p6dir) (p7dir) h'0080 0728 p8 direction register p9 direction register 8-13 (p8dir) (p9dir) h'0080 072a p10 direction register p11 direction register 8-13 (p10dir) (p11dir) h'0080 072c p12 direction register p13 direction register 8-13 (p12dir) (p13dir) h'0080 072e (use inhibited area) p15 direction register 8-13 (p15dir) h'0080 0730 (use inhibited area) p17 direction register 8-13 (p17dir) (use inhibited area) h'0080 0736 p22 direction register (use inhibited area) 8-13 (p22dir) (use inhibited area) h'0080 0740 p0 operation mode register p1 operation mode register 8-14 (p0mod) (p1mod) 8-15 h'0080 0742 p2 operation mode register p3 operation mode register 8-16 (p2mod) (p3mod) 8-17 h'0080 0744 p4 operation mode register port input special function control register 8-18 (p4mod) (picnt) 8-29 h'0080 0746 (use inhibited area) p7 operation mode register 8-19 (p7mod) h'0080 0748 p8 operation mode register p9 operation mode register 8-20 (p8mod) (p9mod) 8-21 h'0080 074a p10 operation mode register p11 operation mode register 8-22 (p10mod) (p11mod) 8-23 h'0080 074c p12 operation mode register p13 operation mode register 8-24 (p12mod) (p13mod) 8-25 h'0080 074e (use inhibited area) p15 operation mode register 8-26 (p15mod) h'0080 0750 (use inhibited area) p17 operation mode register 8-27 (p17mod) (use inhibited area) h'0080 0756 p22 operation mode register (use inhibited area) 8-28 (p22mod) (use inhibited area) 8.3 input/output port related registers | | | | input/output ports and pin functions 8 8-11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 input/output port related register map (3/3) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 0760 p0 peripheral function select register p1 peripheral function select register 8-14 (p0smod) (p1smod) 8-15 h'0080 0762 (use inhibited area) p3 peripheral function select register 8-17 (p3smod) h'0080 0764 p4 peripheral function select register (use inhibited area) 8-18 (p4smod) h'0080 0766 (use inhibited area) p7 peripheral function select register 8-19 (p7smod) h'0080 0768 p8 peripheral function select register p9 peripheral function select register 8-20 (p8smod) (p9smod) 8-21 h'0080 076a p10 peripheral function select register p11 peripheral function select register 8-22 (p10smod) (p11smod) 8-23 h'0080 076c p12 peripheral function select register p13 peripheral function select register 8-24 (p12smod) (p13smod) 8-25 h'0080 076e (use inhibited area) p15 peripheral function select register 8-26 (p15smod) h'0080 0770 (use inhibited area) p17 peripheral function select register 8-27 (p17smod) (use inhibited area) h'0080 0776 p22 peripheral function select register (use inhibited area) 8-28 (p22smod) 8.3 input/output port related registers | input/output ports and pin functions 8-12 8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 8.3.1 port data registers p0 data register (p0data) input/output ports and pin functions 8 8-13 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 8.3.2 port direction registers p0 direction register (p0dir) input/output ports and pin functions 8-14 8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 8.3.3 port operation mode and port peripheral function select registers p0 operation mode register (p0mod) input/output ports and pin functions 8 8-15 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 p1 operation mode register (p1mod) input/output ports and pin functions 8-16 8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b0123456b7 p20md p21md p22md p23md p24md p25md p26md p27md 00000000 p2 operation mode register (p2mod) input/output ports and pin functions 8 8-17 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 p3 operation mode register (p3mod) input/output ports and pin functions 8-18 8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 p4 operation mode register (p4mod) input/output ports and pin functions 8 8-19 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 p7 operation mode register (p7mod) input/output ports and pin functions 8-20 8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 p8 operation mode register (p8mod) input/output ports and pin functions 8 8-21 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 p9 peripheral function select register (p9smod) input/output ports and pin functions 8-22 8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 p10 operation mode register (p10mod) input/output ports and pin functions 8 8-23 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 p11 peripheral function select register (p11smod) input/output ports and pin functions 8-24 8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 p12 operation mode register (p12mod) input/output ports and pin functions 8 8-25 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 p13 peripheral function select register (p13smod) input/output ports and pin functions 8-26 8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 p15 peripheral function select register (p15smod) input/output ports and pin functions 8 8-27 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 p17 operation mode register (p17mod) input/output ports and pin functions 8-28 8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 p22 peripheral function select register (p22smod) input/output ports and pin functions 8 8-29 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 8.3.4 port input special function control register port input special function control register (picnt) input/output ports and pin functions 8-30 8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 8.3 input/output port related registers read xstat bit (1) to know whether xin oscillation has ever stopped after being reset write xstat bit = 0 (2) to know the current status of xin oscillation wait for 20 cpu clock periods or more read xstat bit wait before inspecting xstat bit note: pay attention about processing when xstat bit is set to "1," make double check after clearing xstat bit etc. figure 8.3.1 procedure for setting xstat (2) pisel (port input data select) bit (bit 14) when the port direction register is set for output, this bit selects the target data to be read from the port data register. at this time, this bit is unaffected by the port operation mode register. table 8.3.1 pisel bit settings and the target data to be read from the port data register direction register pisel settings target data to be read 0 (input) 0/1 port pin level 1 (output) 0 port output latch 1 port pin level input/output ports and pin functions 8 8-31 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 8.3 input/output port related registers (3) pien0 (port input enable) bit (bit 15) this bit is used to prevent shoot-through current from flowing into the port input pins. because the input/output ports are disabled against input upon exiting reset, if any ports need to be used in input mode they must be enabled for input by setting this bit to "1." when disabled against input, the input/output ports are in a state equivalent to a situation where the pin has a low-level input applied. consequently, if a peripheral input function (uncontrolled pin) is selected for any port while disabled against input by using the port operation mode register, the port may operate unex- pectedly due to the "l" level input on it. the following shows the procedure for selecting a peripheral input function. (1) enable the port for input when its pin level is valid (high or low) (2) select a function using the port operation mode bit during boot mode, the pins shared with serial interface functions are enabled for input and can therefore be protected against shoot-through current flowing in from the pins other than serial interface functions during flash programming by clearing pien0. the table below lists the pins that can be controlled by the pien0 bit in each operation mode. table 8.3.2 pins controllable by port input enable bit mode name controllable pins uncontrolled pins p00?p07, p10?p17, p20?p27 p221, fp, sbi#, mod0, mod1, mod2, reset# p30?p37, p41?p47, p61?p63 single-chip p70?p77, p82?p87, p93?p97 p100?p107, p110?p117, p124?p127 p130?p137, p150, p153, p174, p175 p220, p224, p225 p61?p63, p70?p77, p82?p87 p00?p07, p10?p17 external extension p93?p97, p100?p107, p110?p117 p20?p27, p30?p37 microprocessor p126, p127, p130?p137 p41?p47, p124, p125, p221, p224, p225 p150, p153, p174, p175, p220 fp, sbi#, mod0, mod1, mod2, reset# p00?p07, p10?p17, p20?p27 p82?p87, p174, p175, p221 boot p30?p37, p41?p47, p61?p63 fp, sbi#, mod0, mod1, mod2, reset# (single-chip) p70?p77, p93?p97, p100?p107 p110?p117, p124?p127, p130?p137 p150, p153, p220, p224, p225 input/output ports and pin functions 8-32 8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 8.4 port input level switching function the port input level switching function allows the port threshold to be switched to one of three voltage levels (with or without schmitt as selected) in units of the following port group. this can be set to the following registers in units of group . note that port inputs are used for the dd input of dri. port group 0: p00?p07, p10?p17, p20?p27, p30?p37, p41?p47, p70?p73, p224, p225 port group 1: p82?p87, p174, p175 port group 3: p93?p97, p110?p117 port group 4: p124?p127 port group 5: p61?p63, sbi# port group 6: p74?p77, p100?p107 port group 7: p220, p221 port group 8: p130?p137, p150, p153 8.4 port input level switching function vt+ vt- 0.7vcce 0.5vcce 0.35vcce cmos s s s s s wfnsel ptnsel vtnsel standard input level for each peripheral function pin schmitt peripheral function input port input pin threshold port input enable noise canceller s pien0 figure 8.4.1 port input level switching function input/output ports and pin functions 8 8-33 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 8.4 port input level switching function port group 0,1 input level setting register (pg01lev) input/output ports and pin functions 8-34 8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 8.5 port output drive capability setting function this function sets the drive capability of output pins by selecting high or low drive power, one port group at a time. port group 0: p00?p07, p10?p17, p20?p27, p30?p37, p41?p47, p70?p73, p224, p225 port group 1: p82?p87, p174, p175 port group 3: p93?p97, p110?p117 port group 4: p124?p127 port group 5: p61?p63, sbi# port group 6: p74?p77, p100?p107 port group 7: p220, p221 port group 8: p130?p137, p150, p153 8.5 port output drive capability setting function input/output ports and pin functions 8 8-35 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 port group 0,1 output drive capability setting register (pg01drv) input/output ports and pin functions 8-36 8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 input/output ports and pin functions 8 8-37 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 8.6 noise canceller control function the noise canceller control register allows to select whether the noise canceller for the input signal to each peripheral module to be used or not, one port group at a time. note that port inputs are used for the dd input of dri. port group 0: tin26, tin27, tin4?tin11, tin30?tin33 port group 1: rxd0, sclki0, rxd1, sclki1, rxd2 port group 2: none port group 3: sclki5, rxd5 port group 4: tclk0?tclk3 port group 5: none port group 6: rtdrxd, rtdclk, rxd3, tin24, tin25, sclki4, rxd4 port group 7: none port group 8: tin16?tin23, pwmoff0, pwmoff1, tin0, tin3 8.6 noise canceller control function figure 8.6.1 noise canceller control function vt+ vt- 0.7vcce 0.5vcce 0.35vcce cmos s s s s s wfnsel ptnsel vtnsel standard input level for each peripheral function pin schmitt peripheral function input port input pin threshold noise canceller s port input enable pien0 input/output ports and pin functions 8-38 8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 noise canceller control register (nzcnslcr) input/output ports and pin functions 8 8-39 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 8.7 port peripheral circuits figures 8.7.1 through 8.7.5 show the peripheral circuit diagrams of the input/output ports described in the pre- ceding pages. figure 8.7.1 port peripheral circuit diagram (1) note 1: for details about the port level switching function, see section 8.4, "port input level switching function." note 2: the standard input level of tin4-tin11,tin30-tin33 is peripheral ttl. note 3: "h" level is entered to the peripheral function input when it is set to the general-purpose port in the operation mode register. notes: during external extension and processor modes, p20-p27, p41-p43, p224 and p225 are external bus interface control signal pins, but their functional description in this block diagram is omitted. the circle denotes a pin. the symbol denotes a parasitic diode. make sure the voltage applied to each pin does not exceed the vcce or vcc-bus voltage. the input capacitance of each pin is approximately 10 pf. the logic of peripheral function select register for p83, p86, p124, p125, p126, p127, p134, p137, p150, p175 are reversal, but it is not mentioned in this clock diagram. dri relative pin is not mentioned in this clock diagram. p20 ? p27(a23/dd24 ? a30/dd31) p41(blw#/ble#) p42(bhw#/bhe#) p43(rd#) p61 ? p63 p225(a12/cs3#) p224(a11/cs2#) p30(a15/tin4/dd16) p31(a16/tin5/dd17) p32(a17/tin6/dd18) p33(a18/tin7/dd19) p34(a19/tin30/dd20) p35(a20/tin31/dd21) p36(a21/tin32/dd22) p37(a22/tin33/dd23) p44(cs0#/tin8) p45(cs1#/tin9) p46(a13/tin10) p47(a14/tin11) p73(hack#/tin26) p83(rxd0/to25) p86(rxd1/to22) p95(to18/rxd5/dd14) p101(to9/crx0) p103(to11/tin24) p104(to12/tin25/dd3) p107(to15/rxd4/dd0) p124(tclk0/a9/dd3) p125(tclk1/a10/dd2) p126(tclk2/cs2#/dd1) p127(tclk3/cs3#/dd0) p134(tin20/txd3/din4) p137(tin23/ctx1) p150(tin0/clkout/wr#) p175(rxd2/to27) port input data selection data bus port output latch input function enable direction register data bus direction register port output latch peripheral function output operation mode register peripheral function select register peripheral function input (note 3) port input level switching function (standard: no peripheral input) (note 1) (note 1) (note 2) port input data selection port input level switching function (standard: peripheral schmitt) input function enable 8.7 port peripheral circuits input/output ports and pin functions 8-40 8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 8.7.2 port peripheral circuit diagram (2) 8.7 port peripheral circuits note 1: for details about the port level switching function, see section 8.4, "port input level switching function." note 2: the standard input level of wait# is peripheral ttl. note 3: "h" level is entered to the peripheral function input when it is set to the general-purpose port in the operation mode register. notes: the circle denotes a pin. the symbol denotes a parasitic diode. make sure the voltage applied to each pin does not exceed the vcce or vcc-bus voltage. the input capacitance of each pin is approximately 10 pf. sbi# sbi# p71(wait#) p130(tin16/pwmoff0/din0) p131(tin17/pwmoff1/din1) p132(tin18/din2) p133(tin19/din3) port input data selection data bus data bus peripheral function input (note 3) direction register port output latch operation mode register input function enable port input level switching function (standard: peripheral schmitt) (note 1) port input level switching function (standard: peripheral schmitt) (note 1) (note 2) input/output ports and pin functions 8 8-41 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 8.7 port peripheral circuits p84(sclki0/sclko0/to24) p87(sclki1/sclko1/to21) p93(to16/sclki5/sclko5) p105(to13/sclki4/sclko4/dd2) port input data selection port input data selection data bus peripheral function output direction register port output latch operation mode register input function enable data bus sclkii input (note 2) sclkoi output direction register port output latch operation mode register port input level switching function (standard: peripheral schmitt) input function enable (note 1) uart/csio function select bit internal/external clock select bit peripheral function select register peripheral function output port input level switching function (standard: no peripheral input) (note 1) note 1: for details about the port level switching function, see section 8.4, "port input level switching function." note 2: "h" level is entered to the peripheral function input when it is set to the general-purpose port in the operation mode register. notes: the circle denotes a pin. the symbol denotes a parasitic diode. make sure the voltage applied to each pin does not exceed the vcce or vcc-bus voltage. the input capacitance of each pin is approximately 10 pf. the logic of peripheral function select register for p93, p105 are reversal, but it is not mentioned in this clock diagram. dri relative pin is not mentioned in this clock diagram. p00-p07(db0/to21/dd0 -db7/to28/dd7) p10-p17(db8/to29/dd8 -db15/to36/dd15) p96(to19/dd13) p97(to20/dd12) p100(to8) figure 8.7.3 port peripheral circuit diagram (3) input/output ports and pin functions 8-42 8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 8.7 port peripheral circuits figure 8.7.4 port peripheral circuit diagram (4) p70(clkout/wr#/bclk) p74(rtdtxd/txd3/nbdd0) p76(rtdack/ctx1/nbdd2) p82(txd0/to26) p85(txd1/to23) p94(to17/txd5/dd15) p102(to10/ctx0) p106(to14/txd4/dd1) p110 - p117(to0/to29/dd11 -to8/to36/dd4) p174(txd2/to28) p220(ctx0/hack#) p221(crx0/hreq#) p72(hreq#/tin27) p75(rtdrxd/rxd3/nbdd1) p77(rtdclk/crx1/nbdd3) p135(tin21/rxd3) p136(tin22/crx1) p153(tin3/wait#) port input data selection data bus peripheral function input 2 (note 4) peripheral function input 1 (note 4) peripheral function input 2 (note 4) peripheral function input 1 (note 4) peripheral function input 2 peripheral function input 1 port input data selection direction register port output latch data bus data bus operation mode register peripheral function select register input function enable (note 1) (note 2) port input level switching function (standard: peripheral schmitt) operation mode register peripheral function select register input function enable (note 1) (note 3) port input level switching function (standard: peripheral schmitt) note 1: for details about the port level switching function, see section 8.4, "port input level switching function." note 2: the standard input level of wait# is peripheral ttl. note 3: there is no standard input level in p70, p82, p85, p94, p102, p106, p110-p117, p174, and p220. note 4: "h" level is entered to the peripheral function input when it is set to the general-purpose port inthe operation mode register. notes: the circle denotes a pin. the symbol denotes a parasitic diode. make sure the voltage applied to each pin does not exceed the vcce or vcc-bus voltage. the input capacitance of each pin is approximately 10 pf. operation mode register peripheral function select register input function enable (note 1) port input level switching function (standard: peripheral schmitt) port input data selection direction register port output latch input/output ports and pin functions 8 8-43 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 8.7.5 port peripheral circuit diagram (5) notes: the circle denotes a pin. the symbol denotes a parasitic diode. make sure the voltage applied to each pin does not exceed the vcce or vcc-bus voltage. the input capacitance of each pin is approximately 10 pf. jtck/nbdclk mod0 mod1 mod2 reset# xin jtrst jtms jtdi/nbdsync# fp ad0in0-ad0in15 vref0 xout vcc-bus vcce vdde avcc0 vccer excvcc excvdd jtdo/nbdevnt# jtck/nbdclk mod0, mod1, mod2, fp,reset#,xin, jtrst, jtms jtdi/nbdsync# ad0in0-ad0in15, vref0, xout vcc-bus, vcce, vdde, avcc0 vccer, excvcc, excvdd jtdo/nbdevnt# 8.7 port peripheral circuits input/output ports and pin functions 8-44 8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 8.8 notes on input/output ports ? when using input/output ports in output mode because the value of the port data register is undefined when exiting the reset state, the port data register must have its initial value set in it before the port direction register can be set for output. conversely, if the port direction register is set for output before setting data in the port data register, the port data register outputs an undefined value until any data is written into it. ? when using input/output ports in intput mode after switching from output mode to input mode in the port direction register, or after setting port input enable (pien0) bit to "1" (input enable), pin level can be read after 2bclk period. ? about the port input disable function because the input/output ports are disabled against input upon exiting reset, they must be enabled for input by setting the port input enable (pien0) bit to "1" before their input functions can be used. when disabled against input, the input/output ports are in a state equivalent to a situation where the pin has a "l" level input applied. consequently, if a peripheral input function (uncontrolled pin) is selected for any port while disabled against input by using the port operation mode register, the port may operate unexpectedly due to the "l" level input on it. ? about the port peripheral function select register setting the port peripheral function select register can only be set when the corresponding bit of the port operation mode register is "0." ? about the pereipheral function input when it is set to the gereral-purpose port in the pin for both peripheral function input and general-purpose port, "h" level is entered to the peripheral function input when it is set to the general-purpose port in the operation mode register. therefore, when "l" level is entered to the peripheral function input pin, edge signal is entered to the peripheral function input at manipulating operation mode register. 8.8 notes on input/output ports chapter 9 dmac 9.1 outline of the dmac 9.2 dmac related registers 9.3 functional description of the dmac 9.4 notes on the dmac dmac 9-2 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.1 outline of the dmac the microcomputer internally contains a 10-channel dmac (direction memory access controller). it allows data to be transferred at high speed between internal peripheral i/os, between internal ram and internal peripheral i/o, or between internal rams, as initiated by a software trigger or requested from an internal peripheral i/o. table 9.1.1 outline of the dmac item description number of channels 10 channels transfer request sources ? software trigger ? request from internal peripheral i/os: a/d converter, multijunction timer, serial interface (reception completed, transmit buffer empty), can or dri ? dma channels can be cascaded (note 1) maximum number of 65,536 times times transferred transferable address ? 32192 : 64 kbytes x 3 banks (address space from h?0080 0000 to h?0082 ffff) 32195 : 48 kbytes (address space from h?0080 0000 to h?0080 bfff) 32196 : 64 kbytes + 16 byte (address space from h?0080 0000 to h?0081 3fff) space (note 2) ? transfers between internal peripheral i/os, between internal ram and internal peripheral i/o, and between internal rams are supported. transfer data size 16 or 8 bits transfer method single transfer dma (control of the internal bus is relinquished for each transfer performed), dual- address transfer transfer mode single transfer mode direction of transfer one of three modes can be selected for the source and destination: ? address fixed ? address incremental ? ring buffered (can be selected from 32, 16, 8, 4 or 2 times) channel priority dma0 > dma1 > dma2 > dma3 > dma4 > dma5 > dma6 > dma7 > dma8 > dma9 (priority is fixed) maximum transfer rate 26.6 mbytes per second (when internal peripheral clock bclk = 40 mhz) interrupt request group interrupt request can be generated when each transfer count register underflows. transfer area (note 2) 32192 : 64 kbytes x 3 banks of h?0080 0000 to h?0082 ffff 32195 : 48 kbytes of h?0080 0000 to h?0080 bfff) 32196 : 64 kbytes + 16 byte of h?0080 0000 to h?0081 3fff (transferable in the entire ram/sfr area) note 1: the dma channels can be cascaded in the manner described below. ? start dma transfer on dma1 upon completion of one dma transfer on dma0 ? start dma transfer on dma5 upon completion of all dma transfers on dma0 (upon underflow of the transfer count register) ? start dma transfer on dma2 upon completion of one dma transfer on dma1 ? start dma transfer on dma0 upon completion of one dma transfer on dma2 ? start dma transfer on dma3 upon completion of one dma transfer on dma2 ? start dma transfer on dma4 upon completion of one dma transfer on dma3 ? start dma transfer on dma6 upon completion of one dma transfer on dma5 ? start dma transfer on dma7 upon completion of one dma transfer on dma6 ? start dma transfer on dma5 upon completion of one dma transfer on dma7 ? start dma transfer on dma8 upon completion of one dma transfer on dma7 ? start dma transfer on dma9 upon completion of one dma transfer on dma8 note 2: the source address and destination address cannot go over the bank, which can be only transferred to the same bank or another one from a certain bank. 9.1 outline of the dmac dmac 9 9-3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 9.1.1 block diagram of the dmac 9.1 outline of the dmac s s s s s s s s s s s dma0 udf end dma1 udf end dma2 udf end dma3 udf end dma4 udf end dma5 udf end dma6 udf end dma7 udf end dma8 udf end dma9 udf end s s s s s s s s s (note 1) tin3s tid1_udf/ovf tou1_1irq (note 2) dri(din1) sio4_rxd tid0_udf/ovf (note 2) can0_s0/s31 tou1_0irq (note 2) dri(din0) (note 2) sio4_txd (note 2) a/d0 conversion completed (note 1) tin0s tio8_udf tin30s tio9_udf (note 2) a/d0 conversion completed tio8_udf software start software start software start (note 1) tin18s software start (note 2) sio0_txd (note 2) sio1_rxd software start (note 2) sio0_rxd software start dma0-4 interrupts dma5-9 interrupts (note 2) sio2_rxd software start (note 2) sio1_txd (note 2) can0_s0/s31 software start (note 2) sio2_txd (note 2) can0_s1/s30 software start (note 2) sio3_rxd (note 2) can0_s1/s30 (note 2) dri(din2) sio5_txd (note 1) tin0s tou1_6irq (note 2) dri(din3) sio5_rxd (note 1) tin19s (note 2) sio0_txd tou1_7irq (note 1) tin7s (note 2) dri(din4) (note 1) tin20s tou0_0irq (note 1) tin8s (note 2) dri(dec0_udf) (note 2) can1_s0/s31 tou0_1irq (note 2) sio1_rxd (note 2) dri address counter 0 transfer completed (note 2) dri(dec1_udf) tou0_6irq (note 2) can1_s0/s31 (note 2) dri latch event counter_udf (note 2) dri(dec3_udf) tou0_7irq (note 2) dri transfer counter_udf (note 2) dri(dec4_udf) (note 2) dri(din5) tou0_2irq (note 2) sio3_txd (note 2) dri address counter 1 transfer completed (note 2) dri(dec2_udf) (note 2) can1_s1/s30 software start (note 2) sio3_txd (note 2) can1_s1/s30 0123 input event bus output event bus 3210 3210 0123 note 1: indicates edge select input at the timer input pin. note 2: indicates an input signal from each peripheral circuit. dmac 9-4 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.2 dmac related registers the diagram below shows a memory map of the dmac related registers. dmac related register map (1/2) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 0400 dma0?4 interrupt request status register dma0?4 interrupt request mask register 9-35 (dm04itst) (dm04itmk) 9-36 (use inhibited area) h'0080 0408 dma5?9 interrupt request status register dma5?9 interrupt request mask register 9-35 (dm59itst) (dm59itmk) 9-36 (use inhibited area) h'0080 0410 dma0 channel control register 0 dma0 channel control register 1 9-6 (dm0cnt0) (dm0cnt1) 9-7 h'0080 0412 dma0 source address register 9-30 (dm0sa) h'0080 0414 dma0 destination address register 9-31 (dm0da) h'0080 0416 dma0 transfer count register 9-32 (dm0tct) h'0080 0418 dma5 channel control register 0 dma5 channel control register 1 9-16 (dm5cnt0) (dm5cnt1) 9-17 h'0080 041a dma5 source address register 9-30 (dm5sa) h'0080 041c dma5 destination address register 9-31 (dm5da) h'0080 041e dma5 transfer count register 9-32 (dm5tct) h'0080 0420 dma1 channel control register 0 dma1 channel control register 1 9-8 (dm1cnt0) (dm1cnt1) 9-9 h'0080 0422 dma1 source address register 9-30 (dm1sa) h'0080 0424 dma1 destination address register 9-31 (dm1da) h'0080 0426 dma1 transfer count register 9-32 (dm1tct) h'0080 0428 dma6 channel control register 0 dma6 channel control register 1 9-18 (dm6cnt0) (dm6cnt1) 9-19 h'0080 042a dma6 source address register 9-30 (dm6sa) h'0080 042c dma6 destination address register 9-31 (dm6da) h'0080 042e dma6 transfer count register 9-32 (dm6tct) h'0080 0430 dma2 channel control register 0 dma2 channel control register 1 9-10 (dm2cnt0) (dm2cnt1) 9-11 h'0080 0432 dma2 source address register 9-30 (dm2sa) h'0080 0434 dma2 destination address register 9-31 (dm2da) h'0080 0436 dma2 transfer count register 9-32 (dm2tct) h'0080 0438 dma7 channel control register 0 dma7 channel control register 1 9-20 (dm7cnt0) (dm7cnt1) 9-21 h'0080 043a dma7 source address register 9-30 (dm7sa) h'0080 043c dma7 destination address register 9-31 (dm7da) h'0080 043e dma7 transfer count register 9-32 (dm7tct) h'0080 0440 dma3 channel control register 0 dma3 channel control register 1 9-12 (dm3cnt0) (dm3cnt1) 9-13 h'0080 0442 dma3 source address register 9-30 (dm3sa) h'0080 0444 dma3 destination address register 9-31 (dm3da) h'0080 0446 dma3 transfer count register 9-32 (dm3tct) 9.2 dmac related registers | | dmac 9 9-5 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.2 dmac related registers dmac related register map (2/2) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 0448 dma8 channel control register 0 dma8 channel control register 1 9-22 (dm8cnt0) (dm8cnt1) 9-23 h'0080 044a dma8 source address register 9-30 (dm8sa) h'0080 044c dma8 destination address register 9-31 (dm8da) h'0080 044e dma8 transfer count register 9-32 (dm8tct) h'0080 0450 dma4 channel control register 0 dma4 channel control register 1 9-14 (dm4cnt0) (dm4cnt1) 9-15 h'0080 0452 dma4 source address register 9-30 (dm4sa) h'0080 0454 dma4 destination address register 9-31 (dm4da) h'0080 0456 dma4 transfer count register 9-32 (dm4tct) h'0080 0458 dma9 channel control register 0 dma9 channel control register 1 9-24 (dm9cnt0) (dm9cnt1) 9-25 h'0080 045a dma9 source address register 9-30 (dm9sa) h'0080 045c dma9 destination address register 9-31 (dm9da) h'0080 045e dma9 transfer count register 9-32 (dm9tct) h'0080 0460 dma0 software request generation register 9-29 (dm0sri) h'0080 0462 dma1 software request generation register 9-29 (dm1sri) h'0080 0464 dma2 software request generation register 9-29 (dm2sri) h'0080 0466 dma3 software request generation register 9-29 (dm3sri) h'0080 0468 dma4 software request generation register 9-29 (dm4sri) (use inhibited area) h'0080 0470 dma5 software request generation register 9-29 (dm5sri) h'0080 0472 dma6 software request generation register 9-29 (dm6sri) h'0080 0474 dma7 software request generation register 9-29 (dm7sri) h'0080 0476 dma8 software request generation register 9-29 (dm8sri) h'0080 0478 dma9 software request generation register 9-29 (dm9sri) (use inhibited area) h'0080 0480 (use inhibited area) dma0 channel control register 2 9-26 (dm0cnt2) h'0080 0482 (use inhibited area) dma1 channel control register 2 9-26 (dm1cnt2) h'0080 0484 (use inhibited area) dma2 channel control register 2 9-26 (dm2cnt2) h'0080 0486 (use inhibited area) dma3 channel control register 2 9-26 (dm3cnt2) h'0080 0488 (use inhibited area) dma4 channel control register 2 9-26 (dm4cnt2) (use inhibited area) h'0080 0490 (use inhibited area) dma5 channel control register 2 9-26 (dm5cnt2) h'0080 0492 (use inhibited area) dma6 channel control register 2 9-26 (dm6cnt2) h'0080 0494 (use inhibited area) dma7 channel control register 2 9-26 (dm7cnt2) h'0080 0496 (use inhibited area) dma8 channel control register 2 9-26 (dm8cnt2) h'0080 0498 (use inhibited area) dma9 channel control register 2 9-26 (dm9cnt2) | | | dmac 9-6 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.2.1 dma channel control registers dma0 channel control register 0 (dm0cnt0) dmac 9 9-7 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 dma0 channel control register 1 (dm0cnt1) dmac 9-8 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.2 dmac related registers dma1 channel control register 0 (dm1cnt0) dmac 9 9-9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.2 dmac related registers dma1 channel control register 1 (dm1cnt1) dmac 9-10 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 dma2 channel control register 0 (dm2cnt0) dmac 9 9-11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.2 dmac related registers dma2 channel control register 1 (dm2cnt1) dmac 9-12 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 dma3 channel control register 0 (dm3cnt0) dmac 9 9-13 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.2 dmac related registers dma3 channel control register 1 (dm3cnt1) dmac 9-14 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 dma4 channel control register 0 (dm4cnt0) dmac 9 9-15 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.2 dmac related registers dma4 channel control register 1 (dm4cnt1) dmac 9-16 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 dma5 channel control register 0 (dm5cnt0) dmac 9 9-17 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.2 dmac related registers dma5 channel control register 1 (dm5cnt1) dmac 9-18 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 dma6 channel control register 0 (dm6cnt0) dmac 9 9-19 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.2 dmac related registers dma6 channel control register 1 (dm6cnt1) dmac 9-20 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 dma7 channel control register 0 (dm7cnt0) dmac 9 9-21 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.2 dmac related registers dma7 channel control register 1 (dm7cnt1) |