Part Number Hot Search : 
74HC37 SA26107 L7812 L7812 74HC37 SD340YS 74HC37 SD340YS
Product Description
Full Text Search
 

To Download M32192F8TWG Datasheet File

  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) b01234567891011121314b15 aaa bbb ccc 000 0 0 0 0 0 0 0 0 0 0 0 0 0 b bit name function r w 0 aaa 0 :          bit r w          bit 1 :          bit 1 bbb 0 :          bit r w          bit 1 :          bit 2 ccc 0 :          bit r (note 1)          bit 1 :          bit 3?15 no function assigned. fix to ?0?. 0 0 note 1: only writing ?0? is effective. writing ?1? has no effect, in which case the bit retains the value it had before the wri te.  notation of active-low pins (signals) the symbol ?#? suffixed to the pin (or signal) names means that the pins (or signals) are active-low. before use (2) (4) (6) (7) (3) (1) (5)
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 b bit name function r w 0?15 no function assigned. fix to "0." 00 16 bsm saves value of sm bit when eit occurs r w backup sm bit 17 bie saves value of ie bit when eit occurs r w backup ie bit 18?22 no function assigned. fix to "0." 00 23 bc saves value of c bit when eit occurs r w backup c bit 24 sm 0: uses r15 as the interrupt stack pointer r w stack mode bit 1: uses r15 as the user stack pointer 25 ie 0: does not accept interrupt r w interrupt enable bit (note 1) 1: accepts interrupt 26?30 no function assigned. fix to "0." 00 31 c indicates carry, borrow or overflow resulting r w condition bit from operations (instruction dependent) note 1: interrupt which is controlable is external interrupt (ei). reserved instruction exception (rie), address exept (ae), r eset interrupt (ri), system break interrupt (sbi) and trap are not controlled. the processor status word register (psw) indicates the m32r-fpu status. it consists of the current psw field which is regularly used, and the bpsw field where a copy of the psw field is saved when eit occurs. the psw field consists of the stack mode (sm) bit, the interrupt enable (ie) bit and the condition (c) bit. the bpsw field consists of the backup stack mode (bsm) bit, the backup interrupt enable (bie) bit and the backup condition (bc) bit. upon exiting the reset state, bsm, bie and bc are undefined. all other bits are "0."
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 b bit name function r w 0 fs reflects the logical sum of fu, fz, fo and fv. r ? floating-point exception summary bit 1 fx set to "1" when an inexact exception occurs (if eit processing is r w inexact exception flag unexecuted (note 1)). once set, the flag retains the value "1" until it is cleared to "0" in software. 2 fu set to "1" when an underflow exception occurs (if eit processing is r w underflow exception flag unexecuted (note 1)). once set, the flag retains the value "1" until it is cleared to "0" in software. 3 fz set to "1" when a zero divide exception occurs (if eit processing is r w zero divide exception flag unexecuted (note 1)). once set, the flag retains the value "1" until it is cleared to "0" in software. 4 fo set to "1" when an overflow exception occurs (if eit processing is r w overflow exception flag unexecuted (note 1)). once set, the flag retains the value "1" until it is cleared to "0" in software. 5 fv set to "1" when an invalid operation exception occurs (if eit processing r w invalid operation exception flag is unexecuted (note 1)). once set, the flag retains the value "1" until it is cleared to "0" in software. 6?16 no function assigned. fix to "0." 00 17 ex 0: mask eit processing to be executed when an inexact exception occurs. r w inexact exception enable bit 1: execute eit processing when an inexact exception occurs. 18 eu 0: mask eit processing to be executed when an underflow exception r w underflow exception enable bit occurs. 1: execute eit processing when an underflow exception occurs. 19 ez 0: mask eit processing to be executed when a zero divide exception r w zero divide exception enable bit occurs. 1: execute eit processing when a zero divide exception occurs. 20 eo 0: mask eit processing to be executed when an overflow exception r w overflow exception enable bit occurs. 1: execute eit processing when an overflow exception occurs. 21 ev 0: mask eit processing to be executed when an invalid operation r w invalid operation exception enable bit exception occurs. 1: execute eit processing when an invalid operation exception occurs. 22 no function assigned. fix to "0." 00 23 dn 0: handle the denormalized number as a denormalized number. r w denormalized number zero flush bit 1: handle the denormalized number as zero. (note 2) 24 ce 0: no unimplemented operation exception occurred. r (note 3) unimplemented operation 1: an unimplemented operation exception occurred. when the bit is exception cause bit set to "1", the execution of an fpu operation instruction will clear it to "0." 25 cx 0: no inexact exception occurred. r (note 3) inexact exception cause bit 1: an inexact exception occurred. when the bit is set to "1", the execution of an fpu operation instruction will clear it to "0." 2.3 control registers
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 byte rn b0 b31 halfword rn b0 b31 word sign-extended (ldb instruction) or zero-extended (ldub instruction) from memory (ldb, ldub instructions) rn b0 b31 byte rn b0 b31 halfword rn b0 b31 word to memory (stb instruction) to memory (sth instruction) to memory (st instruction) from memory (ldh, lduh instructions) from memory (ld instruction) sign-extended (ldh instruction) or zero-extended (lduh instruction) 24 16 24 16 2.6 data formats
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) b01234567891011121314b15 ivect ???????????????? b bit name function r w 0 ? 15 ivect when an interrupt request is accepted, the 16-low-order r n 16 low-order bits of icu vector table address bits of the icu vector table address for the accepted interrupt request source are stored in this register. note:  this register must always be accessed in halfwords (2 bytes). (this is a read-only register.) the interrupt vector register (ivect) is used when an interrupt request is accepted to store the 16-low-order bits of the icu vector table address for the accepted interrupt request source. before this function can work, the icu vector table (addresses h?0000 0094 through h?0000 013b) must have set in it the start addresses of interrupt handlers for each internal peripheral i/o. when an interrupt request is accepted, the 16-low-order bits of the icu vector table address for the accepted interrupt request source are stored in the ivect register. in the eit handler, read the content of this ivect register using the ldh instruc- tion to get the icu vector table address. when the ivect register is read, operations (1) to (4) below are automatically performed in hardware. (1) the interrupt priority level of the accepted interrupt request source (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.) (2) the interrupt request bit for the accepted interrupt request source is cleared (not cleared for level-recog- nized interrupt request sources). (3) the interrupt request (ei) to the cpu core is dropped. (4) the icu?s internal sequencer is activated to start internal processing (interrupt priority resolution). notes:  do not read the interrupt vector register (ivect) in the eit handler unless interrupts are dis- abled (psw register ie bit = "0"). in the eit handler, furthermore, read the interrupt request mask register (imask) first before reading the ivect register.  to reenable interrupts (by setting the ie bit to "1") after reading the interrupt vector register (ivect), execute the following processing in the order given: (1) read the interrupt vector register (ivect) (2) perform a read access to the sfr at least once (3) perform a dumy access to the internal memory, sfr, etc. at least once (4) enable interrupts (by setting the ie bit to "1")
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) 123456b7 b0 imask 111 0 0 0 0 0 b bit name function r w 0?4 no function assigned. fix to "0" 00 5?7 imask 000: disable maskable interrupts r w interrupt request mask bit 001: accept interrupts with priority level 0 010: accept interrupts with priority levels 0?1 011: accept interrupts with priority levels 0?2 100: accept interrupts with priority levels 0?3 101: accept interrupts with priority levels 0?4 110: accept interrupts with priority levels 0?5 111: accept interrupts with priority levels 0?6 the interrupt request mask register (imask) is used to finally determine whether or not to accept an interrupt request after comparing its priority with the priority levels (interrupt control register ilevel bits) that have been set for each interrupt request source. when the interrupt vector register (ivect) is read, the interrupt priority level of the accepted interrupt request source is set in this imask register as a new mask value. when any value is written to the imask register, operations (1) to (2) below are automatically performed in hardware. (1) the interrupt request (ei) to the cpu core is deasserted. (2) the icu?s internal sequencer is activated to start internal processing (interrupt priority resolution). notes:  do not write to the interrupt request mask register (imask) unless interrupts are disabled (psw register ie bit = "0").  to reenable interrupts (by setting the ie bit to "1") after writing to the interrupt request mask register (imask), execute the following processing in the order given: (1) write to the interrupt request mask register (imask) (2) perform a read access to the sfr at least once (3) perform a dumy access to the internal memory, sfr, etc. at least once (4) enable interrupts (by setting the ie bit to "1") or (1) write to the interrupt request mask register (imask) (2) perform a dumy access to the internal memory, sfr, etc. twice or more (3) issue four or more instructions (note 1) (4) enable interrupts (by setting the ie bit to "1") note 1: any instructions other than nop that does not require clock cycles (one that is automati- cally inserted by the assembler for alignment adjustment: instruction code h'f000)
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) 123456b7 b0 sbireq 0 0 0 0 0 0 0 0 b bit name function r w 0?6 no function assigned. fix to "0" 00 7 sbireq 0: sbi not requested r (note 1) sbi request bit 1: sbi requested note 1: this bit can only be cleared (see below) the system break interrupt (sbi) is an interrupt request generated by a falling edge on the sbi# signal input pin. when a falling edge on the sbi# signal input pin is detected and this bit is set to "1", a system break interrupt (sbi) request is generated to the cpu. this bit cannot be set to "1" in software, it can only be cleared. to clear this bit to "0", follow the procedure described below. 1. write "1" to the sbi request bit. 2. write "0" to the sbi request bit. notes:  unless this bit is set to "1", do not perform the above clearing operation.  if falling edge is inputted to sbi# pin again, system break is not occured while sbi request bit is set to "1."
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) can1 error interrupt control register (ican1ercr) can1 single-shot interrupt control register (ican1sscr) can1 transmit/receive interrupt control register (ican1trcr) can0 error interrupt control register (ican0ercr) can0 single-shot interrupt control register (ican0sscr) can0 transmit/receive interrupt control register (ican0trcr) dri event detection interrupt control register (idrievcr) dri counter interrupt control register (idricntcr) dri transfer interrupt control register (idritrcr) can0 transmit/receive & error interrupt control register (ican0cr) tml1 input interrupt control register (itml1cr) sio4,5 transmit/receive interrupt control register (isio45cr) tou1 output interrupt control register (itou1cr) tid1 output interrupt control register (itid1cr) rtd interrupt control register (irtdcr) sio2,3 transmit/receive interrupt control register (isio23cr) dma5?9 interrupt control register (idma59cr) tou0 output interrupt control register (itou0cr) tid0 output interrupt control register (itid0cr) a/d0 conversion interrupt control register (iad0ccr) sio0 transmit interrupt control register (isio0txcr) sio0 receive interrupt control register (isio0rxcr) sio1 transmit interrupt control register (isio1txcr) sio1 receive interrupt control register (isio1rxcr) dma0?4 interrupt control register (idma04cr) mjt output interrupt control register 0 (imjtocr0) mjt output interrupt control register 1 (imjtocr1) mjt output interrupt control register 2 (imjtocr2) mjt output interrupt control register 3 (imjtocr3) mjt output interrupt control register 4 (imjtocr4) mjt output interrupt control register 5 (imjtocr5) mjt output interrupt control register 6 (imjtocr6) mjt output interrupt control register 7 (imjtocr7) mjt input interrupt control register 0 (imjticr0) mjt input interrupt control register 1 (imjticr1) mjt input interrupt control register 2 (imjticr2) mjt input interrupt control register 3 (imjticr3) mjt input interrupt control register 4 (imjticr4) can1 transmit/receive & error interrupt control register (ican1cr)
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 b bit name function r w 0?2 no function assigned. fix to "0" 00 (8?10) 3 ireq r w (11) interrupt request bit at read 0: interrupt not requested 1: interrupt requested at write 0: clear interrupt request 1: generate interrupt request r 0 at read 0: interrupt not requested 1: interrupt requested 4 no function assigned. fix to "0" 00 (12) 5?7 ilevel 000: interrupt priority level 0 r w (13?15) interrupt priority level bits 001: interrupt priority level 1 010: interrupt priority level 2 011: interrupt priority level 3 100: interrupt priority level 4 101: interrupt priority level 5 110: interrupt priority level 6 111: interrupt priority level 7 (interrupt disabled) (1) ireq (interrupt request) bit (bit 3 or 11) when an interrupt request from some internal peripheral i/o occurs, the corresponding ireq (interrupt request) bit is set to "1." this bit can be set and cleared in software for only edge-recognized interrupt request sources (and not for level-recognized interrupt request sources). also, when this bit is set by an edge-recognized interrupt re- quest generated, it is automatically cleared to "0" by reading the interrupt vector register (ivect) (not cleared in the case of level-recognized interrupt request). if the ireq bit is cleared in software at the same time it is set by an interrupt request generated, clearing in software has priority. also, if the ireq bit is cleared by reading the interrupt vector register (ivect) at the same time it is set by an interrupt request generated, clearing by a read of the ivect register has priority. note:  external interrupt (ei) to the cpu core is not deasserted by clearing the ireq bit. external interrupt (ei) to the cpu core can only be deasserted by the following operation: (1) reset (2) ivect register read (3) write to the imask register
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 b bit name function r w 0 ramwrist0 0: area 0 interrupt not request r (note 1) (area 0 ram write monitor interrupt status bit) 1: area 0 interrupt requested 1 ramwrist1 0: area 1 interrupt not request r (note 1) (area 1 ram write monitor interrupt status bit) 1: area 1 interrupt requested 2 ramwrist2 0: area 2 interrupt not request r (note 1) (area 2 ram write monitor interrupt status bit) 1: area 2 interrupt requested 3 ramwrist3 0: area 3 interrupt not request r (note 1) (area 3 ram write monitor interrupt status bit) 1: area 3 interrupt requested 4 ramwrist4 0: area 4 interrupt not request r (note 1) (area 4 ram write monitor interrupt status bit) 1: area 4 interrupt requested 5 ramwrist5 0: area 5 interrupt not request r (note 1) (area 5 ram write monitor interrupt status bit) 1: area 5 interrupt requested 6 ramwrist6 0: area 6 interrupt not request r (note 1) (area 6 ram write monitor interrupt status bit) 1: area 6 interrupt requested 7 ramwrist7 0: area 7 interrupt not request r (note 1) (area 7 ram write monitor interrupt status bit) 1: area 7 interrupt requested 8 ramwrist8 0: area 8 interrupt not request r (note 1) (area 8 ram write monitor interrupt status bit) 1: area 8 interrupt requested 9 ramwrist9 0: area 9 interrupt not request r (note 1) (area 9 ram write monitor interrupt status bit) 1: area 9 interrupt requested 10 ramwrist10 0: area 10 interrupt not request r (note 1) (area 10 ram write monitor interrupt status bit) 1: area 10 interrupt requested 11 ramwrist11 0: area 11 interrupt not request r (note 1) (area 11 ram write monitor interrupt status bit) 1: area 11 interrupt requested 12 ramwrist12 0: area 12 interrupt not request r (note 1) (area 12 ram write monitor interrupt status bit) 1: area 12 interrupt requested 13 ramwrist13 0: area 13 interrupt not request r (note 1) (area 13 ram write monitor interrupt status bit) 1: area 13 interrupt requested 14 ramwrist14 0: area 14 interrupt not request r (note 1) (area 14 ram write monitor interrupt status bit) 1: area 14 interrupt requested 15 ramwrist15 0: area 15 interrupt not request r (note 1) (area 15 ram write monitor interrupt status bit) 1: area 15 interrupt requested note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. note: ? this register must always be accessed in halfwords. if the cpu, dma, sdi (tool), or nbd attempted to write to any area that is ?disabled against write? by the ram write disable control register, the corresponding bit in this register is set to "1." the bit is cleared by writing a "0" in software. when writing to this register, be sure to write a "0" for the bits to be cleared and a "1" for all other bits. writing a "1" to any bit in this register has no effect, so the bit retains the value it had before the write. b0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 b15 ramwrist0 ramwrist1 ramwrist3 ramwrist4 ramwrist5 ramwrist8 0000000000000000 ramwrist15 ramwrist14 ramwrist13 ramwrist12 ramwrist11 ramwrist10 ramwrist9 ramwrist7 ramwrist6 ramwrist2 6.3 internal ram protect function ram write monitor interrupt status register (ramwrist)
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) b bit name function r w 0 ramwrfst0 0: write to area 0 by dma r (note 1) (area 0 ram write source status bit) 1: write to area 0 by cpu, sdi, or nbd 1 ramwrfst1 0: write to area 1 by dma r (note 1) (area 1 ram write source status bit) 1: write to area 1 by cpu, sdi, or nbd 2 ramwrfst2 0: write to area 2 by dma r (note 1) (area 2 ram write source status bit) 1: write to area 2 by cpu, sdi, or nbd 3 ramwrfst3 0: write to area 3 by dma r (note 1) (area 3 ram write source status bit) 1: write to area 3 by cpu, sdi, or nbd 4 ramwrfst4 0: write to area 4 by dma r (note 1) (area 4 ram write source status bit) 1: write to area 4 by cpu, sdi, or nbd 5 ramwrfst5 0: write to area 5 by dma r (note 1) (area 5 ram write source status bit) 1: write to area 5 by cpu, sdi, or nbd 6 ramwrfst6 0: write to area 6 by dma r (note 1) (area 6 ram write source status bit) 1: write to area 6 by cpu, sdi, or nbd 7 ramwrfst7 0: write to area 7 by dma r (note 1) (area 7 ram write source status bit) 1: write to area 7 by cpu, sdi, or nbd 8 ramwrfst8 0: write to area 8 by dma r (note 1) (area 8 ram write source status bit) 1: write to area 8 by cpu, sdi, or nbd 9 ramwrfst9 0: write to area 9 by dma r (note 1) (area 9 ram write source status bit) 1: write to area 9 by cpu, sdi, or nbd 10 ramwrfst10 0: write to area 10 by dma r (note 1) (area 10 ram write source status bit) 1: write to area 10 by cpu, sdi, or nbd 11 ramwrfst11 0: write to area 11 by dma r (note 1) (area 11 ram write source status bit) 1: write to area 11 by cpu, sdi, or nbd 12 ramwrfst12 0: write to area 12 by dma r (note 1) (area 12 ram write source status bit) 1: write to area 12 by cpu, sdi, or nbd 13 ramwrfst13 0: write to area 13 by dma r (note 1) (area 13 ram write source status bit) 1: write to area 13 by cpu, sdi, or nbd 14 ramwrfst14 0: write to area 14 by dma r (note 1) (area 14 ram write source status bit) 1: write to area 14 by cpu, sdi, or nbd 15 ramwrfst15 0: write to area 15 by dma r (note 1) (area 15 ram write source status bit) 1: write to area 15 by cpu, sdi, or nbd note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. if the cpu, sdi(tool), or nbd attempted to access any area for write that is ?disabled against write? by the ram write disable control register, the corresponding bit in this register is set to "1." after setting the bit to "1," the bit is not cleared to "0" if a dma write access occurred. the bit is cleared by writing a "0" in software. writing a "1" to any bit in this register has no effect, so the bit retains the value it had before the write. b0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 b15 ramwrfst0 ramwrfst1 ramwrfst3 ramwrfst4 ramwrfst5 ramwrfst8 0000000000000000 ramwrfst15 ramwrfst14 ramwrfst13 ramwrfst12 ramwrfst11 ramwrfst10 ramwrfst9 ramwrfst7 ramwrfst6 ramwrfst2 6.3 internal ram protect function
internal memory 6-6 6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b bit name function r w 0 ramwrcnt0 0: enable write to area 0 r w (area 0 ram write disable control bit) 1: disable write to area 0 1 ramwrcnt1 0: enable write to area 1 r w (area 1 ram write disable control bit) 1: disable write to area 1 2 ramwrcnt2 0: enable write to area 2 r w (area 2 ram write disable control bit) 1: disable write to area 2 3 ramwrcnt3 0: enable write to area 3 r w (area 3 ram write disable control bit) 1: disable write to area 3 4 ramwrcnt4 0: enable write to area 4 r w (area 4 ram write disable control bit) 1: disable write to area 4 5 ramwrcnt5 0: enable write to area 5 r w (area 5 ram write disable control bit) 1: disable write to area 5 6 ramwrcnt6 0: enable write to area 6 r w (area 6 ram write disable control bit) 1: disable write to area 6 7 ramwrcnt7 0: enable write to area 7 r w (area 7 ram write disable control bit) 1: disable write to area 7 8 ramwrcnt8 0: enable write to area 8 r w (area 8 ram write disable control bit) 1: disable write to area 8 9 ramwrcnt9 0: enable write to area 9 r w (area 9 ram write disable control bit) 1: disable write to area 9 10 ramwrcnt10 0: enable write to area 10 r w (area 10 ram write disable control bit) 1: disable write to area 10 11 ramwrcnt11 0: enable write to area 11 r w (area 11 ram write disable control bit) 1: disable write to area 11 12 ramwrcnt12 0: enable write to area 12 r w (area 12 ram write disable control bit) 1: disable write to area 12 13 ramwrcnt13 0: enable write to area 13 r w (area 13 ram write disable control bit) 1: disable write to area 13 14 ramwrcnt14 0: enable write to area 14 r w (area 14 ram write disable control bit) 1: disable write to area 14 15 ramwrcnt15 0: enable write to area 15 r w (area 15 ram write disable control bit) 1: disable write to area 15 this register controls accesses for write to the ram by enabling or disabling the access. controlled by this register are the accesses made by the cpu, dma, sdi (tool), and nbd. if one of these modules attempted to access any area for write that is disabled against write, the corresponding ram write monitor interrupt status is set to "1," with no data actually written to the ram. before this register can be rewritten, the ramwrcntpro bit in the ram write disable protect register must be "0." b0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 b15 ramwrcnt0 ramwrcnt1 ramwrcnt3 ramwrcnt4 ramwrcnt5 ramwrcnt8 0000000000000000 ramwrcnt15 ramwrcnt14 ramwrcnt13 ramwrcnt12 ramwrcnt11 ramwrcnt10 ramwrcnt9 ramwrcnt7 ramwrcnt6 ramwrcnt2 6.3 internal ram protect function ram write disable control register (ramwrcnt)
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) b bit name function r w 8 ? 13 no function assigned. fix to "0." 00 14 ramwrcntp 0w ramwrcntpro write control bit 15 ramwrcntpro 0: enable write to ramwrcntn r w ram write disable protect bit 1: disable write to ramwrcntn this register controls writes to the ram write disable control register by enabling or disabling the write. if a write to the ram write disable control register is attempted when the ramwrcntpro bit = "1," the attempted write is ignored. to set this register, follow the procedure described below. 1. write a "1" to ramwrcntp. 2. subsequent to 1 above, write a "0" to ramwrcntp and a set value ("0" or "1") to ramwrcntpro. note: ? if theare are writing cycles from cpu, dma, sdi (tool), nbd to any other area between 1 and 2, the continuous setting ( a pair of two consecutive is 1 set for writing operation) is disabled and the writing value is not reflected. therefore, disable interrupts and dma transfers before setting. however the writing cycle from rtd and dri are not effected. 6.3 internal ram protect function b8 9 1011121314b15 ramwrcntp ramwrcntpro 00000000
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) b bit name function r w 0?2 no function assigned. fix to "0" 00 3 faens 0: flash access disabled r ? flash access enable status bit 1: flash access enabled 4?6 no function assigned. fix to "0" 00 7 fpmod 0: fp pin = "l" r ? external fp pin status bit 1: fp pin = "h" (1) faens (flash access enable status) bit (bit 3) the faens bit shows whether access to the flash memory is enabled or disabled. when the flash memory is reset by the freset bit in flash control register 4 (fcnt4) or accessed for programming/erasure, this bit is cleared to "0," resulting in the flash memory being disabled against access. when the flash memory becomes ready for access, this bit is set to "1." however, it requires up to 30 s for faens bit to be "1" from "0" after exiting flash reset by freset bit or executing programming and erasing operation for flash memory. (2) fpmod (external fp pin status) bit (bit 7) the fpmod is a status bit which indicates the fp (flash protect) pin status. the internal flash memory is enabled for programming or erase operation only when fpmod = "1," and is protected against programming or erase operation when fpmod = "0." b0123456b7 faens fpmod 0001000? 6.5 registers associated with the internal flash memory
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) b bit name function r w 8 fbusy 0: being programmed or erased r ? flash busy bit 1: ready state 9 no function assigned. fix to "0." 00 10 erase 0: erase normally operating or terminated r ? erase status confirmation bit 1: erase error occurred 11 wrerr 0: programming normally operating or terminated r ? write status confirmation bit 1: programming error occurred 12 no function assigned. fix to "0." 00 13 fesq1 ?? reserved bit 14 fesq2 ?? reserved bit 15 no function assigned. fix to "0." 00 flash status register (fstat) consists of the following status bits that indicate the operation condition of the flash memory. (1) fbusy (flash busy) bit (bit 8) the fbusy bit is used to determine whether the operation on the flash memory is finished when it is being programmed or erased. when fbusy = "0," it means that the programming or erase operation is being executed; when fbusy = "1," the operation is finished. note: ? except when programming/erase processing on the flash memory is forcibly terminated, do not manipulate the freset bit in flash control register 4 (fcnt4) while the fbusy bit = "0" (programming/erasure in progress). (2) erase (erase status confirmation) bit (bit 10) the erase bit is used to determine after execution of processing whether the erase operation performed on the flash memory resulted in an error. when erase = "0," it means that the erase operation terminated normally; when erase = "1," the erase operation terminated in an error. this bit is set to "1" (erase error occurred) in the following cases: ? an invalid command is issued ? the operation is not executed under normal erase conditions (power voltage, temperature) ? protect function by lock bit attempts to erase the valid area ? erase operation is not available because of the internal flash memory failure (3) wrerr (write status confirmation) bit (bit 11) the wrerr bit is used to determine after completion of processing whether the programming operation performed on the flash memory resulted in an error. when wrerr = "0," it means that the programming operation terminated normally; when wrerr = "1," the programming operation terminated in an error. this bit is set to "1" (programming error occurred) in the following cases: ? an invalid command is issued ? the operation is not executed under normal programming conditions (power voltage, temperature) ? protect function by lock bit attempts to write to the valid area ? write operation is not available because of the internal flash memory failure b8 9 1011121314b15 fbusy erase wrerr fesq1 fesq2 10000000
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) b bit name function r w 0?2 no function assigned. fix to "0." 00 3 fentry 0: normal read r w flash e/w enable mode entry bit 1: program/erase enable 4?6 no function assigned. fix to "0." 00 7 femmod 0: normal mode r w virtual flash emulation mode bit 1: virtual flash emulation mode flash control register 1 (fcnt1) consists of the following two bits to control the internal flash memory. (1) fentry (flash e/w enable mode entry) bit (bit 3) the fentry bit controls entry to flash e/w enable mode. flash e/w enable mode can only be entered when fentry = "1." to set the fentry bit to "1," write "0" and then "1" to the fentry bit in succession while the fp pin = "h." to clear the fentry bit, check to see that the flash status register (fstat) fbusy bit = "1" (ready), issue read array commands (or flash memory reset by freset bit), make sure that faens bit = "1," and then write "0" to the fentry bit. however, when flash memory is not reset by freset bit, it is not required to check the faens bit. note that the following operations cannot be performed while programming or erasing the internal flash memory (fstat register fbusy bit = "0"). if one of these operations is attempted, the fentry bit is cleared to "0" in hardware. 1) writing "0" to the fentry bit 2) entering a "l" level signal to the fp pin 3) entering a "l"level signal to the reset# pin when running a program resident in the internal flash memory while the fentry bit = "0," the ei vector entry is located at the address h?0000 0080 of the internal flash memory. when running the flash write/ erase program in the ram while the fentry bit = "1," the ei vector entry is located at the address h?0080 4000 of the ram, allowing the flash programming/erase operation to be controlled using interrupts. table 6.5.1 changes of the ei vector entry by fentry fentry ei vector entry address 0 internal flash memory area h'0000 0080 1 internal ram area h'0080 4000 (2) femmod (virtual flash emulation mode) bit (bit 7) the femmod bit controls entry to virtual flash emulation mode. virtual flash emulation mode is entered by setting the femmod bit to "1" while the fentry bit = "0." (for details, see section 6.7, ?virtual flash emulation function.?) b0123456b7 fentry femmod 00000000
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) b bit name function r w 8?10 no function assigned. fix to "0." 00 11 flocks 0: memory area read mode r (note 1) lock bit read mode select bit 1: register read mode 12?14 no function assigned. fix to "0." 00 15 fprot 0: protection by lock bit effective r (note 1) lock bit protect control bit 1: protection by lock bit invalidated note 1: it can be accessed for write only during the flash e/w entry mode (fentry bit = "1"). (1) flocks (lock bit read mode select) bit (bit 11) the flocks bit is used to select a method for reading out the lock bit status. when the flocks bit = "0," the internal flash memory is placed in memory area read mode, so that it is possible to inspect the lock bit status by issuing command data h?7171 to any address of the flash memory and then reading the last even address of the target block. when the flocks bit = "1," the internal flash memory is placed in register read mode, so that it is possible to inspect the lock bit status by first issuing command data h?7171 and h?d0d0 to any address of the target block in succession and then, when the fbusy bit is set to "1," by reading the flockst bit in flash control register 4. the flocks bit can only be accessed for write when the fentry bit = "1." if one of the following operations is attempted, the flocks bit is cleared to "0." 1) writing "0" to the flocks bit 2) entering a "l" level signal to the fp pin 3) clearing the fentry bit to "0" 4) entering a "l" level signal to the reset# pin (2) fprot (lock bit protect control) bit (bit 15) the fprot bit controls invalidation of the internal flash memory protection by a lock bit (protection against programming/erase operation). protection of the internal flash memory is invalidated by setting the fprot bit to "1," so that any blocks protected by a lock bit can now be programmed or erased. to set the fprot bit to "1," write "0" and then "1" to the fprot bit in succession while the fentry bit = "1." to clear the fprot bit to "0," write "0" to the fprot bit. if one of the following operations is attempted, the fprot bit is cleared to "0." 1) writing "0" to the fprot bit 2) entering a "l" level signal to the fp pin 3) clearing the fentry bit to "0" 4) entering a "l" level signal to the reset# pin b8 9 1011121314b15 flocks fprot 00000000
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) b bit name function r w 0?2 no function assigned. fix to "0." 00 3 fbsyck 0: command accepted normally r ? busy check bit 1: command not accepted normally 4?6 no function assigned. fix to "0." 00 7 fpbsyck 0: command accepted normally r ? prebusy check bit 1: command not accepted normally flash control register 3 (fcnt3) is used when developing an internal flash memory write/erase program to check whether commands have been accepted normally. this register does not need to be used for a program that has been verified to be able to operate properly. (1) fbsyck (busy check) bit (bit 3) the fbsyck 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. commands of two or more cycles are shown in table 6.5.2. if the fbsyck bit is found to be "0" after issuing the busy check target command (see table 6.5.2), it means that the busy check target com- mand has been accepted normally. conversely, if the fbsyck bit is found to be "1," it means that the busy check target command has not been accepted normally. in addition to the above, the fbsyck bit is set to "1" in the following cases: 1) when a prebusy check target command has been accepted 2) when the freset bit = "1" 3) when input on reset# pin is pulled "l" b0123456b7 fbsyck fpbsyck 00010001 6.5 registers associated with the internal flash memory
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) b bit name function r w 8?10 no function assigned. fix to "0." 00 11 flockst 0: protected (note 1) ? lock bit status bit 1: unprotected 12?14 no function assigned. fix to "0." 00 15 freset 0: no operation r w flash reset bit 1: reset note 1: under setting flocks bit of the flash control register 2 as "1" (register read mode), only the reading out value becom es effective after issuing read rock bit status command . the reading out value is undefined after issuing that read rock bit stat us command under setting flocks bit as "0" (memory area read mode) and that other internal flash control command. (1) flockst (lock bit status) bit (bit 11) the flockst bit is used to read the lock bit status. if the flockst bit = "0," it means that the relevant memory block is protected. if the flockst bit = "1," it means that the relevant memory block is not pro- tected. confirmation of the lock bit status by the flockst bit is possible when the flocks bit = "1." in this case, the lock bit status can be checked by first issuing command data h?7171 and h?d0d0 to any address of the target block in succession and then, when the fbusy bit is set to "1," by reading the flockst bit. (2) freset (flash reset) bit (bit 15) the freset bit controls forcible termination of the internal flash memory programming/erase operation, initialization (to h?80) of each status bit in the flash status register (fstat), and initialization of the fpbsyck bit in flash control register 3 (fcnt3). setting the freset bit to "1" forcibly terminates programming/erase operation and initializes each status bit in the fstat (to h?80) and the fpbsyck bit in fcnt3. make sure freset is held high (= "1") for at least 10 s during a flash reset. after a flash reset, the internal flash memory is disabled against access until the faens bit is set to "1." the freset bit is effective only when the fentry bit = "1." unless the fentry bit = "1," settings made to the freset bit are ignored. make sure the freset bit = "0" while programming or erasing the flash memory. 6.5 registers associated with the internal flash memory b8 9 1011121314b15 flockst freset 00000000
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) virtual flash l bank register 1 (felbank1) virtual flash l bank register 2 (felbank2) virtual flash l bank register 3 (felbank3) virtual flash l bank register 4 (felbank4) (note 3) virtual flash l bank register 5 (felbank5) (note 3) virtual flash l bank register 6 (felbank6) (note 3) virtual flash l bank register 7 (felbank7) (note 3) virtual flash l bank register 8 (felbank8) (note 2) virtual flash l bank register 9 (felbank9) (note 2) virtual flash l bank register 10 (felbank10) (note 2) virtual flash l bank register 11 (felbank11) (note 2) virtual flash l bank register 12 (felbank12) (note 2) virtual flash l bank register 13 (felbank13) (note 2) virtual flash l bank register 14 (felbank14) (note 2) virtual flash l bank register 15 (felbank15) (note 2) b bit name function r w 0 modenl 0: disable virtual flash emulation function r w virtual flash emulation l enable bit 1: enable virtual flash emulation function 1?6 no function assigned. fix to "0." 00 7?14 lbankad start address a11?a18 of the relevant l bank r w l bank address bit (note 1) 15 no function assigned. fix to "0." 00 note 1: because the internal flash memory of the m32192f8 and m32196f8 are 1m (1024k) bytes, the address b7 (a11) must always be set to "0." also, because the internal flash memory of the m32195f4 is 512 kbytes, the address b7(a11) and b5(a12) must always be set to "0." 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. note: ? these registers must always be accessed in halfwords. (1) modenl (virtual flash emulation l enable) /bit (bit 0) the modenl bit can be set to "1" after entering virtual flash emulation mode (by setting the femmod bit to "1" while the fentry bit = "0"). this causes the virtual flash emulation function to be enabled for the l bank area selected by the lbankad bits. (2) lbankad (l bank address) bits (bits 7?14) the lbankad bits are provided for selecting one of the l banks that are separated every 8 kbytes. use these lbankad bits to set the eight bits a11?a18 (b7 corresponds to the address a11 and b14 corresponds to the address a18) of the 32-bit start address of the desired l bank. note: ? for details, see section 6.7, ?virtual flash emulation function.? 6.5 registers associated with the internal flash memory b01234567891011121314b15 lbankad 000000000000000 mod enl 0
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  set the fp pin "h," mod0 pin "h" and mod1 pin "l" to place the flash memory in boot mode + flash e/w enable mode.  deassert reset signal and start up with the boot program.  transfer the flash write/erase program into the internal ram. (note 1)  jump to the flash write/erase program in the internal ram.  using the flash write/erase program in the internal ram, set the flash control register 1 (fcnt1) fentry bit to 1.  program or erase the internal flash memory using the flash write/erase program.  when finished, set the mod0 "l" and jump to the internal flash memory or apply a reset to enter normal mode. m32r/ecu m32r/ecu m32r/ecu external device (e.g., flash programmer) external device (e.g., flash programmer) internal flash memory flash write data internal flash memory mod0 = l boot program boot program boot program mod1 = l fp = h mod0 = h mod1 = l fp = h mod0 = h reset# = l reset# = h reset# = h flash write/ erase program write data write data write data external device (e.g., flash programmer) note 1: 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.  initial state (internal flash write/erase program nonexistent in the internal flash memory) 6.6 programming the internal flash memory
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  initial state (flash write/erase program existing in the internal flash memory)  an ordinary program in the internal flash memory is being executed.  set the fp pin "h", mod1 pin "l" and mod0 pin "l" to place the flash memory in single-chip + flash e/w enable mode.  after determining the fp pin and mod1 pin levels, transfer the flash write/erase program from the internal flash memory area into the ram.  jump to the flash write/erase program in the internal ram.  using the flash write/erase program in the internal ram, set the flash control register 1 (fcnt1) fentry bit to 1.  program or erase the internal flash memory using the flash write/erase program in the internal ram.  when finished, jump to the program in the internal flash memory or apply a reset to enter normal mode. m32r/ecu m32r/ecu m32r/ecu external device external device external device internal flash memory flash write data internal flash memory mod0 = l mod1 = l fp = h mod0 = l mod1 = l fp = h mod0 = l write data write data 6.6 programming the internal flash memory
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) 123456b7 b0 p87dt p86dt p85dt p84dt p83dt p82dt mod1dt mod0dt ???????? b bit name function r w 0 mod0dt (p80dt) 0: mod0 pin = "l" r ? mod0 data bit 1: mod0 pin = "h" 1 mod1dt (p81dt) 0: mod1 pin = "l" r ? mod1 data bit 1: mod1 pin = "h" 2 p82dt at read r w port p82 data bit depends on how the port direction register is set 3 p83dt ? if direction bit = "0" (input mode) port p83 data bit 0: port input pin = "l" 4 p84dt 1: port input pin = "h" port p84 data bit ? if direction bit = "1" (output mode) (note 1) 5 p85dt 0: port output latch = "0" / port pin level = "l" port p85 data bit 1: port output latch = "1" / port pin level = "h" 6 p86dt at write port p86 data bit write to the port output latch 7 p87dt port p87 data bit note 1: to select the port data to read, use the port input special function control register?s port input data select bit (pis el).
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) b bit name function r w 0?8 no function assigned. ?0 9 flbst 0: protected r ? lock bit 1: not protected 10?15 no function assigned. ? 0 the lock bit status register is a read-only register, which is included for each memory block independently of one another. to read this register, flash control register 2 (fcnt2) flocks bit must be set to "0."
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 l bank 0 (8 kbytes) l bank 1 (8 kbytes) l bank 2 (8 kbytes) l bank 126 (8 kbytes) l bank 127 (8 kbytes) 8 kbytes 48 kbytes 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.  if any 8-kbyte area (l bank) specified by the virtual flash l bank registers 0 to 15 is accessed, its corresponding internal ram area is accessed. during virtual flash emulation mode, internal ram can be accessed for read and write from both the internal ram area and the virtual flash set area. 8 kbytes 8 kbytes 8 kbytes
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 l bank 0 (8 kbytes) l bank 1 (8 kbytes) l bank 2 (8 kbytes) l bank 126 (8 kbytes) l bank 127 (8 kbytes) 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.  if any 8-kbyte area (l bank) specified by the virtual flash l bank registers 0 to 7 is accessed, its corresponding internal ram area is accessed. during virtual flash emulation mode, internal ram can be accesse d for read and write from both the internal ram area and the virtual flash set area. h'0080 4000 h'0080 6000 h'0080 8000 h'0081 2000 8 kbytes 8 kbytes 8 kbytes 8 kbytes figure 6.7.5 virtual flash emulation area divided in 8-kbyte units for m32195f4 h'0000 0000 h'0000 2000 h'0000 4000 h'0007 e000 h'0007 c000 l bank 0 (8 kbytes) l bank 1 (8 kbytes) l bank 2 (8 kbytes) l bank 62 (8 kbytes) l bank 63 (8 kbytes) 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.  if any 8-kbyte area (l bank) specified by the virtual flash l bank registers 0 to 3 is accessed, its corresponding internal ram area is accessed. during virtual flash emulation mode, internal ram can be accesse d for read and write from both the internal ram area and the virtual flash set area. h'0080 4000 h'0080 6000 h'0080 8000 h'0080 a000 8 kbytes 8 kbytes 8 kbytes 8 kbytes
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) p1 data register (p1data) p2 data register (p2data) p3 data register (p3data) p4 data register (p4data) p6 data register (p6data) p7 data register (p7data) p8 data register (p8data) p9 data register (p9data) p10 data register (p10data) p11 data register (p11data) p12 data register (p12data) p13 data register (p13data) p15 data register (p15data) p17 data register (p17data) p22 data register (p22data) note: ? n = 0?13, 15, 17, 22 (not including p5) b bit name function r w 0(8) pn0dt r w port pn0 data bit depends on how the port direction register is set 1(9) pn1dt if direction bit = "0" (input mode) port pn1 data bit 0: port input pin = "l" 2(10) pn2dt 1: port input pin = "h" port pn2 data bit if direction bit = "1" (output mode) (note 1) 3(11) pn3dt 0: port output latch = "0" / port pin level = "l" port pn3 data bit 1: port output latch = "1" / port pin level = "h" 4(12) pn4dt port pn4 data bit write to the port output latch 5(13) pn5dt port pn5 data bit 6(14) pn6dt port pn6 data bit 7(15) pn7dt port pn7 data bit note 1: to select the port data to read, use the port input special function control register?s port input data select bit (pis el). notes: ? following bits are not provided (read as "0," writing has no effect): p40, p60, p65?p67, p90?p92, p120?p123, p151, p152, p154?p157, p170?p173, p176, p177, p222, p223, p226, p227 ? the sbi# pin input level can be read out by reading the p64dt bit. writing to the p64dt bit has no effect. ? the mod0 and mod1 pin input levels can be read out by reading the p80dt and p81dt bits, respectively. writing to the p80dt and p81dt bits has no effect. ? p221 is an input-only port. writing to the p221dt bit has no effect. 8.3 input/output port related registers b0 123456b7 (b8 9 10 11 12 13 14 b15) pn0dt pn1dt pn2dt pn3dt pn4dt pn5dt pn6dt pn7dt ????????
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) p1 direction register (p1dir) p2 direction register (p2dir) p3 direction register (p3dir) p4 direction register (p4dir) p6 direction register (p6dir) p7 direction register (p7dir) p8 direction register (p8dir) p9 direction register (p9dir) p10 direction register (p10dir) p11 direction register (p11dir) p12 direction register (p12dir) p13 direction register (p13dir) p15 direction register (p15dir) p17 direction register (p17dir) p22 direction register (p22dir) note: ? n = 0?13, 15, 17, 22 (not including p5) b bit name function r w 0(8) pn0dr 0: input mode r w port pn0 direction bit 1: output mode 1(9) pn1dr port pn1 direction bit 2(10) pn2dr port pn2 direction bit 3(11) pn3dr port pn3 direction bit 4(12) pn4dr port pn4 direction bit 5(13) pn5dr port pn5 direction bit 6(14) pn6dr port pn6 direction bit 7(15) pn7dr port pn7 direction bit notes: ? following bits are not provided (read as 0, writing has no effect): p40, p60, p64?p67, p80, p81, p90?p92, p120?p123, p151, p152, p154?p157, p170?p173, p176, p177, p222, p223, p226, p227 ? all ports are set for input mode upon exiting the reset state. ? p221 is an input-only port. fix it to "0" when write. ? 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. b0 123456b7 (b8 9 10 11 12 13 14 b15) pn0dr pn1dr pn2dr pn3dr pn4dr pn5dr pn6dr pn7dr 00000000 8.3 input/output port related registers
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) b bit name function r w 0 p00md 0: p00/dd0 (note 1) r w port p00 operation mode bit 1: db0/to21 (note 2) 1 p01md 0: p01/dd1 (note 1) r w port p01 operation mode bit 1: db1/to22 (note 2) 2 p02md 0: p02/dd2 (note 1) r w port p02 operation mode bit 1: db2/to23 (note 2) 3 p03md 0: p03/dd3 (note 1) r w port p03 operation mode bit 1: db3/to24 (note 2) 4 p04md 0: p04/dd4 (note 1) r w port p04 operation mode bit 1: db4/to25 (note 2) 5 p05md 0: p05/dd5 (note 1) r w port p05 operation mode bit 1: db5/to26 (note 2) 6 p06md 0: p06/dd6 (note 1) r w port p06 operation mode bit 1: db6/to27 (note 2) 7 p07md 0: p07/dd7 (note 1) r w port p07 operation mode bit 1: db7/to28 (note 2) note 1: the port and dd input functions both are effective. to use the port as dd input pin, set the port direction for input. note 2: which function of the pin is used depends on how the p0 peripheral function select register is set. note: ? during processor mode, settings of this register have no effect, and the ports function as external bus interface signal pins ( db0-db7). 8.3 input/output port related registers b0123456b7 p00md p01md p02md p03md p04md p05md p06md p07md 00000000 p0 peripheral function select register (p0smod) b bit name function r w 0 p00smd 0: db0 r w port p00 peripheral function select bit 1: to21 1 p01smd 0: db1 r w port p01 peripheral function select bit 1: to22 2 p02smd 0: db2 r w port p02 peripheral function select bit 1: to23 3 p03smd 0: db3 r w port p03 peripheral function select bit 1: to24 4 p04smd 0: db4 r w port p04 peripheral function select bit 1: to25 5 p05smd 0: db5 r w port p05 peripheral function select bit 1: to26 6 p06smd 0: db6 r w port p06 peripheral function select bit 1: to27 7 p07smd 0: db7 r w port p07 peripheral function select bit 1: to28 notes: ? during processor mode, settings of this register have no effect, and the ports function as external bus interface signal pins ( db0-db7). ? the value of this register can only be modified when the corresponding p0 operation mode register bit = 0 (set for port). then set the corresponging p0 operation mode register bit to "1." ? during single-chip mode, selecting the external bus interface function is prohibited. b0123456b7 p00smd p01smd p02smd p03smd p04smd p05smd p06smd p07smd 00000000
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) b bit name function r w 8 p10md 0: p10/dd8 (note 1) r w port p10 operation mode bit 1: db8/to29 (note 2) 9 p11md 0: p11/dd9 (note 1) r w port p11 operation mode bit 1: db9/to30 (note 2) 10 p12md 0: p12/dd10 (note 1) r w port p12 operation mode bit 1: db10/to31 (note 2) 11 p13md 0: p13/dd11 (note 1) r w port p13 operation mode bit 1: db11/to32 (note 2) 12 p14md 0: p14/dd12 (note 1) r w port p14 operation mode bit 1: db12/to33 (note 2) 13 p15md 0: p15/d13 (note 1) r w port p15 operation mode bit 1: db13/to34 (note 2) 14 p16md 0: p16/dd14 (note 1) r w port p16 operation mode bit 1: db14/to35 (note 2) 15 p17md 0: p17/dd15 (note 1) r w port p17 operation mode bit 1: db15/to36 (note 2) note 1: the port and dd input functions both are effective. to use the port as dd input pin, set the port direction for input. note 2: which function of the pin is used depends on how the p1 peripheral function select register is set. note: ? during processor mode, settings of this register have no effect, and the ports function as external bus interface signal pins ( db8-db15). b8 9 1011121314b15 p10md p11md p12md p13md p14md p15md p16md p17md 00000000 8.3 input/output port related registers p1 peripheral function select register (p1smod) b bit name function r w 8 p10smd 0: db8 r w port p10 peripheral function select bit 1: to29 9 p11smd 0: db9 r w port p11 peripheral function select bit 1: to30 10 p12smd 0: db10 r w port p12 peripheral function select bit 1: to31 11 p13smd 0: db11 r w port p13 peripheral function select bit 1: to32 12 p14smd 0: db12 r w port p14 peripheral function select bit 1: to33 13 p15smd 0: db13 r w port p15 peripheral function select bit 1: to34 14 p16smd 0: db14 r w port p16 peripheral function select bit 1: to35 15 p17smd 0: db15 r w port p17 peripheral function select bit 1: to36 notes: ? during processor mode, settings of this register have no effect, and the ports function as external bus interface signal pins ( db8-db15). ? the value of this register can only be modified when the corresponding p1 operation mode register bit = 0 (set for port). then set the corresponging p1 operation mode register bit to "1." ? during single-chip mode, selecting the external bus interface function is prohibited. b8 9 1011121314b15 p10smd p11smd p12smd p13smd p14smd p15smd p16smd p17smd 00000000
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) b bit name function r w 0 p20md 0: p20/dd24 (note 1) r w port p20 operation mode bit 1: a23 1 p21md 0: p21/dd25 (note 1) r w port p21 operation mode bit 1: a24 2 p22md 0: p22/dd26 (note 1) r w port p22 operation mode bit 1: a25 3 p23md 0: p23/dd27 (note 1) r w port p23 operation mode bit 1: a26 4 p24md 0: p24/dd28 (note 1) r w port p24 operation mode bit 1: a27 5 p25md 0: p25/dd29 (note 1) r w port p25 operation mode bit 1: a28 6 p26md 0: p26/dd30 (note 1) r w port p26 operation mode bit 1: a29 7 p27md 0: p27/dd31 (note 1) r w port p27 operation mode bit 1: a30 note 1: the port and dd input functions both are effective. to use the port as dd input pin, set the port direction for input. notes: ? during single-chip mode, settings of this register have no effect, and the port functions as port input/output or dd input pin. ? during processor mode, settings of this register have no effect, and the ports function as external bus interface signal pins (a23-a30). 8.3 input/output port related registers
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) b bit name function r w 8 p30md 0: p30/dd16 (note 1) r w port p30 operation mode bit 1: a15/tin4 (note 2) 9 p31md 0: p31/dd17 (note 1) r w port p31 operation mode bit 1: a16/tin5 (note 2) 10 p32md 0: p32/dd18 (note 1) r w port p32 operation mode bit 1: a17/tin6 (note 2) 11 p33md 0: p33/dd19 (note 1) r w port p33 operation mode bit 1:a18/tin17 (note 2) 12 p34md 0: p34/dd20 (note 1) r w port p34 operation mode bit 1:a19/tin30 (note 2) 13 p35md 0: p35/dd21 (note 1) r w port p35 operation mode bit 1:a20/tin31 (note 2) 14 p36md 0: p36/dd22 (note 1) r w port p36 operation mode bit 1: a21/tin32 (note 2) 15 p37md 0: p37/dd23 (note 1) r w port p37 operation mode bit 1: a22/tin33 (note 2) note 1: the port and dd input functions both are effective. to use the port as dd input pin, set the port direction for input. note 2: which function of the pin is used depends on how the p3 peripheral function select register is set. note: ? during processor mode, settings of this register have no effect, and the ports function as external bus interface signal pins ( a15-a22). b8 9 1011121314b15 p30md p31md p32md p33md p34md p35md p36md p37md 00000000 8.3 input/output port related registers p3 peripheral function select register (p3smod) b bit name function r w 8 p30smd 0: a15 r w port p30 peripheral function select bit 1: tin4 9 p31smd 0: a16 r w port p31 peripheral function select bit 1: tin5 10 p32smd 0: a17 r w port p32 peripheral function select bit 1: tin6 11 p33smd 0: a18 r w port p33 peripheral function select bit 1: tin7 12 p34smd 0: a19 r w port p34 peripheral function select bit 1: tin30 13 p35smd 0: a20 r w port p35 peripheral function select bit 1: tin31 14 p36smd 0: a21 r w port p36 peripheral function select bit 1: tin32 15 p37smd 0: a22 r w port p37 peripheral function select bit 1: tin33 notes: ? during processor mode, settings of this bit have no effect and the ports function as external bus interface signal pins (a15-a2 2). ? the value of this register can only be modified when the corresponding p3 operation mode register bit = 0 (set for port). then set the corresponging p3 operation mode register bit to "1." ? during single-chip mode, selecting the external bus interface function is prohibited. b8 9 1011121314b15 p30smd p31smd p32smd p33smd p34smd p35smd p36smd p37smd 00000000
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) b bit name function r w 0?3 no function assigned. fix to "0." 00 4 p44md 0: p44 r w port p44 operation mode bit 1: cs0#/tin8 (note 1) 5 p45md 0: p45 r w port p45 operation mode bit 1: cs1#/tin9 (note 1) 6 p46md 0: p46 r w port p46 operation mode bit 1: a13/tin10 (note 1) 7 p47md 0: p47 r w port p47 operation mode bit 1: a14/tin11 (note 1) note 1: which function of the pin is used depends on how the p4 peripheral function select register is set. note: ? during processor mode, settings of this register have no effect, and the ports function as external bus interface signa l pins (cs0#, cs1#, a13 and a14). p4 peripheral function select register (p4smod) b bit name function r w 0?3 no function assigned. fix to "0." 00 4 p44smd 0: cs0# r w port p44 peripheral function select bit 1: tin8 5 p45smd 0: cs1# r w port p45 peripheral function select bit 1: tin9 6 p46smd 0: a13 r w port p46 peripheral function select bit 1: tin10 7 p47smd 0: a14 r w port p47 peripheral function select bit 1: tin11 notes: ? during processor mode, settings of this register have no effect, and the ports function as external bus interface sig nal pins (cs0#, cs1#, a13 and a14). ? the value of this register can only be modified when the corresponding p4 operation mode register bit = 0 (set for port). then set the corresponging p4 operation mode register bit to "1." ? during single-chip mode, selecting the external bus interface function is prohibited. b0123456b7 p44smd p45smd p46smd p47smd 00000000 8.3 input/output port related registers b0123456b7 p44md p45md p46md p47md 00000000
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) b bit name function r w 8 p70md 0: p70 r w port p70 operation mode bit 1: clkout/wr#/bclk (note 1) 9 p71md 0: p71 r w port p71 operation mode bit 1: wait# (note 2) 10 p72md 0: p72 r w port p72 operation mode bit 1: hreq#/tin27 (note 3) 11 p73md 0: p73 r w port p73 operation mode bit 1: hack#/tin26 (note 3) 12 p74md 0: p74 r w port p74 operation mode bit (note 4) 1: rtdtxd/txd3/nbdd0 (note 3) 13 p75md 0: p75 r w port p75 operation mode bit (note 4) 1: rtdrxd/rxd3/nbdd1 (note 3) 14 p76md 0: p76 r w port p76 operation mode bit (note 4) 1: rtdack/ctx1/nbdd2 (note 3) 15 p77md 0: p77 r w port p77 operation mode bit (note 4) 1: rtdclk/crx1/nbdd3 (note 3) note 1: these functions are selected using the p7 peripheral function select register and bus mode control register. note 2: during single-chip mode, settings of this register have no effect, and the port functions as port input/output pin. note 3: these functions are selected using the p7 peripheral function select register. note 4: if the nbd function is selected by the nbd pin control register, the port functions as nbd pin no matter how this register is set. b8 9 1011121314b15 p70md p71md p72md p73md p74md p75md p76md p77md 00000000 8.3 input/output port related registers p7 peripheral function select register (p7smod) b bit name function r w 8 p70smd 0: clkout/wr# (note 1) r w port p70 peripheral function select bit 1: bclk 9 no function assigned. fix to "0." 00 10 p72smd 0: hreq# r w port p72 peripheral function select bit 1: tin27 11 p73smd 0: hack# r w port p73 peripheral function select bit 1: tin26 12 p74smd (note 2) 0: rtdtxd r w port p74 peripheral function select bit 1: txd3 13 p75smd (note 2) 0: rtdrxd r w port p75 peripheral function select bit 1: rxd3 14 p76smd (note 2) 0: rtdack r w port p76 peripheral function select bit 1: ctx1 15 p77smd (note 2) 0: rtdclk r w port p77 peripheral function select bit 1: crx1 note 1: which function of the pin is used depends on how the bus mode control register is set. note 2: if the nbd function is selected by the nbd pin control register, the port functions as nbd pin no matter how this register is set. note: ? the value of this register can only be modified when the corresponding p7 operation mode register bit = 0 (set for port ). then set the corresponging p7 operation mode register bit to "1." b8 9 1011121314b15 p70smd p72smd p73smd p74smd p75smd p76smd p77smd 00000000
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) b bit name function r w 0, 1 no function assigned. fix to "0." 00 2 p82md 0: p82 r w port p82 operation mode bit 1: txd0/to26 (note 1) 3 p83md 0: p83 r w port p83 operation mode bit 1: rxd0/to25 (note 1) 4 p84md 0: p84 r w port p84 operation mode bit 1: sclki0/sclko0/to24 (note 1) 5 p85md 0: p85 r w port p85 operation mode bit 1: txd1/to23 (note 1) 6 p86md 0: p86 r w port p86 operation mode bit 1: rxd1/to22 (note 1) 7 p87md 0: p87 r w port p87 operation mode bit 1: sclki1/sclko1/to21 (note 1) note 1: which function of the pin is used depends on how the p8 peripheral function select register is set. p8 peripheral function select register (p8smod) b bit name function r w 0, 1 no function assigned. fix to "0." 00 2 p82smd 0: txd0 r w port p82 peripheral function select bit 1: to26 3 p83smd 0: rxd0 r w port p83 peripheral function select bit 1: to25 4 p84smd 0: sclki0/sclko0 r w port p84 peripheral function select bit 1: to24 5 p85smd 0:txd1 r w port p85 peripheral function select bit 1: to23 6 p86smd 0: rxd1 r w port p86 peripheral function select bit 1: to22 7 p87smd 0: sclki1/sclko1 r w port p87 peripheral function select bit 1: to21 note: ? the value of this register can only be modified when the corresponding p8 operation mode register bit = 0 (set for por t). then set the corresponging p8 operation mode register bit to "1." b0123456b7 p82smd p83smd p84smd p85smd p86smd p87smd 00000000 b0123456b7 p82md p83md p84md p85md p86md p87md 00000000 8.3 input/output port related registers
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) b bit name function r w 8?10 no function assigned. fix to "0." 00 11 p93smd 0: to16 r w port p93 peripheral function select bit 1: sclki5/sclko5 12 p94smd 0: to17 r w port p94 peripheral function select bit 1: txd5 13 p95smd 0: to18 r w port p95 peripheral function select bit 1: rxd5 14, 15 no function assigned. fix to "0." 00 note: ? the value of this register can only be modified when the corresponding p9 operation mode register bit = 0 (set for por t). then set the corresponging p9 operation mode register bit to "1." p9 operation mode register (p9mod) b bit name function r w 8?10 no function assigned. fix to "0." 00 11 p93md 0: p93 r w port p93 operation mode bit 1: to16/sclki5/sclko5 (note 2) 12 p94md 0: p94/dd15 (note 1) r w port p94 operation mode bit 1: to17/txd5 (note 2) 13 p95md 0: p95/dd14 (note 1) r w port p95 operation mode bit 1: to18/rxd5 (note 2) 14 p96md 0: p96/dd13 (note 1) r w port p96 operation mode bit 1: to19 15 p97md 0: p97/dd12 (note 1) r w port p97 operation mode bit 1: to20 note 1: the port and dd input functions both are effective. to use the port as dd input pin, set the port direction for input. note 2: which function of the pin is used depends on how the p9 peripheral function select register is set. 8.3 input/output port related registers b8 9 1011121314b15 p93md p94md p95md p96md p97md 00000000 b8 9 1011121314b15 p93smd p94smd p95smd 00000000
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) b bit name function r w 0 p100md 0: p100 r w port p100 operation mode bit 1: to8 1 p101md 0: p101 r w port p101 operation mode bit 1: to9/crx0 (note 1) 2 p102md 0: p102 r w port p102 operation mode bit 1: to10/ctx0 (note 1) 3 p103md 0: p103 r w port p103 operation mode bit 1: to11/tin24 (note 1) 4 p104md 0: p104/dd3 (note 2) r w port p104 operation mode bit 1: to12/tin25 (note 1) 5 p105md 0: p105/dd2 (note 2) r w port p105 operation mode bit 1: to13/sclki4/sclko4 (note 1) 6 p106md 0: p106/dd1 (note 2) r w port p106 operation mode bit 1: to14/txd4 (note 1) 7 p107md 0: p107/dd0 (note 2) r w port p107 operation mode bit 1: to15/rxd4 (note 1) note 1: which function of the pin is used depends on how the p10 peripheral function select register is set. note 2: the dd input functions are effective depending on the settings of dd input pin select register (ddsel). (for details, r efer to the chapter 14, "direct ram interface") to use the port as dd input pin, set the port direction for input. b0123456b7 p100md p101md p102md p103md p104md p105md p106md p107md 00000000 p10 peripheral function select register (p10smod) b bit name function r w 0 no function assigned. fix to "0." 00 1 p101smd 0: to9 r w port p101 peripheral function select bit (note 1) 1: crx0 2 p102smd 0: to10 r w port p102 peripheral function select bit 1: ctx0 3 p103smd 0: to11 r w port p103 peripheral function select bit 1: tin24 4 p104smd 0: to12 r w port p104 peripheral function select bit 1: tin25 5 p105smd 0:to13 r w port p105 peripheral function select bit 1: sclki4/sclko4 6 p106smd 0: to14 r w port p106 peripheral function select bit 1: txd4 7 p107smd 0: to15 r w port p107 peripheral function select bit 1: rxd4 note 1: when not using this pin as crx0 pin, always be sure to set the bit to "0." note: ? the value of this register can only be modified when the corresponding p10 operation mode register bit = 0 (set for po rt). then set the corresponging p10 operation mode register bit to "1." 8.3 input/output port related registers b0123456b7 p101smd p102smd p103smd p104smd p105smd p106smd p107smd 00000000
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) b bit name function r w 8 p110smd 0: to0 r w port p110 peripheral function select bit 1: to29 9 p111smd 0: to1 r w port p111 peripheral function select bit 1: to30 10 p112smd 0: to2 r w port p112 peripheral function select bit 1: to31 11 p113smd 0: to3 r w port p113 peripheral function select bit 1: to32 12 p114smd 0: to4 r w port p114 peripheral function select bit 1: to33 13 p115smd 0: to5 r w port p115 peripheral function select bit 1: to34 14 p116smd 0: to6 r w port p116 peripheral function select bit 1: to35 15 p117smd 0: to7 r w port p117 peripheral function select bit 1: to36 note: ? the value of this register can only be modified when the corresponding p11 operation mode register bit = 0 (set for po rt). then set the corresponging p11 operation mode register bit to "1." p11 operation mode register (p11mod) b bit name function r w 8 p110md 0: p110/dd11 (note 1) r w port p110 operation mode bit 1: to0/to29 (note 2) 9 p111md 0: p111/dd10 (note 1) r w port p111 operation mode bit 1: to1/to30 (note 2) 10 p112md 0: p112/dd9 (note 1) r w port p112 operation mode bit 1: to2/to31 (note 2) 11 p113md 0: p113/dd8 (note 1) r w port p113 operation mode bit 1: to3/to32 (note 2) 12 p114md 0: p114/dd7 (note 1) r w port p114 operation mode bit 1: to4/to33 (note 2) 13 p115md 0: p115/dd6 (note 1) r w port p115 operation mode bit 1: to5/to34 (note 2) 14 p116md 0: p116/dd5 (note 1) r w port p116 operation mode bit 1: to6/to35 (note 2) 15 p117md 0: p117/dd4 (note 1) r w port p117 operation mode bit 1: to7/to36 (note 2) note 1: the port and dd input functions both are effective. to use the port as dd input pin, set the port direction for input. note 2: which function of the pin is used depends on how the p11 peripheral function select register is set. 8.3 input/output port related registers b8 9 1011121314b15 p110md p111md p112md p113md p114md p115md p116md p117md 00000000 b8 9 1011121314b15 p110smd p111smd p112smd p113smd p114smd p115smd p116smd p117smd 00000000
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) b bit name function r w 0?3 no function assigned. fix to "0." 00 4 p124md 0: p124/dd3 (note 1) r w port p124 operation mode bit (note 3) 1: tclk0/a9 (note 2) 5 p125md 0: p125/dd2 (note 1) r w port p125 operation mode bit (note 3) 1: tclk1/a10 (note 2) 6 p126md 0: p126/dd1 (note 1) r w port p126 operation mode bit 1: tclk2/cs2# (note 2) 7 p127md 0: p127/dd0 (note 1) r w port p127 operation mode bit 1: tclk3/cs3# (note 2) note 1: the dd input functions are effective depending on the settings of dd input pin select register (ddsel). (for details, r efer to the chapter 14, "direct ram interface") to use the port as dd input pin, set the port direction for input. note 2: which function of the pin is used depends on how the p12 peripheral function select register is set. note 3: during processor mode, settings of this bit have no effect and the port functions as external bus interface signal pin (a9 or a 10). 8.3 input/output port related registers b0123456b7 p124md p125md p126md p127md 00000000 p12 peripheral function select register (p12smod) b bit name function r w 0?3 no function assigned. fix to "0." 00 4 p124smd 0: tclk0 r w port p124 peripheral function select bit (note 1) 1: a9 5 p125smd 0: tclk1 r w port p125 peripheral function select bit (note 1) 1: a10 6 p126smd 0: tclk2 r w port p126 peripheral function select bit 1: cs2# 7 p127smd 0: tclk3 r w port p127 peripheral function select bit 1: cs3# note 1: during processor mode, settings of this bit have no effect and the port functions as external bus interface signal pin (a9 or a 10). note: ? the value of this register can only be modified when the corresponding p12 operation mode register bit = 0 (set for por t). then set the corresponging p12 operation mode register bit to "1." b0123456b7 p124smd p125smd p126smd p127smd 00000000
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) b bit name function r w 8?11 no function assigned. fix to "0." 00 12 p134smd 0: tin20/din4 (note 1) r w port p134 peripheral function select bit 1: txd3 13 p135smd 0: tin21 r w port p135 peripheral function select bit (note 2) 1: rxd3 14 p136smd 0: tin22 r w port p136 peripheral function select bit (note 3) 1: crx1 15 p137smd 0: tin23 r w port p137 peripheral function select bit 1: ctx1 note 1: tin input and din input functions both are effective. note 2: when not using this pin as rxd3 pin, always be sure to set the bit to "0." note 3: when not using this pin as crx1 pin, always be sure to set the bit to "0." note: ? the value of this register can only be modified when the corresponding p13 operation mode register bit = 0 (set for por t). then set the corresponging p13 operation mode register bit to "1." p13 operation mode register (p13mod) b bit name function r w 8 p130md 0: p130 r w port p130 operation mode bit 1: tin16/pwmoff0/din0 (note 1) 9 p131md 0: p131 r w port p131 operation mode bit 1: tin17/pwmoff1/din1 (note 1) 10 p132md 0: p132 r w port p132 operation mode bit 1: tin18/din2 (note 2) 11 p133md 0: p133 r w port p133 operation mode bit 1: tin19/din3 (note 2) 12 p134md 0: p134 r w port p134 operation mode bit 1: tin20/txd3/din4 (note 3) 13 p135md 0: p135 r w port p135 operation mode bit 1: tin21/rxd3 (note 3) 14 p136md 0: p136 r w port p136 operation mode bit 1: tin22/crx1 (note 3) 15 p137md 0: p137 r w port p137 operation mode bit 1: tin23/ctx1 (note 3) note 1: tin input, din input, and pwmoff input functions all are effective. note 2: tin input and din input functions both are effective. note 3: which function of the pin is used depends on how the p13 peripheral function select register is set. b8 9 1011121314b15 p130md p131md p132md p133md p134md p135md p136md p137md 00000000 8.3 input/output port related registers b8 9 1011121314b15 p134smd p135smd p136smd p137smd 00000000
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) b bit name function r w 8 p150smd 0: tin0 r w port p150 peripheral function select bit 1: clkout/wr# (note 1) 9, 10 no function assigned. fix to "0." 00 11 p153smd 0: tin3 r w port p153 peripheral function select bit (note 2) 1: wait# 12?15 no function assigned. fix to "0." 00 note 1: which function of the pin is used depends on how the bus mode control register is set. note 2: during single-chip mode, selecting the external bus interface signal function is prohibited. note: ? the value of this register can only be modified when the corresponding p15 operation mode register bit = 0 (set for por t). then set the corresponging p15 operation mode register bit to "1." p15 operation mode register (p15mod) b bit name function r w 8 p150md 0: p150 r w port p150 operation mode bit 1: tin0/clkout/wr# (note 1) 9, 10 no function assigned. fix to "0." 00 11 p153md 0: p153 r w port p153 operation mode bit 1: tin3/wait# (note 2) 12?15 no function assigned. fix to "0." 00 note 1: which function of the pin is used depends on how the p15 peripheral function select register and bus mode control register are set. note 2: which function of the pin is used depends on how the p15 peripheral function select register is set. b8 9 1011121314b15 p150md p153md 00000000 8.3 input/output port related registers b8 9 1011121314b15 p150smd p153smd 00000000
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) b bit name function r w 8?11 no function assigned. fix to "0." 00 12 p174md 0: p174 r w port p174 operation mode bit 1: txd2/to28 (note 1) 13 p175md 0: p175 r w port p175 operation mode bit 1: rxd2/to27 (note 1) 14, 15 no function assigned. fix to "0." 00 note 1: which function of the pin is used depends on how the p17 peripheral function select register is set. 8.3 input/output port related registers b8 9 1011121314b15 p174md p175md 00000000 p17 peripheral function select register (p17smod) b bit name function r w 8?11 no function assigned. fix to "0." 00 12 p174smd 0: txd2 r w port p174 peripheral function select bit 1: to28 13 p175smd 0: rxd2 r w port p175 peripheral function select bit 1: to27 14, 15 no function assigned. fix to "0." 00 note: ? the value of this register can only be modified when the corresponding p17 operation mode register bit = 0 (set for por t). then set the corresponging p17 operation mode register bit to "1." b8 9 1011121314b15 p174smd p175smd 00000000
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) b bit name function r w 0 p220smd 0: ctx0 r w port p220 peripheral function select bit 1: hack# 1 p221smd 0: crx0 r w port p221 peripheral function select bit 1: hreq# 2, 3 no function assigned. fix to "0." 00 4 p224smd 0: a11 r w port p224 peripheral function select bit (note 1) 1: cs2# 5 p225smd 0: a12 r w port p225 peripheral function select bit (note 1) 1: cs3# 6, 7 no function assigned. fix to "0." 00 note 1: during single-chip mode, selecting the external bus interface signal function is prohibited. note: ? the value of this register can only be modified when the corresponding p22 operation mode register bit = 0 (set for por t). then set the corresponging p22 operation mode register bit to "1." p22 operation mode register (p22mod) b bit name function r w 0 p220md 0: p220 r w port p220 operation mode bit 1: ctx0/hack# (note 1) 1 p221md 0: p221 r w port p221 operation mode bit 1: crx0/hreq# (note 1) 2, 3 no function assigned. fix to "0." 00 4 p224md 0: p224 r w port p224 operation mode bit (note 2) 1: a11/cs2# (note 1) 5 p225md 0: p225 r w port p225 operation mode bit (note 2) 1: a12/cs3# (note 1) 6, 7 no function assigned. fix to "0." 00 note 1: which function of the pin is used depends on how the p22 peripheral function select register is set. note 2: during processor mode, settings of this bit have no effect and the port functions as external bus interface signal pin (a11/cs2 # or a12/cs3#). 8.3 input/output port related registers b0123456b7 p220smd p221smd p224smd p225smd 00000000 b0123456b7 p220md p221md p224md p225md 00000000
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) b bit name function r w 8?10 no function assigned. fix to "0." 00 11 xstat 0: xin oscillating r(note 1) xin oscillation status bit 1: xin inactive 12, 13 no function assigned. fix to "0." 00 14 pisel 0: content of port output latch r w port input data select bit 1: port pin level 15 pien0 0: disable input r w port input enable bit 1: enable input note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. note 2: after switching from output mode to input mode in the port direction register, or after setting port input enable (pien 0) bit to "1" (input enable), pin level can be read after 2bclk period. (1) xstat (xin oscillation status) bit (bit 11) ? conditions under which xstat bit is set to "1" xstat bit is set to "1" upon detecting that xin oscillation has stopped. when xin remains at the same level for a predetermined time (3 bclk periods up to 4 bclk periods) on the basis of threshold, xin oscillation is assumed to have stopped. when operating normally, xin changes state (high or low) once every bclk period. ? conditions under which xstat bit is cleared to "0" xstat bit is cleared to "0" by a system reset or by writing "0." if xstat bit is cleared at the same time it is set above, the former has priority. writing "1" to xstat bit is ignored. ? method for using xstat bit to detect xin oscillation stoppage because the m32r/ecu internally contains a pll, the internal clock remains active even when xin oscilla- tion has stopped. by reading xstat bit without clearing it once after exiting the reset state, it is possible to know whether xin has ever stopped since the reset signal was deasserted. similarly, by reading xstat bit after clearing it by writing "0," it is possible to know the current oscillating status of xin. however, there must be an interval of at least 5 bclk periods (20 cpu clock periods) between read and write. pay attention about processing when xstat bit is set to "1," make double check after clearing xstat bit etc. 8.3 input/output port related registers b8 9 1011121314b15 xstat pisel pien0 00000000
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) port group 3 input level setting register (pg3lev) note: ? the pg3lev register bits 8?11 have no functions assigned. port group 4,5 input level setting register (pg45lev) port group 6,7 input level setting register (pg67lev) port group 8 input level setting register (pg8lev) note: ? the pg8lev register bits 4?7 have no functions assigned. b8 9 1011121314b15 wf3sel pt3sel vt3sel0 vt3sel1 00000001 b0123456b7 wf0sel pt0sel vt0sel0 vt0sel1 wf1sel pt1sel vt1sel0 vt1sel1 00010001 b0123456b7 wf4sel pt4sel vt4sel0 vt4sel1 wf5sel pt5sel vt5sel0 vt5sel1 00010001 b8 9 1011121314b15 wf6sel pt6sel vt6sel0 vt6sel1 wf7sel pt7sel vt7sel0 vt7sel1 00010001 b0123456b7 wf8sel pt8sel vt8sel0 vt8sel1 00010000 (note 2) b bit name function r w 0(4) wfnsel (note 1) 0: select standard input for each pin r w 8(12) group n dual-function input select bit 1: select threshold switching function 1-3 ptnsel 000 : finput cmos, select 0.35vcce r w (9 ~ 11) (group n port input select bit ) 001 : input cmos, select 0.50vcce vtnsel0, vtnsel1 010 : input cmos, select 0.70vcce (group n input threshold select bit) 011 : settings inhibited 100 : schmitt input , vt += 0.50vcce, vt -= 0.35vcce 101 : settings inhibited 110 : schmitt input , vt += 0.70vcce, vt -= 0.35vcce 111 : schmitt input , vt += 0.70vcce, vt -= 0.50vcce 4(12) wfnsel (note 1) 0 : select standard input for each pin r w group n dual-function input select bit 1 : select threshold switching function 5 ~ 7 ptnsel 000 : input cmos, select 0.35vcce r w (13 ~ 15) (group n port input select bit) 001 : input cmos, select 0.50vcce vtnsel0, vtnsel1 010 : input cmos, select 0.70vcce (group n input threshold select bit) 011 : settings inhibited 100 : schmitt input , vt += 0.50vcce, avt -= 0.35vcce 101 : settings inhibited 110 : schmitt input , vt += 0.70vcce, avt -= 0.35vcce 111 : schmitt input , vt += 0.70vcce, avt -= 0.50vcce note 1.when the multipurpose port function pin is selected (set bit corresponding px operation mode register(pxmod) to "0"), setting value for wfnsel is invalid and threshold switch function is effective. note 2. upon exiting reset, vtnsel1 bit value is "1" and the other bit is set to "0."
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) port group 3 output drive capability setting register (pg3drv) port group 4,5 output drive capability setting register (pg45drv) port group 6,7 output drive capability setting register (pg67drv) note: ? the pg8drv register bits 4?7 have no functions assigned. port group 8 output drive capability setting register (pg8drv) note: ? the pg3drv register bits 8?14 have no functions assigned. b bit name function r w 0?2 no function assigned. fix to "0." 00 (8?10) 3 (11) gndsel (note 1) 0: 50% r w group n output drive capability select bit 1: 100% 4?6 no function assigned. fix to "0." 00 (12?14) 3 (15) gndsel (note 1) 0: 50% r w group n output drive capability select bit 1: 100% note 1:the 50% drive capability is equivalent to that of the m32r/ecu series without the port output drive capability setting function. note : ? for the p70/clkout/wr#/bclk pin, the drive capability can be set to one of four capability levels by using the p70 out put drive capability setting register. note that 50% of gndsel bit and 50% of p70dsel bit drive capabilities are equivalent. 8.5 port output drive capability setting function b0123456b7 g0dsel g1dsel 00000000 b8 9 1011121314b15 g3dsel 00000000 b0123456b7 g4dsel g5dsel 00000000 b8 9 1011121314b15 g6dsel g7dsel 00000000 b0123456b7 g8dsel 00000000
input/output ports and pin functions 8-36 8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b bit name function r w 8?12 no function assigned. fix to "0." 00 13 p70dselen (note 1) 0: disable setting r w p70 output drive capability setting enable bit 1: enable setting 14, 15 p70dsel (note 2)(note 3) 00: 25% low r w p70 output drive capability setting bit 01: 50% 10: 75% 11: 100% high note 1: setting this bit to "0" nullifies settings made to this register, so that the drive capability set by the group 0,1 out put drive capability setting register is assumed. when this bit is set to "1," settings of the group 0,1 output drive capability setting register have no effect and the drive capability is controlled by the p70dsel bit. note 2: this bit selects the drive capability of the p70/clkout/wr#/bclk pin. for settings of this bit to take effect, the p70d selen bit must be set to "1." note 3: the 50% drive capability is equivalent to that of the m32r/ecu series without the port output drive capability setting function. note : ? for the pins other than the p70/clkout/wr#/bclk pin, the drive capability can be set by using the port group output dr ive capability setting registers. note that 50% of gndsel and 50% of p70dsel drive capabilities are equivalent. p70 output drive capability setting register (p70drv) b8 9 1011121314b15 p70dselen p70dsel 00000000 8.5 port output drive capability setting function
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) b bit name function r w 0 g0nsel 0: group 0 noise canceller used r w group 0 noise canceller disable bit 1: group 0 noise canceller not used 1 g1nsel 0: group 1 noise canceller used r w group 1 noise canceller disable bit 1: group 1 noise canceller not used 2 no function assigned. fix to "0." 00 3 g3nsel 0: group 3 noise canceller used r w group 3 noise canceller disable bit 1: group 3 noise canceller not used 4 g4nsel 0: group 4 noise canceller used r w group 4 noise canceller disable bit 1: group 4 noise canceller not used 5 no function assigned. fix to "0." 00 6 g6nsel 0: group 6 noise canceller used r w group 6 noise canceller disable bit 1: group 6 noise canceller not used 7 no function assigned. fix to "0." 00 8 g8nsel 0: group 8 noise canceller used r w group 8 noise canceller disable bit 1: group 8 noise canceller not used 9?15 no function assigned. fix to "0." 00 note: ? this register must always be accessed in halfwords. 8.6 noise canceller control function b0 1234567891011121314b15 g0nsel g1nsel g3nsel g4nsel g6nsel g8nsel 0000000000000000
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) 123456b7 b0 sadsl0 dadsl0 mdsel0 treqf0 reqsl0 tenl0 tszsl0 000000 00 b bit name function r w 0 mdsel0 0: normal mode r w dma0 transfer mode select bit 1: ring buffer mode 1 treqf0 0: transfer not requested r(note 1) dma0 transfer request flag bit 1: transfer requested 2, 3 reqsl0 00: software start or one dma2 transfer completed r w dma0 transfer request source select bit 01: a/d0 conversion completed 10: mjt (tio8_udf) 11: extended dma0 transfer request source select (dma0 channel control register 1) 4 tenl0 0: disable transfer r w dma0 transfer enable bit 1: enable transfer 5 tszsl0 0: 16 bits r w dma0 transfer size select bit 1: 8 bits 6 sadsl0 0: fixed r w dma0 source address direction select bit 1: increment 7 dadsl0 0: fixed r w dma0 destination address direction select bit 1: increment note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. 9.2 dmac related registers
dmac 9 9-7 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 dma0 channel control register 1 (dm0cnt1) 9 1011121314b15 b8 reqesel0 00000000 sadbn0 dadbn0 b bit name function r w 8, 9 sadbn0 00: bank 0 (a14=0, a15=0) r w source address bank select bit 01: bank 1 (a14=0, a15=1) (note 1)(note 2) 10: bank 2 (a14=1, a15=0) 11: settings inhibited 10, 11 dadbn0 00: bank 0 (a14=0, a15=0) r w destination address bank select bit 01: bank 1 (a14=0, a15=1) (note 1)(note 2) 10: bank 2 (a14=1, a15=0) 11: settings inhibited 12?15 reqesel0 0000: mjt (input event bus 2) r w extended dma0 transfer request source select bit 0001: mjt (tid0_udf/ovf) 0010: can (can0_s0/s31) 0011: common 1) mjt (input event bus 1) 0100: common 2) mjt (input event bus 3) 0101: common 3) mjt (output event bus 2) 0110: common 4) mjt (output event bus 3) 0111: common 5) ad0 conversion completed 1000: common 6) mjt (tin0s) 1001: common 7) mjt (tio8_udf) 1010: common 8) mjt (tin30s) 1011: common 9) mjt (tio9_udf) 1100: common 10) settings inhibited 1101: mjt (tou1_0irq) 1110: dri (din0) 1111: sio4_txd (transimit buffer empty) note 1: no transfer over the bank is possible. even when the address is incremented at the breakpoint of the bank and the sour ce/ destination addresses go over the bank, the source address bank select/destination address bank select bits are not incremented, and the bank head corresponds to the source address/destination address. note 2: because bank2 does not exist in the 32196, setting bank2(a14=1, a15=0) is prohibited. also, because bank1 and bank2 do not exist in the 32195, setting bank1(a14=0, a15=1), and bank2(a14=1, a15=0) is prohibited. 9.2 dmac related registers
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) 123456b7 b0 sadsl1 dadsl1 mdsel1 treqf1 reqsl1 tenl1 tszsl1 000000 00 b bit name function r w 0 mdsel1 0: normal mode r w dma1 transfer mode select bit 1: ring buffer mode 1 treqf1 0: transfer not requested r(note 1) dma1 transfer request flag bit 1: transfer requested 2, 3 reqsl1 00: software start r w dma1 transfer request source select bit 01: mjt (output event bus 0) 10: settings inhibited 11: extended dma1 transfer request source select (dma1 channel control register 1) 4 tenl1 0: disable transfer r w dma1 transfer enable bit 1: enable transfer 5 tszsl1 0: 16 bits r w dma1 transfer size select bit 1: 8 bits 6 sadsl1 0: fixed r w dma1 source address direction select bit 1: increment 7 dadsl1 0: fixed r w dma1 destination address direction select bit 1: increment note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write.
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) 9 1011121314b15 b8 reqesel1 00000000 sadbn1 dadbn1 b bit name function r w 8, 9 sadbn1 00: bank 0 (a14=0, a15=0) r w source address bank select bit 01: bank 1 (a14=0, a15=1) (note 1)(note 2) 10: bank 2 (a14=1, a15=0) 11: settings inhibited 10, 11 dadbn1 00: bank 0 (a14=0, a15=0) r w destination address bank select bit 01: bank 1 (a14=0, a15=1) (note 1)(note 2) 10: bank 2 (a14=1, a15=0) 11: settings inhibited 12?15 reqesel1 0000: one dma0 transfer completed r w extended dma1 transfer request source select bit 0001: mjt(tin3s) 0010: mjt(tid1_udf/ovf) 0011: common 1) mjt (input event bus 1) 0100: common 2) mjt (input event bus 3) 0101: common 3) mjt (output event bus 2) 0110: common 4) mjt (output event bus 3) 0111: common 5) ad0 conversion completed 1000: common 6) mjt (tin0s) 1001: common 7) mjt (tio8_udf) 1010: common 8) mjt (tin30s) 1011: common 9) mjt (tio9_udf) 1100: common 10) settings inhibited 1101: mjt (tou1_1irq) 1110: dri (din1) 1111: sio4_rxd (reception completed) note 1: no transfer over the bank is possible. even when the address is incremented at the breakpoint of the bank and the sour ce/ destination addresses go over the bank, the source address bank select/destination address bank select bits are not incremented, and the bank head corresponds to the source address/destination address. note 2: because bank2 does not exist in the 32196, setting bank2(a14=1, a15=0) is prohibited. also, because bank1 and bank2 do not exist in the 32195, setting bank1(a14=0, a15=1), and bank2(a14=1, a15=0) is prohibited.
dmac 9-10 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 dma2 channel control register 0 (dm2cnt0) 123456b7 b0 sadsl2 dadsl2 mdsel2 treqf2 reqsl2 tenl2 tszsl2 00000000 b bit name function r w 0 mdsel2 0: normal mode r w dma2 transfer mode select bit 1: ring buffer mode 1 treqf2 0: transfer not requested r(note 1) dma2 transfer request flag bit 1: transfer requested 2, 3 reqsl2 00: software start r w dma2 transfer request source select bit 01: mjt (output event bus 1) 10: mjt (tin18s) 11: extended dma2 transfer request source select (dma2 channel control register 1) 4 tenl2 0: disable transfer r w dma2 transfer enable bit 1: enable transfer 5 tszsl2 0: 16 bits r w dma2 transfer size select bit 1: 8 bits 6 sadsl2 0: fixed r w dma2 source address direction select bit 1: increment 7 dadsl2 0: fixed r w dma2 destination address direction select bit 1: increment note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. 9.2 dmac related registers
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) 9 1011121314b15 b8 reqesel2 00000000 sadbn2 dadbn2 b bit name function r w 8, 9 sadbn2 00: bank 0 (a14=0, a15=0) r w source address bank select bit 01: bank 1 (a14=0, a15=1) (note 1)(note 2) 10: bank 2 (a14=1, a15=0) 11: settings inhibited 10, 11 dadbn2 00: bank 0 (a14=0, a15=0) r w destination address bank select bit 01: bank 1 (a14=0, a15=1) (note 1)(note 2) 10: bank 2 (a14=1, a15=0) 11: settings inhibited 12?15 reqesel2 0000: one dma1 transfer completed r w extended dma2 transfer request source select bit 0001: settings inhibited 0010: can(can0_s1/s30) 0011: common 1) mjt (input event bus 1) 0100: common 2) mjt (input event bus 3) 0101: common 3) mjt (output event bus 2) 0110: common 4) mjt (output event bus 3) 0111: common 5) ad0 conversion completed 1000: common 6) mjt (tin0s) 1001: common 7) mjt (tio8_udf) 1010: common 8) mjt (tin30s) 1011: common 9) mjt (tio9_udf) 1100: common 10) settings inhibited 1101: settings inhibited 1110: dri (din2) 1111: sio5_txd (transmit buffer empty) note 1: no transfer over the bank is possible. even when the address is incremented at the breakpoint of the bank and the sour ce/ destination addresses go over the bank, the source address bank select/destination address bank select bits are not incremented, and the bank head corresponds to the source address/destination address. note 2: because bank2 does not exist in the 32196, setting bank2(a14=1, a15=0) is prohibited. also, because bank1 and bank2 do not exist in the 32195, setting bank1(a14=0, a15=1), and bank2(a14=1, a15=0) is prohibited.
dmac 9-12 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 dma3 channel control register 0 (dm3cnt0) 123456b7 b0 sadsl3 dadsl3 mdsel3 treqf3 reqsl3 tenl3 tszsl3 00000000 b bit name function r w 0 mdsel3 0: normal mode r w dma3 transfer mode select bit 1: ring buffer mode 1 treqf3 0: transfer not requested r(note 1) dma3 transfer request flag bit 1: transfer requested 2, 3 reqsl3 00: software start r w dma3 transfer request source select bit 01: sio0_txd (transmit buffer empty) 10: sio1_rxd (reception completed) 11: extended dma3 transfer request source select (dma3 channel control register 1) 4 tenl3 0: disable transfer r w dma3 transfer enable bit 1: enable transfer 5 tszsl3 0: 16 bits r w dma3 transfer size select bit 1: 8 bits 6 sadsl3 0: fixed r w dma3 source address direction select bit 1: increment 7 dadsl3 0: fixed r w dma3 destination address direction select bit 1: increment note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. 9.2 dmac related registers
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) 9 1011121314b15 b8 reqesel3 00000000 sadbn3 dadbn3 b bit name function r w 8, 9 sadbn3 00: bank 0 (a14=0, a15=0) r w source address bank select bit 01: bank 1 (a14=0, a15=1) (note 1)(note 2) 10: bank 2 (a14=1, a15=0) 11: settings inhibited 10, 11 dadbn3 00: bank 0 (a14=0, a15=0) r w destination address bank select bit 01: bank 1 (a14=0, a15=1) (note 1)(note 2) 10: bank 2 (a14=1, a15=0) 11: settings inhibited 12?15 reqesel3 0000: mjt(tin0s) r w extended dma3 transfer request source select bit 0001: one dma2 transfer completed 0010: settings inhibited 0011: common 1) mjt (input event bus 1) 0100: common 2) mjt (input event bus 3) 0101: common 3) mjt (output event bus 2) 0110: common 4) mjt (output event bus 3) 0111: common 5) ad0 conversion completed 1000: common 6) mjt (tin0s) 1001: common 7) mjt (tio8_udf) 1010: common 8) mjt (tin30s) 1011: common 9) mjt (tio9_udf) 1100: common 10) settings inhibited 1101: mjt (tou1_6irq) 1110: dri (din3) 1111: sio5_rxd (reception completed) note 1: no transfer over the bank is possible. even when the address is incremented at the breakpoint of the bank and the sour ce/ destination addresses go over the bank, the source address bank select/destination address bank select bits are not incremented, and the bank head corresponds to the source address/destination address. note 2: because bank2 does not exist in the 32196, setting bank2(a14=1, a15=0) is prohibited. also, because bank1 and bank2 do not exist in the 32195, setting bank1(a14=0, a15=1), and bank2(a14=1, a15=0) is prohibited.
dmac 9-14 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 dma4 channel control register 0 (dm4cnt0) 123456b7 b0 sadsl4 dadsl4 mdsel4 treqf4 reqsl4 tenl4 tszsl4 00000000 b bit name function r w 0 mdsel4 0: normal mode r w dma4 transfer mode select bit 1: ring buffer mode 1 treqf4 0: transfer not requested r(note 1) dma4 transfer request flag bit 1: transfer requested 2, 3 reqsl4 00: software start r w dma4 transfer request source select bit 01: one dma3 transfer completed 10: sio0_rxd (reception completed) 11: extended dma4 transfer request source select (dma4 channel control register 1) 4 tenl4 0: disable transfer r w dma4 transfer enable bit 1: enable transfer 5 tszsl4 0: 16 bits r w dma4 transfer size select bit 1: 8 bits 6 sadsl4 0: fixed r w dma4 source address direction select bit 1: increment 7 dadsl4 0: fixed r w dma4 destination address direction select bit 1: increment note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. 9.2 dmac related registers
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) 9 1011121314b15 b8 reqesel4 00000000 sadbn4 dadbn4 b bit name function r w 8, 9 sadbn4 00: bank 0 (a14=0, a15=0) r w source address bank select bit 01: bank 1 (a14=0, a15=1) (note 1)(note 2) 10: bank 2 (a14=1, a15=0) 11: settings inhibited 10, 11 dadbn4 00: bank 0 (a14=0, a15=0) r w destination address bank select bit 01: bank 1 (a14=0, a15=1) (note 1)(note 2) 10: bank 2 (a14=1, a15=0) 11: settings inhibited 12?15 reqesel4 0000: mjt(tin19s) r w extended dma4 transfer request source select bit 0001: sio0_txd (transmit buffer empty) 0010: mjt(tou1_7irq) 0011: common 1) mjt (input event bus 1) 0100: common 2) mjt (input event bus 3) 0101: common 3) mjt (output event bus 2) 0110: common 4) mjt (output event bus 3) 0111: common 5) ad0 conversion completed 1000: common 6) mjt (tin0s) 1001: common 7) mjt (tio8_udf) 1010: common 8) mjt (tin30s) 1011: common 9) mjt (tio9_udf) 1100: common 10) settings inhibited 1101: mjt (tin7s) 1110: dri (din4) 1111: settings inhibited note 1: no transfer over the bank is possible. even when the address is incremented at the breakpoint of the bank and the sour ce/ destination addresses go over the bank, the source address bank select/destination address bank select bits are not incremented, and the bank head corresponds to the source address/destination address. note 2: because bank2 does not exist in the 32196, setting bank2(a14=1, a15=0) is prohibited. also, because bank1 and bank2 do not exist in the 32195, setting bank1(a14=0, a15=1), and bank2(a14=1, a15=0) is prohibited.
dmac 9-16 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 dma5 channel control register 0 (dm5cnt0) 123456b7 b0 sadsl5 dadsl5 mdsel5 treqf5 reqsl5 tenl5 tszsl5 00000000 b bit name function r w 0 mdsel5 0: normal mode r w dma5 transfer mode select bit 1: ring buffer mode 1 treqf5 0: transfer not requested r(note 1) dma5 transfer request flag bit 1: transfer requested 2, 3 reqsl5 00: software start or one dma7 transfer completed r w dma5 transfer request source select bit 01: all dma0 transfers completed 10: sio2_rxd (reception completed) 11: extended dma5 transfer request source select (dma5 channel control register 1) 4 tenl5 0: disable transfer r w dma5 transfer enable bit 1: enable transfer 5 tszsl5 0: 16 bits r w dma5 transfer size select bit 1: 8 bits 6 sadsl5 0: fixed r w dma5 source address direction select bit 1: increment 7 dadsl5 0: fixed r w dma5 destination address direction select bit 1: increment note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. 9.2 dmac related registers
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) 9 1011121314b15 b8 reqesel5 00000000 sadbn5 dadbn5 b bit name function r w 8, 9 sadbn5 00: bank 0 (a14=0, a15=0) r w source address bank select bit 01: bank 1 (a14=0, a15=1) (note 1)(note 2) 10: bank 2 (a14=1, a15=0) 11: settings inhibited 10, 11 dadbn5 00: bank 0 (a14=0, a15=0) r w destination address bank select bit 01: bank 1 (a14=0, a15=1) (note 1)(note 2) 10: bank 2 (a14=1, a15=0) 11: settings inhibited 12?15 reqesel5 0000: mjt(tin20s) r w extended dma5 transfer request source select bit 0001: mjt(tou0_0irq) 0010: settings inhibited 0011: common 1) mjt (input event bus 1) 0100: common 2) mjt (input event bus 3) 0101: common 3) mjt (output event bus 2) 0110: common 4) mjt (output event bus 3) 0111: common 5) ad0 conversion completed 1000: common 6) mjt (tin0s) 1001: common 7) mjt (tio8_udf) 1010: common 8) mjt (tin30s) 1011: common 9) mjt (tio9_udf) 1100: common 10) settings inhibited 1101: mjt (tin8s) 1110: dri (dec0_udf) 1111: can1_s0/s31 note 1: no transfer over the bank is possible. even when the address is incremented at the breakpoint of the bank and the sour ce/ destination addresses go over the bank, the source address bank select/destination address bank select bits are not incremented, and the bank head corresponds to the source address/destination address. note 2: because bank2 does not exist in the 32196, setting bank2(a14=1, a15=0) is prohibited. also, because bank1 and bank2 do not exist in the 32195, setting bank1(a14=0, a15=1), and bank2(a14=1, a15=0) is prohibited.
dmac 9-18 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 dma6 channel control register 0 (dm6cnt0) 123456b7 b0 sadsl6 dadsl6 mdsel6 treqf6 reqsl6 tenl6 tszsl6 00000000 b bit name function r w 0 mdsel6 0: normal mode r w dma6 transfer mode select bit 1: ring buffer mode 1 treqf6 0: transfer not requested r(note 1) dma6 transfer request flag bit 1: transfer requested 2, 3 reqsl6 00: software start r w dma6 transfer request source select bit 01: sio1_txd (transmit buffer empty) 10: can0_s0/s31 11: extended dma6 transfer request source select (dma6 channel control register 1) 4 tenl6 0: disable transfer r w dma6 transfer enable bit 1: enable transfer 5 tszsl6 0: 16 bits r w dma6 transfer size select bit 1: 8 bits 6 sadsl6 0: fixed r w dma6 source address direction select bit 1: increment 7 dadsl6 0: fixed r w dma6 destination address direction select bit 1: increment note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. 9.2 dmac related registers
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) 9 1011121314b15 b8 reqesel6 00000000 sadbn6 dadbn6 b bit name function r w 8, 9 sadbn6 00: bank 0 (a14=0, a15=0) r w source address bank select bit 01: bank 1 (a14=0, a15=1) (note 1)(note 2) 10: bank 2 (a14=1, a15=0) 11: settings inhibited 10, 11 dadbn6 00: bank 0 (a14=0, a15=0) r w destination address bank select bit 01: bank 1 (a14=0, a15=1) (note 1)(note 2) 10: bank 2 (a14=1, a15=0) 11: settings inhibited 12?15 reqesel6 0000: one dma5 transfer completed r w extended dma6 transfer request source select bit 0001: mjt(tou0_1irq) 0010: sio1_rxd (reception completed) 0011: common 1) mjt (input event bus 1) 0100: common 2) mjt (input event bus 3) 0101: common 3) mjt (output event bus 2) 0110: common 4) mjt (output event bus 3) 0111: common 5) ad0 conversion completed 1000: common 6) mjt (tin0s) 1001: common 7) mjt (tio8_udf) 1010: common 8) mjt (tin30s) 1011: common 9) mjt (tio9_udf) 1100: common 10) settings inhibited 1101: dri (address counter 0 transfer) 1110: dri (dec1_udf) 1111: settings inhibited note 1: no transfer over the bank is possible. even when the address is incremented at the breakpoint of the bank and the sour ce/ destination addresses go over the bank, the source address bank select/destination address bank select bits are not incremented, and the bank head corresponds to the source address/destination address. note 2: because bank2 does not exist in the 32196, setting bank2(a14=1, a15=0) is prohibited. also, because bank1 and bank2 do not exist in the 32195, setting bank1(a14=0, a15=1), and bank2(a14=1, a15=0) is prohibited.
dmac 9-20 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 dma7 channel control register 0 (dm7cnt0) 123456b7 b0 sadsl7 dadsl7 mdsel7 treqf7 reqsl7 tenl7 tszsl7 00000000 b bit name function r w 0 mdsel7 0: normal mode r w dma7 transfer mode select bit 1: ring buffer mode 1 treqf7 0: transfer not requested r(note 1) dma7 transfer request flag bit 1: transfer requested 2, 3 reqsl7 00: software start r w dma7 transfer request source select bit 01: sio2_txd (transmit buffer empty) 10: can0_s1/s30 11: extended dma7 transfer request source select (dma7 channel control register 1) 4 tenl7 0: disable transfer r w dma7 transfer enable bit 1: enable transfer 5 tszsl7 0: 16 bits r w dma7 transfer size select bit 1: 8 bits 6 sadsl7 0: fixed r w dma7 source address direction select bit 1: increment 7 dadsl7 0: fixed r w dma7 destination address direction select bit 1: increment note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. 9.2 dmac related registers
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) 9 1011121314b15 b8 reqesel7 00000000 sadbn7 dadbn7 b bit name function r w 8, 9 sadbn7 00: bank 0 (a14=0, a15=0) r w source address bank select bit 01: bank 1 (a14=0, a15=1) (note 1)(note 2) 10: bank 2 (a14=1, a15=0) 11: settings inhibited 10, 11 dadbn7 00: bank 0 (a14=0, a15=0) r w destination address bank select bit 01: bank 1 (a14=0, a15=1) (note 1)(note 2) 10: bank 2 (a14=1, a15=0) 11: settings inhibited 12?15 reqesel7 0000: one dma6 transfer completed r w extended dma7 transfer request source select bit 0001: mjt(tou0_2irq) 0010: sio3_txd (transmit buffer empty) 0011: common 1) mjt (input event bus 1) 0100: common 2) mjt (input event bus 3) 0101: common 3) mjt (output event bus 2) 0110: common 4) mjt (output event bus 3) 0111: common 5) ad0 conversion completed 1000: common 6) mjt (tin0s) 1001: common 7) mjt (tio8_udf) 1010: common 8) mjt (tin30s) 1011: common 9) mjt (tio9_udf) 1100: common 10) settings inhibited 1101: dri (address counter 1 transfer) 1110: dri (dec2_udf) 1111: can1_s1/s30 note 1: no transfer over the bank is possible. even when the address is incremented at the breakpoint of the bank and the sour ce/ destination addresses go over the bank, the source address bank select/destination address bank select bits are not incremented, and the bank head corresponds to the source address/destination address. note 2: because bank2 does not exist in the 32196, setting bank2(a14=1, a15=0) is prohibited. also, because bank1 and bank2 do not exist in the 32195, setting bank1(a14=0, a15=1), and bank2(a14=1, a15=0) is prohibited.
dmac 9-22 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 dma8 channel control register 0 (dm8cnt0) 123456b7 b0 sadsl8 dadsl8 mdsel8 treqf8 reqsl8 tenl8 tszsl8 00000000 b bit name function r w 0 mdsel8 0: normal mode r w dma8 transfer mode select bit 1: ring buffer mode 1 treqf8 0: transfer not requested r(note 1) dma8 transfer request flag bit 1: transfer requested 2, 3 reqsl8 00: software start r w dma8 transfer request source select bit 01: mjt (input event bus 0) 10: sio3_rxd (reception completed) 11: extended dma8 transfer request source selected (dma8 channel control register 1) 4 tenl8 0: disable transfer r w dma8 transfer enable bit 1: enable transfer 5 tszsl8 0: 16 bits r w dma8 transfer size select bit 1: 8 bits 6 sadsl8 0: fixed r w dma8 source address direction select bit 1: increment 7 dadsl8 0: fixed r w dma8 destination address direction select bit 1: increment note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. 9.2 dmac related registers
dmac 9 9-23 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.2 dmac related registers dma8 channel control register 1 (dm8cnt1) 9 1011121314b15 b8 reqesel8 00000000 sadbn8 dadbn8 b bit name function r w 8, 9 sadbn8 00: bank 0 (a14=0, a15=0) r w source address bank select bit 01: bank 1 (a14=0, a15=1) (note 1)(note 2) 10: bank 2 (a14=1, a15=0) 11: settings inhibited 10, 11 dadbn8 00: bank 0 (a14=0, a15=0) r w destination address bank select bit 01: bank 1 (a14=0, a15=1) (note 1)(note 2) 10: bank 2 (a14=1, a15=0) 11: settings inhibited 12?15 reqesel8 0000: can1_s0/s31 r w extended dma8 transfer request source select bit 0001: mjt(tou0_6irq) 0010: one dma7 transfer completed 0011: common 1) mjt (input event bus 1) 0100: common 2) mjt (input event bus 3) 0101: common 3) mjt (output event bus 2) 0110: common 4) mjt (output event bus 3) 0111: common 5) ad0 conversion completed 1000: common 6) mjt (tin0s) 1001: common 7) mjt (tio8_udf) 1010: common 8) mjt (tin30s) 1011: common 9) mjt (tio9_udf) 1100: common 10) settings inhibited 1101: dri (latch event counter_udf) 1110: dri (dec3_udf) 1111: settings inhibited note 1: no transfer over the bank is possible. even when the address is incremented at the breakpoint of the bank and the sour ce/ destination addresses go over the bank, the source address bank select/destination address bank select bits are not incremented, and the bank head corresponds to the source address/destination address. note 2: because bank2 does not exist in the 32196, setting bank2(a14=1, a15=0) is prohibited. also, because bank1 and bank2 do not exist in the 32195, setting bank1(a14=0, a15=1), and bank2(a14=1, a15=0) is prohibited.
dmac 9-24 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 dma9 channel control register 0 (dm9cnt0) 123456b7 b0 sadsl9 dadsl9 mdsel9 treqf9 reqsl9 tenl9 tszsl9 00000000 b bit name function r w 0 mdsel9 0: normal mode r w dma9 transfer mode select bit 1: ring buffer mode 1 treqf9 0: transfer not requested r(note 1) dma9 transfer request flag bit 1: transfer requested 2, 3 reqsl9 00: software start r w dma9 transfer request source select bit 01: sio3_txd (transmit buffer empty) 10: can1_s1/s30 11: extended dma9 transfer request source selected (dma9 channel control register 1) 4 tenl9 0: disable transfer r w dma9 transfer enable bit 1: enable transfer 5 tszsl9 0: 16 bits r w dma9 transfer size select bit 1: 8 bits 6 sadsl9 0: fixed r w dma9 source address direction select bit 1: increment 7 dadsl9 0: fixed r w dma9 destination address direction select bit 1: increment note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. 9.2 dmac related registers
dmac 9 9-25 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.2 dmac related registers dma9 channel control register 1 (dm9cnt1) 9 1011121314b15 b8 reqesel9 00000000 sadbn9 dadbn9 b bit name function r w 8, 9 sadbn9 00: bank 0 (a14=0, a15=0) r w source address bank select bit 01: bank 1 (a14=0, a15=1) (note 1)(note 2) 10: bank 2 (a14=1, a15=0) 11: settings inhibited 10, 11 dadbn9 00: bank 0 (a14=0, a15=0) r w destination address bank select bit 01: bank 1 (a14=0, a15=1) (note 1)(note 2) 10: bank 2 (a14=1, a15=0) 11: settings inhibited 12?15 reqesel9 0000: one dma8 transfer completed r w extended dma9 transfer request source select bit 0001: mjt(tou0_7irq) 0010: settings inhibited 0011: common 1) mjt (input event bus 1) 0100: common 2) mjt (input event bus 3) 0101: common 3) mjt (output event bus 2) 0110: common 4) mjt (output event bus 3) 0111: common 5) ad0 conversion completed 1000: common 6) mjt (tin0s) 1001: common 7) mjt (tio8_udf) 1010: common 8) mjt (tin30s) 1011: common 9) mjt (tio9_udf) 1100: common 10) settings inhibited 1101: dri (transfer counter_udf) 1110: dri (dec4_udf) 1111: dri (din5) note 1: no transfer over the bank is possible. even when the address is incremented at the breakpoint of the bank and the sour ce/ destination addresses go over the bank, the source address bank select/destination address bank select bits are not incremented, and the bank head corresponds to the source address/destination address. note 2: because bank2 does not exist in the 32196, setting bank2(a14=1, a15=0) is prohibited. also, because bank1 and bank2 do not exist in the 32195, setting bank1(a14=0, a15=1), and bank2(a14=1, a15=0) is prohibited.
dmac 9-26 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.2 dmac related registers dma0 channel control register 2 (dm0cnt2) dma1 channel control register 2 (dm1cnt2) dma2 channel control register 2 (dm2cnt2) dma3 channel control register 2 (dm3cnt2) dma4 channel control register 2 (dm4cnt2) dma5 channel control register 2 (dm5cnt2) dma6 channel control register 2 (dm6cnt2) dma7 channel control register 2 (dm7cnt2) dma8 channel control register 2 (dm8cnt2) dma9 channel control register 2 (dm9cnt2) 9 10 11 12 13 14 b15 b8 0 000000 ringsel selfen 0 b bit name function r w 8 selfen 0: disable self channel transfer r w self channel transfer selection 1: enable self channel transfer 9 no function assigned. fix to "0." 00 10?15 ringsel 00 0000: 32-time ring buffer mode r w ring buffer select bit 10 0000: 32-time ring buffer mode 11 0000: 16-time ring buffer mode 11 1000: 8-time ring buffer mode 11 1100: 4-time ring buffer mode 11 1110: 2-time ring buffer mode settings other than above are inhibited the dma channel control register 0 consists of the bits to select dma transfer mode on each channel, set the dma transfer request flag, select the cause or source of dma request and enable dma transfer, as well as those to set the transfer size and the source/destination address directions. the dma channel control register 1 consists of the bits to select a source/destination address bank and the cause or source of extended dma transfer request on each dma channel. the dma channel control register 2 consists of the bits to enable self channel transfer on each channel and set the number of transfers in the ring buffer mode.
dmac 9 9-27 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.2 dmac related registers [dmncnt0 register] (1) mdseln (dman transfer mode select) bit (bit 0) when performing dma transfer in single transfer mode, this bit selects normal mode or ring buffer mode. setting this bit to "0" selects normal mode and setting it to "1" selects ring buffer mode. the number of transfers in the ring buffer mode is selected with register dmncnt2. (2) treqfn (dman transfer request flag) bit (bit 1) this flag indicates if there are dma transfer requests for each channel. this bit is set to "1," when dma transfer requests are occurred in spite of tenln bit setting value and then after completing transmission, it is cleared to "0." and when write "0" to this bit, it clear dma transfer requests occurred. when write "1," it keeps value which before writing. if a new dma transfer request occurs on a channel for which the dma transfer request flag has already been set to "1," the next dma transfer request is not accepted until the transfer being performed on that channel is completed. (3) reqsln (dman transfer request source select) bits (bits 2, 3) these bits select the cause or source of dma transfer request on each dma channel. (4) tenln (dman transfer enable) bit (bit 4) when setting this bit to "1" (enable transfer), dma transfer is enable and when all transmissions are com- pleted (underflow of transfer count register), it is cleared to "0." and when dma transfer request is already occurred and set to transfer enable, dma transfer starts immediately so that make sure not to do that. when setting this bit to "0" (disable transfer), dma transfer is disable. however, if a transfer request has already been accepted, transfers on that channel are not disabled until after the requested transfer is com- pleted. (5) tszsln (dman transfer size select) bit (bit 5) this bit selects the number of bits to be transferred in one dma transfer operation (the unit of one transfer). the unit of one transfer is 16 bits when tszsl = "0" or 8 bits when tszsl = "1." (6) sadsln (dman source address direction select) bit (bit 6) this bit selects the direction in which the source address changes. this mode can be selected from two choices: address fixed or address incremental. (7) dadsln (dman destination address direction select) bit (bit 7) this bit selects the direction in which the destination address changes. this mode can be selected from two choices: address fixed or address incremental. extended dma transfer request source selected dman transfer request source s s dman figure 9.2.1 block diagram of extended dman transfer request source selection
dmac 9-28 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.2 dmac related registers [dmncnt1 register] (1) sadbnx (dman source address bank select) bits (bits 8, 9) these bits select a source address bank to be used from among bank 0, bank 1 and bank 2. but no bank exsits in 32196, setting bank2(a14=1, a15=0) is prohibited. because bank1 and bank2 do not exist in the 32195, setting bank1 and bank2 is prohibited. and also no transfer over the bank is carried out. upon completion of bank transfer to the final address, the bank is then to be transferred to the head address. (2) dadbnx (dman destination address bank select) bits (bits 10, 11) these bits select a destination address bank to be used from among bank 0, bank 1 and bank 2. but no bank exsits in 32196, setting bank2(a14=1, a15=0) is prohibited. because bank1 and bank2 do not exist in the 32195, setting bank1 and bank2 is prohibited. and also no transfer over the bank is carried out. upon completion of bank transfer to the final address, the bank is then to be transferred to the head address. (3) reqeseln (extended dman transfer request source select) bits (bits 12?15) these bits select the cause or source of extended dma transfer request on each dma channel. note: ? the extended dma transfer request sources selected by the reqeseln (extended dman transfer request source select) bits have no effect unless the ?extended? dma transfer re- quest source is selected with the dma channel control register?s dma request source se- lect (reqsln) bits. [dmncnt2 register] (1) selfen (dman self channel transfer select ) bit (bit 8) clearing this bit to ?0? disables self channel transfer, and setting it to ?1? enables self channel transfer. in case where self channel transfer was allowed, the dma transfer request occurs for the self channel each time single dma transfer is completed if the initial transfer request arises, and dma transfer is carried out until all transfers are completed (transfer count register underflow). however the control of internal bus is relinquished each time single dma transfer is completed. and if set dma transfer n times, dma transfer request is occured for its channel after completing all dma transfer, so that it is necessary to pay attention of clearing dma transfer request or so on when dma transfer is started again. (2) ringsel (dman rign buffer select) bit (bits 10?15) these bits select the number of dma transfers to each channel in the ring buffer mode from among 32, 16, 8, 4 and 2 times. in the ring buffer mode, after transfer from the transfer start address, the bit returns to the transfer start address again, and the same operation is repeated by the number of transfers thus selected. in the ring buffer mode, the transfer count register is placed in the free run mode, and transfer operation is continued until the transfer enable bit is cleared to ?0? (transfer disable). also, the dma transfer-completed interrupt request does not arise during ring buffer mode. notes: ? when the self channel transfer was allowed during ring buffer mode setting, care must be exercised to its endless transfer. ? the transfer start address must be as follows: transfer size: 8 bits transfer size: 16 bits 32-time ring buffer mode low order 5 bits ? b?00000 low order 6 bits ? b?000000 16-time ring buffer mode low order 4 bits ? b?0000 low order 5 bits ? b?00000 8-time ring buffer mode low order 3 bits ? b?000 low order 4 bits ? b?0000 4-time ring buffer mode low order 2 bits ? b?00 low order 3 bits ? b?000 2-time ring buffer mode low order 1 bits ? b?0 low order 2 bits ? b?00
dmac 9 9-29 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.2 dmac related registers 9.2.2 dma software request generation registers dma0 software request generation register (dm0sri) dma1 software request generation register (dm1sri) dma2 software request generation register (dm2sri) dma3 software request generation register (dm3sri) dma4 software request generation register (dm4sri) dma5 software request generation register (dm5sri) dma6 software request generation register (dm6sri) dma7 software request generation register (dm7sri) dma8 software request generation register (dm8sri) dma9 software request generation register (dm9sri) b0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 b15 dm0sri?dm9sri ???????????????? b bit name function r w 0?15 dm0sri?dm9sri dma transfer request is generated by writing any ? w dma software request generation bits data to these bits. note: ? this register may be accessed in either bytes or halfwords. the dma software request generation register is used to generate dma transfer requests in software. a dma transfer request can be generated by writing any data to this register when ?software start? has been selected for the cause of dma transfer request. (1) dm0sri?dm9sri (dma software request generation) bits a software dma transfer request is generated by writing any data to this register in halfword (16 bits) or in byte (8 bits) beginning with an even or odd address when ?software start? is selected as the cause of dma transfer request (by setting the dman channel control register 0 bits 2?3 to "00").
dmac 9-30 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.2.3 dma source address registers dma0 source address register (dm0sa) dma1 source address register (dm1sa) dma2 source address register (dm2sa) dma3 source address register (dm3sa) dma4 source address register (dm4sa) dma5 source address register (dm5sa) dma6 source address register (dm6sa) dma7 source address register (dm7sa) dma8 source address register (dm8sa) dma9 source address register (dm9sa) b01234567891011121314b15 dm0sa?dm9sa ???????????????? b bit name function r w 0?15 dm0sa?dma9sa source address bits a16?a31 r w (note 1) note 1: a0 to a15 are fixed by setting dman channel control register 1 (dmncnt1) bits 8 and 9. notes: ? this register must always be accessed in halfwords. ? address other than sfr area and internal ram area must not be set. the dma source address register is used to set the source address of dma transfer in such a way that bit 0 and bit 15 correspond to a16 and a31, respectively. because this register is comprised of a current register, the values read from this register are always the current value. when dma transfer finishes (i.e., the transfer count register underflows), the value in this register if ?address fixed? is selected, is the same source address that was set in it before the dma transfer began; if ?address incremental? is selected, the value in this register is the last transfer address + 1 (for 8-bit transfer) or the last transfer address + 2 (for 16-bit transfer). the dma source address register must always be accessed in halfwords (16 bits) beginning with an even address. if accessed in bytes, the value in this register is undefined. (1) dm0sa?dm9sa (source address bits a16?a31) set this register to specify the source address of dma transfer in sfr area or internal ram area. for high-order 16 bits (a0 to a15) of the source address, the high-order 16 bits of the corresponding source address are fixed by setting of dman channel control register 1 (dmncnt1) bits 8 and 9. in this register, the low-order 16 bits of the source address are set. (bit 0 and bit 15 correspond to a16 and a31 of the source address, respectively). note that when sadsln bit in dman channel control register (dmncnt0) set to "increment," no transfer over the bank is carried out. upon completion of bank transfer to the final address, the bank is to be transferred to the head address. 9.2 dmac related registers
dmac 9 9-31 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.2.4 dma destination address registers dma0 destination address register (dm0da) dma1 destination address register (dm1da) dma2 destination address register (dm2da) dma3 destination address register (dm3da) dma4 destination address register (dm4da) dma5 destination address register (dm5da) dma6 destination address register (dm6da) dma7 destination address register (dm7da) dma8 destination address register (dm8da) dma9 destination address register (dm9da) b01234567891011121314b15 dm0da?dm9da ???????????????? b bit name function r w 0?15 dm0da?dm9da destination address bits a16?a31 r w (note 1) note 1: a0 to a15 are fixed by setting dman channel control register 1 (dmncnt1) bits 10 and 11. notes: ? this register must always be accessed in halfwords. ? address other than sfr area and internal ram area must not be set. the dma destination address register is used to set the destination address of dma transfer in such a way that bit 0 and bit 15 correspond to a16 and a31, respectively. because this register is comprised of a current register, the values read from this register are always the current value. when dma transfer finishes (i.e., the transfer count register underflows), the value in this register if ?address fixed? is selected, is the same source address that was set in it before the dma transfer began; if ?address incremental? is selected, the value in this register is the last transfer address + 1 (for 8-bit transfer) or the last transfer address + 2 (for 16-bit transfer). the dma destination address register must always be accessed in halfwords (16 bits) beginning with an even address. if accessed in bytes, the value in this register is undefined. (1) dm0da?dm9da (destination address bits a16?a31) set this register to specify the destination address of dma transfer in sfr area or internal ram area. for high-order 16 bits (a0 to a15) of the destination address, bank 0 to bank 2 are selected according to the setting of dman channel control register 1 (dmncnt1) bits 10 and 11, and the high-order 16 bits of the corresponding destination address are fixed. in this register, the low-order 16 bits of the destination ad- dress are set. (bit 0 and bit 15 correspond to a16 and a31 of the destination address, respectively) note that when sadsln bit in dman channel control register (dmncnt0) set to "increment," no transfer over the bank is carried out. upon completion of bank transfer to the final address, the bank is to be transferred to the head address. 9.2 dmac related registers
dmac 9-32 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.2.5 dma transfer count registers dma0 transfer count register (dm0tct) dma1 transfer count register (dm1tct) dma2 transfer count register (dm2tct) dma3 transfer count register (dm3tct) dma4 transfer count register (dm4tct) dma5 transfer count register (dm5tct) dma6 transfer count register (dm6tct) dma7 transfer count register (dm7tct) dma8 transfer count register (dm8tct) dma9 transfer count register (dm9tct) b0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 b15 dm0tct?dm15tct ???????????????? b bit name function r w 0?15 dm0tct?dm9tct dma transfer count r w (has no effect during ring buffer mode) note: ? this register must always be accessed in halfwords. the dma transfer count register is used to set the number of times data is transferred on each channel. however, the value in this register has no effect during ring buffer mode. the transfer count is the value set in the transfer count register + 1. because the dma transfer count register is comprised of a current register, the values read from this register are always the current value. (however, if the register is read in a cycle immediately after transfer, the value obtained is one that was stored in the count register before the transfer began.) when transfer finishes, this count register underflows and the value read from it is h?ffff. when transfer is enabled, this register is protected in hardware and cannot be accessed for write. during ring buffer mode, the transfer count register counts down in free-run mode and continues counting until transfer is disabled. no interrupt is generated at underflow. if any cascaded channel exists, each time one dma transfer (byte or halfword) is completed or when all trans- fers on a channel are completed (i.e., the transfer count register underflows), transfer on the cascaded channel starts. the dma transfer count register must always be accessed in halfwords (16 bits) beginning with an even address. if accessed in bytes, the value in this register is undefined. 9.2 dmac related registers
dmac 9 9-33 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.2 dmac related registers 9.2.6 dma interrupt related registers the dma interrupt related registers are used to control the interrupt request signals sent from the dmac to the interrupt controller. (1) interrupt request status bit this status bit is used to determine whether there is an interrupt request. when an interrupt request occurs, this bit is set in hardware (cannot be set in software). the status bit is cleared by writing "0." writing "1" has no effect; the bit retains the status it had before the write. because this status bit is unaffected by the interrupt request mask bit, it can be used to inspect the operating status of peripheral functions. in interrupt handling, make sure that within the grouped interrupt request status, only the status bit for the interrupt request that has been serviced is cleared. if the status bit for any interrupt request that has not been serviced is cleared, the pending interrupt request is cleared simultaneously with its status bit. (2) interrupt request mask bit this bit is used to disable unnecessary interrupt requests within the grouped interrupt request. set this bit to "0" to enable interrupt requests or "1" to disable interrupt requests. figure 9.2.2 interrupt request status and mask registers to the interrupt controller interrupt request from each peripheral function interrupt request status data bus set group interrupt interrupt request enabled clear f/f f/f data = 0
dmac 9-34 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.2 dmac related registers figure 9.2.3 example for clearing interrupt request status b4 5 b7 interrupt request status initial state event occurs on bit 6 interrupt request event occurs on bit 4 only bit 6 cleared bit 4 data retained b4 5 b7 1 1 0 1 write to the interrupt request status example for clearing interrupt request status 0 0 0 0 0 0 1 0 1 0 1 0 1 0 0 0 program example istreg = 0xfd; /* clear istat1 (0x02 bit) only */  to clear the interrupt request status register 0 (istreg) interrupt request status 1, istat1 (0x02 bit) to clear an interrupt request status, always be sure to write "1" to all other interrupt request status bits. at this time, avoid using a logic operation like the one shown below. because it requires three step-istreg read, logic operation and write, if another interrupt request occurs between the read and write, status may be inadvertently cleared. b4 5 6 b7 interrupt request status event occurs on bit 6 event occurs on bit 4 only bit 6 cleared bit 4 also cleared 0 0 1 0 1 0 1 0 0 0 0 0 read 0 0 1 0 0 0 0 0 clear bit 6 (and'ing with 1101) write 6 6 istreg &= 0xfd; /* clear istat1 (0x02 bit) only */
dmac 9 9-35 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.2 dmac related registers dma0?4 interrupt request status register (dm04itst) 123456b7 b0 dmitst4 dmitst3 dmitst1 dmitst0 dmitst2 00000 0 0 0 b bit name function r w 0?2 no function assigned. fix to "0." 00 3 dmitst4 (dma4 interrupt request status bit) 0: interrupt not requested r(note 1) 4 dmitst3 (dma3 interrupt request status bit) 1: interrupt requested 5 dmitst2 (dma2 interrupt request status bit) 6 dmitst1 (dma1 interrupt request status bit) 7 dmitst0 (dma0 interrupt request status bit) note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. dma5?9 interrupt request status register (dm59itst) 123456b7 b0 dmitst9 dmitst8 dmitst6 dmitst5 dmitst7 00000 0 0 0 b bit name function r w 0?2 no function assigned. fix to "0." 00 3 dmitst9 (dma9 interrupt request status bit) 0: interrupt not requested r(note 1) 4 dmitst8 (dma8 interrupt request status bit) 1: interrupt requested 5 dmitst7 (dma7 interrupt request status bit) 6 dmitst6 (dma6 interrupt request status bit) 7 dmitst5 (dma5 interrupt request status bit) note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. the interrupt request status register helps to know the status of interrupt requests on each channel. if the dman interrupt request status bit (n = 0?9) is set to "1," it means that a dma interrupt request on the correspond- ing channel has been generated. (1) dmitstn (dman interrupt request status) bit (n = 0?9) [setting the dman interrupt request status bit] this bit is set in hardware, and cannot be set in software. [clearing the dman interrupt request status bit] this bit is cleared by writing "0" in software. note: ? the dman interrupt request status bit cannot be cleared by writing "0" to the dma interrupt control register?s ?interrupt request bit? included in the interrupt controller. when writing to the dma interrupt request status register, make sure only the bits to be cleared are set to "0" and all other bits are set to "1." those bits that have been set to "1" are unaffected by writing in software and retain the value they had before the write.
dmac 9-36 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.2 dmac related registers dma0?4 interrupt request mask register (dm04itmk) 9 1011121314b15 b8 dmitmk4 dmitmk3 dmitmk1 dmitmk0 dmitmk2 00000 0 0 0 b bit name function r w 8?10 no function assigned. fix to "0." 00 11 dmitmk4 (dma4 interrupt request mask bit) 0: enable interrupt request r w 12 dmitmk3 (dma3 interrupt request mask bit) 1: mask (disable) interrupt request 13 dmitmk2 (dma2 interrupt request mask bit) 14 dmitmk1 (dma1 interrupt request mask bit) 15 dmitmk0 (dma0 interrupt request mask bit) dma5?9 interrupt request mask register (dm59itmk) 9 1011121314b15 b8 dmitmk9 dmitmk8 dmitmk6 dmitmk5 dmitmk7 00000 0 0 0 b bit name function r w 8?10 no function assigned. fix to "0." 00 11 dmitmk9 (dma9 interrupt request mask bit) 0: enable interrupt request r w 12 dmitmk8 (dma8 interrupt request mask bit) 1: mask (disable) interrupt request 13 dmitmk7 (dma7 interrupt request mask bit) 14 dmitmk6 (dma6 interrupt request mask bit) 15 dmitmk5 (dma5 interrupt request mask bit) the dma interrupt request mask register is used to mask interrupt requests on each dma channel. (1) dmitmkn (dman interrupt request mask) bit (n = 0?9) setting the dman interrupt request mask bit to "1" masks the interrupt requests on dman channel. how- ever, if an interrupt request occurs, the dman interrupt request status bit is always set to "1" irrespective of the contents of this mask register.
dmac 9 9-37 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 f/f f/f dmitmk5 dmitst5 f/f f/f dmitmk6 dmitst6 f/f f/f dmitmk7 dmitst7 f/f f/f dmitmk8 dmitst8 f/f f/f dmitmk9 dmitst9 b15 b7 b14 b6 b13 b5 b12 b4 b11 b3 data bus dma9udf dma8udf dma7udf dma6udf dma5udf dma transfer interrupt request 1 (level) 5-source inputs dm59itst (h'0080 0408) dm59itmk (h'0080 0409) figure 9.2.5 block diagram of dma transfer interrupt request 1 f/f f/f dmitmk0 dmitst0 f/f f/f dmitmk1 dmitst1 f/f f/f dmitmk2 dmitst2 f/f f/f dmitmk3 dmitst3 f/f f/f dmitmk4 dmitst4 b15 b7 b14 b6 b13 b5 b12 b4 b11 b3 data bus dma4udf dma3udf dma2udf dma1udf dma0udf dma transfer interrupt request 0 (level) 5-source inputs dm04itst (h'0080 0400) dm04itmk (h'0080 0401) figure 9.2.4 block diagram of dma transfer interrupt request 0 9.2 dmac related registers
dmac 9-38 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.3 functional description of the dmac 9.3.1 dma transfer request sources for each dma channel (channels 0?9), dma transfer can be requested from two or more sources. there are various causes or sources of dma transfer request, so that dma transfer can be started by a request from some internal peripheral i/o, in software by a program, or upon completion of one transfer or all transfers on another dma channel (cascade mode). the causes or sources of dma transfer requests are selected using the transfer request source select bits reqsln on each channel (dman channel control register 0 bits 2?3) or the extended transfer request source select bits reqeseln (dman channel control register 1 bits 12?15). the tables below list the causes or sources of dma transfer requests on each channel. table 9.3.1 dma transfer request sources and generation timings on dma0 reqsl0 dma transfer request source dma transfer request generation timing 0 0 software start or one dma2 when any data is written to the dma0 software request generation transfer completed register (software start) or when one dma2 transfer is completed (cascade mode) 0 1 a/d0 conversion completed when a/d0 conversion is completed 1 0 mjt (tio8_udf) when mjt tio8 underflows 1 1 extended dma0 transfer request the source selected by the dma0 channel control register 1 source selected (dm0cnt1) reqesel0 bits (see below) reqesel0 dma transfer request source dma transfer request generation timing 0000 mjt (input event bus 2) when mjt input event bus 2 signal is generated 0001 mjt (tid0_udf/ovf) when mjt tid0 underflow/overflow occurs 0010 can (can0_s0/s31) when can0 slot 0 transmission failed or slot 31 transmission/reception finished 0011 common 1) mjt (input event bus 1) when mjt input event bus 1 signal is generated 0100 common 2) mjt (input event bus 3) when mjt input event bus 3 signal is generated 0101 common 3) mjt (output event bus 2) when mjt output event bus 2 signal is generated 0110 common 4) mjt (output event bus 3) when mjt output event bus 3 signal is generated 0111 common 5) a/d0 conversion completed when a/d0 conversion is completed 1000 common 6) mjt (tin0s) when mjt tin0 input signal is generated 1001 common 7) mjt (tio8_udf) when mjt tio8 underflow occurs 1010 common 8) mjt (tin30s) when mjt tin30 input signal is generated 1011 common 9) mjt (tio9_udf) when mjt tio9 underflow occurs 1100 common 10) settings inhibited ? 1101 mjt (tou1_0irq) when mjt tou1_0 interrupt request is generated 1110 dri (din0) when dri din0 event detection interrupt is generated 1111 sio4_txd (transmit buffer empty) when sio4 transmit buffer empty interrupt is generated 9.3 functional description of the dmac
dmac 9 9-39 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 table 9.3.2 dma transfer request sources and generation timings on dma1 reqsl1 dma transfer request source dma transfer request generation timing 0 0 software start when any data is written to the dma1 software request generation register 0 1 mjt (output event bus 0) when mjt output event bus 0 signal is generated 1 0 settings inhibited ? 1 1 extended dma1 transfer request the source selected by the dma1 channel control register 1 source selected (dm1cnt1) reqesel1 bits (see below) reqesel1 dma transfer request source dma transfer request generation timing 0000 one dma0 transfer completed when one dma0 transfer is completed (cascade mode) 0001 mjt (tin3s) when mjt tin3 input signal is generated 0010 mjt (tid1_udf/ovf) when mjt tid1 underflow/overflow occurs 0011 common 1) mjt (input event bus 1) when mjt input event bus 1 signal is generated 0100 common 2) mjt (input event bus 3) when mjt input event bus 3 signal is generated 0101 common 3) mjt (output event bus 2) when mjt output event bus 2 signal is generated 0110 common 4) mjt (output event bus 3) when mjt output event bus 3 signal is generated 0111 common 5) a/d0 conversion completed when a/d0 conversion is completed 1000 common 6) mjt (tin0s) when mjt tin0 input signal is generated 1001 common 7) mjt (tio8_udf) when mjt tio8 underflow occurs 1010 common 8) mjt (tin30s) when mjt tin30 input signal is generated 1011 common 9) mjt (tio9_udf) when mjt tio9 underflow occurs 1100 common 10) settings inhibited ? 1101 mjt (tou1_1irq) when tou1_1 interrupt request is generated 1110 dri (din1) when dri din1 event detection interrupt is generated 1111 sio4_rxd (reception completed) when sio4 reception-completed interrupt is generated table 9.3.3 dma transfer request sources and generation timings on dma2 reqsl2 dma transfer request source dma transfer request generation timing 0 0 software start when any data is written to the dma2 software request generation register 0 1 mjt (output event bus 1) when mjt output event bus 1 signal is generated 1 0 mjt (tin18s) when mjt tin18 input signal is generated 1 1 extended dma2 transfer request the source selected by the dma2 channel control register 1 source selected (dm2cnt1) reqesel2 bits (see below) reqesel2 dma transfer request source dma transfer request generation timing 0000 one dma1 transfer completed when one dma1 transfer is completed (cascade mode) 0001 settings inhibited ? 0010 can(can0_s1/s30) when can0 slot 1 transmission failed or slot 30 transmission/reception finished 0011 common 1) mjt (input event bus 1) when mjt input event bus 1 signal is generated 0100 common 2) mjt (input event bus 3) when mjt input event bus 3 signal is generated 0101 common 3) mjt (output event bus 2) when mjt output event bus 2 signal is generated 0110 common 4) mjt (output event bus 3) when mjt output event bus 3 signal is generated 0111 common 5) a/d0 conversion completed when a/d0 conversion is completed 1000 common 6) mjt (tin0s) when mjt tin0 input signal is generated 1001 common 7) mjt (tio8_udf) when mjt tio8 underflow occurs 1010 common 8) mjt (tin30s) when mjt tin30 input signal is generated 1011 common 9) mjt (tio9_udf) when mjt tio9 underflow occurs 1100 common 10) settings inhibited ? 1101 settings inhibited ? 1110 dri (din2) when dri din2 event detection interrupt is generated 1111 sio5_txd (transmit buffer empty) when sio5 transmit buffer empty interrupt is generated 9.3 functional description of the dmac
dmac 9-40 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 table 9.3.4 dma transfer request sources and generation timings on dma3 reqsl3 dma transfer request source dma transfer request generation timing 0 0 software start when any data is written to the dma3 software request generation register 0 1 sio0_txd (transmit buffer empty) when sio0 transmit buffer is empty 1 0 sio1_rxd (reception completed) when sio1 reception is completed 1 1 extended dma3 transfer request the source selected by the dma3 channel control register 1 source selected (dm3cnt1) reqesel3 bits (see below) reqesel3 dma transfer request source dma transfer request generation timing 0000 mjt (tin0s) when mjt tin0 input signal is generated 0001 one dma2 transfer completed when one dma2 transfer is completed (cascade mode) 0010 settings inhibited ? 0011 common 1) mjt (input event bus 1) when mjt input event bus 1 signal is generated 0100 common 2) mjt (input event bus 3) when mjt input event bus 3 signal is generated 0101 common 3) mjt (output event bus 2) when mjt output event bus 2 signal is generated 0110 common 4) mjt (output event bus 3) when mjt output event bus 3 signal is generated 0111 common 5) a/d0 conversion completed when a/d0 conversion is completed 1000 common 6) mjt (tin0s) when mjt tin0 input signal is generated 1001 common 7) mjt (tio8_udf) when mjt tio8 underflow occurs 1010 common 8) mjt (tin30s) when mjt tin30 input signal is generated 1011 common 9) mjt (tio9_udf) when mjt tio9 underflow occurs 1100 common 10) settings inhibited ? 1101 mjt (tou1_6irq) when mjt tou1_6 interrupt request is generated 1110 dri (din3) when dri din3 event detection interrupt is generated 1111 sio5_rxd (reception completed) when sio5 reception-completed interrupt is generated table 9.3.5 dma transfer request sources and generation timings on dma4 reqsl4 dma transfer request source dma transfer request generation timing 0 0 software start when any data is written to the dma4 software request generation register 0 1 one dma3 transfer completed when one dma3 transfer is completed (cascade mode) 1 0 sio0_rxd (reception completed) when sio0 reception is completed 1 1 extended dma4 transfer request the source selected by the dma4 channel control register 1 source selected (dm4cnt1) reqesel4 bits (see below) reqesel4 dma transfer request source dma transfer request generation timing 0000 mjt (tin19s) when mjt tin19 input signal is generated 0001 sio0_txd (transmit buffer empty) when sio0 transmit buffer is empty 0010 mjt (tou1_7irq) mjt tou1_7 interrupt source 0011 common 1) mjt (input event bus 1) when mjt input event bus 1 signal is generated 0100 common 2) mjt (input event bus 3) when mjt input event bus 3 signal is generated 0101 common 3) mjt (output event bus 2) when mjt output event bus 2 signal is generated 0110 common 4) mjt (output event bus 3) when mjt output event bus 3 signal is generated 0111 common 5) a/d0 conversion completed when a/d0 conversion is completed 1000 common 6) mjt (tin0s) when mjt tin0 input signal is generated 1001 common 7) mjt (tio8_udf) when mjt tio8 underflow occurs 1010 common 8) mjt (tin30s) when mjt tin30 input signal is generated 1011 common 9) mjt (tio9_udf) when mjt tio9 underflow occurs 1100 common 10) settings inhibited ? 1101 mjt (tin7s) when mjt tin7 input signal is generated 1110 dri (din4) when dri din4 event detection interrupt is generated 1111 settings inhibited ? 9.3 functional description of the dmac
dmac 9 9-41 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 table 9.3.6 dma transfer request sources and generation timings on dma5 reqsl5 dma transfer request source dma transfer request generation timing 0 0 software start or one dma7 when any data is written to the dma5 software request generation register transfer completed or when one dma7 transfer is completed (cascade mode) 0 1 all dma0 transfers completed when all dma0 transfers are completed (cascade mode) 1 0 sio2_rxd (reception completed) when sio2 reception is completed 1 1 extended dma5 transfer request the source selected by the dma5 channel control register 1 source selected (dm5cnt1) reqesel5 bits (see below) reqesel5 dma transfer request source dma transfer request generation timing 0000 mjt (tin20s) when mjt tin20 input signal is generated 0001 mjt (tou0_0irq) mjt tou0_0 interrupt source 0010 settings inhibited ? 0011 common 1) mjt (input event bus 1) when mjt input event bus 1 signal is generated 0100 common 2) mjt (input event bus 3) when mjt input event bus 3 signal is generated 0101 common 3) mjt (output event bus 2) when mjt output event bus 2 signal is generated 0110 common 4) mjt (output event bus 3) when mjt output event bus 3 signal is generated 0111 common 5) a/d0 conversion completed when a/d0 conversion is completed 1000 common 6) mjt (tin0s) when mjt tin0 input signal is generated 1001 common 7) mjt (tio8_udf) when mjt tio8 underflow occurs 1010 common 8) mjt (tin30s) when mjt tin30 input signal is generated 1011 common 9) mjt (tio9_udf) when mjt tio9 underflow occurs 1100 common 10) settings inhibited ? 1101 mjt (tin8s) when mjt tin8 input signal is generated 1110 dri (dec0_udf) when dri dec0 underflow occurs 1111 can1_s0/s31 when can1 slot 0 transmission failed or slot 31 transmission/reception finished table 9.3.7 dma transfer request sources and generation timings on dma6 reqsl6 dma transfer request source dma transfer request generation timing 0 0 software start when any data is written to the dma6 software request generation register 0 1 sio1_txd (transmit buffer empty) when sio1 transmit buffer is empty 1 0 can0_s0/s31 when can0 slot 0 transmission failed or slot 31 transmission/reception finished 1 1 extended dma6 transfer request the source selected by the dma6 channel control register 1 source selected (dm6cnt1) reqesel6 bits (see below) reqesel6 dma transfer request source dma transfer request generation timing 0000 one dma5 transfer completed when one dma5 transfer is completed (cascade mode) 0001 mjt (tou0_1irq) mjt tou0_1 interrupt source 0010 sio1_rxd (reception completed) when sio1 reception is completed 0011 common 1) mjt (input event bus 1) when mjt input event bus 1 signal is generated 0100 common 2) mjt (input event bus 3) when mjt input event bus 3 signal is generated 0101 common 3) mjt (output event bus 2) when mjt output event bus 2 signal is generated 0110 common 4) mjt (output event bus 3) when mjt output event bus 3 signal is generated 0111 common 5) a/d0 conversion completed when a/d0 conversion is completed 1000 common 6) mjt (tin0s) when mjt tin0 input signal is generated 1001 common 7) mjt (tio8_udf) when mjt tio8 underflow occurs 1010 common 8) mjt (tin30s) when mjt tin30 input signal is generated 1011 common 9) mjt (tio9_udf) when mjt tio9 underflow occurs 1100 common 10) settings inhibited ? 1101 dri address counter 0 transfer completed when dri address counter 0 transfer completed 1110 dri (dec1_udf) when dri dec1 underflow occurs 1111 settings inhibited ? 9.3 functional description of the dmac
dmac 9-42 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.3 functional description of the dmac table 9.3.8 dma transfer request sources and generation timings on dma7 reqsl7 dma transfer request source dma transfer request generation timing 0 0 software start when any data is written to the dma7 software request generation register 0 1 sio2_txd (transmit buffer empty) when sio2 transmit buffer is empty 1 0 can0_s1/s30 when can0 slot 1 transmission failed or slot 30 transmission/reception finished 1 1 extended dma7 transfer request the source selected by the dma7 channel control register 1 source selected (dm7cnt1) reqesel7 bits (see below) reqesel7 dma transfer request source dma transfer request generation timing 0000 one dma6 transfer completed when one dma6 transfer is completed (cascade mode) 0001 mjt (tou0_2irq) mjt tou0_2 interrupt source 0010 sio3_txd (transmit buffer empty) when sio3 transmit buffer is empty 0011 common 1) mjt (input event bus 1) when mjt input event bus 1 signal is generated 0100 common 2) mjt (input event bus 3) when mjt input event bus 3 signal is generated 0101 common 3) mjt (output event bus 2) when mjt output event bus 2 signal is generated 0110 common 4) mjt (output event bus 3) when mjt output event bus 3 signal is generated 0111 common 5) a/d0 conversion completed when a/d0 conversion is completed 1000 common 6) mjt (tin0s) when mjt tin0 input signal is generated 1001 common 7) mjt (tio8_udf) when mjt tio8 underflow occurs 1010 common 8) mjt (tin30s) when mjt tin30 input signal is generated 1011 common 9) mjt (tio9_udf) when mjt tio9 underflow occurs 1100 common 10) settings inhibited ? 1101 dri address counter 1 transfer completed when dri address counter 1 transfer completed 1110 dri (dec2_udf) when dri dec2 underflow occurs 1111 can1_s1/s30 when can1 slot 1 transmission failed or slot 30 transmission/reception finished table 9.3.9 dma transfer request sources and generation timings on dma8 reqsl8 dma transfer request source dma transfer request generation timing 0 0 software start when any data is written to the dma8 software request generation register 0 1 mjt (input event bus 0) when mjt input event bus 0 signal is generated 1 0 sio3_rxd (reception completed) when sio3 reception is completed 1 1 extended dma8 transfer request the source selected by the dma8 channel control register 1 source selected (dm8cnt1) reqesel8 bits (see below) reqesel8 dma transfer request source dma transfer request generation timing 0000 can1_s0/s31 when can1 slot 0 transmission failed or slot 31 transmission/reception finished 0001 mjt (tou0_6irq) mjt tou0_6 interrupt source 0010 one dma7 transfer completed when one dma7 transfer is completed (cascade mode) 0011 common 1) mjt (input event bus 1) when mjt input event bus 1 signal is generated 0100 common 2) mjt (input event bus 3) when mjt input event bus 3 signal is generated 0101 common 3) mjt (output event bus 2) when mjt output event bus 2 signal is generated 0110 common 4) mjt (output event bus 3) when mjt output event bus 3 signal is generated 0111 common 5) a/d0 conversion completed when a/d0 conversion is completed 1000 common 6) mjt (tin0s) when mjt tin0 input signal is generated 1001 common 7) mjt (tio8_udf) when mjt tio8 underflow occurs 1010 common 8) mjt (tin30s) when mjt tin30 input signal is generated 1011 common 9) mjt (tio9_udf) when mjt tio9 underflow occurs 1100 common 10) settings inhibited ? 1101 dri latch event counter_udf when dri latch event counter underflow occurs 1110 dri (dec3_udf) when dri dec3 underflow occurs 1111 settings inhibited ?
dmac 9 9-43 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 table 9.3.10 dma transfer request sources and generation timings on dma9 reqsl9 dma transfer request source dma transfer request generation timing 0 0 software start when any data is written to the dma9 software request generation register 0 1 sio3_txd (transmit buffer empty) when sio3 transmit buffer is empty 1 0 can1_s1/s30 when can1 slot 1 transmission failed or slot 30 transmission/reception finished 1 1 extended dma9 transfer request the source selected by the dma9 channel control register 1 source selected (dm9cnt1) reqesel9 bits (see below) reqesel9 dma transfer request source dma transfer request generation timing 0000 one dma8 transfer completed when one dma8 transfer is completed (cascade mode) 0001 mjt (tou0_7irq) mjt tou0_7 interrupt source 0010 settings inhibited ? 0011 common 1) mjt (input event bus 1) when mjt input event bus 1 signal is generated 0100 common 2) mjt (input event bus 3) when mjt input event bus 3 signal is generated 0101 common 3) mjt (output event bus 2) when mjt output event bus 2 signal is generated 0110 common 4) mjt (output event bus 3) when mjt output event bus 3 signal is generated 0111 common 5) a/d0 conversion completed when a/d0 conversion is completed 1000 common 6) mjt (tin0s) when mjt tin0 input signal is generated 1001 common 7) mjt (tio8_udf) when mjt tio8 underflow occurs 1010 common 8) mjt (tin30s) when mjt tin30 input signal is generated 1011 common 9) mjt (tio9_udf) when mjt tio9 underflow occurs 1100 common 10) settings inhibited ? 1101 dri transfer counter_udf when dri transfer counter underflow occurs 1110 dri (dec4_udf) when dri dec4 underflow occurs 1111 dri (din5) when dri din5 event detection interrupt is generated 9.3 functional description of the dmac
dmac 9-44 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 dma transfer starts as requested by internal peripheral i/o dma transfer processing starts transfer count register underflows interrupt request generated set dma0 channel control register 0 set dma0-4 interrupt request status register set dma0 channel control registers 0, 1 and 2 set dma0 source address register set dma0 destination address register set dma0 count register setting dmac-related registers starting dma transfer dma transfer completed ? transfers disabled  interrupt request status bits cleared set dma0-4 interrupt request mask register  source address of transfer  destination address of transfer  number of times dma transfer is performed  transfer mode, request source, transfer size, address direction, bank and transfer enable dma operation completed  interrupt request enabled set the interrupt controller's dma0-4 interrupt control register  interrupt priority level setting interrupt controller-related registers figure 9.3.1 example of a dma transfer processing procedure 9.3.2 dma transfer processing procedure shown below is an example of how to control dma transfer in cases when performing transfer on dma channel 0. 9.3 functional description of the dmac
dmac 9 9-45 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 9.3.2 gaining and releasing control of the internal bus one dma transfer dmac cpu internal bus arbitration (requests from the dmac) internal bus r: read w: write rw rw rw requested gained requested gained requested gained one dma transfer one dma transfer released released released 9.3 functional description of the dmac 9.3.3 starting dma use the dman channel control register 0 reqsl (dma transfer request source select) and dman channel control register 1 reqesel (extended dma transfer request source select) bits to set the cause or source of dma transfer request. to enable dma, set the tenl (dma transfer enable) bit to "1." dma transfer begins when the specified cause or source of dma transfer request becomes effective after setting the tenl (dma transfer enable) bit to "1." note: ? if the transfer request source selected by the reqsl (dma transfer request source select) and reqesel (extended dma transfer request source select) bits is mjt (tin input signal), the time required for dma transfer to begin after detecting the rising or falling or both edges of the tin input signal is three cycles (75 ns when the internal peripheral clock = 40 mhz) at the shortest. or, depending on the preceding or following bus usage condition, up to five cycles (125 ns when the internal peripheral clock = 40 mhz) may be required. (however, this applies when the external bus, hold and the lock instruction all are unused.) to ensure that changes of the tin input signal state will be detected correctly, make sure the tin input signal is held active for a duration of more than 7tc (bclk)/2. (for details, see section 23.9, ?ac characteristics (when vcce = 5 v),? and section 23.10, ?ac characteristics (when vcce = 3.3 v).?) 9.3.4 dma channel priority dma0 has the highest priority. the priority of this and other channels is shown below. dma0 > dma1 > dma2 > dma3 > dma4 > dma5 > dma6 > dma7 > dma8 > dma9 this order of priority is fixed and cannot be changed. among channels on which dma transfer is requested, the channel that has the highest priority is selected. 9.3.5 gaining and releasing control of the internal bus for any channel, control of the internal bus is gained and released in ?single transfer dma? mode. in single transfer dma, the dmac gains control of the internal bus (in one peripheral clock cycle) when dma transfer request is accepted and after executing one dma transfer (in one read and one write peripheral clock cycle), returns bus control to the cpu. the diagram below shows the operation in single transfer dma.
dmac 9-46 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.3.6 transfer units use the tszsl (dma transfer size select) bit to set for each channel the number of bits (8 or 16 bits) to be transferred in one dma transfer. 9.3.7 transfer counts use the dma transfer count register to set transfer counts for each channel. transfer can be performed up to 65,536 times. the value of the dma transfer count register is decremented by one every time one transfer unit is transferred. in ring buffer mode, the dma transfer count register operates in free-run mode, with the value set in it ignored. 9.3.8 address space the address space in which data can be transferred by dma is 64 kbytes 3 banks of sfr area or internal ram area (32192 : h?0080 0000 to h?0082 ffff, 32195 : h?0080 0000 to h?0080 bfff, 32196 : h?0080 0000 to h?0081 3fff) for both source and destination. to set the source and destination addresses on each dma channel, use the dma source address register and dma destination address register. note that no transfer over the bank is carried out. upon completion of bank transfer to the final address, the bank is to be transferred to the head address. 9.3.9 transfer operation (1) dual-address transfer irrespective of the size of transfer unit, data is transferred in two bus cycles, one for source read access and the other for destination write access. (the transfer data is taken into the dmac?s internal temporary regis- ter before being transferred.) (2) bus protocol and bus timing because the bus interface is shared with the cpu, dma transfer is performed with the same bus protocol and the same bus timing as when peripheral modules are accessed by the cpu. (3) transfer rate transfer is performed using a total of three peripheral clock cycles, one cycle to gain control of the bus and one read and one write cycles to perform one transfer. therefore, the maximum transfer rate is calculated by the equation below: maximum transfer rate [bytes per second] = 2 bytes 1 1/f(bclk) 3 cycles (4) address count direction and address changes the direction in which the source and destination addresses are counted as transfer proceeds (?address fixed? or ?address incremental?) is set for each channel using the sadsl (source address direction select) and dadsl (destination address direction select) bits. when the transfer size is 16 bits, the address is incremented by two for each dma transfer performed; when the transfer size is 8 bits, the address is incremented by one. table 9.3.11 address count direction and address changes address count direction transfer unit address change for one dma address fixed 8 bits 0 16 bits 0 address incremental8 bits 8 bits +1 16 bits +2 9.3 functional description of the dmac
dmac 9 9-47 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 9.3.3 transfer byte positions (7) ring buffer mode in the ring buffer mode, the number of dma transfers to each channel can be selected from among 32, 16, 8, 4 and 2 times, and after transfer from the transfer start address, the bit returns to the transfer start address again: thus, the same operation is repeated by the selected frequency. note: ? the transfer start address must be as follows: transfer size: 8 bits transfer size: 16 bits 32-time ring buffer mode low order 5 bits ? b?00000 low order 6 bits ? b?000000 16-time ring buffer mode low order 4 bits ? b?0000 low order 5 bits ? b?00000 8-time ring buffer mode low order 3 bits ? b?000 low order 4 bits ? b?0000 4-time ring buffer mode low order 2 bits ? b?00 low order 3 bits ? b?000 2-time ring buffer mode low order 1 bits ? b?0 low order 2 bits ? b?00 the address increment operation in the ring buffer mode is as follows. [1] when the transfer size is 8 bits the 27 high-order bits of the transfer start address are fixed, and the five low-order bits are incremented by one at a time. when as transfer proceeds the five low-order bits reach b?11111, they are recycled to b?00000 by the next increment operation, thus returning to the start address again. [2] when the transfer size is 16 bits the 26 high-order bits of the transfer start address are fixed, and the six low-order bits are incremented by two at a time. when as transfer proceeds the six low-order bits reach b?111110, they are recycled to b?000000 by the next increment operation, thus returning to the start address again. 9.3 functional description of the dmac (5) transfer count value the transfer count value is decremented one at a time, irrespective of the size of transfer unit (8 or 16 bits). (6) transfer byte positions when the transfer unit is 8 bits, the lsb of the address register is effective for both source and destination. (therefore, in addition to data transfers between even addresses or between odd addresses, data may be transferred from even address to odd address or vice versa.) when the transfer unit is 16 bits, the lsb of the address register (= bit 15) is ignored, and data are always transferred in two bytes aligned to the 16-bit bus. the diagram below shows the valid byte positions in dma transfer. b0 b7 b8 b15 8 bits +0 +1 source destination 8 bits 8 bits 8 bits 16 bits 16 bits b0 b7 b8 b15 +0 +1
dmac 9-48 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.3 functional description of the dmac figure 9.3.4 example of how addresses are incremented in 32-channel ring buffer mode 9.3.10 end of dma and interrupt in normal mode, dma transfer is terminated by an underflow of the transfer count register. when transfer finishes, the transfer enable bit is cleared to "0" and transfers are thereby disabled. also, an interrupt request is generated at completion of transfer. however, if interrupt requests on any channel have been masked by the dma interrupt request mask register, no interrupt requests are generated on that channel. during ring buffer mode, the transfer count register operates in free-run mode, and transfer continues until the transfer enable bit is cleared to "0" (to disable transfer). in this case, therefore, no interrupt requests are generated at completion of dma transfer. nor are these dma transfer-completed interrupt requests generated even when transfer in ring buffer mode is terminated by clearing the transfer enable bit. 9.3.11 each register status after completion of dma transfer when dma transfer is completed, the status of the source and destination address registers becomes as follows: (1) address fixed ? the values set in the address registers before dma transfer started remain intact (fixed). (2) address incremental ? for 8-bit transfer, the values of the address registers are the last transfer address + 1. ? for 16-bit transfer, the values of the address registers are the last transfer address + 2. the transfer count register at completion of dma transfer is in an underflow state (h?ffff). therefore, before another dma transfer can be performed, the transfer count register must be set newly again, except when trying to perform transfers 65,536 times (h?ffff). transfer count transfer address 1 h'0080 1000 2 h'0080 1001 3 h'0080 1002 31 h'0080 101e 32 h'0080 101f 1 h'0080 1000 2 h'0080 1001 transfer count transfer address 1 h'0080 1000 2 h'0080 1002 3 h'0080 1004 31 h'0080 103c 32 h'0080 103e 1 h'0080 1000 2 h'0080 1002 | | | | | | | | if the source address has been set to be incremented, it is the source address that recycles to the start address; if the destination address has been set to be incremented, it is the destination address that re- cycles to the start address. if both source and destination addresses have been set to be incremented, both addresses recycle to the start address. however, the start address on either side must have their five low- order bits initially set to b?00000 (if transfer size = 16 bits, the six low-order bits must be b?000000). during ring buffer mode, the transfer count register is ignored. once dma operation starts, the counter operates in free-run mode, and the transfer continues until the transfer enable bit is cleared to "0" (to disable transfer).
dmac 9 9-49 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.4 notes on the dmac ? about writing to the dmac related registers because dma transfer involves exchanging data via the internal bus, the dmac related registers basically can only be accessed for write upon exiting the reset state or when transfer is disabled (transfer enable bit = "0"). when transfer is enabled, do not write to the dmac related registers, except the dma transfer enable bit, the transfer request flag, dma interrupt related register and the dma transfer count register that is protected in hardware. this is a precaution necessary to ensure stable dma operation. the table below lists the registers that can or cannot be accessed for write. table 9.4.1 dmac related registers that can or cannot be accessed for write status transfer enable bit transfer request flag dma interrupt related register other dmac related registers transfer enabled can be accessed can be accessed can be accessed cannot be accessed transfer disabled can be accessed can be accessed can be accessed can be accessed even for registers that can exceptionally be written to while transfer is enabled, the following conditions must be observed: (1) dma channel control register 0 transfer enable bit and transfer request flag for all bits other than transfer enable bit and transfer request flag in this register, be sure to write the same data that those bits had before the write. note, however, that only writing "0" is effective for the transfer request flag. (2) dma transfer count register when transfer is enabled, this register is protected in hardware, so that any data rewritten to it is ignored. (3) rewriting the dma source and dma destination addresses on different channels by dma transfer although this operation means accessing the dmac related registers while dma is enabled, there is no problem. note, however, that no data can be transferred by dma to the dmac related registers on the currently active channel itself. ? manipulating the dmac related registers by dma transfer when manipulating the dmac related registers by means of dma transfer (e.g., reloading the dmac related registers with the initial values by dma transfer), do not write to the dmac related registers on the currently active channel through that channel. (if this precaution is neglected, device operation cannot be guaranteed.) it is only the dmac related registers on other channels that can be rewritten by means of dma transfer. (for example, the dman source address and dman destination address registers on channel 1 can be rewritten by dma transfer through channel 0.) ? about the dma interrupt request status register when clearing the dma interrupt request status register, be sure to write "1" to all bits, except those to be cleared. writing "1" to any bits in this register has no effect, so that they retain the data they had before the write. ? about the stable operation of dma transfer to ensure the stable operation of dma transfer, never rewrite the dmac related registers, except transfer enable bits of the dma channel control register 0, unless transfer is disabled. one exception is that even when transfer is enabled, the dma source address and dma destination address registers can be rewritten by dma transfer from one channel to another. 9.4 notes on the dmac
dmac 9-50 9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 9.4 notes on the dmac this page is blank for reasons of layout.
chapter 10 multijunction timers 10.1 outline of multijunction timers 10.2 common units of multijunction timers 10.3 top (output-related 16-bit timer) 10.4 tio (input/output-related 16-bit timer) 10.5 tms (input-related 16-bit timer) 10.6 tml (input-related 32-bit timer) 10.7 tid (input-related 16-bit timer) 10.8 tou (output-related 24-bit timer)
10-2 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.1 outline of multijunction timers the multijunction timers (abbreviated mjt) have input event and output event buses. therefore, in addition to being used as a single unit, the timers can be internally connected to each other. this capability allows for highly flexible timer configuration, making it possible to meet various application needs. it is because the timers are connected to the internal event buses at multiple points that they are called the ?multijunction? timers. the 32192/32195/32196 has six types of mjt as listed in the table below, providing a total of 55-channel timers. table 10.1.1 outline of mjt name type no. of channels description top output-related 11 one of three output modes can be selected by software. (timer 16-bit timer output) (down-counter) ? single-shot output mode ? delayed single-shot output mode ? continuous output mode tio input/output-related 10 one of three input modes or four output modes can be selected (timer 16-bit timer by software. input (down-counter) output) ? measure clear input mode ? measure free-run input mode ? noise processing input mode ? pwm output mode ? single-shot output mode ? delayed single-shot output mode ? continuous output mode tms input-related 8 16-bit input measure timer (timer 16-bit timer measure (up-counter) small) tml input-related 8 32-bit input measure timer (timer 32-bit timer measure (up-counter) large) tid input-related 2 one of four input modes can be selected by software. (timer 16-bit timer ? fixed period mode input (up/down-counter)) ? event count mode derivation) ? multiply-by-4 event count mode ? up/down event count mode tou output-related 16 one of five output modes can be selected by software. (timer 24-bit timer output (down-counter) ? pwm output mode unification) (16-bit timer during ? single-shot pwm output mode pwm output and ? delayed single-shot output mode single-shot pwm ? single-shot output mode output modes) ? continuous output mode 10.1 outline of multijunction timers
multijunction timers 10 10-3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 table 10.1.2 interrupt generation functions of mjt signal name mjt interrupt request source source of interrupt no. of icu input sources irq0 tio0?3 output mjt output interrupt 0 4 irq1 top6, top7 output mjt output interrupt 1 2 irq2 top0?5 output mjt output interrupt 2 6 irq3 tio8, tio9 output mjt output interrupt 3 2 irq4 tio4?7 output mjt output interrupt 4 4 irq5 top10 output mjt output interrupt 5 1 irq6 top8, top9 output mjt output interrupt 6 2 irq7 tms0, tms1 output mjt output interrupt 7 2 irq8 tin7?tin11 input mjt input interrupt 0 5 irq9 tin0 input mjt input interrupt 1 1 irq10 tin16?tin19 input mjt input interrupt 2 4 irq11 tin20?tin27 input mjt input interrupt 3 8 irq12 tin3?tin6 input mjt input interrupt 4 4 irq13 tou0_0?tou0_7 output tou0 output interrupt 8 irq14 tid0 output tid0 output interrupt 1 irq15 tid1 output tid1 output interrupt 1 irq16 tou1_0?tou1_7 output tou1 output interrupt 8 irq18 tin30?tin33 input tml1 input interrupt 4 table 10.1.3 dma transfer request generation by mjt corresponding dmac channel no. dma transfer request source dma0 tio8_udf input event bus 2 tid0_udf/ovf tou1_0irq common transfer request source (see table 10.1.4) dma1 output event bus 0 tin3 input signal tid1_udf/ovf tou1_1irq common transfer request source (see table 10.1.4) dma2 output event bus 1 tin18 input signal common transfer request source (see table 10.1.4) dma3 tin0 input signal tou1_6irq common transfer request source (see table 10.1.4) dma4 tin19 input signal tou1_7irq tin7 input signal common transfer request source (see table 10.1.4) 10.1 outline of multijunction timers
10-4 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 dma5 tin20 input signal tou0_0irq tin8 input signal common transfer request source (see table 10.1.4) dma6 tou0_1irq common transfer request source (see table 10.1.4) dma7 tou0_2irq common transfer request source (see table 10.1.4) dma8 input event bus 0 tou0_6irq common transfer request source (see table 10.1.4) dma9 tou0_7irq common transfer request source (see table 10.1.4) table 10.1.4 dma transfer request generation by mjt (common) corresponding dmac channel no. dma transfer request source dman input event bus 1 input event bus 3 output event bus 2 output event bus 3 tin0 input signal tin30 input signal tio8_udf tio9_udf table 10.1.5 a/d conversion start request by mjt signal name a/d conversion start request source a/d converter ad0trg input event bus 2, input event bus 3, can be input to a/d0 conversion start trigger output event bus 3, tin23 10.1 outline of multijunction timers
multijunction timers 10 10-5 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 10.1.1 block diagram of mjt (1/4) tclk0 (p124) tin0 (p150) tin3 (p153) tin4 (p30) tin5 (p31) tin6 (p32) tclk1 (p125) tin7 (p33) tclk2 (p126) tin8 (p44) tin9 (p45) tin10 (p46) tin11 (p47) to0 (p110) to1 (p111) to2 (p112) to3 (p113) to4 (p114) to5 (p115) to6 (p116) to7 (p117) to8 (p100) to9 (p101) to10 (p102) to11 (p103) to12 (p104) to13 (p105) to14 (p106) to15 (p107) to16 (p93) to17 (p94) to18 (p95) to19 (p96) to20 (p97) irq9 irq12 dma1 irq12 irq12 irq12 irq8 dma4 irq8 dma5 irq8 irq8 irq8 irq2 irq2 irq2 irq2 irq2 irq2 irq1 irq1 irq6 irq6 irq5 irq0 irq0 irq0 irq0 irq4 irq4 irq4 irq4 dma0 dma common irq3 : prescalers : output flip-flop : selector notes: ? irq0-18 denotes interrupt signals, of which the same number represents the same group of interrupts.  dma0-9 and dma common denote dma request signals to the dmac.  ad0trg denotes trigger signal to the a/d0 converter. s f/f prs0-4 dma common dma3,dma commom irq3 bclk 1/4 1/2 top 0 clk en udf top 1 clk en udf top 2 clk en udf top 3 clk en udf top 4 clk en udf top 5 clk en udf top 6 clk en udf top 7 clk en udf top 8 clk en udf top 9 clk en udf top 10 clk en udf tio 0 clk en/cap udf tio 1 clk en/cap udf tio 2 clk en/cap udf tio 3 clk en/cap udf tio 4 clk en/cap udf tio 5 clk en/cap udf tio 6 clk en/cap udf tio 7 clk en/cap udf tio 8 clk en/cap udf tio 9 clk en/cap udf s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s tin0s tclk0s f/f10 f/f11 f/f12 f/f13 f/f14 f/f15 f/f16 f/f17 f/f18 f/f19 f/f20 f/f0 f/f1 f/f2 f/f3 f/f4 f/f5 f/f6 f/f7 f/f8 f/f9 tin3s tin4s tin5s tin6s s s s prs0 prs1 prs2 tclk1s tin7s tclk2s tin8s tin9s tin10s tin11s s s s 3210 3210 0123 3210 3210 0123 clock bus input event bus output event bus 10.1 outline of multijunction timers
10-6 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tclk3 (p127) tin16/pwmoff0 (p130) tin17/pwmoff1 (p131) tin18 (p132) tin19 (p133) tin20 (p134) tin21 (p135) tin22 (p136) tin23 (p137) tin30 (p34) tin31 (p35) tin32 (p36) tin33 (p37) irq10 irq10 irq10 dma2 irq10 dma4 irq11 dma5 irq11 irq11 irq11 (to a/d0 converter) ad0trg irq18 irq18 irq18 irq18 ad0trg (to a/d0 converter) ad0trg (to a/d0 converter) ad0trg (to a/d0 converter) irq7 irq7 dma common tms 0 clk cap3 cap2 cap1 cap0 ovf s tclk3s s s s s tms 1 clk cap3 cap2 cap1 cap0 ovf tin16s tin17s tin18s tin19s s s s s s tml 0 (32-bit) clk cap3 cap2 cap1 cap0 tin20s tin21s tin22s tin23s s s s s s tml 1 (32-bit) clk cap3 cap2 cap1 cap0 tin30s tin31s tin32s tin33s s s s s s 3210 3210 0123 3210 3210 0123 clock bus input event bus output event bus bclk 1/4 1/2 figure 10.1.2 block diagram of mjt (2/4) 10.1 outline of multijunction timers
multijunction timers 10 10-7 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tin16/pwmoff0 (p130) tin24 (p103) tin25 (p104) tin17/pwmoff1 (p131) tin26 (p73) tin27 (p72) to21 (p00/p87) to22 (p01/p86) to23 (p02/p85) to24 (p03/p84) to25 (p04/p83) to26 (p05/p82) to27 (p06/p175) to28 (p07/p174) to29 (p10/p110) to30 (p11/p111) to31 (p12/p112) to32 (p13/p113) to33 (p14/p114) to34 (p15/p115) to35 (p16/p116) to36 (p17/p117) irq11 irq11 irq11 irq11 dma5 dma6 dma7 dma8 dma9 dma0 dma4 dma1 irq13 irq13 irq13 irq13 irq13 irq13 irq13 irq13 irq14 irq16 irq16 irq16 irq16 irq16 irq16 irq16 irq16 irq15 bclk dma0 dma1 dma3 tou0_0 (24-bit) clk en udf tou0_1 (24-bit) clk en udf tou0_2 (24-bit) clk en udf tou0_3 (24-bit) clk en udf tou0_4 (24-bit) clk en udf tou0_5 (24-bit) clk en udf tou0_6 (24-bit) clk en udf tou0_7 (24-bit) clk en udf tid 0 clk clk1 clk2 ovf udf tou1_0 (24-bit) clk en udf tou1_1 (24-bit) clk en udf tou1_2 (24-bit) clk en udf tou1_3 (24-bit) clk en udf tou1_4 (24-bit) clk en udf tou1_5 (24-bit) clk en udf tou1_6 (24-bit) clk en udf tou1_7 (24-bit) clk en udf tid 1 clk clk1 clk2 ovf udf tin25s pwmoff1s pwmoff0s po1dis po0dis tin24s prs3 f/f29 f/f30 f/f31 f/f32 f/f33 f/f34 f/f35 f/f36 f/f21 f/f22 f/f23 f/f24 f/f25 f/f26 f/f27 f/f28 s tin27s tin26s prs4 s s s output event bus 0 bclk 1/4 1/4 figure 10.1.3 block diagram of mjt (3/4) 10.1 outline of multijunction timers
10-8 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 10.1.4 block diagram of mjt (4/4) 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. 10.1 outline of multijunction timers
multijunction timers 10 10-9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.2 common units of multijunction timers the common units of mjt include the following: ? prescaler unit ? clock bus and input/output event bus control unit ? input processing control unit ? output flip-flop control unit ? interrupt control unit 10.2 common units of multijunction timers
10-10 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.2.1 mjt common unit register map the table below shows a common unit register map of mjt. mjt common unit register map (1/2) address +0 address +1 address see pages b0 b7 b8 b15 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 07d0 prescaler register 3 10-13 (prs3) h'0080 07d2 tou0 interrupt request mask register tou0 interrupt request status register 10-56 (tou0ima) (tou0ist) h'0080 07d4 f/f21-28 protect register 10-31 (ff2128p) h'0080 07d6 f/f21-28 data register 10-33 (ff2128d) | | | | | 10.2 common units of multijunction timers
multijunction timers 10 10-11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 mjt common unit register map (2/2) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 07e0 tin24,25 input processing control register 10-26 (tin2425cr) h'0080 07e2 tin24,25 interrupt request mask register tin24,25 interrupt request status register 10-52 (tin2425ima) (tin2425ist) h'0080 0bd0 prescaler register 4 10-13 (prs4) h'0080 0bd2 tou1 interrupt request mask register tou1 interrupt request status register 10-58 (tou1ima) (tou1ist) h'0080 0bd4 f/f29-36 protect register 10-31 (ff2936p) h'0080 0bd6 f/f29-36 data register 10-33 (ff2936d) h'0080 0be0 tin26,27 input processing control register 10-26 (tin2627cr) h'0080 0be2 tin26,27 interrupt request mask register tin26,27 interrupt request status register 10-53 (tin2627ima) (tin2627ist) | | 10.2 common units of multijunction timers
10-12 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.2.2 common count clock select function common count clock select register (cntcksel) b bit name function r w 0 prs012cks 0: bclk/4 r w prescaler 0-2, tml0,1 supplied clock select bit 1: bclk/2 1?7 no function assigned. fix to "0." 00 note 1: clock switchover takes effect asynchronously with the count clock. this bit can only be set or reset before the prescal ers 0, 1, 2 and the tml0, 1 counters are set when the top/tio/tms are inactive. this register is used to select the clock supplied to the prescalers 0?2 and the timers (tml0, 1). (1) prs012cks (prescaler 0-2, tml0,1 supplied clock select) bit (bit 0) this bit selects the clock supplied to the prescalers 0?2 and the timers tml0 and 1. setting this bit to "0" selects bclk/4 (10 mhz when f(cpuclk) = 160 mhz); setting this bit to "1" selects bclk/2 (20 mhz when f(cpuclk) = 160 mhz). figure 10.2.1 block diagram of the common count clock select function b0123456b7 prs012cks 00000000 prs0 prs1 prs2 bclk/2 1/4 s tml0 tml1 s clock bus 0 clock bus 1 clock bus 2 bclk 1/2 bclk/4 10.2 common units of multijunction timers
multijunction timers 10 10-13 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.2.3 prescaler unit the prescalers prs0 to 2 are an 8-bit counter, which generates clocks supplied to each timer (top, tio, tms, tml) from the internal peripheral clock (bclk) divided by 2 or 4. the prescalers prs3 and 4 are an 8-bit counter, which generates clocks supplied to timertid and tou from the internal peripheral clock bclk or bclk divided by 4. the values of prescaler registers are initialized to h?00 upon exting the reset state. when the set value of any prescaler register is rewritten, the prescaler starts operating with the new value at the same time it has underflowed. values h?00 to h?ff can be set in the prescaler register. the prescaler?s divide-by ratio is given by the equation below: prescaler divide-by ratio = 1 prescaler set value + 1 prescaler register 0 (prs0) prescaler register 1 (prs1) prescaler register 2 (prs2) prescaler register 3 (prs3) prescaler register 4 (prs4) b bit name function r w 0?7 prs0?prs4 set the prescaler divide-by value r w (8?15) prescaler prescaler registers 0?2 start counting after exiting the reset state. prescaler registers 3, 4 each are activated by setting the tid0 control & prescaler 3 enable register (tid0prs3en) or tid1 control & prescaler 4 enable register (tid1prs4en) prescaler-n enable (prsnen) bit to "1" (count start), upon which the prescaler register value is reloaded and the prescaler starts counting. for details, see section 10.7, ?tid (input-related 16-bit timer).? if the prescaler register is accessed for read during operation, the value written into it, not the current count, is read out. 10.2 common units of multijunction timers b0123456b7 b8 9 1011121314b15 prs0-prs4 00000000
10-14 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.2.4 clock bus and input/output event bus control unit (1) clock bus the clock bus is provided for supplying clock to each timer, and is comprised of four lines of clock bus 0?3. each timer can use these clock bus signals as clock input signals. the table below lists the signals that can be fed into the clock bus. table 10.2.1 acceptable clock bus signals clock bus acceptable signal 3 tclk0 input 2 internal prescaler (prs2) or tclk3 input 1 internal prescaler (prs1) 0 internal prescaler (prs0) (2) input event bus the input event bus is provided for supplying a count enable signal or measure capture signal to each timer, and is comprised of four lines of input event bus 0?3. each timer can use these input event bus signals as enable (or capture) input. furthermore, they can also be used as request signals to start a/d conversion or dma transfer. the table below lists the signals that can be fed into the input event bus. table 10.2.2 connectable (acceptable) input event bus signals input event bus connectable (acceptable) signal (note 1) 3 tin3 input, output event bus 2 or tio7 underflow signal 2 tin0 input or tin4 input 1 tio6 underflow signal, tin5 input 0 tio5 underflow signal, tin6 input note 1: for the destination (output) to which the input event bus signals are connected, see figure 10.1.1, ?block diagram of m jt.? (3) output event bus the output event bus has the underflow signal from each timer connected to it, and is comprised of four lines of output event bus 0?3. output event bus signals are connected to output flip-flops, and can also be connected to the a/d converter and dmac. furthermore, output event bus 2 can be connected to input event bus 3. the table below lists the signals that can be connected to the output event bus. table 10.2.3 connectable (acceptable) output event bus signals output event bus connectable (acceptable) signal (note 1) 3 top8, tio3, tio4 or tio8 underflow signal 2 top9 or tio2 underflow signal 1 top7 or tio1 underflow signal 0 top6 or tio0 underflow signal note 1: for the destination (output) to which the output event bus signals are connected, see figure 10.1.1, ?block diagram of mjt.? note that the signals from each timer to the output event bus (and tio5, 6 signals to the input event bus) are generated with the timing shown in table 10.2.4, and not the timing at which signals are output from the timer to the output flip-flop. 10.2 common units of multijunction timers
multijunction timers 10 10-15 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 table 10.2.4 timing at which signals are generated to the output event bus by each timer timer mode timing at which signals are generated to the output event bus top single-shot output mode when the counter underflows delayed single-shot output mode when the counter underflows continuous output mode when the counter underflows tio(note 1) measure clear input mode when the counter underflows measure free-run input mode when the counter underflows noise processing input mode when the counter underflows pwm output mode when the counter underflows single-shot output mode when the counter underflows delayed single-shot output mode when the counter underflows continuous output mode when the counter underflows tms (16-bit measure input) no signals generated tml (32-bit measure input) no signals generated tid fixed period mode no signals generated event count mode no signals generated multiply-by-4 event count mode no signals generated up/down event count mode no signals generated tou pwm output mode no signals generated single-shot pwm mode no signals generated delayed single-shot output mode no signals generated single-shot output mode no signals generated continuous output mode no signals generated note 1: tio5?7 output an underflow signal to the input event bus. 10.2 common units of multijunction timers
10-16 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 10.2.2 conceptual diagram of the clock bus and input/output event bus clock bus input event bus tclk0s 3 2 1 0 tclk0 (p124) tin0 (p150) tin3 (p153) tin4 (p30) tin5 (p31) tin6 (p32) prs1 prs0 prs0?2 : prescaler 3 2 1 0 3 2 1 0 3 2 1 0 prs2 tclk3 (p127) udf tio 5 udf tio 6 s output event bus 0 1 2 3 udf tio 7 clk en udf top 6 clk en udf top 7 clk en udf top 8 clk en udf top 9 udf tio 0 udf tio 1 udf tio 2 udf tio 3 udf tio 4 udf tio 8 0 1 2 3 s : selector tclk3s tin0s tin3s tin4s tin5s tin6s note: . this diagram only illustrates the clock bus and input/output event bus, and is partly omitted. bclk 1/4 1/2 10.2 common units of multijunction timers
multijunction timers 10 10-17 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b8 9 1011121314b15 ieb3s ieb2s ieb1s ieb0s ckb2s 00000000 the clock bus and input/output event bus control unit has the following registers: ? clock bus & input event bus control register (ckiebcr) ? output event bus control register (oebcr) clock bus & input event bus control register (ckiebcr) b bit name function r w 8, 9 ieb3s 00: select external input 3 (tin3) r w input event bus 3 input select bit 01: select external input 3 (tin3) 10: select output event bus 2 11: select tio7 output 10, 11 ieb2s 00: select external input 0 (tin0) r w input event bus 2 input select bit 01: does not use input event bus 2 10: select external input 4 (tin4) 11: select external input 4 (tin4) 12 ieb1s 0: select external input 5 (tin5) r w input event bus 1 input select bit 1: select tio6 output 13 ieb0s 0: select external input 6 (tin6) r w input event bus 0 input select bit 1: select tio5 output 14 no function assigned. fix to "0." 00 15 ckb2s 0: select prescaler 2 r w clock bus 2 input select bit 1: select external clock 3 (tclk3) the ckiebcr register is used to select the clock source (external input or prescaler) supplied to the clock bus and the count enable/capture signal (external input or output event bus) supplied to the input event bus. 10.2 common units of multijunction timers
10-18 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b8 9 1011121314b15 oeb3s oeb2s oeb1s oeb0s 00000000 output event bus control register (oebcr) b bit name function r w 8, 9 oeb3s 00: select top8 output r w output event bus 3 input select bit 01: select tio3 output 10: select tio4 output 11: select tio8 output 10 no function assigned. fix to "0." 00 11 oeb2s 0: select top9 output r w output event bus 2 input select bit 1: select tio2 output 12 no function assigned. fix to "0." 00 13 oeb1s 0: select top7 output r w output event bus 1 input select bit 1: select tio1 output 14 no function assigned. fix to "0." 00 15 oeb0s 0: select top6 output r w output event bus 0 input select bit 1: select tio0 output the oebcr register is used to select the timer (top or tio) whose underflow signal is supplied to the output event bus. 10.2.5 input processing control unit the input processing control unit processes tclk and tin input signals to the mjt. in tclk input process- ing, it selects the source of tclk signal, and for external input, it selects the active edge (rising or falling or both) or level ("h" or "l") of the signal, at which to generate the clock signal supplied to the clock bus. in tin input processing, the unit selects the active edge (rising or falling or both) or level ("h" or "l") of the signal, at which to generate the enable, measure or count source signal for each timer or the signal supplied to each event bus. following input processing registers are included: ? tlck input processing control register (tclkcr) ? tin input processing control register 0 (tincr0) ? tin input processing control register 1 (tincr1) ? tin input processing control register 2 (tincr2) ? tin input processing control register 3 (tincr3) ? tin input processing control register 4 (tincr4) ? tin24,25 input processing control register (tin2425cr) ? tin26,27 input processing control register (tin2627cr) 10.2 common units of multijunction timers
multijunction timers 10 10-19 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 count clock count clock count clock bclk/2 or bclk/4 (note 1) tclk tclk count clock tclk tclk tclk count clock bclk/2 or bclk/4 (note 1) item function bclk/2 or bclk/4 (note 1) rising edge falling edge both edges "l" level "h" level note 1: to select bclk/2 or bclk/4, use the prs012cks (prescaler 0-2, tml0,1 supplied clock select) bit of the common count clo ck select register (cntcksel). for details, refer to section 10.2.2, ?common count clock select function.? count clock bclk/2 or bclk/4 (note 1) (1) functions of tclk input processing control registers 10.2 common units of multijunction timers
10-20 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (2) functions of tin input processing control registers internal edge signal internal edge signal internal edge signal tin tin internal edge signal tin tin tin internal edge signal item function rising edge falling edge both edges "l" level "h" level prescaler output period or tclk input period prescaler output period or tclk input period 10.2 common units of multijunction timers
multijunction timers 10 10-21 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tclk input processing control register (tclkcr) b bit name function r w 0, 1 no function assigned. fix to "0." 00 2, 3 tclk3s 00: bclk/2 or bclk/4 (note 1) r w tclk3 input processing select bit 01: rising edge 10: falling edge 11: both edges 4 no function assigned. fix to "0." 00 5?7 tclk2s 000: disable input r w tclk2 input processing select bit 001: rising edge 010: falling edge 011: both edges 100: "l" level 101: "l" level 110: "h" level 111: "h" level 8 no function assigned. fix to "0." 00 9?11 tclk1s 000: disable input r w tclk1 input processing select bit 001: rising edge 010: falling edge 011: both edges 100: "l" level 101: "l" level 110: "h" level 111: "h" level 12,13 no function assigned. fix to "0." 00 14,15 tclk0s 00: bclk/2 or bclk/4 (note 1) r w tclk0 input processing select bit 01: rising edge 10: falling edge 11: both edges110 note 1: to select bclk/2 or bclk/4, use the prs012cks (prescaler 0-2, tml0,1 supplied clock select) bit of the common count clock select register (cntclksel). for details, refer to section 10.2.2, ?common count clock select function.? note: ? this register must always be accessed in halfwords. b0 1234567891011121314b15 tclk3s tclk2s tclk1s tclk0s 0000000000000000 10.2 common units of multijunction timers
10-22 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b01234567891011121314b15 tin4s tin3s tin2s tin1s tin0s 0000000000000000 tin input processing control register 0 (tincr0) b bit name function r w 0 no function assigned. fix to "0." 00 1?3 tin4s 000: disable input r w tin4 input processing select bit 001: rising edge 010: falling edge 011: both edges 100: "l" level 101: "l" level 110: "h" level 111: "h" level 4 no function assigned. fix to "0." 00 5?7 tin3s 000: disable input r w tin3 input processing select bit 001: rising edge 010: falling edge 011: both edges 100: "l" level 101: "l" level 110: "h" level 111: "h" level 8,9 no function assigned. fix to "0." 00 10,11 tin2s fix to "0" 0 0 reserved bit 12,13 tin1s fix to "0" 0 0 reserved bit 14,15 tin0s 00: disable input r w tin0 input processing select bit 01: rising edge 10: falling edge 11: both edges note: ? this register must always be accessed in halfwords. 10.2 common units of multijunction timers
multijunction timers 10 10-23 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b01234567891011121314b15 tin8s tin7s tin6s tin5s 0000000000000000 tin input processing control register 1 (tincr1) b bit name function r w 0 no function assigned. fix to "0." 00 1?3 tin8s 000: disable input r w tin8 input processing select bit 001: rising edge 010: falling edge 011: both edges 100: "l" level 101: "l" level 110: "h" level 111: "h" level 4 no function assigned. fix to "0." 00 5?7 tin7s 000: disable input r w tin7 input processing select bit 001: rising edge 010: falling edge 011: both edges 100: "l" level 101: "l" level 110: "h" level 111: "h" level 8 no function assigned. fix to "0." 00 9?11 tin6s 000: disable input r w tin6 input processing select bit 001: rising edge 010: falling edge 011: both edges 100: "l" level 101: "l" level 110: "h" level 111: "h" level 12 no function assigned. fix to "0." 00 13?15 tin5s 000: disable input r w tin5 input processing select bit 001: rising edge 010: falling edge 011: both edges 100: "l" level 101: "l" level 110: "h" level 111: "h" level note: ? this register must always be accessed in halfwords. 10.2 common units of multijunction timers
10-24 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tin input processing control register 2 (tincr2) b bit name function r w 0?4 no function assigned. fix to "0." 00 5?7 tin11s 000: disable input r w tin11 input processing select bit 001: rising edge 010: falling edge 011: both edges 100: "l" level 101: "l" level 110: "h" level 111: "h" level 8 no function assigned. fix to "0." 00 9?11 tin10s 000: disable input r w tin10 input processing select bit 001: rising edge 010: falling edge 011: both edges 100: "l" level 101: "l" level 110: "h" level 111: "h" level 12 no function assigned. fix to "0." 00 13?15 tin9s 000: disable input r w tin9 input processing select bit 001: rising edge 010: falling edge 011: both edges 100: "l" level 101: "l" level 110: "h" level 111: "h" level note: ? this register must always be accessed in halfwords. b01234567891011121314b15 tin11s tin10s tin9s 0000000000000000 10.2 common units of multijunction timers
multijunction timers 10 10-25 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tin input processing control register 3 (tincr3) b bit name function r w 0, 1 tin19s (tin19 input processing select bit) 00: disable input r w 2, 3 tin18s (tin18 input processing select bit) 01: rising edge 4, 5 tin17s (tin17 input processing select bit) 10: falling edge 6, 7 tin16s (tin16 input processing select bit) 11: both edges 8, 9 tin15s (reserved bit) fix to "0" 0 0 10, 11 tin14s (reserved bit) 12, 13 tin13s (reserved bit) 14, 15 tin12s (reserved bit) note: ? this register must always be accessed in halfwords. tin input processing control register 4 (tincr4) b bit name function r w 0, 1 tin33s (tin33 input processing select bit) 00: disable input r w 2, 3 tin32s (tin32 input processing select bit) 01: rising edge 4, 5 tin31s (tin31 input processing select bit) 10: falling edge 6, 7 tin30s (tin30 input processing select bit) 11: both edges 8, 9 tin23s (tin23 input processing select bit) 10, 11 tin22s (tin22 input processing select bit) 12, 13 tin21s (tin21 input processing select bit) 14, 15 tin20s (tin20 input processing select bit) note: ? this register must always be accessed in halfwords. b01234567891011121314b15 tin33s tin32s tin31s tin30s tin29s tin28s tin27s tin26s 0000000000000000 b01234567891011121314b15 tin19s tin18s tin17s tin16s tin15s tin14s tin13s tin12s 0000000000000000 10.2 common units of multijunction timers
10-26 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b8 9 1011121314b15 tin27s tin26s 00000000 10.2.6 output flip-flop control unit the output flip-flop control unit controls the flip-flops (f/f) provided for each timer. following flip-flop control registers are included: ? f/f source select register 0 (ffs0) ? f/f source select register 1 (ffs1) ? f/f protect register 0 (ffp0) ? f/f protect register 1 (ffp1) ? f/f21?28 protect register (ff2128p) ? f/f29?36 protect register (ff2936p) ? f/f data register 0 (ffd0) ? f/f data register 1 (ffd1) ? f/f21?28 data register (ff2128d) ? f/f29?36 data register (ff2936d) the timing at which signals are generated to the output flip-flop by each timer are shown in table 10.2.5. (note that this timing is different from one at which signals are output from the timer to the output event bus.) tin24,25 input processing control register (tin2425cr) b bit name function r w 8?11 no function assigned. fix to "0." 00 12, 13 tin25s (tin25 input processing select bit) 00: disable input rw 14, 15 tin24s (tin24 input processing select bit) 01: rising edge 10: falling edge 11: both edges tin26,27 input processing control register (tin2627cr) b bit name function r w 8?11 no function assigned. fix to "0." 00 12, 13 tin27s (tin27 input processing select bit) 00: disable input rw 14, 15 tin26s (tin26 input processing select bit) 01: rising edge 10: falling edge 11: both edges b8 9 1011121314b15 tin25s tin24s 00000000 10.2 common units of multijunction timers
multijunction timers 10 10-27 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 output event bus 0 data bus f/f protect (fpn) wr data bus output control (on/off) ton internal edge signal port operation mode register (pnmod) f/fn output data (fdn) top/tio/tou udf f/f source selection (fsn) output event bus 1 output event bus 2 output event bus 3 f/f f/f f/f figure 10.2.3 configuration of the f/f output circuit table 10.2.5 timing at which signals are generated to the output flip-flop by each timer timer mode timing at which signals are generated to the output flip-flop top single-shot output mode when count is enabled or underflows delayed single-shot output mode when counter underflows continuous output mode when count is enabled or underflows tio measure clear input mode when counter underflows measure free-run input mode when counter underflows noise processing input mode when counter underflows pwm output mode when count is enabled or underflows single-shot output mode when count is enabled or underflows delayed single-shot output mode when counter underflows continuous output mode when count is enabled or underflows tms (16-bit measure input) no signals generated tml (32-bit measure input) no signals generated tid fixed period count mode no signals generated event count mode no signals generated multiply-by-4 event count mode no signals generated up/down event count mode no signals generated tou pwm output mode when count is enabled or underflows single-shot pwm output mode when counter underflows delayed single-shot output mode when counter underflows single-shot output mode when count is enabled or underflows continuous output mode when count is enabled or underflows 10.2 common units of multijunction timers
10-28 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b0 1234567891011121314b15 fs15 fs14 fs13 fs12 fs11 fs10 fs9 fs8 fs7 fs6 0000000000000000 f/f source select register 0 (ffs0) b bit name function r w 0?2 no function assigned. fix to "0." 00 3 fs15 0: tio4 output r w f/f15 source select bit 1: output event bus 0 4 fs14 0: tio3 output r w f/f14 source select bit 1: output event bus 0 5 fs13 0: tio2 output r w f/f13 source select bit 1: output event bus 3 6 fs12 0: tio1 output r w f/f12 source select bit 1: output event bus 2 7 fs11 0: tio0 output r w f/f11 source select bit 1: output event bus 1 8, 9 fs10 00: top10 output r w f/f10 source select bit 01: top10 output 10: output event bus 0 11: output event bus 1 10, 11 fs9 00: top9 output r w f/f9 source select bit 01: top9 output 10: output event bus 0 11: output event bus 1 12, 13 fs8 00: top8 output r w f/f8 source select bit 01: output event bus 0 10: output event bus 1 11: output event bus 2 14 fs7 0: top7 output r w f/f7 source select bit 1: output event bus 0 15 fs6 0: top6 output r w f/f6 source select bit 1: output event bus 1 note: ? this register must always be accessed in halfwords. 10.2 common units of multijunction timers
multijunction timers 10 10-29 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 f/f source select register 1 (ffs1) b bit name function r w 8, 9 fs19 00: tio8 output r w f/f19 source select bit 01: tio8 output 10: output event bus 0 11: output event bus 1 10, 11 fs18 00: tio7 output r w f/f18 source select bit 01: tio7 output 10: output event bus 0 11: output event bus 1 12, 13 fs17 00: tio6 output r w f/f17 source select bit 01: tio6 output 10: output event bus 0 11: output event bus 1 14, 15 fs16 00: tio5 output r w f/f16 source select bit 01: output event bus 0 10: output event bus 1 11: output event bus 3 these registers select the signal source for each output f/f (flip-flop). this signal source can be chosen to be a signal from the internal output bus or an underflow output from each timer. b8 9 1011121314b15 fs19 fs18 fs17 fs16 00000000 10.2 common units of multijunction timers
10-30 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b8 9 1011121314b15 fp20 fp19 fp18 fp17 fp16 00000000 f/f protect register 0 (ffp0) b bit name function r w 0 fp15 (f/f15 protect bit) 0: enable write to f/f output bit r w 1 fp14 (f/f14 protect bit) 1: disable write to f/f output bit 2 fp13 (f/f13 protect bit) 3 fp12 (f/f12 protect bit) 4 fp11 (f/f11 protect bit) 5 fp10 (f/f10 protect bit) 6 fp9 (f/f9 protect bit) 7 fp8 (f/f8 protect bit) 8 fp7 (f/f7 protect bit) 9 fp6 (f/f6 protect bit) 10 fp5 (f/f5 protect bit) 11 fp4 (f/f4 protect bit) 12 fp3 (f/f3 protect bit) 13 fp2 (f/f2 protect bit) 14 fp1 (f/f1 protect bit) 15 fp0 (f/f0 protect bit) note: ? this register must always be accessed in halfwords. f/f protect register 1 (ffp1) b bit name function r w 8?10 no function assigned. fix to "0." 00 11 fp20 (f/f20 protect bit) 0: enable write to f/f output bit r w 12 fp19 (f/f19 protect bit) 1: disable write to f/f output bit 13 fp18 (f/f18 protect bit) 14 fp17 (f/f17 protect bit) 15 fp16 (f/f16 protect bit) b01234567891011121314b15 fp15 fp14 fp13 fp12 fp11 fp10 fp9 fp8 fp7 fp6 fp5 fp4 fp3 fp2 fp1 fp0 0000000000000000 10.2 common units of multijunction timers
multijunction timers 10 10-31 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b8 9 1011121314b15 fp21 fp22 fp23 fp24 fp25 fp26 fp27 fp28 00000000 f/f21?28 protect register (ff2128p) b bit name function r w 8 fp21 (f/f21 protect bit) 0: enable write to f/f output bit r w 9 fp22 (f/f22 protect bit) 1: disable write to f/f output bit 10 fp23 (f/f23 protect bit) 11 fp24 (f/f24 protect bit) 12 fp25 (f/f25 protect bit) 13 fp26 (f/f26 protect bit) 14 fp27 (f/f27 protect bit) 15 fp28 (f/f28 protect bit) f/f29?36 protect register (ff2936p) b bit name function r w 8 fp29 (f/f29 protect bit) 0: enable write to f/f output bit r w 9 fp30 (f/f30 protect bit) 1: disable write to f/f output bit 10 fp31 (f/f31 protect bit) 11 fp32 (f/f32 protect bit) 12 fp33 (f/f33 protect bit) 13 fp34 (f/f34 protect bit) 14 fp35 (f/f35 protect bit) 15 fp36 (f/f36 protect bit) these registers control write to each output f/f (flip-flop) by enabling or disabling. if write to any output f/f is disabled, writing to the f/f data register has no effect. b8 9 1011121314b15 fp29 fp30 fp31 fp32 fp33 fp34 fp35 fp36 00000000 10.2 common units of multijunction timers
10-32 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b01234567891011121314b15 fd15 fd14 fd13 fd12 fd11 fd10 fd9 fd8 fd7 fd6 fd5 fd4 fd3 fd2 fd1 fd0 0000000000000000 f/f data register 0 (ffd0) b bit name function r w 0 fd15 (f/f15 output data bit) 0: f/f output data = 0 r w 1 fd14 (f/f14 output data bit) 1: f/f output data = 1 2 fd13 (f/f13 output data bit) 3 fd12 (f/f12 output data bit) 4 fd11 (f/f11 output data bit) 5 fd10 (f/f10 output data bit) 6 fd9 (f/f9 output data bit) 7 fd8 (f/f8 output data bit) 8 fd7 (f/f7 output data bit) 9 fd6 (f/f6 output data bit) 10 fd5 (f/f5 output data bit) 11 fd4 (f/f4 output data bit) 12 fd3 (f/f3 output data bit) 13 fd2 (f/f2 output data bit) 14 fd1 (f/f1 output data bit) 15 fd0 (f/f0 output data bit) note: ? this register must always be accessed in halfwords. f/f data register 1 (ffd1) b bit name function r w 8?10 no function assigned. fix to "0." 00 11 fd20 (f/f20 output data bit) 0: f/f output data = 0 r w 12 fd19 (f/f19 output data bit) 1: f/f output data = 1 13 fd18 (f/f18 output data bit) 14 fd17 (f/f17 output data bit) 15 fd16 (f/f16 output data bit) b8 9 1011121314b15 fd20 fd19 fd18 fd17 fd16 00000000 10.2 common units of multijunction timers
multijunction timers 10 10-33 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 f/f21?28 data register (ff2128d) b bit name function r w 8 fd21 (f/f21 output data bit) 0: f/f output data = 0 r w 9 fd22 (f/f22 output data bit) 1: f/f output data = 1 10 fd23 (f/f23 output data bit) 11 fd24 (f/f24 output data bit) 12 fd25 (f/f25 output data bit) 13 fd26 (f/f26 output data bit) 14 fd27 (f/f27 output data bit) 15 fd28 (f/f28 output data bit) f/f29?36 data register (ff2936d) b bit name function r w 8 fd29 (f/f29 output data bit) 0: f/f output data = 0 r w 9 fd30 (f/f30 output data bit) 1: f/f output data = 1 10 fd31 (f/f31 output data bit) 11 fd32 (f/f32 output data bit) 12 fd33 (f/f33 output data bit) 13 fd34 (f/f34 output data bit) 14 fd35 (f/f35 output data bit) 15 fd36 (f/f36 output data bit) these registers are used to set data in each output f/f (flip-flop). although f/f output normally changes with timer output, setting data 0 or 1 in this register allows to produce desired output from any f/f. the f/f data register can only be operated on when the f/f protect register described earlier is enabled for write. b8 9 1011121314b15 fd21 fd22 fd23 fd24 fd25 fd26 fd27 fd28 00000000 b8 9 1011121314b15 fd29 fd30 fd31 fd32 fd33 fd34 fd35 fd36 00000000 10.2 common units of multijunction timers
10-34 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.2.7 interrupt control unit the interrupt control unit controls the interrupt request signals output to the interrupt controller by each timer. following timer interrupt control registers are provided for each timer: ? top interrupt control register 0 (topir0) ? top interrupt control register 1 (topir1) ? top interrupt control register 2 (topir2) ? top interrupt control register 3 (topir3) ? tio interrupt control register 0 (tioir0) ? tio interrupt control register 1 (tioir1) ? tio interrupt control register 2 (tioir2) ? tms interrupt control register (tmsir) ? tin interrupt control register 0 (tinir0) ? tin interrupt control register 1 (tinir1) ? tin interrupt control register 2 (tinir2) ? tin interrupt control register 3 (tinir3) ? tin interrupt control register 4 (tinir4) ? tin interrupt control register 5 (tinir5) ? tin interrupt control register 6 (tinir6) ? tin24,25 interrupt request mask register (tin2425ima) ? tin24,25 interrupt request status register (tin2425ist) ? tin26,27 interrupt request mask register (tin2627ima) ? tin26,27 interrupt request status register (tin2627ist) ? tin interrupt control register 7 (tinir7) ? tou0 interrupt request mask register (tou0ima) ? tou0 interrupt request status register (tou0ist) ? tou1 interrupt request mask register (tou1ima) ? tou1 interrupt request status register (tou1ist) for interrupts which have only one interrupt request source in the interrupt vector table, no interrupt control registers are included in the timer, and the interrupt request status flags are automatically managed within the interrupt controller. for details, see chapter 5, ?interrupt controller.? ? top10 top10 output interrupt request (irq5) ? tid0 tid0 output interrupt request (irq14) ? tid1 tid1 output interrupt request (irq15) 10.2 common units of multijunction timers
multijunction timers 10 10-35 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 to the interrupt controller timer or tin input interrupt request interrupt request status data bus set group interrupt interrupt request enabled clear f/f f/f data = 0 figure 10.2.4 interrupt request status and mask registers for interrupts which have two or more interrupt sources in the interrupt vector table, interrupt control registers are included, with which to control interrupt requests and determine interrupt input. therefore, the status flags in the interrupt controller only serve as a bit to determine interrupt requests from interrupt-enabled sources and cannot be accessed for write. (1) interrupt request status bit this status bit is used to determine whether there is an interrupt request. when an interrupt request occurs, this bit is set in hardware (cannot be set in software). the status bit is cleared by writing "0." writing "1" has no effect; the bit retains the status it had before the write. because this status bit is unaffected by the interrupt request mask bit, it can be used to inspect the operating status of peripheral functions. in interrupt handling, make sure that within the interrupt request status grouped as a group interrupt, only the status bit for the interrupt request that has been serviced is cleared. if the status bit for any interrupt request that has not been serviced is cleared, the pending interrupt request is cleared simultaneously with its status bit. (2) interrupt request mask bit this bit is used to disable unnecessary interrupts within the interrupt request grouped as a group interrupt. set this bit to "0" to enable interrupt requests or "1" to disable interrupt requests. 10.2 common units of multijunction timers
10-36 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b4 5 b7 interrupt request status initial state event occurs on bit 6 interrupt request event occurs on bit 4 only bit 6 cleared bit 4 data retained b4 5 b7 1 1 0 1 write to the interrupt request status example for clearing interrupt request status 0 0 0 0 0 0 1 0 1 0 1 0 1 0 0 0 program example istreg = 0xfd; /* clear istat1 (0x02 bit) only */  to clear the interrupt request status register 0 (istreg) interrupt request status 1, istat1 (0x02 bit) to clear an interrupt request status, always be sure to write "1" to all other interrupt request status bits. at this time, avoid using a logic operation like the one shown below. because it requires three step-istreg read, logic operation and write, if another interrupt request occurs between the read and write, status may be inadvertently cleared. b4 5 6 b7 interrupt request status event occurs on bit 6 event occurs on bit 4 only bit 6 cleared bit 4 also cleared 0 0 1 0 1 0 1 0 0 0 0 0 read 0 0 1 0 0 0 0 0 clear bit 6 (anding with 1101) write 6 6 istreg &= 0xfd; /* clear istat1 (0x02 bit) only */ figure 10.2.5 example for clearing interrupt request status 10.2 common units of multijunction timers
multijunction timers 10 10-37 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 the table below shows the relationship between the interrupt request signals generated by multijunction timers and the interrupt sources input to the interrupt controller (icu). table 10.2.6 interrupt request signals generated by mjt signal name generated by interrupt request source (note 1) no. of icu input sources irq0 tio0, tio1, tio2, tio3 mjt output interrupt 0 4 irq1 top6, top7 mjt output interrupt 1 2 irq2 top0, top1, top2, top3, top4, top5 mjt output interrupt 2 6 irq3 tio8, tio9 mjt output interrupt 3 2 irq4 tio4, tio5, tio6, tio7 mjt output interrupt 4 4 irq6 top8, top9 mjt output interrupt 5 2 irq7 tms0, tms1 mjt output interrupt 6 2 irq8 tin7, tin8, tin9, tin10, tin11 mjt input interrupt 0 5 irq9 tin0 mjt input interrupt 1 1 irq10 tin16, tin17, tin18, tin19 mjt input interrupt 2 4 irq11 tin20, tin21, tin22, tin23, tin24, tin25 mjt input interrupt 3 8 tin26, tin27 irq12 tin3, tin4, tin5, tin6 mjt input interrupt 4 4 irq13 tou0_0, tou0_1, tou0_2, tou0_3 tou0 output interrupt 8 tou0_4, tou0_5, tou0_6, tou0_7 irq16 tou1_0, tou1_1, tou1_2, tou1_3 tou1 output interrupt 8 tou1_4, tou1_5, tou1_6, tou1_7 irq18 tin30, tin31, tin32, tin33 tml1 input interrupt 4 note 1: see chapter 5, ?interrupt controller (icu).? note: ? top10, tid0 and tid1 have only one interrupt source in each interrupt group, so that their status and mask registers are nonexistent in the mjt interrupt control registers. (they are controlled directly by the interrupt controller.) 10.2 common units of multijunction timers
10-38 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 top interrupt control register 0 (topir0) b bit name function r w 0, 1 no function assigned. fix to "0." 00 2 topis5 (top5 interrupt request status bit) 0: interrupt not requested r(note 1) 3 topis4 (top4 interrupt request status bit) 1: interrupt requested 4 topis3 (top3 interrupt request status bit) 5 topis2 (top2 interrupt request status bit) 6 topis1 (top1 interrupt request status bit) 7 topis0 (top0 interrupt request status bit) note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. top interrupt control register 1 (topir1) b bit name function r w 8, 9 no function assigned. fix to "0." 00 10 topim5 (top5 interrupt request mask bit) 0: enable interrupt request r w 11 topim4 (top4 interrupt request mask bit) 1: mask (disable) interrupt request 12 topim3 (top3 interrupt request mask bit) 13 topim2 (top2 interrupt request mask bit) 14 topim1 (top1 interrupt request mask bit) 15 topim0 (top0 interrupt request mask bit) b0123456b7 topis5 topis4 topis3 topis2 topis1 topis0 00000000 b8 9 1011121314b15 topim5 topim4 topim3 topim2 topim1 topim0 00000000 10.2 common units of multijunction timers
multijunction timers 10 10-39 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 mjt output interrupt request 2 irq2 data bus b2 topis5 f/f topim5 f/f b10 b3 topis4 f/f topim4 f/f b11 b4 topis3 f/f topim3 f/f b12 b5 topis2 f/f topim2 f/f b13 b6 topis1 f/f topim1 f/f b14 b7 topis0 f/f topim0 f/f b15 (level) 6-source inputs topir0 topir1 top5udf top4udf top3udf top2udf top1udf top0udf figure 10.2.6 block diagram of mjt output interrupt request 2 10.2 common units of multijunction timers
10-40 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 top interrupt control register 2 (topir2) b bit name function r w 0, 1 no function assigned. fix to "0." 00 2 topis7 (top7 interrupt request status bit) 0: interrupt not requested r(note 1) 3 topis6 (top6 interrupt request status bit) 1: interrupt requested 4, 5 no function assigned. fix to "0." 00 6 topim7 (top7 interrupt request mask bit) 0: enable interrupt request r w 7 topim6 (top6 interrupt request mask bit) 1: mask (disable) interrupt request note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. b0123456b7 topis7 topis6 topim7 topim6 00000000 mjt output interrupt request 1 irq1 data bus b2 topis7 f/f topim7 f/f b6 b3 topis6 f/f topim6 f/f b7 (level) 2-source inputs topir2 top7udf top6udf figure 10.2.7 block diagram of mjt output interrupt request 1 10.2 common units of multijunction timers
multijunction timers 10 10-41 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 top interrupt control register 3 (topir3) b bit name function r w 8, 9 no function assigned. fix to "0." 00 10 topis9 (top9 interrupt request status bit) 0: interrupt not requested r(note 1) 11 topis8 (top8 interrupt request status bit) 1: interrupt requested 12, 13 no function assigned. fix to "0." 00 14 topim9 (top9 interrupt request mask bit) 0: enable interrupt request r w 15 topim8 (top8 interrupt request mask bit) 1: mask (disable) interrupt request note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. note: ? top10 has only one interrupt source in the interrupt group, so that its status and mask registers are nonexistent in th e mjt interrupt control registers. (they are controlled directly by the interrupt controller.) b10 topis9 f/f topim9 f/f b14 b11 topis8 f/f topim8 f/f b15 mjt output interrupt request 6 irq6 (level) 2-source inputs topir3 data bus top9udf top8udf figure 10.2.8 block diagram of mjt output interrupt request 6 b8 9 1011121314b15 topis9 topis8 topim9 topim8 00000000 10.2 common units of multijunction timers
10-42 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tio interrupt control register 0 (tioir0) b bit name function r w 0 tiois3 (tio3 interrupt request status bit) 0: interrupt not requested r(note 1) 1 tiois2 (tio2 interrupt request status bit) 1: interrupt requested 2 tiois1 (tio1 interrupt request status bit) 3 tiois0 (tio0 interrupt request status bit) 4 tioim3 (tio3 interrupt request mask bit) 0: enable interrupt request r w 5 tioim2 (tio2 interrupt request mask bit) 1: mask (disable) interrupt request 6 tioim1 (tio1 interrupt request mask bit) 7 tioim0 (tio0 interrupt request mask bit) note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. mjt output interrupt request 0 irq0 data bus b0 tiois3 f/f tioim3 f/f b4 b1 tiois2 f/f tioim2 f/f b5 b2 tiois1 f/f tioim1 f/f b6 b3 tiois0 f/f tioim0 f/f b7 (level) 4-source inputs tioir0 tio3udf tio2udf tio1udf tio0udf figure 10.2.9 block diagram of mjt output interrupt request 0 b0123456b7 tiois3 tiois2 tiois1 tiois0 tioim3 tioim2 tioim1 tioim0 00000000 10.2 common units of multijunction timers
multijunction timers 10 10-43 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tio interrupt control register 1 (tioir1) b bit name function r w 8 tiois7 (tio7 interrupt request status bit) 0: interrupt not requested r(note 1) 9 tiois6 (tio6 interrupt request status bit) 1: interrupt requested 10 tiois5 (tio5 interrupt request status bit) 11 tiois4 (tio4 interrupt request status bit) 12 tioim7 (tio7 interrupt request mask bit) 0: enable interrupt request r w 13 tioim6 (tio6 interrupt request mask bit) 1: mask (disable) interrupt request 14 tioim5 (tio5 interrupt request mask bit) 15 tioim4 (tio4 interrupt request mask bit) note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. mjt output interrupt request 4 irq4 data bus b8 tiois7 f/f tioim7 f/f b12 b9 tiois6 f/f tioim6 f/f b13 b10 tiois5 f/f tioim5 f/f b14 b11 tiois4 f/f tioim4 f/f b15 (level) 4-source inputs tioir1 tio7udf tio6udf tio5udf tio4udf figure 10.2.10 block diagram of mjt output interrupt request 4 b8 9 1011121314b15 tiois7 tiois6 tiois5 tiois4 tioim7 tioim6 tioim5 tioim4 00000000 10.2 common units of multijunction timers
10-44 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tio interrupt control register 2 (tioir2) b bit name function r w 0, 1 no function assigned. fix to "0." 00 2 tiois9 (tio9 interrupt request status bit) 0: interrupt not requested r(note 1) 3 tiois8 (tio8 interrupt request status bit) 1: interrupt requested 4, 5 no function assigned. fix to "0." 00 6 tioim9 (tio9 interrupt request mask bit) 0: enable interrupt request r w 7 tioim8 (tio8 interrupt request mask bit) 1: mask (disable) interrupt request note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. mjt output interrupt request 3 irq3 data bus b2 tiois9 f/f tioim9 f/f b6 b3 tiois8 f/f tioim8 f/f b7 (level) 2-source inputs tioir2 tio9udf tio8udf figure 10.2.11 block diagram of mjt output interrupt request 3 b0123456b7 tiois9 tiois8 tioim9 tioim8 00000000 10.2 common units of multijunction timers
multijunction timers 10 10-45 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tms interrupt control register (tmsir) b bit name function r w 8, 9 no function assigned. fix to "0." 00 10 tmsis1 (tms1 interrupt request status bit) 0: interrupt not requested r(note 1) 11 tmsis0 (tms0 interrupt request status bit) 1: interrupt requested 12, 13 no function assigned. fix to "0." 00 14 tmsim1 (tms1 interrupt request mask bit) 0: enable interrupt request r w 15 tmsim0 (tms0 interrupt request mask bit) 1: mask (disable) interrupt request note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. mjt output interrupt request 7 irq7 data bus b10 tmsis1 f/f tmsim1 f/f b14 b11 tmsis0 f/f tmsim0 f/f b15 (level) 2-source inputs tmsir tms1ovf tms0ovf figure 10.2.12 block diagram of mjt output interrupt request 7 b8 9 1011121314b15 tmsis1 tmsis0 tmsim1 tmsim0 00000000 10.2 common units of multijunction timers
10-46 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tin interrupt control register 0 (tinir0) b bit name function r w 0 no function assigned. fix to "0." 00 1 tinis2 (reserved bit) fix to "0" 0 0 2 tinis1 (reserved bit) 3 tinis0 (tin0 interrupt request status bit) 0: interrupt not requested r (note 1) 1: interrupt requested 4 no function assigned. fix to "0." 00 5 tinim2 (reserved bit) fix to "0" 0 0 6 tinim1 (reserved bit) 7 tinim0 (tin0 interrupt request mask bit) 0: enable interrupt request r w 1: mask (disable) interrupt request note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. figure 10.2.13 block diagram of mjt input interrupt request 1 mjt input interrupt request 1 irq9 data bus b3 tinis0 f/f tinim0 f/f b7 (level) tinir0 tin0edge b0123456b7 tinis2 tinis1 tinis0 tinim2 tinim1 tinim0 00000000 10.2 common units of multijunction timers
multijunction timers 10 10-47 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tin interrupt control register 1 (tinir1) b bit name function r w 8 tinis6 (tin6 interrupt request status bit) 0: interrupt not requested r(note 1) 9 tinis5 (tin5 interrupt request status bit) 1: interrupt requested 10 tinis4 (tin4 interrupt request status bit) 11 tinis3 (tin3 interrupt request status bit) 12 tinim6 (tin6 interrupt request mask bit) 0: enable interrupt request r w 13 tinim5 (tin5 interrupt request mask bit) 1: mask (disable) interrupt request 14 tinim4 (tin4 interrupt request mask bit) 15 tinim3 (tin3 interrupt request mask bit) note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. figure 10.2.14 block diagram of mjt input interrupt request 4 mjt input interrupt request 4 irq12 data bus b8 tinis6 f/f tinim6 f/f b12 b9 tinis5 f/f tinim5 f/f b13 b10 tinis4 f/f tinim4 f/f b14 (level) 4-source inputs tinir1 tin6edge tin5edge tin4edge b11 tinis3 f/f tinim3 f/f b15 tin3edge b8 9 1011121314b15 tinis6 tinis5 tinis4 tinis3 tinim6 tinim5 tinim4 tinim3 00000000 10.2 common units of multijunction timers
10-48 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tin interrupt control register 2 (tinir2) b bit name function r w 0?2 no function assigned. fix to "0." 00 3 tinis11 (tin11 interrupt request status bit) 0: interrupt not requested r(note 1) 4 tinis10 (tin10 interrupt request status bit) 1: interrupt requested 5 tinis9 (tin9 interrupt request status bit) 6 tinis8 (tin8 interrupt request status bit) 7 tinis7 (tin7 interrupt request status bit) note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. tin interrupt control register 3 (tinir3) b bit name function r w 8?10 no function assigned. fix to "0." 00 11 tinim11 (tin11 interrupt request mask bit) 0: enable interrupt request r w 12 tinim10 (tin10 interrupt request mask bit) 1: mask (disable) interrupt request 13 tinim9 (tin9 interrupt request mask bit) 14 tinim8 (tin8 interrupt request mask bit) 15 tinim7 (tin7 interrupt request mask bit) b0123456b7 tinis11 tinis10 tinis9 tinis8 tinis7 00000000 b8 9 1011121314b15 tinim11 tinim10 tinim9 tinim8 tinim7 00000000 10.2 common units of multijunction timers
multijunction timers 10 10-49 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 mjt input interrupt request 0 irq8 data bus b3 tinis11 f/f tinim11 f/f b11 b4 tinis10 f/f tinim10 f/f b12 b5 tinis9 f/f tinim9 f/f b13 b6 tinis8 f/f tinim8 f/f b14 b7 tinis7 f/f tinim7 f/f b15 (level) 5-source inputs tinir2 tinir3 tin11edge tin10edge tin9edge tin8edge tin7edge figure 10.2.15 block diagram of mjt input interrupt request 0 10.2 common units of multijunction timers
10-50 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tin interrupt control register 4 (tinir4) b bit name function r w 0 tinis19 (tin19 interrupt request status bit) 0: interrupt not requested r(note 1) 1 tinis18 (tin18 interrupt request status bit) 1: interrupt requested 2 tinis17 (tin17 interrupt request status bit) 3 tinis16 (tin16 interrupt request status bit) 4 tinis15 (reserved bit) fix to "0" 0 0 5 tinis14 (reserved bit) 6 tinis13 (reserved bit) 7 tinis12 (reserved bit) note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. tin interrupt control register 5 (tinir5) b bit name function r w 8 tinim19 (tin19 interrupt request mask bit) 0: enable interrupt request r w 9 tinim18 (tin18 interrupt request mask bit) 1: mask (disable) interrupt request 10 tinim17 (tin17 interrupt request mask bit) 11 tinim16 (tin16 interrupt request mask bit) 12 tinim15 (reserved bit) fix to "0" 0 0 13 tinim14 (reserved bit) 14 tinim13 (reserved bit) 15 tinim12 (reserved bit) b0123456b7 tinis19 tinis18 tinis17 tinis16 tinis15 tinis14 tinis13 tinis12 00000000 b8 9 1011121314b15 tinim19 tinim18 tinim17 tinim16 tinim15 tinim14 tinim13 tinim12 00000000 10.2 common units of multijunction timers
multijunction timers 10 10-51 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 irq10 b0 tinis19 f/f tinim19 f/f b8 b1 tinis18 f/f tinim18 f/f b9 b2 tinis17 f/f tinim17 f/f b10 b3 tinis16 f/f tinim16 f/f b11 tinir4 tinir5 tin19edge tin18edge tin17edge tin16edge mjt input interrupt request 2 data bus (level) 4-source inputs figure 10.2.16 block diagram of mjt input interrupt request 2 10.2 common units of multijunction timers
10-52 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tin interrupt control register 6 (tinir6) b bit name function r w 0 tinis23 (tin23 interrupt request status bit) 0: interrupt not requested r(note 1) 1 tinis22 (tin22 interrupt request status bit) 1: interrupt requested 2 tinis21 (tin21 interrupt request status bit) 3 tinis20 (tin20 interrupt request status bit) 4 tinim23 (tin23 interrupt request mask bit) 0: enable interrupt request r w 5 tinim22 (tin22 interrupt request mask bit) 1: mask (disable) interrupt request 6 tinim21 (tin21 interrupt request mask bit) 7 tinim20 (tin20 interrupt request mask bit) note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. tin24,25 interrupt request mask register (tin2425ima) b bit name function r w 0?5 no function assigned. fix to "0." 00 6 tinim24 (tin24 interrupt request mask bit) 0: enable interrupt request r w 7 tinim25 (tin25 interrupt request mask bit) 1: mask (disable) interrupt request tin24,25 interrupt request status register (tin2425ist) b bit name function r w 8?13 no function assigned. fix to "0." 00 14 tinis24 (tin24 interrupt request status bit) 0: interrupt not requested r(note 1) 15 tinis25 (tin25 interrupt request status bit) 1: interrupt requested note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. b0123456b7 tinis23 tinis22 tinis21 tinis20 tinim23 tinim22 tinim21 tinim20 00000000 b0123456b7 tinim24 tinim25 00000000 b8 9 1011121314b15 tinis24 tinis25 00000000 10.2 common units of multijunction timers
multijunction timers 10 10-53 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tin26,27 interrupt request mask register (tin2627ima) b bit name function r w 0?5 no function assigned. fix to "0." 00 6 tinim26 (tin26 interrupt request mask bit) 0: enable interrupt request r w 7 tinim27 (tin27 interrupt request mask bit) 1: mask (disable) interrupt request tin26,27 interrupt request status register (tin2627ist) b bit name function r w 8?13 no function assigned. fix to "0." 00 14 tinis26 (tin26 interrupt request status bit) 0: interrupt not requested r(note 1) 15 tinis27 (tin27 interrupt request status bit) 1: interrupt requested note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. b0123456b7 tinim26 tinim27 00000000 b8 9 1011121314b15 tinis26 tinis27 00000000 10.2 common units of multijunction timers
10-54 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 irq11 b15 tinis27 f/f tinim27 f/f b7 b14 tinis26 f/f tinim26 f/f b6 b15 tinis25 f/f tinim25 f/f b7 b14 tinis24 f/f tinim24 f/f b6 b0 tinis23 f/f tinim23 f/f b4 tin2425ist tin2425ima tin2627ist tin2627ima tinir6 tin27edge tin26edge tin25edge tin24edge tin23edge b1 tinis22 f/f tinim22 f/f b5 tin22edge b2 tinis21 f/f tinim21 f/f b6 tin21edge b3 tinis20 f/f tinim20 f/f b7 tin20edge mjt input interrupt request 3 data bus (level) 8-source inputs figure 10.2.17 block diagram of mjt input interrupt request 3 10.2 common units of multijunction timers
multijunction timers 10 10-55 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tin interrupt control register 7 (tinir7) b bit name function r w 8 tinis33 (tin33 interrupt request status bit) 0: interrupt not requested r(note 1) 9 tinis32 (tin32 interrupt request status bit) 1: interrupt requested 10 tinis31 (tin31 interrupt request status bit) 11 tinis30 (tin30 interrupt request status bit) 12 tinim33 (tin33 interrupt request mask bit) 0: enable interrupt request r w 13 tinim32 (tin32 interrupt request mask bit) 1: mask (disable) interrupt request 14 tinim31 (tin31 interrupt request mask bit) 15 tinim30 (tin30 interrupt request mask bit) note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. note: ? tin24?tin29 do not have interrupt functions, so that their status and mask registers are nonexistent. tml1 input interrupt reques t irq18 data bus b8 tinis33 f/f tinim33 f/f b12 b9 tinis32 f/f tinim32 f/f b13 b10 tinis31 f/f tinim31 f/f b14 b11 tinis30 f/f tinim30 f/f b15 (level) 4-source inputs tinir7 tin33edge tin32edge tin31edge tin30edge figure 10.2.18 block diagram of tml1 input interrupt request b8 9 1011121314b15 tinis33 tinis32 tinis31 tinis30 tinim33 tinim32 tinim31 tinim30 00000000 10.2 common units of multijunction timers
10-56 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tou0 interrupt request mask register (tou0ima) b bit name function r w 0 tou0im7 (tou0_7 interrupt request mask bit) 0: enable interrupt request r w 1 tou0im6 (tou0_6 interrupt request mask bit) 1: mask (disable) interrupt request 2 tou0im5 (tou0_5 interrupt request mask bit) 3 tou0im4 (tou0_4 interrupt request mask bit) 4 tou0im3 (tou0_3 interrupt request mask bit) 5 tou0im2 (tou0_2 interrupt request mask bit) 6 tou0im1 (tou0_1 interrupt request mask bit) 7 tou0im0 (tou0_0 interrupt request mask bit) tou0 interrupt request status register (tou0ist) b bit name function r w 8 tou0is7 (tou0_7 interrupt request status bit) 0: interrupt not requested r(note 1) 9 tou0is6 (tou0_6 interrupt request status bit) 1: interrupt requested 10 tou0is5 (tou0_5 interrupt request status bit) 11 tou0is4 (tou0_4 interrupt request status bit) 12 tou0is3 (tou0_3 interrupt request status bit) 13 tou0is2 (tou0_2 interrupt request status bit) 14 tou0is1 (tou0_1 interrupt request status bit) 15 tou0is0 (tou0_0 interrupt request status bit) note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. b0123456b7 tou0im7 tou0im6 tou0im5 tou0im4 tou0im3 tou0im2 tou0im1 tou0im0 00000000 b8 9 1011121314b15 tou0is7 tou0is6 tou0is5 tou0is4 tou0is3 tou0is2 tou0is1 tou0is0 00000000 10.2 common units of multijunction timers
multijunction timers 10 10-57 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tou0 output interrupt request irq13 data bus b8 tou0is7 f/f tou0im7 f/f b0 b9 tou0is6 f/f tou0im6 f/f b1 b10 tou0is5 f/f tou0im5 f/f b2 b11 tou0is4 f/f tou0im4 f/f b3 b12 tou0is3 f/f tou0im3 f/f b4 (level) 8-source inputs tou0ima tou0ist tou07udf tou06udf tou05udf tou04udf tou03udf b13 tou0is2 f/f tou0im2 f/f b5 b14 tou0is1 f/f tou0im1 f/f b6 b15 tou0is0 f/f tou0im0 f/f b7 tou02udf tou01udf tou00udf figure 10.2.19 block diagram of tou0 output interrupt request 10.2 common units of multijunction timers
10-58 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tou1 interrupt request mask register (tou1ima) b bit name function r w 0 tou1im7 (tou1_7 interrupt request mask bit) 0: enable interrupt request r w 1 tou1im6 (tou1_6 interrupt request mask bit) 1: mask (disable) interrupt request 2 tou1im5 (tou1_5 interrupt request mask bit) 3 tou1im4 (tou1_4 interrupt request mask bit) 4 tou1im3 (tou1_3 interrupt request mask bit) 5 tou1im2 (tou1_2 interrupt request mask bit) 6 tou1im1 (tou1_1 interrupt request mask bit) 7 tou1im0 (tou1_0 interrupt request mask bit) tou1 interrupt request status register (tou1ist) b bit name function r w 8 tou1is7 (tou1_7 interrupt request status bit) 0: interrupt not requested r (note 1) 9 tou1is6 (tou1_6 interrupt request status bit) 1: interrupt requested 10 tou1is5 (tou1_5 interrupt request status bit) 11 tou1is4 (tou1_4 interrupt request status bit) 12 tou1is3 (tou1_3 interrupt request status bit) 13 tou1is2 (tou1_2 interrupt request status bit) 14 tou1is1 (tou1_1 interrupt request status bit) 15 tou1is0 (tou1_0 interrupt request status bit) note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. b0123456b7 tou1im7 tou1im6 tou1im5 tou1im4 tou1im3 tou1im2 tou1im1 tou1im0 00000000 b8 9 1011121314b15 tou1is7 tou1is6 tou1is5 tou1is4 tou1is3 tou1is2 tou1is1 tou1is0 00000000 10.2 common units of multijunction timers
multijunction timers 10 10-59 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 irq16 b8 tou1is7 f/f tou1im7 f/f b0 b9 tou1is6 f/f tou1im6 f/f b1 b10 tou1is5 f/f tou1im5 f/f b2 b11 tou1is4 f/f tou1im4 f/f b3 b12 tou1is3 f/f tou1im3 f/f b4 tou1ima tou1ist tou17udf tou16udf tou15udf tou14udf tou13udf b13 tou1is2 f/f tou1im2 f/f b5 b14 tou1is1 f/f tou1im1 f/f b6 b15 tou1is0 f/f f/f b7 tou12udf tou11udf tou10udf tou1im0 tou1 output interrupt reques t data bus (level) 8-source inputs figure 10.2.20 block diagram of tou1 output interrupt request 10.2 common units of multijunction timers
10-60 10.3 top (output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.3 top (output-related 16-bit timer) 10.3.1 outline of top top (timer output) is an output-related 16-bit timer, whose operation mode can be selected from the following by mode switching in software: ? single-shot output mode  delayed single-shot output mode  continuous output mode the table below and the diagram in the next page show specifications and a block diagram of top, respectively. table 10.3.1 specifications of top (output-related 16-bit timer) item specification number of channels 11 channels counter 16-bit down-counter reload register 16-bit reload register correction register 16-bit correction register timer startup started by writing to the enable bit in software or enabled by external input (rising or falling edge or both) operation mode  single-shot output mode  delayed single-shot output mode  continuous output mode interrupt request generation can be generated by a counter underflow
10.3 top (output-related 16-bit timer) multijunction timers 10 10-61 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 10.3.1 block diagram of top (output-related 16-bit timer) irq2 clk en udf top 0 clock bus input event bus clk en udf top 1 clk en udf top 2 clk en udf top 3 output event bus tclk0s to 0 (p110) irq9 3 2 1 0 clk en udf top 4 clk en udf top 5 tclk0 (p124) tin0 (p150) s s tin0s clk en udf top 6 clk en udf top 7 s s s s s clk en udf top 8 clk en udf top 9 clk en udf top 10 f/f0 f/f1 f/f2 f/f3 f/f4 f/f5 f/f6 f/f7 f/f8 f/f9 f/f10 s s s s s irq2 irq2 irq2 irq2 irq2 to 1 (p111) to 2 (p112) to 3 (p113) to 4 (p114) to 5 (p115) to 6 (p116) to 7 (p117) to 8 (p100) to 9 (p101) to 10 (p102) irq1 irq1 irq6 irq6 irq5 3 2 1 0 0 1 2 3 reload register down-counter correction register 3 2 1 0 3 2 1 0 0 1 2 3 (16-bit) dma3, dma common s : selector f/f : output flip-flop
10-62 10.3 top (output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.3.2 outline of each mode of top each mode of top is outlined below. for each top channel, only one of the following modes can be selected. (1) single-shot output mode in single-shot output mode, the timer generates a pulse in width of "reload register set value + 1" only once and then stops. when the timer is enabled (by writing to the enable bit in software or by external input) after setting the reload register, the counter is loaded with the content of ?the reload register -1? and starts counting synchro- nously with the count clock at the next circle. the counter counts down and stops. the f/f output waveform in single-shot output mode is inverted at enable and upon underflow (f/f output level is changed ?l? to ?h?, or ?h? to ?l?), generating a single-shot pulse waveform in width of ?reload register set value + 1? only once. and also an interrupt request can be generated when the counter underflows. the counter value is ?setting value of reload register +1.? (2) delayed single-shot output mode in delayed single-shot output mode, the timer generates a pulse in width of ?reload register set value + 1? after a finite time equal to ?counter set value + 1? only once and then stops. when the timer is enabled (by writing to the enable bit in software or by external input) after setting the counter and reload register, it starts counting down from the counter?s set value synchronously with the count clock. the next cycle after first counter underflow, it is loaded with ?the reload register value -1? and continues counting down. the counter stops when it underflows next time. the f/f output waveform in delayed single-shot output mode is inverted (f/f output level is changed ?l? to ?h?, or ?h? to ?l?), when the counter underflows first time and next, generating a single-shot pulse waveform in width of ?reload register set value + 1? after a finite time equal to ?first set value of counter + 1? only once. and also an interrupt request can be generated when the counter underflows first time and next. the effective counter value is ?counter set value +1? or ?reload register set value +1.? (3) continuous output mode in continuous output mode, the timer counts down starting from the set value of the counter and at the cycle after the counter underflows, it is loaded with the value that ? the reload register -1?. thereafter, this opera- tion is repeated each time the counter underflows, thus generating consecutive pulses whose waveform is inverted in width of ?reload register set value + 1.? when the timer is enabled (by writing to the enable bit in software or by external input) after setting the counter and reload register, it starts counting down from the counter?s set value synchronously with the count clock and when the minimum count is reached, generates an underflow. at the cycle after this underflow, the counter to be loaded with the content of ?the reload register -1? and start counting over again. thereafter, this operation is repeated each time an underflow occurs. to stop the counter, disable count by writing to the enable bit in software. the f/f output waveform in continuous output mode is inverted (f/f output level is changed ?l? to ?h?, or ?h? to ?l?), at startup and upon underflow, generating a waveform of consecutive pulses until the timer stops counting. an interrupt request can be generated each time the counter underflows. the effective counter value is ?counter set value +1? and ?reload register set value +1.?
10.3 top (output-related 16-bit timer) multijunction timers 10 10-63 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07  because the timer operates synchronously with the count clock, up to one count clock-dependent delay is generated by the time when the timer actually starts operating after writing to the enable bit. in operation mode where the f/f output is inverted when the timer is enabled, there is also a count clock-dependent delay before the f/f output is inverted. bclk count clock enable f/f operation (note 1) count clock period count clock-dependent delay write to the enable bit note 1: this applies to the case where f/f output is inverted when the timer is enabled. inverted figure 10.3.2 count clock dependent delay
10-64 10.3 top (output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.3.3 top related register map shown below is a top related register map. top related register map (1/2) address +0 address +1 address see pages b0 b7 b8 b15 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) 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) | | | | |
10.3 top (output-related 16-bit timer) multijunction timers 10 10-65 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 top related register map (2/2) address +0 address +1 address see pages b0 b7 b8 b15 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) (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) | | | | | |
10-66 10.3 top (output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.3.4 top control registers the top control registers are used to select operation modes of top0?10 (single-shot output, delayed single- shot output or continuous output mode), as well as select the count enable and count clock sources. following four top control registers are provided for each timer group.  top0?5 control register 0 (top05cr0)  top0?5 control register 1 (top05cr1)  top6,7 control register (top67cr)  top8?10 control register (top810cr)
10.3 top (output-related 16-bit timer) multijunction timers 10 10-67 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 top0?5 control register 0 (top05cr0) b bit name function r w 0, 1 top3m (top3 operation mode select bit) 00: single-shot output mode r w 2, 3 top2m (top2 operation mode select bit) 01: delayed single-shot output mode 4, 5 top1m (top1 operation mode select bit) 10: continuous output mode 6, 7 top0m (top0 operation mode select bit) 11: continuous output mode 8 no function assigned. fix to "0." 00 9?11 top05ens 000: external tin0 input r w top0?5 enable source select bit 001: external tin0 input 010: external tin0 input 011: external tin0 input 100: input event bus 0 101: input event bus 1 110: input event bus 2 111: input event bus 3 12, 13 no function assigned. fix to "0." 00 14, 15 top05cks 00: clock bus 0 r w top0?5 clock source select bit 01: clock bus 1 10: clock bus 2 11: clock bus 3 notes:  this register must always be accessed in halfwords.  operation mode can only be set or changed while the counter is inactive. top0?5 control register 1 (top05cr1) b bit name function r w 8?11 no function assigned. fix to "0." 00 12, 13 top5m (top5 operation mode select bit) 00: single-shot output mode r w 14, 15 top4m (top4 operation mode select bit) 01: delayed single-shot output mode 10: continuous output mode 11: continuous output mode note:  operation mode can only be set or changed while the counter is inactive. b01234567891011121314b15 top3m top2m top1m top0m top05ens top05cks 0000000000000000 b8 9 1011121314b15 top5m top4m 00000000
10-68 10.3 top (output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 clk en top 0 clock bus input event bus clk en top 1 clk en top 2 clk en top 3 3 2 1 0 clk en top 4 clk en top 5 s s : selector tin0 (p150) s tin0s 3 2 1 0 note: ? this diagram only illustrates top control registers and is partly omitted. figure 10.3.3 outline diagram of top0?5 clock and enable inputs
10.3 top (output-related 16-bit timer) multijunction timers 10 10-69 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b01234567891011121314b15 top7ens top7m top6m top67ens top67cks 0000000000000000 top6,7 control register (top67cr) b bit name function r w 0 no function assigned. fix to "0." 00 1 top7ens 0: result selected by top67ens bit r w top7 enable source select bit 1: top6 output 2, 3 top7m 00: single-shot output mode r w top7 operation mode select bit 01: delayed single-shot output mode 10: continuous output mode 11: continuous output mode 4, 5 no function assigned. fix to "0." 00 6, 7 top6m 00: single-shot output mode r w top6 operation mode select bit 01: delayed single-shot output mode 10: continuous output mode 11: continuous output mode 8 no function assigned. fix to "0." 00 9?11 top67ens 000: does not select the enable source r w top6, top7 enable source select bit 001: does not select the enable source 010: does not select the enable source 011: does not select the enable source 100: input event bus 0 101: input event bus 1 110: input event bus 2 111: input event bus 3 12, 13 no function assigned. fix to "0." 00 14, 15 top67cks 00: clock bus 0 r w top6, top7 clock source select bit 01: clock bus 1 10: clock bus 2 11: clock bus 3 notes:  this register must always be accessed in halfwords.  operation mode can only be set or changed while the counter is inactive. clock bus input event bus 3 2 1 0 clk en udf top 6 clk en udf top 7 s s s : selector 3 2 1 0 s note:  this diagram only illustrates top control registers and is partly omitted. figure 10.3.4 outline diagram of top6, top7 clock and enable inputs
10-70 10.3 top (output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 top8?10 control register (top810cr) b bit name function r w 0, 1 no function assigned. fix to "0." 00 2, 3 top10m (top10 operation mode select bit) 00: single-shot output mode r w 4, 5 top9m (top9 operation mode select bit) 01: delayed single-shot output mode 6, 7 top8m (top8 operation mode select bit) 10: continuous output mode 11: continuous output mode 8?10 no function assigned. fix to "0." 00 11 top810ens 0: does not select the enable source r w top8?10 enable source select bit 1: input event bus 3 12, 13 no function assigned. fix to "0." 00 14, 15 top810cks 00: clock bus 0 r w top8?10 clock source select bit 01: clock bus 1 10: clock bus 2 11: clock bus 3 notes:  this register must always be accessed in halfwords.  operation mode can only be set or changed while the counter is inactive. b01234567891011121314b15 top10m top9m top8m top810 top810cks ens 0000000000000000 clock bus input event bus 3 2 1 0 s s clk en top 8 clk en top 9 clk en top 10 s : selector 3 2 1 0 note:  this diagram only illustrates top control registers and is partly omitted. figure 10.3.5 outline diagram of top8?10 clock and enable inputs
10.3 top (output-related 16-bit timer) multijunction timers 10 10-71 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.3.5 top counters (top0ct?top10ct) top0 counter (top0ct) top1 counter (top1ct) top2 counter (top2ct) top3 counter (top3ct) top4 counter (top4ct) top5 counter (top5ct) top6 counter (top6ct) top7 counter (top7ct) top8 counter (top8ct) top9 counter (top9ct) top10 counter (top10ct) b bit name function r w 0?15 top0ct?top10ct 16-bit counter value r w note:  these registers must always be accessed in halfwords. the top counters are a 16-bit down-counter. after the timer is enabled (by writing to the enable bit in software or by external input), the counter starts counting synchronously with the count clock. b01234567891011121314b15 top0ct ?top10ct ????????????????
10-72 10.3 top (output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.3.6 top reload registers (top0rl?top10rl) top0 reload register (top0rl) top1 reload register (top1rl) top2 reload register (top2rl) top3 reload register (top3rl) top4 reload register (top4rl) top5 reload register (top5rl) top6 reload register (top6rl) top7 reload register (top7rl) top8 reload register (top8rl) top9 reload register (top9rl) top10 reload register (top10rl) b bit name function r w 0?15 top0rl?top10rl 16-bit reload register value r w note:  this register must always be accessed in halfwords. the top reload registers are used to load data into the top counters (top0ct~top10ct). the content of "the reload register -1" is loaded into the counter synchronously with the count clock at the following timing:  at the next cycle when the counter is enabled in single-shot output mode  at the next cycle when the counter underflowed in delayed single-shot or continuous output mode simply because data is written to the reload register does not mean that the data is loaded into the counter. the counter is loaded with data in only the above cases. note that reloading of data after an underflow is performed synchronously with a clock pulse at which the counter underflowed. b01234567891011121314b15 top0rl?top10rl ????????????????
10.3 top (output-related 16-bit timer) multijunction timers 10 10-73 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.3.7 top correction registers (top0cc?top10cc) top0 correction register (top0cc) top1 correction register (top1cc) top2 correction register (top2cc) top3 correction register (top3cc) top4 correction register (top4cc) top5 correction register (top5cc) top6 correction register (top6cc) top7 correction register (top7cc) top8 correction register (top8cc) top9 correction register (top9cc) top10 correction register (top10cc) (acceptable range of values: +32,767 to ?32,768) b bit name function r w 0?15 top0cc?top10cc 16-bit correction register value r w note:  these registers must always be accessed in halfwords. the top correction registers are used to correct the top counter value by adding or subtracting in the middle of operation. to increase or reduce the counter value, write to this correction register a value by which the counter value is to be increased or reduced from its initial set value. to add, write the value to be added to the correction register directly as is. to subtract, write the 2?s complement of the value to be subtracted to the correction register. the counter is corrected synchronously with a clock pulse next to one at which the correction value was written to the top correction register. if the counter is corrected this way, note that because one down count in that clock period is canceled, the counter value actually is corrected by "correction register value + 1." for example, if the initial counter value is 10 and the value 3 is written to the correction register when the counter has counted down to 5, then the counter counts a total of 15 before it underflows. b01234567891011121314b15 top0cc ?top10cc ????????????????
10-74 10.3 top (output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.3.8 top enable control registers top0?10 external enable permit register (topeen) b bit name function r w 0?4 no function assigned. fix to "0." 00 5 top10een (top10 external enable permit bit) 0: disable external enable r w 6 top9een (top9 external enable permit bit) 1: enable external enable 7 top8een (top8 external enable permit bit) 8 top7een (top7 external enable permit bit) 9 top6een (top6 external enable permit bit) 10 top5een (top5 external enable permit bit) 11 top4een (top4 external enable permit bit) 12 top3een (top3 external enable permit bit) 13 top2een (top2 external enable permit bit) 14 top1een (top1 external enable permit bit) 15 top0een (top0 external enable permit bit) note:  this register must always be accessed in halfwords. the top0?10 external enable permit register controls enable operation on top counters from external de- vices by enabling or disabling it. top0?10 enable protect register (toppro) b bit name function r w 0?4 no function assigned. fix to "0." 00 5 top10pro (top10 enable protect bit) 0: enable for rewriting r w 6 top9pro (top9 enable protect bit) 1: protect against rewriting 7 top8pro (top8 enable protect bit) 8 top7pro (top7 enable protect bit) 9 top6pro (top6 enable protect bit) 10 top5pro (top5 enable protect bit) 11 top4pro (top4 enable protect bit) 12 top3pro (top3 enable protect bit) 13 top2pro (top2 enable protect bit) 14 top1pro (top1 enable protect bit) 15 top0pro (top0 enable protect bit) note:  this register must always be accessed in halfwords. the top0?10 enable protect register controls rewriting of the top count enable bit by enabling for or protect- ing it against rewriting. b0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 b15 top10 top9 top8 top7 top6 top5 top4 top3 top2 top1 top0 pro pro pro pro pro pro pro pro pro pro pro 0000000000000000 b01234567891011121314b15 top10 top9 top8 top7 top6 top5 top4 top3 top2 top1 top0 een een een een een een een een een een een 0000000000000000
10.3 top (output-related 16-bit timer) multijunction timers 10 10-75 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b01234567891011121314b15 top10 top9 top8 top7 top6 top5 top4 top3 top2 top1 top0 cen cen cen cen cen cen cen cen cen cen cen 0000000000000000 top0?10 count enable register (topcen) b bit name function r w 0?4 no function assigned. fix to "0." 00 5 top10cen (top10 count enable bit) 0: stop counting r w 6 top9cen (top9 count enable bit) 1: enable counting 7 top8cen (top8 count enable bit) 8 top7cen (top7 count enable bit) 9 top6cen (top6 count enable bit) 10 top5cen (top5 count enable bit) 11 top4cen (top4 count enable bit) 12 top3cen (top3 count enable bit) 13 top2cen (top2 count enable bit) 14 top1cen (top1 count enable bit) 15 top0cen (top0 count enable bit) note:  this register must always be accessed in halfwords. the top0?10 count enable register controls operation of top counters. to enable any top counter in software, enable its corresponding enable protect bit for write and set the count enable bit by writing "1." to stop any top counter, enable its corresponding enable protect bit for write and reset the count enable bit by writing "0." in all but continuous output mode, when the counter stops due to occurrence of an underflow, the count enable bit is automatically reset to "0." therefore, the top0-10 count enable register when accessed for read serves as a status register indicating whether the counter is operating or idle. wr bn topm enable protect (topmpro) wr en-on topm external enable (topmeen) tinns topm count enable (topmcen) top enable control input processing selection f/f f/f f/f event bus tinn figure 10.3.6 configuration of the top enable circuit
10-76 10.3 top (output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.3.9 operation in top single-shot output mode (with correction function) (1) outline of top single-shot output mode in single-shot output mode, the timer generates a pulse in width of "reload register set value+1" only once and then stops. when the timer is enabled (by writing to the enable bit in software or by external input) after setting the reload register, at the next cycle the counter is loaded with the content of "the reload register -1" and starts counting synchronously with the count clock. the counter counts down and stops when it underflows after reaching the minimum count. the f/f output waveform in single-shot output mode is inverted (f/f output levels change from "l" to "h" or vice versa) at startup and upon underflow, generating a single-shot pulse waveform in width of "reload register set value + 1" only once. an interrupt request can be generated when the counter underflows. the count value is "reload register set value + 1." for example, if the initial reload register value is 7, then the count value is 8. figure 10.3.7 example of counting in top single-shot output mode 123 456 78 6 5 4 3 h'ffff 7 2 1 0 (note 3) enable reload register counter interrupt request underflow count value = 8 note 1: what actually is seen in the cycle immediately during enable is the previous counter value, and not 7. note 2: a count clock dependent delay is included before f/f output changes state after the timer is enabled. note 3: the value that "reload register - 1" is reloaded. note:  this diagram does not show detailed timing information. f/f output count clock (note 2) (note 1)
10.3 top (output-related 16-bit timer) multijunction timers 10 10-77 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 in the example below, the reload register is initially set to h?a000. (the initial counter value can be undefined, and does not have to be specific.) when the timer starts, the value that "the reload register -1" is loaded into the counter, letting it start counting. thereafter, it continues counting down until it underflows after reaching the minimum count. h'ffff h'0000 h'a000 h'ffff h'(a000-1) count clock correction register enabled (by writing to the enable bit or by external input) f/f output disabled (by underflow) (unused) top interrupt request due to underflow enable bit starts counting down from the reload register set value reload register data inverted by enable counter data inverted by underflow indeterminate value (note 1) (note 2) note 1: a count clock dependent delay is included before f/f output changes state after the timer is enabled. note 2: the value that "reload register - 1" is reloaded. note:  this diagram does not show detailed timing information. figure 10.3.8 typical operation in top single-shot output mode
10-78 10.3 top (output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (2) correction function of top single-shot output mode to change the counter value while in progress, write to the top correction register a value by which the counter value is to be increased or reduced from its initial set value. to add, write the value to be added to the correction register directly as is. to subtract, write the 2?s complement of the value to be subtracted to the correction register. the counter is corrected synchronously with a count clock pulse next to one at which the correction value was written to the top correction register. if the counter is corrected this way, note that because one down count in that clock period is canceled, the counter value actually is corrected by "correction register value + 1." for example, if the initial counter value is 7 and the value 3 is written to the correction register when the counter has counted down to 3, then the counter counts a total of 12 before it underflows. figure 10.3.9 example of counting in top single-shot output mode when count is corrected when writing to the correction register, be careful not to cause the counter to overflow. even if the counter overflows due to correction of counts, no interrupt requests are generated for reasons of an overflow. 1 234 567 89101112 6 5 4 3 2 1 0 6 5 4 3 7 3 h'ffff correction register underflow count value = (7 + 1) + (3 + 1) = 12 count clock dependent delay enable reload register counter interrupt request count clock (note 1) note 1: what actually is seen in the cycle immediately after enable is the previous counter value, and not 7. note 2: the value that "reload register - 1" is reloaded. note:  this diagram does not show detailed timing information. indeterminate value (note 2) + 3
10.3 top (output-related 16-bit timer) multijunction timers 10 10-79 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 10.3.10 typical operation in top single-shot output mode when count is corrected h'(8000 - 1) h'ffff h'0000 h'8000 h'5000 h'5000 + h'4000 h'8000 h'ffff h'4000 undefined f/f output top interrupt request due to underflow count clock correction register enabled (by writing to the enable bit or by external input) enable bit reload register write to the correction register undefined value disabled (by underflow) counter (note 1) note 1: what actually is seen in the cycle immediately after enable is the previous counter value, and not 7. note 2: the value that "reload register - 1" is reloaded. note:  this diagram does not show detailed timing information. (note 2) data inverted by enable data inverted by underflow in the example below, the reload register is initially set to h?8000. when the timer starts, the value that "the reload register -1" is loaded into the counter, letting it start counting down. in the diagram below, the value h?4000 is written to the correction register when the counter has counted down to h?5000. as a result of this correction, the count has been increased to h?9000, so that the counter counts a total of (h?8000 + 1 + h?4000 + 1) before it stops.
10-80 10.3 top (output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (3) notes on using top single-shot output mode the following describes precautions to be observed when using top single-shot output mode.  if the counter stops due to an underflow in the same clock period as the timer is enabled by external input, the former has priority so that the counter stops.  if the counter stops due to an underflow in the same clock period as count is enabled by writing to the enable bit, the latter has priority so that count is enabled.  if the timer is enabled by external input in the same clock period as count is disabled by writing to the enable bit, the latter has priority so that count is disabled.  because the timer operates synchronously with the count clock, a count clock-dependent delay is included before f/f output is inverted after the timer is enabled.  when writing to the correction register, be careful not to cause the counter to overflow. even if the counter overflows due to correction of counts, no interrupt requests are generated for reasons of an overflow. therefore, if the counter underflows in the subsequent down-count after an overflow, a false interrupt request is generated for an underflow that includes the overflowed count.
10.3 top (output-related 16-bit timer) multijunction timers 10 10-81 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 h'ffff h'0000 h'fff8 h'(fff0+0014) h'0004 h'fff0 h'0014 h'fff8 h'ffff h'(fff8-1) data inverted by enable data inverted by underflow counter count clock correction register f/f output enable bit reload register write to the correction register enabled (by writing to the enable bit or by external input) undefined value actual count after overflow overflow occurs undefined top interrupt request due to underflow note 1: a count clock dependent delay is included before f/f output changes state after the timer is enabled. note 2: the value that "reload register - 1" is reloaded. note:  this diagram does not show detailed timing information. (note 2) (note 1) figure 10.3.11 example of an operation in top single-shot output mode where count overflows due to correction in the example below, the reload register is initially set to h?fff8. when the timer starts, the value that "the reload register -1" is loaded into the counter, letting it start counting down. in the diagram below, the value h?0014 is written to the correction register when the counter has counted down to h?fff0. as a result of this correction, the count overflows to h?0004 and the counter fails to count correctly. also, an interrupt request is generated for an erroneous overflowed count.
10-82 10.3 top (output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.3.10 operation in top delayed single-shot output mode (with correction function) (1) outline of top delayed single-shot output mode in delayed single-shot output mode, the timer generates a pulse in width of "reload register set value + 1" after a finite time equal to "counter set value + 1" only once and then stops. when the timer is enabled (by writing to the enable bit in software or by external input) after setting the counter and reload register, it starts counting down from the counter?s set value synchronously with the count clock. at the cycle after the first time the counter underflows, it is loaded with the value that "the reload register -1" and continues counting down. the counter stops when it underflows next time. the f/f output waveform in delayed single-shot output mode is inverted (f/f output level changes from "l" to "h" or vice versa) when the counter underflows first time and next, generating a single-shot pulse waveform in width of "reload register set value + 1" after a finite time equal to "first set value of counter + 1" only once. an interrupt request can be generated when the counter underflows first time and next. the "counter set value + 1" and "reload register set value + 1" are effective as count values. for example, if the initial counter value is 4 and the initial reload register value is 5, then the timer operates as shown below. figure 10.3.12 example of counting in top delayed single-shot output mode 123 45 678 9 10 11 4 3 2 1 5 0 3 2 1 0 4 h'ffff h'ffff f/f output (note 1) count clock dependent delay enable reload register counter interrupt request count clock underflow underflow count value = (4 + 1) + (5 + 1) = 11 (note 2) note 1: what actually is seen in the cycle immediately during underflow is h'ffff(underflow value), and not 5. note 2: the value that "reload register - 1" is reloaded. note:  this diagram does not show detailed timing information.
10.3 top (output-related 16-bit timer) multijunction timers 10 10-83 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 in the example below, the counter and the reload register are initially set to h?a000 and h?f000, respec- tively. when the timer is enabled, the counter starts counting down and at the cycle after it underflows , the counter is loaded with the content of "the reload register -1" and continues counting down. the counter stops when it underflows second time. figure 10.3.13 typical operation in top delayed single-shot output mode h'ffff h'0000 underflow (first time) count down from the counter's set value h'a000 underflow (second time) h'f000 count down from the reload register's set value h'(f000-1) (unused) h'ffff h'f000 data inverted by underflow data inverted by underflow count clock correction register enabled (by writing to the enable bit or by external input) f/f output top interrupt request due to underflow enable bit reload register counter (note 1) note 1: the value that "reload register - 1" is reloaded. note:  this diagram does not show detailed timing information.
10-84 10.3 top (output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (2) correction function of top delayed single-shot output mode to change the counter value while in progress, write to the top correction register a value by which the counter value is to be increased or reduced from its initial set value. to add, write the value to be added to the correction register directly as is. to subtract, write the 2?s complement of the value to be subtracted to the correction register. the counter is corrected synchronously with a count clock pulse next to one at which the correction value was written to the top correction register. if the counter is corrected this way, note that because one down count in that clock period is canceled, the counter value actually is corrected by "correction register value + 1." for example, if the reload register value is 7 and the value 3 is written to the correction register when the counter has counted down to 3 after being reloaded, then the counter counts a total of 12 after being reloaded before it underflows. 6 5 4 3 2 1 0 12345678 9101112 6 5 4 3 7 0 h'ffff 3 h'ffff enable = "h" (note 1) underflow correction register reload register counter interrupt request count clock count value after being reloaded = (7 + 1) + (3 + 1) = 12 (note 2) note 1: what actually is seen in the cycle immediately during underflow is h'ffff(the underflow value), and not 7. note 2: the value that "reload register - 1" is reloaded. note:  this diagram does not show detailed timing information. +3 figure 10.3.14 example of counting in top delayed single-shot output mode when count is corrected when writing to the correction register, be careful not to cause the counter to overflow. even if the counter overflows due to correction of counts, no interrupt requests are generated for reasons of an overflow.
10.3 top (output-related 16-bit timer) multijunction timers 10 10-85 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 10.3.15 typical operation in top delayed single-shot output mode when count is corrected h'ffff h'0000 h'9000+h'0008 h'f000 h'a000 h'f000 h'(f000+0008+1) h'0008 write to the correction register h'9000 data inverted by underflow data inverted by underflow correction register f/f output top interrupt request due to underflow enable bit note 1: the value that "reload register - 1" is reloaded. note:  this diagram does not show detailed timing information. reload register counter count clock underflow (first time) underflow (second time) enabled (by writing to the enable bit or by external input) undefined (note 1) in the example below, the counter and the reload register are initially set to h?a000 and h?f000, respec- tively. when the timer is enabled, the counter starts counting down and at the cycle after the first underflow, the counter is loaded with the content of "the reload register -1" and continues counting down. in the dia- gram below, the value h?0008 is written to the correction register when the counter has counted down to h?9000. as a result of this correction, the counter has its count value increased to h?9008 and counts (h?f000 + 1 + h?0008 + 1) after the first underflow before it stops.
10-86 10.3 top (output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (3) notes on using top delayed single-shot output mode the following describes precautions to be observed when using top delayed single-shot output mode.  if the counter stops due to an underflow in the same clock period as the timer is enabled by external input, the former has priority so that the counter stops.  if the counter stops due to an underflow in the same clock period as count is enabled by writing to the enable bit, the latter has priority so that count is enabled.  if the timer is enabled by external input in the same clock period as count is disabled by writing to the enable bit, the latter has priority so that count is disabled.  even if the counter overflows due to correction of counts, no interrupt requests are generated for reasons of an overflow. therefore, if the counter underflows in the subsequent down-count after an overflow, a false interrupt request is generated for an underflow that includes the overflowed count.  if the counter is accessed for read at the cycle of underflow, the counter value is read as h?ffff but changes to "reload register value -1" at the next count clock timing after underflow. figure 10.3.16 counter value immediately after underflow count clock enable bit "h" h'0001 h'0000 h'ffff h'aaa9 h'aaa8 counter value h'aaaa reload register underflow h'(aaaa-1) h'(aaaa-2) what is seen during underflow cycle is always h'ffff, and not the reload register value (in this case, h'aaaa). count down from the reload register value reload cycle the value that "reload register - 1" is reloaded by count clock next underflow
10.3 top (output-related 16-bit timer) multijunction timers 10 10-87 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.3.11 operation in top continuous output mode (without correction function) (1) outline of top continuous output mode in continuous output mode, the timer counts down starting from the set value of the counter and at the cycle after the counter underflows, it is loaded with the value that "the reload register -1." thereafter, this opera- tion is repeated each time the counter underflows, thus generating consecutive pulses whose waveform is inverted in width of "reload register set value + 1." when the timer is enabled (by writing to the enable bit in software or by external input) after setting the counter and reload register, it starts counting down from the counter?s set value synchronously with the count clock and when the minimum count is reached, generates an underflow. at the cycle after this underflow, the counter to be loaded with the content of "the reload register -1" and count down over again. thereafter, this operation is repeated each time an underflow occurs. to stop the counter, disable count by writing to the enable bit in software. the f/f output waveform in continuous output mode is inverted (f/f output level changes from "l" to "h" or vice versa) at startup and upon underflow, generating a waveform of consecutive pulses until the timer stops counting. an interrupt request can be generated each time the counter underflows. the "counter set value + 1" and "reload register set value + 1" are effective as count values. for example, if the initial counter value is 4 and the initial reload register value is 5, then the timer operates as shown below. figure 10.3.17 example of counting in top continuous output mode 12345 123456 123456 (4) 3 2 1 0 3 2 1 0 4 3 2 1 0 4 5 (note 1) f/f output (note 2) interrupt request underflow note 1: what actually is seen in the cycle immediately during enable is the previous counter value, and not 4. note 2: what actually is seen in the cycle immediately during underflow is h'ffff (underflow value), and not 5. note 3: the value that "reload register - 1" is reloaded. note:  this diagram does not show detailed timing information. underflow underflow (note 2) (note 2) count clock dependent delay enable counter count clock count value = 5 count value = 6 count value = 6 (note 3) (note 3) (note 3 ) reload register
10-88 10.3 top (output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 in the example below, the counter and the reload register are initially set to h?a000 and h?e000, respectively. when the timer is enabled, the counter starts counting down and when it underflows after reaching the mini- mum count, the counter is loaded with the content of "the reload register -1" and continues counting down. however the timing for reloading is at the cycle after underflow. h'ffff h'0000 h'e000 h'a000 h'e000 h'(e000-1) h'(e000-1) h'ffff h'ffff data inverted by underflow data inverted by underflow data inverted by enable count clock correction register f/f output top interrupt request due to underflow enable bit reload register counter underflow (first time) underflow (second time) enabled (by writing to the enable bit or by external input) count down from the counter's set value count down from the reload register's set value count down from the reload register's set value (unused) (note 2) note 1: a count clock dependent delay is included before f/f output changes state after the timer is enabled . note 2: the value that "reload register - 1" is reloaded. note:  this diagram does not show detailed timing information. (note 2) (note 1) figure 10.3.18 typical operation in top continuous output mode
10.3 top (output-related 16-bit timer) multijunction timers 10 10-89 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (2) notes on using top continuous output mode the following describes precautions to be observed when using top continuous output mode.  if the timer is enabled by external input in the same clock period as count is disabled by writing to the enable bit, the latter has priority so that count is disabled.  if the counter is accessed for read at the cycle of underflow, the counter value is read as h?ffff but changes to "reload register value -1" at the next count clock timing.  because the timer operates synchronously with the count clock, a count clock-dependent delay is included before f/f output is inverted after the timer is enabled.
10-90 10.4 tio (input/output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.4 tio (input/output-related 16-bit timer) 10.4.1 outline of tio tio (timer input/output) is an input/output-related 16-bit timer, whose operation mode can be selected from the following by mode switching in software, one at a time: ? measure clear input mode  measure free-run input mode  noise processing input mode  pwm output mode  single-shot output mode  delayed single-shot output mode  continuous output mode the table below and the diagram in the next page show specifications and a block diagram of tio, respectively. table 10.4.1 specifications of tio (input/output-related 16-bit timer) item specification number of channels 10 channels counter 16-bit down-counter reload register 16-bit reload register measure register 16-bit capture register timer startup started by writing to the enable bit in software or enabled by external input (rising or falling or both edges or "h" or "l" level) operation mode  measure clear input mode  measure free-run input mode  noise processing input mode  pwm output mode  single-shot output mode  delayed single-shot output mode  continuous output mode interrupt request generation can be generated by a counter underflow dma transfer request generation can be generated by a counter underflow (tio8, tio9 only)
10.4 tio (input/output-related 16-bit timer) multijunction timers 10 10-91 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 irq12 irq12 irq12 3 2 1 0 irq8 tin7 (p33) tclk1 (p125) clk en/cap udf tio 0 clk en/cap udf tio 1 clk en/cap udf tio 2 clk en/cap udf tio 3 clk en/cap udf tio 4 s s tin3s tin3 (p153) s s tin4s tin4 (p30) tin5s tin5 (p31) s s irq12 tin6s tin6 (p32) prs1 prs0 clk en/cap udf tio 5 s tclk1s s tin7s irq8 tin8 (p44) tclk2 (p126) clk en/cap udf tio 6 s tclk2s s tin8s irq8 tin9 (p45) clk en/cap udf tio 7 s s tin9s irq8 tin10 (p46) s s tin10s clk en/cap udf tio 8 clk en/cap udf tio 9 irq8 tin11 (p47) s s tin11s f/f11 f/f12 f/f13 f/f14 f/f15 s f/f16 f/f17 f/f18 f/f19 s s s s s s s s s to 11 (p103) to 12 (p104) to 13 (p105) to 14 (p106) to 15 (p107) irq0 irq0 irq0 irq0 irq4 to 16 (p93) to 17 (p94) to 18 (p95) to 19 (p96) to 20 (p97) irq4 irq4 irq4 dma0, dma common irq3 3 2 1 0 0 1 2 3 0 1 2 3 3 2 1 0 3 2 1 0 prs2 irq3 f/f20 dma4 dma5 dma common dma1 clock bus input event bus output event bus s : selector f/f : flip-flop prs0?2 : prescaler reload 0/measure register down-counter reload 1 register (note 1) (16-bit) note 1: the reload 1 register is used in only pwm output mode. bclk 1/4 1/2 figure 10.4.1 block diagram of tio (input/output-related 16-bit timer)
10-92 10.4 tio (input/output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.4.2 outline of each mode of tio each mode of tio is outlined below. for each tio channel, only one of the following modes can be selected. (1) measure clear/free-run input modes in measure clear/free-run input modes, the timer is used to measure a duration of time from when the counter starts counting until when an external capture signal is entered.and also it is possible to generate both an interrupt requested by underflow at the counter or execution of measurement operation and a dma transfer request (for only the tio8 and tio9) upon underflow of the counter. after the timer is enabled (by writing to the enable bit in software), the counter starts counting down synchro- nously with the count clock. when a capture signal is entered from an external device, the counter value at that point in time is written into a register called the ?measure register.? in measure clear input mode, the counter value is initialized to h?ffff upon capture, from which the counter starts counting down again. the counter returns to h?ffff upon underflow, from which it starts counting down.furthermore when it underflows goes back to h?ffff and continues down countingb in measure free-run input mode, the counter continues counting down even after capture. the counter returns to h?ffff upon underflow, from which it starts counting down again. to stop the counter, disable count by writing to the enable bit in software. (2) noise processing input mode in noise processing input mode, the timer is used to detect that the input signal remained in the same state for over a predetermined time. in noise processing input mode, a "h" or "l" level on external input activates the counter and if the input signal remains in the same state for over a predetermined time before the counter underflows, the counter generates an interrupt request before stopping. if the valid-level signal being applied turns to an invalid level before the counter underflows, the counter temporarily stops counting and at the next cycle when a valid-level signal is entered again, the counter is reloaded with the value that "the reload register -1" and restarts counting. the timer stops at the same time the counter underflows or count is disabled by writing to the enable bit. furthermore, it is possible to generate an interrupt request and a dma transfer request (for only the tio8 and tio9) upon underflow of the counter. (3) pwm output mode (without correction function) in pwm output mode, the timer uses two reload registers to generate a waveform with a given duty cycle. when the timer is enabled (by writing to the enable bit in software or by external input) after setting the initial values in the reload 0 and reload 1 registers, the counter is loaded with the value that ?the reload 0 register -1? and starts counting down synchronously with the count clock at the next cycle.the next cycle after the first time the counter underflows, it is loaded with the value that ?the reload 1 register -1? and continues counting. thereafter, the counter is loaded with the reload 0 and reload 1 register values alternately each time an underflow occurs.the effective counter value is ?reload 0 register set value +1? or ?reload 1 register set value +1?. the timer stops at the same time count is disabled by writing to the enable bit (and not in synchronism with pwm output period). the f/f output waveform in pwm output mode is inverted (f/f output level changes from "l" to "h" or vice versa), when the counter starts counting and each time it underflows. furthermore, it is possible to generate an interrupt request at even-numbered occurrences of underflow after the counter is enabled and a dma transfer request (for only the tio8 and tio9) every time the counter underflows. in addition pwm output mode of tio does not have function of correction.
10.4 tio (input/output-related 16-bit timer) multijunction timers 10 10-93 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (4) single-shot output mode (without correction function) in single-shot output mode, the timer generates a pulse in width of ?reload 0 register set value + 1? only once and then stops. when the timer is enabled (by writing to the enable bit in software or by external input) after setting the reload 0 register, the counter is loaded with the value that ?the reload 0 register -1? and starts counting synchronously with the count clock at the next cycle. the counter counts down and when the minimum count is reached, stops upon underflow. the f/f output waveform in single-shot output mode is inverted(f/f output level changes from "l" to "h" or vice versa) at startup and upon underflow, generating a single-shot pulse waveform in width of ?reload 0 register set value + 1? only once. furthermore, it is possible to generate an interrupt request and a dma transfer request (for only the tio8 and tio9) upon underflow of the counter. (5) delayed single-shot output mode (without correction function) in delayed single-shot output mode, the timer generates a pulse in width of ?reload 0 register set value + 1? after a finite time equal to ?counter set value + 1? only once and then stops. when the timer is enabled (by writing to the enable bit in software or by external input) after setting the counter and reload 0 register, it starts counting down from the counter?s set value synchronously with the count clock. the next cycle after the first time the counter underflows, it is loaded with the value that ?the reload 0 register -1? and continues counting down. the counter stops when it underflows next time. the f/f output waveform in delayed single-shot output mode is inverted(f/f output level changes from "l" to "h" or vice versa) when the counter underflows first time and next, generating a single-shot pulse waveform in width of ?reload 0 register set value + 1? after a finite time equal to ?first set value of counter + 1? only once. furthermore, it is possible to generate an interrupt request and a dma transfer request (for only the tio8 and tio9) upon the first and next underflows of the counter. (6) continuous output mode (without correction function) in continuous output mode, the timer counts down starting from the set value of the counter and when the counter underflows, it is loaded with the reload 0 register value. thereafter, this operation is repeated each time the counter underflows, thus generating consecutive pulses in width of ?reload 0 register set value + 1?. when the timer is enabled (by writing to the enable bit in software or by external input) after setting the counter and reload 0 register, it starts counting down from the counter?s set value synchronously with the count clock and when the minimum count is reached, generates an underflow. the next cycle after this underflow causes the counter to be loaded with the content of ?the reload 0 register -1? and start counting over again. thereafter, this operation is repeated each time an underflow occurs. to stop the counter, disable count by writing to the enable bit in software. the timing for reloading to counter is the cycle after underflow. the f/f output waveform in continuous output mode is inverted(f/f output level changes from "l" to "h" or vice versa) at startup and upon underflow, generating a waveform of consecutive pulses until the timer stops counting. furthermore, it is possible to generate an interrupt request and a dma transfer request (for only the tio8 and tio9) each time the counter underflows.
10-94 10.4 tio (input/output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07  because the timer operates synchronously with the count clock, up to one count clock-dependent delay is generated by the time when the timer actually starts operating after writing to the enable bit. in operation mode where the f/f output is inverted when the timer is enabled, there is also a count clock-dependent delay before the f/f output is inverted. bclk count clock enable f/f operation (note 1) count clock period count clock-dependent delay write to the enable bit note 1: this applies to the case where f/f output is inverted when the timer is enabled. inverted figure 10.4.2 count clock dependent delay
10.4 tio (input/output-related 16-bit timer) multijunction timers 10 10-95 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.4.3 tio related register map shown below is a tio related register map. tio related register map (1/2) address +0 address +1 address see pages b0 b7 b8 b15 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) 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) | | | | |
10-96 10.4 tio (input/output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tio related register map (2/2) address +0 address +1 address see pages b0 b7 b8 b15 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) 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) | | | | |
10.4 tio (input/output-related 16-bit timer) multijunction timers 10 10-97 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.4.4 tio control registers the tio control registers are used to select operation modes of tio0?9 (measure input, noise processing input, pwm output, single-shot output, delayed single-shot output or continuous output mode), as well as select the count enable and count clock sources. following tio control registers are provided for each timer group.  tio0?3 control register 0 (tio03cr0)  tio0?3 control register 1 (tio03cr1)  tio4 control register (tio4cr)  tio5 control register (tio5cr)  tio6 control register (tio6cr)  tio7 control register (tio7cr)  tio8 control register (tio8cr)  tio9 control register (tio9cr)
10-98 10.4 tio (input/output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tio0?3 control register 0 (tio03cr0) b bit name function r w 0 tio3een (note 1) 0: disable external input r w tio3 external input enable bit 1: enable external input 1?3 tio3m 000: single-shot output mode r w tio3 operation mode select bit 001: delayed single-shot output mode 010: continuous output mode 011: pwm output mode 100: measure clear input mode 101: measure free-run input mode 110: noise processing input mode 111: noise processing input mode 4 tio2ens 0: do not use enable/measure input source r w tio2 enable/measure input source select bit 1: external input tin5 5?7 tio2m 000: single-shot output mode r w tio2 operation mode select bit 001: delayed single-shot output mode 010: continuous output mode 011: pwm output mode 100: measure clear input mode 101: measure free-run input mode 110: noise processing input mode 111: noise processing input mode 8 tio1ens 0: do not use enable/measure input source r w tio1 enable/measure input source select bit 1: external input tin4 9?11 tio1m 000: single-shot output mode r w tio1 operation mode select bit 001: delayed single-shot output mode 010: continuous output mode 011: pwm output mode 100: measure clear input mode 101: measure free-run input mode 110: noise processing input mode 111: noise processing input mode 12 tio0ens 0: do not use enable/measure input source r w tio0 enable/measure input source select bit 1: external input tin3 13?15 tio0m 000: single-shot output mode r w tio0 operation mode select bit 001: delayed single-shot output mode 010: continuous output mode 011: pwm output mode 100: measure clear input mode 101: measure free-run input mode 110: noise processing input mode 111: noise processing input mode note 1: during measure free-run/clear input mode, even if this bit is set to "0" (external input disabled), when a capture sign al is entered from an external device, the counter value at that point in time is written into the measure register. in measure clear input mode, however, if this bit = "0" (external input disabled), the counter value is not initialized (h?ffff) upon capture an d, therefore, this bit should be set to "1" (external input enabled) when using measure clear input mode. notes:  this register must always be accessed in halfwords.  operation mode can only be set or changed while the counter is inactive.  to select tio3 enable/measure input sources, use the tio4 control register tio34ens (tio3, tio4 enable/measure input source select) bits. b0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 b15 tio3een tio3m tio2ens tio2m tio1ens tio1m tio0ens tio0m 0000000000000000
10.4 tio (input/output-related 16-bit timer) multijunction timers 10 10-99 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tio0?3 control register 1 (tio03cr1) b bit name function r w 8?13 no function assigned. fix to "0." 00 14, 15 tio03cks 00: clock bus 0 r w tio0?3 clock source select bit 01: clock bus 1 10: clock bus 2 11: clock bus 3 figure 10.4.3 outline diagram of tio0?4 clock and enable inputs clock bus input event bus 3 2 1 0 clk en/cap tio 0 clk en/cap tio 1 clk en/cap tio 2 clk en/cap tio 3 clk en/cap tio 4 s s tin3s tin3 (p153) s s tin4s tin4 (p30) tin5s tin5 (p31) s s tin6s tin6 (p32) s : selector 3 2 1 0 3 2 1 0 3 2 1 0 note:  this diagram only illustrates tio control registers and is partly omitted. b8 9 1011121314b15 tio03cks 00000000
10-100 10.4 tio (input/output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tio4 control register (tio4cr) b bit name function r w 0, 1 tio4cks 00: clock bus 0 r w tio4 clock source select bit 01: clock bus 1 10: clock bus 2 11: clock bus 3 2 tio4een (note 1) 0: disable external input r w tio4 external input enable bit 1: enable external input 3, 4 tio34ens 00: external input tin6 r w tio3,4 enable/measure input source select bit 01: external input tin6 10: input event bus 2 11: input event bus 3 5?7 tio4m 000: single-shot output mode r w tio4 operation mode select bit 001: delayed single-shot output mode 010: continuous output mode 011: pwm output mode 100: measure clear input mode 101: measure free-run input mode 110: noise processing input mode 111: noise processing input mode note 1: during measure free-run/clear input mode, even if this bit is set to "0" (external input disabled), when a capture sign al is entered from an external device, the counter value at that point in time is written into the measure register. in measure clear input mode, however, if this bit = "0" (external input disabled), the counter value is not initialized (h?ffff) upon capture an d, therefore, this bit should be set to "1" (external input enabled) when using measure clear input mode. note:  operation mode can only be set or changed while the counter is inactive. b0123456b7 tio4cks tio4een tio34ens tio4m 00000000
10.4 tio (input/output-related 16-bit timer) multijunction timers 10 10-101 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 clk en/cap s tclk2s s tin8s clock bus input event bus 3 2 1 0 tin7 (p33) tclk1 (p125) clk en/cap tio 5 s tclk1s s tin7s tin8 (p44) tclk2 (p126) tio 6 tin9 (p45) clk en/cap tio 7 s s tin9s tin10 (p46) s s tin10s clk en/cap tio 8 clk en/cap tio 9 tin11 (p47) s s tin11s s : selector 3 2 1 0 3 2 1 0 3 2 1 0 note:  this diagram only illustrates tio control registers and is partly omitted. figure 10.4.4 outline diagram of tio5?9 clock and enable inputs
10-102 10.4 tio (input/output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tio5 control register (tio5cr) b bit name function r w 8?10 tio5cks 000: external input tclk1 r w tio5 clock source select bit 001: external input tclk1 010: external input tclk1 011: external input tclk1 100: clock bus 0 101: clock bus 1 110: clock bus 2 111: clock bus 3 11, 12 tio5ens 00: do not use enable/measure input source r w tio5 enable/measure input source select bit 01: do not use enable/measure input source 10: external input tin7 11: input event bus 3 13?15 tio5m 000: single-shot output mode r w tio5 operation mode select bit 001: delayed single-shot output mode 010: continuous output mode 011: pwm output mode 100: measure clear input mode 101: measure free-run input mode 110: noise processing input mode 111: noise processing input mode note:  operation mode can only be set or changed while the counter is inactive. b8 9 1011121314b15 tio5cks tio5ens tio5m 00000000
10.4 tio (input/output-related 16-bit timer) multijunction timers 10 10-103 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tio6 control register (tio6cr) b bit name function r w 0?2 tio6cks 000: external input tclk2 r w tio6 clock source select bit 001: external input tclk2 010: external input tclk2 011: external input tclk2 100: clock bus 0 101: clock bus 1 110: clock bus 2 111: clock bus 3 3, 4 tio6ens 00: do not use enable/measure input source r w tio6 enable/measure input source select bit 01: external input tin8 10: input event bus 2 11: input event bus 3 5?7 tio6m 000: single-shot output mode r w tio6 operation mode select bit 001: delayed single-shot output mode 010: continuous output mode 011: pwm output mode 100: measure clear input mode 101: measure free-run input mode 110: noise processing input mode 111: noise processing input mode note:  operation mode can only be set or changed while the counter is inactive. b0123456b7 tio6cks tio6ens tio6m 00000000
10-104 10.4 tio (input/output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tio7 control register (tio7cr) b bit name function r w 8 no function assigned. fix to "0." 00 9, 10 tio7cks 00: clock bus 0 r w tio7 clock source select bit 01: clock bus 1 10: clock bus 2 11: clock bus 3 11, 12 tio7ens 00: do not use enable/measure input source r w tio7 enable/measure input source select bit 01: external input tin9 10: input event bus 0 11: input event bus 3 13?15 tio7m 000: single-shot output mode r w tio7 operation mode select bit 001: delayed single-shot output mode 010: continuous output mode 011: pwm output mode 100: measure clear input mode 101: measure free-run input mode 110: noise processing input mode 111: noise processing input mode note:  operation mode can only be set or changed while the counter is inactive. tio8 control register (tio8cr) b bit name function r w 0, 1 tio8cks 100: clock bus 0 r w tio8 clock source select bit 101: clock bus 1 110: clock bus 2 111: clock bus 3 2?4 tio8ens 000: do not use enable/measure input source r w tio8 enable/measure input source select bit 001: do not use enable/measure input source 010: do not use enable/measure input source 011: do not use enable/measure input source 100: external input tin10 101: input event bus 1 110: input event bus 2 111: input event bus 3 5?7 tio8m 000: single-shot output mode r w tio8 operation mode select bit 001: delayed single-shot output mode 010: continuous output mode 011: pwm output mode 100: measure clear input mode 101: measure free-run input mode 110: noise processing input mode 111: noise processing input mode note:  operation mode can only be set or changed while the counter is inactive. b8 9 1011121314b15 tio7cks tio7ens tio7m 00000000 b0123456b7 tio8cks tio8ens tio8m 00000000
10.4 tio (input/output-related 16-bit timer) multijunction timers 10 10-105 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.4.5 tio counters (tio0ct?tio9ct) tio0 counter (tio0ct) tio1 counter (tio1ct) tio2 counter (tio2ct) tio3 counter (tio3ct) tio4 counter (tio4ct) tio5 counter (tio5ct) tio6 counter (tio6ct) tio7 counter (tio7ct) tio8 counter (tio8ct) tio9 counter (tio9ct) b bit name function r w 0?15 tio0ct?tio9ct 16-bit counter value r(note 1) note 1: protected against write during pwm output mode. note:  these registers must always be accessed in halfwords. the tio counters are a 16-bit down-counter. after the timer is enabled (by writing to the enable bit in software or by external input), the counter starts counting synchronously with the count clock. these counters are protected against write during pwm output mode. tio9 control register (tio9cr) b bit name function r w 8 no function assigned. fix to "0." 00 9, 10 tio9cks 00: clock bus 0 r w tio9 clock source select bit 01: clock bus 1 10: clock bus 2 11: clock bus 3 11, 12 tio9ens 00: do not use enable/measure input source r w tio9 enable/measure input source select bit 01: external input tin11 10: input event bus 1 11: input event bus 3 13?15 tio9m 000: single-shot output mode r w tio9 operation mode select bit 001: delayed single-shot output mode 010: continuous output mode 011: pwm output mode 100: measure clear input mode 101: measure free-run input mode 110: noise processing input mode 111: noise processing input mode note:  operation mode can only be set or changed while the counter is inactive. b8 9 1011121314b15 tio9cks tio9ens tio9m 00000000 b01234567891011121314b15 tio0ct ?tio9ct ????????????????
10-106 10.4 tio (input/output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.4.6 tio reload 0/ measure registers (tio0rl0?tio9rl0) tio0 reload 0/ measure register (tio0rl0) tio1 reload 0/ measure register (tio1rl0) tio2 reload 0/ measure register (tio2rl0) tio3 reload 0/ measure register (tio3rl0) tio4 reload 0/ measure register (tio4rl0) tio5 reload 0/ measure register (tio5rl0) tio6 reload 0/ measure register (tio6rl0) tio7 reload 0/ measure register (tio7rl0) tio8 reload 0/ measure register (tio8rl0) tio9 reload 0/ measure register (tio9rl0) b bit name function r w 0?15 tio0rl0?tio9rl0 16-bit reload register value r(note 1) note 1: these registers are protected against write during measure input mode. note:  these registers must always be accessed in halfwords. the tio reload 0/ measure registers serve dual purposes as a register for reloading data into the tio count registers (tio0ct-tio9ct) and as a measure register during measure input mode. these registers are pro- tected against write during measure input mode. the content of "the reload 0 register -1" is reloaded into the counter synchronously with the count clock at the following timing:  at the next cycle when after the counter started counting in noise processing input mode, the input signal is inverted and a valid-level signal is entered again before the counter underflows  at the next cycle when the counter is enabled in single-shot output mode  at the next cycle when the counter underflowed in delayed single-shot output or continuous output mode  at the next cycle when the counter is enabled in pwm output mode and at the next cyclewhen the counter value set by the reload 1 register underflowed simply because data is written to the reload 0 register does not mean that the data is loaded into the counter. the counter is loaded with data in only the above cases. if the register is used as a measure register, the counter value is latched into that measure register by event input. b01234567891011121314b15 tio0rl0 ?tio9rl0 ????????????????
10.4 tio (input/output-related 16-bit timer) multijunction timers 10 10-107 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.4.7 tio reload 1 registers (tio0rl1?tio9rl1) tio0 reload 1 register (tio0rl1) tio1 reload 1 register (tio1rl1) tio2 reload 1 register (tio2rl1) tio3 reload 1 register (tio3rl1) tio4 reload 1 register (tio4rl1) tio5 reload 1 register (tio5rl1) tio6 reload 1 register (tio6rl1) tio7 reload 1 register (tio7rl1) tio8 reload 1 register (tio8rl1) tio9 reload 1 register (tio9rl1) b bit name function r w 0?15 tio0rl1?tio9rl1 16-bit reload register value r w note:  these registers must always be accessed in halfwords. the tio reload 1 registers are used to reload data into the tio count registers (tio0ct?tio9ct). the content of "the reload 1 register -1" is reloaded into the counter counting synchronously with the count clock at the following timing:  at the next cycle when the count value set by the reload 0 register underflowed in pwm output mode simply because data is written to the reload 1 register does not mean that the data is loaded into the counter. the counter is loaded with data in only the above cases. b0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 b15 tio0rl1 ?tio9rl1 ????????????????
10-108 10.4 tio (input/output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b01234567891011121314b15 tio9 tio8 tio7 tio6 tio5 tio4 tio3 tio2 tio1 tio0 pro pro pro pro pro pro pro pro pro pro 0000000000000000 10.4.8 tio enable control registers tio0?9 enable protect register (tiopro) b bit name function r w 0?5 no function assigned. fix to "0." 00 6 tio9pro (tio9 enable protect bit) 0: enable rewrite r w 7 tio8pro (tio8 enable protect bit) 1: disable rewrite 8 tio7pro (tio7 enable protect bit) 9 tio6pro (tio6 enable protect bit) 10 tio5pro (tio5 enable protect bit) 11 tio4pro (tio4 enable protect bit) 12 tio3pro (tio3 enable protect bit) 13 tio2pro (tio2 enable protect bit) 14 tio1pro (tio1 enable protect bit) 15 tio0pro (tio0 enable protect bit) note:  this register must always be accessed in halfwords. the tio0?9 enable protect register controls rewriting of the tio count enable bit described in the next page by enabling or disabling it.
10.4 tio (input/output-related 16-bit timer) multijunction timers 10 10-109 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b01234567891011121314b15 tio9 tio8 tio7 tio6 tio5 tio4 tio3 tio2 tio1 tio0 cen cen cen cen cen cen cen cen cen cen 0000000000000000 wr bn tiom enable protect (tiompro) wr en-on tiom external enable (tiomeen or tiomens) tinns tiom count enable (tiomcen) tio enable control input processing selection f/f f/f f/f event bus tinn figure 10.4.5 configuration of the tio enable circuit tio0?9 count enable register (tiocen) b bit name function r w 0?5 no function assigned. fix to "0." 00 6 tio9cen (tio9 count enable bit) 0: stop count r w 7 tio8cen (tio8 count enable bit) 1: enable count 8 tio7cen (tio7 count enable bit) 9 tio6cen (tio6 count enable bit) 10 tio5cen (tio5 count enable bit) 11 tio4cen (tio4 count enable bit) 12 tio3cen (tio3 count enable bit) 13 tio2cen (tio2 count enable bit) 14 tio1cen (tio1 count enable bit) 15 tio0cen (tio0 count enable bit) note:  this register must always be accessed in halfwords the tio0?9 count enable register controls operation of the tio counters. to enable any tio counter in software, enable its corresponding enable protect bit for write and set the count enable bit by writing "1." to stop any tio counter, enable its corresponding enable protect bit for write and reset the count enable bit by writing "0." in all but continuous output mode, when the counter stops due to occurrence of an underflow, the count enable bit is automatically reset to "0." therefore, the tio0?9 count enable register when accessed for read serves as a status register indicating whether the counter is operating or idle.
10-110 10.4 tio (input/output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.4.9 operation in tio measure free-run/clear input modes (1) outline of tio measure free-run/clear input modes in measure free-run/clear input modes, the timer is used to measure a duration of time from when the counter starts counting until when an external capture signal is entered. it is possible to generate an inter- rupt request upon underflow of the counter or execution of measurement operation and a dma transfer request (for only the tio8 and tio9) upon underflow of the counter. after the timer is enabled (by writing to the enable bit in software), the counter starts counting down synchro- nously with the count clock. when a capture signal is entered from an external device, the counter value at that point in time is written into a register called the ?measure register.? in measure clear input mode, the counter value is initialized to h?ffff upon capture, from which the counter starts counting down again. the counter returns to h?ffff upon underflow, from which it starts counting down. in measure free-run input mode, the counter continues counting down even after capture and upon under- flow, recycles to h?ffff, from which it starts counting down again. to stop the counter, disable count by writing to the enable bit in software. figure 10.4.6 typical operation in measure free-run input mode h'ffff h'0000 h'7000 h'9000 h'7000 h'9000 dma transfer request (note 1) count clock counter tio interrupt request enable bit measure register tin interrupt request undefined value undefined note 1: only tio8 and tio9 can be generated. note:  this diagram does not show detailed timing information. enabled (by writing to the enable bit) measure event (capture) occurs measure event (capture) tin interrupt request due to external event input tio interrupt request due to underflow tin interrupt request due to external event input dma transfer request due to underflow
10.4 tio (input/output-related 16-bit timer) multijunction timers 10 10-111 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (2) notes on using tio measure free-run/ clear input modes the following describes precautions to be observed when using tio measure free-run/ clear input modes.  if measure event input and write to the counter occur in the same clock period, the write value is set in the counter while at the same time latched into the measure register. figure 10.4.7 typical operation in measure clear input mode h'ffff h'0000 h'7000 h'7000 dma transfer request (note 1) note 1: only tio8 and tio9 can be generated. note:  this diagram does not show detailed timing information. dma transfer request due to underflow enabled (by writing to the enable bit) measure event (capture) occurs count clock counter tio interrupt request enable bit measure register tin interrupt request undefined value tin interrupt request due to external event input undefined tio interrupt request due to underflow
10-112 10.4 tio (input/output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.4.10 operation in tio noise processing input mode in noise processing input mode, the timer is used to detect that the input signal remained in the same state for over a predetermined time. in noise processing input mode, a "h" or "l" level on external input activates the counter and if the input signal remains in the same state for over a predetermined time before the counter underflows, the counter generates an interrupt request before stopping. if the valid-level signal being applied turns to an invalid level before the counter underflows, the counter temporarily stops counting and at the next cycle after a valid-level signal is entered again, the counter is reloaded with the value that "reload register -1" and restarts counting. the effec- tive count width is "reload 0 register set value + 1." the timer stops at the same time the counter underflows or count is disabled by writing to the enable bit. furthermore, it is possible to generate an interrupt request and a dma transfer request (for only the tio8 and tio9) upon underflow of the counter. figure 10.4.8 typical operation in noise processing input mode h'ffff h'0000 h'a000 h'a000 dma transfer request (note 1) note 1: only tio8 and tio9 can be generated. note 2: the value that "reload register - 1" is reloaded. note:  this diagram does not show detailed timing information. dma transfer request due to underflow reload 0 register external input (noise processing) effective signal width invalid disabled by underflow count clock counter enabled (by writing to the enable bit) tio interrupt request enable bit invalid tio interrupt request due to underflow undefined value (note 2) (note 2) (note 2)
10.4 tio (input/output-related 16-bit timer) multijunction timers 10 10-113 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 h'ffff h'0000 h'a000 (note 3) (note 2) h'c000 h'a000 h'c000 h'a000 (note 2) count clock enabled (by writing to the enable bit or by external input) underflow (first time) enable bit reload 0 register count down from the reload 1 register set value reload 1 register reload 1 buffer count down from the reload 0 register set value dma transfer request (note 1) note 1: only tio8 and tio9 can be generated. note 2: the value that "reload 0 register - 1" is reloaded. note 3: the value that "reload 1 buffer - 1" is reloaded. note 4: when reload0 is reloaded after updating reload0 register, reload 1 buffer is tranferd. note 5: updating of reload 0 and reload 1 during timer operation does not effect pwm waveform that is outputting at present. updating is reflected at the next pwm period after updating reload 0 register. note:  this diagram does not show detailed timing information. dma transfer request due to underflow tio interrupt request dma transfer request due to underflow tio interrupt request due to even-numbered occurrences of underflow undefined value underflow (second time) count down from the reload 0 register set value h'a000 h'c000 h'a000 counter pwm output period (note 4) (note 4) f/f output (note 5) data inverted by enable data inverted by underflow data inverted by underflow 10.4.11 operation in tio pwm output mode (1) outline of tio pwm output mode in pwm output mode, the timer uses two reload registers to generate a waveform with a given duty cycle. when the timer is enabled "by writing to the enable bit in software or by external input" after setting the initial values in the reload 0 and reload 1 registers, the counter is loaded with the value that "the reload 0 register -1" and starts counting down synchronously with the count clock at the next cycle. at the cycle after the first time the counter underflows, it is loaded with the value that "the reload 1 register -1" and continues counting. thereafter, the counter is loaded with the reload 0 and reload 1 register values alternately each time an underflow occurs. the "reload 0 register set value + 1" and "reload 1 register set value + 1" respectively are effective as count values. the timer stops at the same time count is disabled by writing to the enable bit "and not in synchronism with pwm output period." the f/f output waveform in pwm output mode is inverted "f/f output level changes from "l" to "h" or vice versa" when the counter starts counting and each time it underflows. furthermore, it is possible to generate an interrupt request at even-numbered occurrences of underflow after the counter is enabled and a dma transfer request "for only the tio8 and tio9" every time the counter underflows. note that tio?s pwm output mode does not have the count correction function. figure 10.4.9 typical operation in pwm output mode
10-114 10.4 tio (input/output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 to rewrite the reload 0 and reload 1 registers while the timer is operating, rewrite the reload 1 register first and then the reload 0 register. that way, the reload 0 and reload 1 registers both are updated synchro- nously with pwm period, from which the timer starts operating. this operation can normally be performed collectively by accessing 32-bit addresses beginning with the reload 1 register address wordwise. (data are automatically written to the reload 1 and then the reload 0 registers in succession.) if the reload 0 and reload 1 registers are accessed for read, the read values are always the data that have been written to the respective registers, and not the reload values being actually used. when altering pwm period by rewriting the reload registers, if the pwm period terminates before the cpu finishes writing to reload 0, the pwm period is not altered in the current session and the data written to the register is reflected in the next period. when altering pwm period by rewriting the reload registers, if the pwm period terminates before the cpu finishes writing to reload 0, the pwm period is not altered in the current session and the data written to the register is reflected in the next period. when operating in the pwm output mode, writing the reload 0 register and reloard 1 register more than twice within the pwm period and meet the following conditions at the same time, the pwm waveform is output with the value that the last time written reload 0 register and finally written reload 1 register. condition 1: start writing reload 0 register after latching the reload 0 register pwm period of the old pwm output period. condition 2: rewrite reload 1 register before latching pwm period of the new pwm output period and start writing reload 0 register after latching pwm period. (2) reload register updates in tio pwm output mode in pwm output mode, when the timer remains idle, the reload 0 and reload 1 registers are updated at the same time data are written to the respective registers. but when the timer is operating, the reload 1 register is updated by updating the reload 0 register. however, if the reload 0 and reload 1 registers are accessed for read, the read values are always the data that have been written to the respective registers. f/f to tionrl0 tionrl1 internal bus reload 1 reload 1 wr reload 0 wr reload 1 buffer 16-bit counter prescaler output reload 0 pwm mode control (note1) note 1: it is transferd from reload 1 register to reload 1 buffer when reload 0 register is reloaded after updating reload 0 register during counter operation. figure 10.4.10 pwm circuit diagram
10.4 tio (input/output-related 16-bit timer) multijunction timers 10 10-115 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 to update pwm period correctly, take either one of the following measures.  identify the completion timing of pwm period by reading counter value at writing reload 1 register and reload 0 register, and then start writing reload 1 register and reload 0 register without crossing pwm period.  when writing to reload 1 register and reload 0 register by using interruption, set the prescaler value of counter as small as possible. by doing this, write to reload 1 register and reload 0 register later than the counter to be h'ffff in the pwm period.  writing reload 1 register and reload 0 register is performed under the period, less than one time per pwm period. (extend the reload register's rewrite period against pwm period.) (3) notes on using tio pwm output mode the following describes precautions to be observed when using tio pwm output mode.  if the timer is enabled by external input in the same clock period as count is disabled by writing to the enable bit, the latter has priority so that count is disabled.  if the counter is accessed for read at the cycle of underflow, the counter value is read as h?ffff but changes to "reload register value -1" at the next count clock timing.  because the timer operates synchronously with the count clock, up to one count clock-dependent delay is generated before f/f output is inverted after writing to the enable bit. figure 10.4.11 update timing of pwm period count clock counter h'ffff h'0000 f/f output underflow (1st time) reload 0 register (note 2) (note 1) reload 1 register pwm period (note 1) note 1: the value that "the reload 0 register -1" is reloaded. note 2: the value that "the reload 1 buffer -1" is reloaded. notes: . : indicate sampling points. . this diagram does not show detailed timing information. reload 1 buffer condition 1 old pwm output period condition 2 new pwm putput period reloading "reload 0 register" (loading pwm period) reloading "reload 0 register" (loading pwm period) underflow (2nd time) underflow (2nd time)
10-116 10.4 tio (input/output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 10.4.12 reload 0 and reload 1 register updates in pwm output mode (a) when reload register updates take effect in the current period (reflected in the next period) count clock h'ffff h'7fff h'8000 timing at which reload 0 is updated operation by new reload value written reload 0 register reload 1 register f/f output write to reload 1 write to reload 0 (reload 1 data latched) h'1000 h'2000 h'8000 h'9000 timing at which pwm period latched and reload 1 buffer is updated. reload 0 register reload 1 register counter interrupt due to underflow f/f output reload 1 buffer h'9000 h'1000 h'8000 h'9000 h'0001 h'ffff h'1000 h'7fff h'2000 h'8000 h'9000 h'7ffe h'0000 h'2000 h'9000 new pwm output period old pwm output period enlarged view new pwm output period note:  this diagram does not show detailed timing information. h'1000 h'0fff h'2000 h'8000 h'9000 (b) when reload register updates take effect in the next period (reflected one period later) operation by old reload value h'1000 h'2000 h'8000 h'9000 h'0ffe h'2000 h'9000 write to reload 1 write to reload 0 (reload 1 data latched) timing at which reload 0 is updated pwm period latched count clock reload 0 register reload 1 register counter interrupt due to underflow reload 0 register reload 1 register f/f output f/f output reload 1 buffer h'1000 h'2000 h'9000 h'0001 h'ffff h'1000 h'0fff h'8000 h'9000 h'0ffe h'0000 h'2000 old pwm output period old pwm output period old pwm output period enlarged view
10.4 tio (input/output-related 16-bit timer) multijunction timers 10 10-117 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.4.12 operation in tio single-shot output mode (without correction function) (1) outline of tio single-shot output mode in single-shot output mode, the timer generates a pulse in width of "reload 0 register set value + 1" only once and then stops. when the timer is enabled "by writing to the enable bit in software or by external input "after setting the reload 0 register, the counter is loaded with the content of the "reload 0 register -1" and starts counting synchronously with the count clock at the next cycle. the counter counts down and when the minimum count is reached, stops upon underflow. the f/f output waveform in single-shot output mode is inverted "f/f output level changes from "l" to "h" or vice versa" at startup and upon underflow, generating a single-shot pulse waveform in width of "reload 0 register set value + 1" only once. furthermore, it is possible to generate an interrupt request and a dma transfer request (for only the tio8 and tio9) upon underflow of the counter. the count value is "reload 0 register set value + 1." (for counting operation, see also section 10.3.9, ?operation of top single-shot output mode.? ) (2) notes on using tio single-shot output mode the following describes precautions to be observed when using tio single-shot output mode.  if the counter stops due to an underflow in the same clock period as the timer is enabled by external input, the former has priority so that the counter stops.  if the counter stops due to an underflow in the same clock period as count is enabled by writing to the enable bit, the latter has priority so that count is enabled.  if the timer is enabled by external input in the same clock period as count is disabled by writing to the enable bit, the latter has priority so that count is disabled.  because the timer operates synchronously with the count clock, up to one count clock-dependent delay is generated before f/f output is inverted after writing to the enable bit.
10-118 10.4 tio (input/output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 h'ffff h'0000 h'a000 h'a000 (note 2) dma transfer request (note 1) dma transfer request due to underflow count clock enabled (by writing to the enable bit or by external input) f/f output disabled (by underflow) (unused) tio interrupt request enable bit reload 0 register counter reload 1 register undefined value data inverted by enable data inverted by underflow tio interrupt request due to underflow note 1: only tio8 and tio9 can be generated. note 2: the value that "reload 0 register - 1" is reloaded. note:  this diagram does not show detailed timing information. figure 10.4.13 typical operation in tio single-shot output mode (without correction function)
10.4 tio (input/output-related 16-bit timer) multijunction timers 10 10-119 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.4.13 operation in tio delayed single-shot output mode (without correction function) (1) outline of tio delayed single-shot output mode in delayed single-shot output mode, the timer generates a pulse in width of "reload 0 register set value + 1" after a finite time equal to "counter set value + 1" only once and then stops. when the timer is enabled (by writing to the enable bit in software or by external input) after setting the counter and reload 0 register, it starts counting down from the counter?s set value synchronously with the count clock. at the cycle after the first counter underflow, it is loaded with "the reload 0 register value -1" and continues counting down. the counter stops when it underflows next time. the f/f output waveform in delayed single-shot output mode is inverted (f/f output level changes from "l" to "h" or vice versa) when the counter underflows first time and next, generating a single-shot pulse wave- form in width of "reload 0 register set value + 1" after a finite time equal to "first set value of counter + 1" only once. furthermore, it is possible to generate an interrupt request and a dma transfer request (for only the tio8 and tio9) upon the first and next underflows of the counter. the "counter set value + 1" and "reload 0 register set value + 1" are effective as count values. (for counting operation, see also section 10.3.10, ?operation of top delayed single-shot output mode.?) (2) notes on using tio delayed single-shot output mode the following describes precautions to be observed when using tio delayed single-shot output mode.  if the counter stops due to an underflow in the same clock period as the timer is enabled by external input, the former has priority so that the counter stops.  if the counter stops due to an underflow in the same clock period as count is enabled by writing to the enable bit, the latter has priority so that count is enabled.  if the timer is enabled by external input in the same clock period as count is disabled by writing to the enable bit, the latter has priority so that count is disabled.  if the counter is accessed for read ar the cycle of underflow, the counter value is read out as h?ffff but changes to "reload register value -1" at the next count clock timing.
10-120 10.4 tio (input/output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 h'ffff h'0000 h'a000 h'f000 h'f000 dma transfer request due to underflow dma transfer request due to underflow tio interrupt request due to underflow tio interrupt request due to underflow dma transfer request (note 1) underflow (first time) count down from the counter set value underflow (second time) count down from the reload 0 register set value count clock f/f output (unused) tio interrupt request enable bit reload 0 register counter reload 1 register enabled (by writing to the enable bit or by external input) data inverted by underflow data inverted by underflow (note 2) note 1: only tio8 and tio9 can be generated. note 2: the value that "reload 0 register - 1" is reloaded. note:  this diagram does not show detailed timing information. figure 10.4.14 typical operation in tio delayed single-shot output mode (without correction function)
10.4 tio (input/output-related 16-bit timer) multijunction timers 10 10-121 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.4.14 operation in tio continuous output mode (without correction function) (1) outline of tio continuous output mode in continuous output mode, the timer counts down starting from the set value of the counter and the next cycle when the counter underflows, it is loaded with the value that "the reload 0 register -1." thereafter, this operation is repeated each time the counter underflows, thus generating consecutive pulses whose wave- form is inverted in width of "reload 0 register set value + 1." when the timer is enabled (by writing to the enable bit in software or by external input) after setting the counter and reload 0 register, it starts counting down from the counter?s set value synchronously with the count clock and when the minimum count is reached, generates an underflow. the cycle after this under- flow causes the counter to be loaded with the content of "the reload 0 register -1" and start counting over again. thereafter, this operation is repeated each time an underflow occurs. to stop the counter, disable count by writing to the enable bit in software. the timing for reloading to counter is the cycle after underflow. the f/f output waveform in continuous output mode is inverted (f/f output level changes from "l" to "h" or vice versa) at startup and upon underflow, generating a waveform of consecutive pulses until the timer stops counting. furthermore, it is possible to generate an interrupt request and a dma transfer request (for only the tio8 and tio9) each time the counter underflows. the "counter set value + 1" and "reload 0 register set value + 1" are effective as count values. (for counting operation, see also section 10.3.11, ?operation of top continuous output mode.?) (2) notes on using tio continuous output mode the following describes precautions to be observed when using tio continuous output mode.  if the timer is enabled by external input in the same clock period as count is disabled by writing to the enable bit, the latter has priority so that count is disabled.  if the counter is accessed for read at the cycle of underflow, the counter value is read out as h?ffff but changes to "reload register value -1" at the next count clock timing.  because the timer operates synchronously with the count clock, up to one count clock-dependent delay is generated before f/f output is inverted after writing to the enable bit.
10-122 10.4 tio (input/output-related 16-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 h'ffff h'0000 h'e000 h'a000 h'e000 h'dfff h'dfff data inverted by enable data inverted by underflow data inverted by underflow dma transfer request (note 1) dma transfer request due to underflow tio interrupt request due to underflow tio interrupt request due to underflow dma transfer request due to underflow (unused) count clock f/f output tio interrupt request enable bit reload 0 register counter reload 1 register underflow (first time) count down from the counter set value underflow (second time) enabled (by writing to the enable bit or by external input) (note 2) note 1: only tio8 and tio9 can be generated. note 2: the value that "reload 0 register - 1" is reloaded. note:  this diagram does not show detailed timing information. (note 2) figure 10.4.15 typical operation in tio continuous output mode (without correction function)
multijunction timers 10 10-123 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.5 tms (input-related 16-bit timer) 10.5.1 outline of tms tms (timer measure small) is an input-related 16-bit timer capable of measuring input pulses in two circuit blocks comprising a total of eight channels. the table below and the diagram in the next page show specifications and a block diagram of tms, respec- tively. table 10.5.1 specifications of tms (input-related 16-bit timer) item specification number of channels 8 channels (2 circuit blocks consisting of 4 channels each, 8 channels in total) counter 16-bit up-counter 2 measure register 16-bit measure register 8 timer startup started by writing to the enable bit in software interrupt request generation can be generated by a counter overflow 10.5.2 outline of tms operation in tms, when the timer is enabled (by writing to the enable bit in software), the counter starts operating. the counter is a 16-bit up-counter, where when a measure signal is entered from an external device, the counter value is latched into each measure register. the counter stops counting at the same time count is disabled by writing to the enable bit in software. tin and tms interrupt requests can be generated by external measure signal input and counter overflow, respectively. 10.5 tms (input-related 16-bit timer)
10-124 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 3 2 1 0 3 2 1 0 clk tms 0 s ovf cap3 cap2 cap1 cap0 s s s s tclk3 (p127) tclk3s s s s s s tin16s tin17s tin16 (p130) tin17 (p131) tin18s tin18 (p132) tin19s tin19 (p133) dma2 irq10 irq10 irq10 irq10 0 1 2 3 irq7 s 3 2 1 0 3 2 1 0 0 1 2 3 clk tms 1 ovf cap3 cap2 cap1 cap0 irq7 dma4 clock bus input event bus output event bus : selector measure register 3 counter (16-bit) counter (16-bit) measure register 2 measure register 1 measure register 0 measure register 3 measure register 2 measure register 1 measure register 0 figure 10.5.1 block diagram of tms (input-related 16-bit timer) 10.5 tms (input-related 16-bit timer)
multijunction timers 10 10-125 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.5.3 tms related register map shown below is a tms related register map. tms related register map address +0 address +1 address see pages b0 b7 b8 b15 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) ? because the timer operates synchronously with the count clock, there is a count clock-dependent delay from when the timer is enabled till when it actually starts operating. figure 10.5.2 count clock-dependent delay bclk count clock enable count clock period count clock-dependent delay write to the enable bit | 10.5 tms (input-related 16-bit timer)
10-126 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b8 9 1011121314b15 tms1ss0 tms1ss1 tms1ss2 tms1ss3 tms1cks tms1cen 00000000 b0123456b7 tms0ss0 tms0ss1 tms0ss2 tms0ss3 tms0cks tms0cen 00000000 10.5.4 tms control registers the tms control registers are used to select tms0/1 input events and count clock sources, as well as control count enable. following two tms control registers are included:  tms0 control register (tms0cr)  tms1 control register (tms1cr) tms0 control register (tms0cr) b bit name function r w 0 tms0ss0 0: does not use measure input source r w tms0 measure 0 source select bit 1: input event bus 0 1 tms0ss1 0: does not use measure input source r w tms0 measure 1 source select bit 1: input event bus 1 2 tms0ss2 0: does not use measure input source r w tms0 measure 2 source select bit 1: input event bus 2 3 tms0ss3 0: does not use measure input source r w tms0 measure 3 source select bit 1: input event bus 3 4, 5 tms0cks 00: external input tclk3 r w tms0 clock source select bit 01: clock bus 0 10: clock bus 1 11: clock bus 3 6 no function assigned. fix to "0." 00 7 tms0cen 0: stop count r w tms0 count enable bit 1: start count tms1 control register (tms1cr) b bit name function r w 8 tms1ss0 0: external input tin19 r w tms1 measure 0 source select bit 1: input event bus 0 9 tms1ss1 0: external input tin18 r w tms1 measure 1 source select bit 1: input event bus 1 10 tms1ss2 0: external input tin17 r w tms1 measure 2 source select bit 1: input event bus 2 11 tms1ss3 0: external input tin16 r w tms1 measure 3 source select bit 1: input event bus 3 12 no function assigned. fix to "0." 00 13 tms1cks 0: clock bus 0 r w tms1 clock source select bit 1: clock bus 3 14 no function assigned. fix to "0." 00 15 tms1cen 0: stop count r w tms1 count enable bit 1: start count 10.5 tms (input-related 16-bit timer)
multijunction timers 10 10-127 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.5.5 tms counters (tms0ct, tms1ct) tms0 counter (tms0ct) tms1 counter (tms1ct) b bit name function r w 0?15 tms0ct, tms1ct 16-bit counter value r w note:  these registers must always be accessed in halfwords. the tms counters are a 16-bit up-counter, which starts counting when the timer is enabled (by writing to the enable bit in software). the counters can be read on-the-fly. 10.5.6 tms measure registers (tms0mr3?0, tms1mr3?0) tms0 measure 3 register (tms0mr3) tms0 measure 2 register (tms0mr2) tms0 measure 1 register (tms0mr1) tms0 measure 0 register (tms0mr0) tms1 measure 3 register (tms1mr3) tms1 measure 2 register (tms1mr2) tms1 measure 1 register (tms1mr1) tms1 measure 0 register (tms1mr0) b bit name function r w 0?15 tms0mr3-tms0mr0 16-bit measured value r ? tms1mr3-tms1mr0 notes:  these registers are a read-only register.  these registers can be accessed in either byte or halfword. the tms measure registers are used to latch counter contents upon event input. the tms measure registers are a read-only register. b01234567891011121314b15 tms0mr3?tms0mr0 , tms1mr3?tms1mr0 ???????????????? b01234567891011121314b15 tms0ct, tms1ct ???????????????? 10.5 tms (input-related 16-bit timer)
10-128 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.5.7 operation of tms measure input (1) outline of tms measure input in tms measure input, when the timer is enabled (by writing to the enable bit in software), it starts counting up synchronously with the count clock. then when event input to tms is detected while the timer is operat- ing, the counter value is latched into measure registers 0?3. the timer stops counting at the same time count is disabled by writing to the enable bit. a tin interrupt request can be generated by measure signal input from an external device. a tms interrupt request can be generated when the counter overflows. count clock counter h'ffff h'0000 enabled (by writing to the enable bit) measure event 1 occurs undefined enable bit note:  this diagram does not show detailed timing information. measure 0 register h'8000 overflow occurs tin19 interrupt request h'c000 measure 1 register tin18 interrupt request measure event 0 occurs tms interrupt request due to overflow h'6000 h'd000 h'6000 h'8000 undefined value undefined h'd000 h'c000 measure event 1 occurs measure event 0 occurs figure 10.5.3 typical operation of tms measure input (2) notes on using tms measure input the following describes precautions to be observed when using tms measure input.  if measure event input and write to the counter occur in the same clock period, the write value is set in the counter while at the same time latched into the measure register. 10.5 tms (input-related 16-bit timer)
multijunction timers 10 10-129 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 10.6.1 block diagram of tml (input-related 32-bit timer) 3 2 1 0 3 2 1 0 s s s s tin20s tin21s tin20 (p134) tin21 (p135) tin22s tin22 (p136) tin23s tin23 (p137) irq11 irq11 irq11 irq11 0 1 2 3 s 3 2 1 0 3 2 1 0 0 1 2 3 clk tml0 cap3 cap2 cap1 cap0 s s s s s tin30s tin31s tin30 (p34) tin31 (p35) tin32s tin32 (p36) tin33s tin33 (p37) irq18 irq18 irq18 irq18 clk tml1 cap3 cap2 cap1 cap0 s dma5 dma common ad0trg clock bus input event bus output event bus : selector measure register 3 counter (32-bit) measure register 2 measure register 1 measure register 0 measure register 3 measure register 2 measure register 1 measure register 0 counter (32-bit) bclk 1/4 1/2 10.6 tml (input-related 32-bit timer) 10.6.1 outline of tml tml (timer measure large) is an input-related 32-bit timer capable of measuring input pulses in two circuit blocks comprising a total of eight channels. the table and diagram below show specifications and a block diagram of tml, respectively. table 10.6.1 specifications of tml (input-related 32-bit timer) item specification number of channels 8 channels (2 circuit blocks consisting of 4 channels each, 8 channels in total) input clock bclk/4 (10.0 mhz when f(bclk) = 40 mhz), bclk/2 (20.0 mhz when f(bclk) = 40 mhz) or clock bus 1 input counter 32-bit up-counter 2 measure register 32-bit measure register 8 timer startup start counting after exiting the reset state 10.6 tml (input-related 32-bit timer)
10-130 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.6.2 outline of tml operation in tml, the timer starts counting upon deassertion of the reset input signal. the counter included in the timer is a 32-bit up-counter, where when a measure event signal is entered from an external device, the counter value at that point in time is stored in each 32-bit measure register. when the reset input signal is deasserted, the counter starts operating with a bclk/4 clock, and cannot be stopped once it has started. the counter is idle only when the microcomputer remains reset. a tin interrupt request can be generated by external measure signal input. however, no tml counter overflow interrupts are available. 10.6.3 tml related register map shown below is a tml related register map. tml related register map address +0 address +1 address see pages b0 b7 b8 b15 h'0080 03e0 tml0 counter (upper) 10-132 (tml0ct) (tml0cth) h'0080 03e2 (lower) (tml0ctl) (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 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) | | | | | 10.6 tml (input-related 32-bit timer)
multijunction timers 10 10-131 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b8 9 1011121314b15 tml0ss0 tml0ss1 tml0ss2 tml0ss3 tml0cks 00000000 b8 9 1011121314b15 tml1ss0 tml1ss1 tml1ss2 tml1ss3 tml1cks 00000000 10.6.4 tml control registers tml0 control register (tml0cr) b bit name function r w 8 tml0ss0 0: external input tin23 r w tml0 measure 0 source select bit 1: input event bus 0 9 tml0ss1 0: external input tin22 r w tml0 measure 1 source select bit 1: input event bus 1 10 tml0ss2 0: external input tin21 r w tml0 measure 2 source select bit 1: input event bus 2 11 tml0ss3 0: external input tin20 r w tml0 measure 3 source select bit 1: input event bus 3 12?14 no function assigned. fix to "0." 00 15 tml0cks 0: bclk/2 or bclk/4 (note 1) r w tml0 clock source select bit 1: clock bus 1 note 1: to select bclk/2 or bclk/4, use the prs012cks (prescaler 0-2, tml0,1 supplied clock select) bit. for details, refer to section 10.2.2, ?common count clock select function.? tml1 control register (tml1cr) b bit name function r w 8 tml1ss0 0: external input tin33 r w tml1 measure 0 source select bit 1: input event bus 0 9 tml1ss1 0: external input tin32 r w tml1 measure 1 source select bit 1: input event bus 1 10 tml1ss2 0: external input tin31 r w tml1 measure 2 source select bit 1: input event bus 2 11 tml1ss3 0: external input tin30 r w tml1 measure 3 source select bit 1: input event bus 3 12?14 no function assigned. fix to "0." 00 15 tml1cks 0: bclk/2 or bclk/4 (note 1) r w tml1 clock source select bit 1: clock bus 1 note 1: to select bclk/2 or bclk/4, use the prs012cks (prescaler 0-2, tml0,1 supplied clock select) bit. for details, refer to section 10.2.2, ?common count clock select function.? the tml control register is used to select tml input event and count clock. 10.6 tml (input-related 32-bit timer)
10-132 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.6.5 tml counters tml0 counter (tml0ct) tml1 counter (tml1ct) b bit name function r w 0?31 tml0ct 32-bit counter value r w note:  these registers must always be accessed wordwise (in 32 bits) beginning with the word boundary (low-order address b'00) . the tml counters are a 32-bit up-counter, which starts counting upon deassertion of the reset input signal. the counters can be read during operation. 10.6.6 tml measure registers tml0 measure 3 register (tml0mr3) tml0 measure 2 register (tml0mr2) tml0 measure 1 register (tml0mr1) tml0 measure 0 register (tml0mr0) tml1 measure 3 register (tml1mr3) tml1 measure 2 register (tml1mr2) tml1 measure 1 register (tml1mr1) tml1 measure 0 register (tml1mr0) b bit name function r w 0?31 tml0mr3?tml0mr0, tml1mr3?tml1mr0 32-bit measure register value r ? notes:  these registers are a read-only register.  these registers must always be accessed wordwise (in 32 bits) beginning with the word boundary (low-order address b'00). the tml measure registers are a 32-bit register, which is used to latch the counter content upon event input. the tml measure registers can only be read, and cannot be written to. b16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 b31 (16 low-order bits) ? ??????????????? b0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 b15 tml0ct, tml1ct (16 high-order bits) ? ??????????????? b0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 b15 tml0mr3-tml0mr0,tml1mr3-tml1mr0 (16 high-order bits) ? ??????????????? b16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 b31 (16 low-order bits) ? ??????????????? 10.6 tml (input-related 32-bit timer)
multijunction timers 10 10-133 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.6.7 operation of tml measure input (1) outline of tml measure input in tml measure input, when the reset input signal is deasserted, the counter starts counting up synchro- nously with the count clock. upon event input to measure registers 0?3, the counter value is latched into each measure register. a tin interrupt request can be generated by measure signal input from an external device. however, no tml counter overflow interrupts are available. figure 10.6.2 typical operation of tml measure input count clock counter (32-bit) h'ffff ffff h'0000 0000 enabled (by deassertion of reset) undefined reset note: ? this diagram does not show detailed timing information. measure 0 register overflow occurs tin23 interrupt request measure 1 register tin22 interrupt request measure event 0 occurs h'8000 0000 h'c000 0000 h'8000 0000 h'6000 0000 h'6000 0000 h'd000 0000 undefined value undefined h'c000 0000 h'd000 0000 measure event 1 occurs measure event 0 occurs measure event 1 occurs 10.6 tml (input-related 32-bit timer)
10-134 multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (2) notes on using tml measure input the following describes precautions to be observed when using tml measure input.  if measure event input and write to the counter occur in the same clock period, the write value is set in the counter, whereas the up-count value (before being rewritten) is latched into the measure register.  if clock bus 1 is selected and any clock other than bclk/2 or bclk/4 (note 1) is used for the timer, by divided by internal prescaler prs1, the value captured into the measure register is one count larger the counter value. during the count clock to bclk/2 or bclk/4 (note 1) period interval, however, the cap- tured value is exactly the counter value. the diagram below shows the relationship between counter operation and the valid data that can be captured. note 1: to select bclk/2 or bclk/4, use the prs012cks (prescaler 0-2, tml0,1 supplied clock select) bit. for details, refer to section 10.2.2, ?common count clock select function.? counter b acdef a bcde  when bclk/2 or bclk/4 is selected (note 1) bclk/2 or bclk/4 (note 1) bclk/2 or bclk/4 (note 1) captured counter b ac  when clock bus 1 is selected count clock captured bcd f note 1: to select bclk/2 or bclk/4, use the prs012cks (prescaler 0-2, tml0,1 supplied clock select) bit. for details, refer to section 10.2.2, "common count clock select function." figure 10.6.3 mistimed counter value and the captured value 10.6 tml (input-related 32-bit timer)
10 10.7 tid (input-related 16-bit timer) multijunction timers 10-135 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.7 tid (input-related 16-bit timer) 10.7.1 outline of tid tid (timer input derivation) is an input-related 16-bit timer, whose operation mode can be selected from the following by mode switching in software, one at a time: ? fixed period count mode  event count mode  multiply-by-4 event count mode  up/down event count mode the table below and the diagram in the next page show specifications and a block diagram of tid, respectively. table 10.7.1 specifications of tid (input-related 16-bit timer) item specification number of channels 2 channels counter 16-bit up/down-counter reload register 16-bit reload register timer startup started by writing to the enable bit in software operation mode  fixed period count mode  event count mode  multiply-by-4 event count mode  up/down event count mode interrupt request generation can be generated by counter underflow and overflow dma transfer request generation can be generated by counter underflow and overflow
10-136 10 10.7 tid (input-related 16-bit timer) multijunction timers 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 irq14 irq11 irq11 dma0 tou0_0-7en tou1_0-7en tou1_7udf tou0_7udf output event bus 0 irq15 dma1 tin24(p103) tin25(p104) irq11 irq11 tin26(p73) tin27(p72) tid 0 clk clk1 clk2 ovf udf tin25s prs3 tin27s s s tin24s tin26s clock control (note 1) reload register up/down-counter tid 1 clk clk1 clk2 ovf udf clock control (note 1) reload register prs4 up/down-counter bclk 1/4 bclk 1/4 note 1: the clock source to be used depends on the operation mode. figure 10.7.1 block diagram of tid (input-related 16-bit timer) ? because the timer operates synchronously with the count clock, up to one count clock-dependent delay is generated by the time when the timer actually starts operating after writing to the enable bit. bclk count clock enable count clock period count clock-dependent delay write to the enable bit figure 10.7.2 count clock dependent delay
10 10.7 tid (input-related 16-bit timer) multijunction timers 10-137 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.7.2 tid related register map shown below is a tid related register map. tid related register map address +0 address +1 address see pages b0 b7 b8 b15 h'0080 078c tid0 counter 10-140 (tid0ct) h'0080 078e tid0 reload register 10-140 (tid0rl) h'0080 07d0 tid0 control & prescaler 3 enable register 10-138 (tid0prs3en) h'0080 0b8c tid1 counter 10-140 (tid1ct) h'0080 0b8e tid1 reload register 10-140 (tid1rl) h'0080 0bd0 tid1 control & prescaler 4 enable register 10-139 (tid1prs4en) | | |
10-138 10 10.7 tid (input-related 16-bit timer) multijunction timers 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.7.3 tid control & prescaler enable registers tid0 control & prescaler 3 enable register (tid0prs3en) b bit name function r w 8?10 tid0m 000: fixed period count mode r w tid0 operation mode select bit 001: fixed period count mode 010: multiply-by-4 event count mode 011: event count mode 100: fixed period count mode 101: fixed period count mode 110: multiply-by-4 event count mode 111: up/down event count mode 11 tid0cen 0: stop tid0 count r w tid0 count enable bit 1: start tid0 count 12?14 tou0ens 000: disable event enable r w tou0 enable source select bit 001: disable event enable 010: tid0 underflow/overflow 011: tou0_7 underflow 100: disable event enable 101: disable event enable 110: output event bus 0 111: external input tin25 signal 15 prs3en 0: stop prescaler 3 count r w prescaler 3 enable bit 1: start prescaler 3 count note:  operation mode can only be set or changed while the counter is inactive. the tid0 control & prescaler 3 enable register is used to select tid0 operation mode (fixed period count, event count, multiply-by-4 event count or up/down event count mode), as well as select tou0_0?7 timer enable sources and control prescaler 3 startup. b8 9 1011121314b15 tid0m tid0cen tou0ens prs3en 00000000
10 10.7 tid (input-related 16-bit timer) multijunction timers 10-139 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tid1 control & prescaler 4 enable register (tid1prs4en) b bit name function r w 8?10 tid1m 000: fixed period count mode r w tid1 operation mode select bit 001: fixed period count mode 010: multiply-by-4 event count mode 011: event count mode 100: fixed period count mode 101: fixed period count mode 110: multiply-by-4 event count mode 111: up/down event count mode 11 tid1cen 0: stop tid1 count r w tid1 count enable bit 1: start tid1 count 12?14 tou1ens 000: disable event enable r w tou1 enable source select bit 001: disable event enable 010: tid1 underflow/overflow 011: tou1_7 underflow 100: disable event enable 101: disable event enable 110: tou0 startup source (note 1) (the enable source selected by tou0ens) 111: external input tin27 signal 15 prs4en 0: stop prescaler 4 count r w prescaler 4 enable bit 1: start prescaler 4 count note 1: any event must be selected using the tou0 enable source select bit. note:  operation mode can only be set or changed while the counter is inactive. the tid1 control & prescaler 4 enable register is used to select tid1 operation mode (fixed period count, event count, multiply-by-4 event count or up/down event count mode), as well as select tou1_0?7 timer enable sources and control prescaler 4 startup. b8 9 1011121314b15 tid1m tid1cen t0u1ens prs4en 00000000
10-140 10 10.7 tid (input-related 16-bit timer) multijunction timers 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.7.4 tid counters (tid0ct and tid1ct) tid0 counter (tid0ct) tid1 counter (tid1ct) b bit name function r w 0?15 tid0ct, tid1ct 16-bit counter value r w note:  these registers must always be accessed in halfwords. the tid counters are a 16-bit up/down-counter. after the timer is enabled (by writing to the enable bit in software), the counter starts counting synchronously with the count clock. 10.7.5 tid reload registers (tid0rl and tid1rl) tid0 reload register (tid0rl) tid1 reload register (tid1rl) b bit name function r w 0?15 tid0rl,tid1rl 16-bit reload register value r w note:  these registers must always be accessed in halfwords. the tid reload registers are used to reload data into the tid counter registers (tid0ct and tid1ct). the content of "the reload register -1" is loaded into the counter synchronously with the count clock in the following timing:  at the next cycle when the counter is enabled in fixed period count mode  at the next cycle when the counter has underflowed in fixed period count mode simply because data is written to the reload register does not mean that the data is loaded into the counter. the counter is loaded with data in only the above cases. b01234567891011121314b15 tid0ct, tid1ct ???????????????? b01234567891011121314b15 tid0rl, tid1rl ????????????????
10 10.7 tid (input-related 16-bit timer) multijunction timers 10-141 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.7.6 outline of each mode of tid each mode of tid is outlined below. tid modes can be selected from the following, only one at a time. (1) fixed period count mode in fixed period count mode, the timer uses a reload register to generate an interrupt request at intervals of "reload register set value + 1." note:  tinn cannot be used as a clock source. when the timer is enabled (by writing to the enable bit in software) after setting the reload register (initial value being undefined), the counter is loaded with the content of "the reload register -1" and starts counting synchronously with the count clock at the next cycle. the counter counts down and when it underflows after reaching the minimum count, the counter is loaded with the content of "the reload register -1" and continues counting. to stop the counter, disable count by writing to the enable bit in software. an interrupt request and a dma transfer request can be generated each time the counter underflows. the "reload register set value + 1" is effective as count value. h'(e000-1) count clock counter enabled (by writing to the enable bit) underflow (first time) tid0 interrupt request due to underflow enable bit reload register underflow (second time) undefined value dma transfer request due to underflow (note 1) note 1: the value that "reload register - 1" is reloaded. note: ? this diagram does not show detailed timing information. (note 1) (note 1) h'ffff h'0000 h'e000 h'e000 h'(e000-1) h'(e000-1) h'e000 counter figure 10.7.3 typical operation in tid fixed period count mode
10-142 10 10.7 tid (input-related 16-bit timer) multijunction timers 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (2) event count mode in event count mode, the timer uses an external input signal (tin24 or tin26) as the clock source for the counter. note:  tin25 and tin27 cannot be used as the clock source for the counter. by detecting the rising and falling edges of the external input signal (tin24 or tin26), the timer generates clock pulses synchronized to the microcomputer?s internal clock. when after setting the counter the timer is enabled (by writing to the enable bit in software), the counter starts counting up from the set count value synchronously with the generated clock. an interrupt request and a dma transfer request can be generated by a counter overflow. to stop the counter, disable count by writing to the enable bit in software or fix the external input signal either "h" or "l." tin24 (tin26) counter value 7fff 8000 8001 8002 8003 8004 figure 10.7.4 typical operation in tid event count mode (basic operation) figure 10.7.5 typical operation in tid event count mode (when overflow occurs) tin24 (tin26) fffe ffff 0000 0001 0002 0003 fffd counter value tid interrupt request due to overflow dma transfer request due to overflow
10 10.7 tid (input-related 16-bit timer) multijunction timers 10-143 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (3) multiply-by-4 event count mode in multiply-by-4 event count mode, the timer uses two external input signals in pairs (tin24 and tin25 or tin26 and tin27) as the clock sources for the counter. the count direction is switched between up-count and down-count depending on the status of the two input signals. by detecting the rising and falling edges on both of the two external input signals, the timer generates clock pulses synchronized to the microcomputer?s internal clock. when after setting the counter the timer is en- abled (by writing to the enable bit in software), the counter starts counting synchronously with the generated clock. to know whether the counter counts up or counts down, see table 10.7.2 below. an interrupt request and a dma transfer request can be generated when the counter underflows or overflows. to stop the counter, disable count by writing to the enable bit in software or fix the external input signals either "h" or "l." table 10.7.2 count direction during multiply-by-4 event count mode tin24 (tin26) tin25 (tin27) input h h l l h l l h up-count down-count count direction
10-144 10 10.7 tid (input-related 16-bit timer) multijunction timers 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 10.7.6 multiply-by-4 count operation (switchover timing) up-count down-count 8000 8001 8002 8001 8000 8003 7ffe 8003 counter value counter 8002 7fff 7ffe 7fff 7ffe tin24 ( tin26) tin25 ( tin27) switched over figure 10.7.7 multiply-by-4 count operation (count enabled/disabled) 8000 t in24 ( tin26) t in25 ( tin27) up-count down-count 8001 8000 8001 7ffe c ounter value counter 7fff 7ffe timer count enable disabled enabled disabled enabled disabled 7fff enabled switched over tid output interrupt request up-count down-count ffff 0000 0001 0000 ffff ffff 0000 0002 counter value counter 0001 fffe fffd fffe fffd tin24 ( tin26) tin25 ( tin27) dma transfer interrupt request switched over figure 10.7.8 multiply-by-4 count operation (interrupt request timing)
10 10.7 tid (input-related 16-bit timer) multijunction timers 10-145 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (4) up/down event count mode in up/down event count mode, the timer uses one of two-channel external input signals (tin24 or tin26) as the clock source for the counter and the other (tin25 or tin27) as an up/down select signal. the counter is switched between up-count and down-count depending on the status of the up/down select input signal. by detecting the rising and falling edges of the external input signal selected as the clock source, the timer generates clock pulses synchronized to the microcomputer?s internal clock. when after setting the counter the timer is enabled, the counter starts counting up or down synchronously with the generated clock. the count direction is determined by the level of the up/down select input signal (see table 10.7.3). an inter- rupt request and a dma transfer request can be generated when the counter underflows or overflows. to stop the counter, disable count by writing to the enable bit in software or fix the external input signal selected as the clock source either "h" or "l." note that tin25 and tin27 cannot be used as the clock source. table 10.7.3 count direction during up/down event count mode tin24 (tin26) tin25 (tin27) input up-count down-count count direction "l" level "h" level figure 10.7.9 up/down count operation figure 10.7.10 up/down count operation (interrupt request timing) tin25 (tin27) counter value 7fff 7fff 8000 8001 8002 8001 8000 up-count down-count tin24 (tin26) fffd fffe ffff 0000 0001 0002 0003 0002 0001 0000 ffff fffe fffd tin24 (tin26) tin25 (tin27) dma transfer request tid output interrupt request due to overflow or underflow counter value
10-146 10.8 tou (output-related 24-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.8 tou (output-related 24-bit timer) 10.8.1 outline of tou tou (timer output unification) is an output-related 24-bit timer, whose operation mode can be selected from the following by mode switching in software, one at a time. ? pwm output mode ? single-shot pwm output mode ? delayed single-shot output mode ? single-shot output mode ? continuous output mode the table below and the diagram in the next page show specifications and a block diagram of tou, respectively. table 10.8.1 specifications of tou (output-related 24-bit timer) item specification number of channels 16 channels (8 channels 2 circuit blocks) counter 24-bit down-counter (or 16-bit down counter when in pwm output or single-shot pwm output mode) reload register 24-bit reload register (or 16-bit reload register when in pwm output or single-shot pwm output mode) timer startup tou0: ? writing to the enable bit in software ? tid0 underflow/overflow signal ? tou0_7 underflow signal ? output event bus 0 signal ? external input tin25 signal tou1: ? writing to the enable bit in software ? tid1 underflow/overflow signal ? tou1_7 underflow signal ? tou0 cause of start signal (event enable must be selected by tou0) ? external input tin27 signal mode switching ? pwm output mode ? single-shot pwm output mode ? delayed single-shot output mode ? single-shot output mode ? continuous output mode interrupt request generation can be generated by a counter underflow dma transfer request generation can be generated by a counter underflow
10.8 tou (output-related 24-bit timer) multijunction timers 10 10-147 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tin16/pwmoff0 (p130) tin24 (p103) tin25 (p104) tin17/pwmoff1 (p131) tin26 (p73) tin27 (p72) to21 (p00/p87) to22 (p01/p86) to23 (p02/p85) to24 (p03/p84) to25 (p04/p83) to26 (p05/p82) to27 (p06/p175) to28 (p07/p174) to29 (p10/p110) to30 (p11/p111) to31 (p12/p112) to32 (p13/p113) to33 (p14/p114) to34 (p15/p115) to35 (p16/p116) to36 (p17/p117) irq11 irq11 irq11 irq11 dma5 dma6 dma7 dma8 dma9 dma0 dma4 dma1 irq13 irq13 irq13 irq13 irq13 irq13 irq13 irq13 irq14 irq16 irq16 irq16 irq16 irq16 irq16 irq16 irq16 irq15 bclk 1/4 bclk 1/4 dma3 dma1 dma0 tou0_0 (24-bit) clk en udf tou0_1 (24-bit) clk en udf tou0_2 (24-bit) clk en udf tou0_3 (24-bit) clk en udf tou0_4 (24-bit) clk en udf tou0_5 (24-bit) clk en udf tou0_6 (24-bit) clk en udf tou0_7 (24-bit) clk en udf tid 0 clk clk1 clk2 ovf udf tou1_0 (24-bit) clk en udf tou1_1 (24-bit) clk en udf tou1_2 (24-bit) clk en udf tou1_3 (24-bit) clk en udf tou1_4 (24-bit) clk en udf tou1_5 (24-bit) clk en udf tou1_6 (24-bit) clk en udf tou1_7 (24-bit) clk en udf tid 1 clk clk1 clk2 ovf udf tin25s pwmoff1s pwmoff0s po1dis po0dis tin24s prs3 f/f29 f/f30 f/f31 f/f32 f/f33 f/f34 f/f35 f/f36 f/f21 f/f22 f/f23 f/f24 f/f25 f/f26 f/f27 f/f28 s tin27s tin26s prs4 s s s output event bus 0 figure 10.8.1 block diagram of tou (output-related 24-bit timer)
10-148 10.8 tou (output-related 24-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.8.2 outline of each mode of tou each mode of tou is outlined below. modes on each tou channel can be selected from the following, only one at a time. (1) pwm output mode (without correction function) in pwm output mode, the timer uses two reload registers to generate a waveform with a given duty cycle. during pwm output mode, the timer operates as a 16-bit timer. when the timer is enabled after setting the initial values in the reload 0 and reload 1 registers, the counter is loaded with the value that "the reload 0 register -1" and starts counting down synchronously with the count clock. at the cycle after first time the counter underflows, it is loaded with the contents that "the reload 1 register -1" and continues counting. thereafter, the counter is loaded with the reload 0 and reload 1 register values alternately each time an underflow occurs. the "reload 0 register set value + 1" and "reload 1 register set value + 1" respectively are effective as count values. stopping timer and count disable writing to enable bit occur at same time.(stopping time is not synchronized with pwm output period.) the f/f output waveform in pwm output mode is inverted (f/f output level changes from "l" to "h" or vice versa) when the counter starts counting and each time it underflows. the timer stops at the same time count is disabled by writing to the enable bit (and not in synchronism with pwm output period). an interrupt request and dma transfer request can be generated at even-numbered occurrences of under- flow after the counter is enabled. (2) single-shot pwm output mode (without correction function) in single-shot pwm output mode, the timer uses two reload registers to generate a waveform with a given duty cycle only once. during pwm output mode, the timer operates as a 16-bit timer. when the timer is enabled after setting the initial values in the reload 0 and reload 1 registers, the counter is loaded with the reload 0 register value and starts counting down synchronously with the count clock. at the cycle after the first time the counter underflows, it is loaded with the value that "the reload 1 register -1" and continues counting. the counter stops when it underflows next time. the "reload 0 register set value + 1" and "reload 1 register set value + 1" respectively are effective as count values. the timer can be stopped in software, in which case it stops at the same time count is disabled by writing to the enable bit (and not in synchronism with pwm output period). the f/f output waveform in single-shot pwm output mode is inverted (f/f output level changes from "l" to "h" or vice versa) each time the counter underflows. (unlike in pwm output mode, the f/f output is not inverted when the counter is enabled.) an interrupt request and dma transfer request can be generated when the counter underflows second time after being enabled. (3) delayed single-shot output mode in delayed single-shot output mode, the timer generates a pulse in width of "reload register set value + 1" after a finite time equal to "counter set value + 1" only once and then stops. when the timer is enabled after setting the counter and reload register, it starts counting down from the counter?s set value synchronously with the count clock. at the cycle after the first time the counter underflows, it is loaded with the value that "the reload register -1" and continues counting down. the counter stops when it underflows next time. the f/f output waveform in delayed single-shot output mode is inverted (f/f output level changes from "l" to "h" or vice versa) when the counter underflows first time and next, generating a single-shot pulse waveform in width of "reload register set value + 1" after a finite time equal to "first set value of counter + 1" only once. an interrupt request and dma transfer request can be generated when the counter underflows first time and next.
10.8 tou (output-related 24-bit timer) multijunction timers 10 10-149 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 bclk count clock enable f/f operation (note 1) count clock period count clock-dependent delay write to the enable bit note 1: this applies to the case where f/f output is inverted when the timer is enabled. inverted figure 10.8.2 count clock dependent delay (4) single-shot output mode (without correction function) in single-shot output mode, the timer generates a pulse in width of "reload register set value + 1" only once and then stops. when the timer is enabled after setting the reload register, the counter is loaded with the content of "the reload register -1" and starts counting synchronously with the count clock at the next cycle. the counter counts down and when the minimum count is reached, stops upon underflow. the f/f output waveform in single-shot output mode is inverted (f/f output level changes from "l" to "h" or vice versa) at startup and upon underflow, generating a single-shot pulse waveform in width of "reload register set value + 1" only once. an interrupt request and dma transfer request can be generated when the counter underflows. (5) continuous output mode (without correction function) in continuous output mode, the timer counts down starting from the set value of the counter and when the counter underflows, it is loaded with the value that the reload register. thereafter, this operation is repeated each time the counter underflows, thus generating inverted consecutive pulses in width of "reload register set value + 1." when the timer is enabled after setting the counter and reload register, it starts counting down from the counter?s set value synchronously with the count clock and when the minimum count is reached, generates an underflow. at the cycle after this underflow causes the counter to be loaded with the content of "the reload register -1" and start counting over again at the next cycle. thereafter, this operation is repeated each time an underflow occurs. to stop the counter, disable count by writing to the enable bit in software. the f/f output waveform in continuous output mode is inverted (f/f output level changes from "l" to "h" or vice versa) at startup and upon underflow, generating a waveform of consecutive pulses until the timer stops counting. an interrupt request and dma transfer request can be generated each time the counter underflows. ? because the timer operates synchronously with the count clock, up to one count clock-dependent delay is generated by the time when the timer actually starts operating after writing the enable bit. in operation mode where the f/f output is inverted when the timer is enabled, there is also a count clock-dependent delay before the f/f output is inverted.
10-150 10.8 tou (output-related 24-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.8.3 tou related register map shown below is a tou related register map. tou related register map (1/3) address +0 address +1 address see pages b0 b7 b8 b15 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 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 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) 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) | |
10.8 tou (output-related 24-bit timer) multijunction timers 10 10-151 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tou related register map (2/3) address +0 address +1 address see pages b0 b7 b8 b15 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 07d4 shorting prevention function f/f21?26 protect register 10-155 (shff2126p) h'0080 07d6 shorting prevention function f/f21?26 data register 10-156 (shff2126d) 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) h'0080 07e0 pwmoff0 input processing control register 10-166 (pwmoff0cr) 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) | |
10-152 10.8 tou (output-related 24-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tou related register map (3/3) address +0 address +1 address see pages b0 b7 b8 b15 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) h'0080 0bd4 shorting prevention function f/f29?34 protect register 10-155 (shff2934p) h'0080 0bd6 shorting prevention function f/f29? 34 data register 10-156 (shff2934d) 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 10-166 (pwmoff1cr) |
10.8 tou (output-related 24-bit timer) multijunction timers 10 10-153 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b01234567891011121314b15 tou00m0 tou01m0 tou02m0 tou03m0 tou04m0 tou05m0 tou06m0 tou07m0 0000000000000000 b01234567891011121314b15 tou0 prs3 tou0 tou00 tou01 tou02 tou03 tou04 tou05 tou06 tou07 cks cks shen m1 m1 m1 m1 m1 m1 m1 m1 0000000000000000 10.8.4 tou control registers tou0 control register 0 (tou0cr0) b bit name function r w 0, 1 tou00m0 (tou0_0 operation mode select 0 bit) 00: single-shot output mode r w 2, 3 tou01m0 (tou0_1 operation mode select 0 bit) 01: single-shot pwm output mode 4, 5 tou02m0 (tou0_2 operation mode select 0 bit) or delayed single-shot output mode (note 1) 6, 7 tou03m0 (tou0_3 operation mode select 0 bit) 10: continuous output mode 8, 9 tou04m0 (tou0_4 operation mode select 0 bit) 11: pwm output mode 10, 11 tou05m0 (tou0_5 operation mode select 0 bit) 12, 13 tou06m0 (tou0_6 operation mode select 0 bit) 14, 15 tou07m0 (tou0_7 operation mode select 0 bit) note 1: use tou0 control register 1 to select between these two modes. notes: ? this register must always be accessed in halfwords. ? operation mode can only be set or changed while the counter is inactive. tou0 control register 1 (tou0cr1) b bit name function r w 0 tou0cks 0: use prescaler 3 r w tou0 clock source select bit 1: use external clock (tin24) 1 prs3cks 0: bclk/4 r w prescaler 3 supplied clock select bit 1: bclk 2?6 no function assigned. fix to "0." 00 7 tou0shen 0: disable shorting prevention function r w tou0 shorting prevention function enable bit 1: enable shorting prevention function 8 tou00m1 (tou0_0 operation mode select 1 bit) 0: single-shot pwm output mode r w 9 tou01m1 (tou0_1 operation mode select 1 bit) 1: delayed single-shot output mode 10 tou02m1 (tou0_2 operation mode select 1 bit) 11 tou03m1 (tou0_3 operation mode select 1 bit) 12 tou04m1 (tou0_4 operation mode select 1 bit) 13 tou05m1 (tou0_5 operation mode select 1 bit) 14 tou06m1 (tou0_6 operation mode select 1 bit) 15 tou07m1 (tou0_7 operation mode select 1 bit) notes: ? this register must always be accessed in halfwords. ? operation mode and the short preventiion function can only be set or changed while the counter is inactive. tou0 control registers 0 and 1 are used to select operation modes of tou0_0?7. to select prescaler 3 as the clock source for tou0, make sure the tid0 control & prescaler 3 enable register?s prescaler 3 enable bit is set to "1." for details, see section 10.7.3, ?tid control & prescaler enable registers.? note: ? before setting up or modifying the tou control register, be sure to stop the relevant timer by writing "0" to its count enable bit.
10-154 10.8 tou (output-related 24-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 b15 tou1 prs4 tou1 tou10 tou11 tou12 tou13 tou14 tou15 tou16 tou17 cks cks shen m1 m1 m1 m1 m1 m1 m1 m1 0000000000000000 b0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 b15 tou10m0 tou11m0 tou12m0 tou13m0 tou14m0 tou15m0 tou16m0 tou17m0 0000000000000000 tou1 control register 0 (tou1cr0) b bit name function r w 0, 1 tou10m0 (tou1_0 operation mode select 0 bit) 00: single-shot output mode r w 2, 3 tou11m0 (tou1_1 operation mode select 0 bit) 01: single-shot pwm output mode 4, 5 tou12m0 (tou1_2 operation mode select 0 bit) or delayed single-shot output mode (note 1) 6, 7 tou13m0 (tou1_3 operation mode select 0 bit) 10: continuous output mode 8, 9 tou14m0 (tou1_4 operation mode select 0 bit) 11: pwm output mode 10, 11 tou15m0 (tou1_5 operation mode select 0 bit) 12, 13 tou16m0 (tou1_6 operation mode select 0 bit) 14, 15 tou17m0 (tou1_7 operation mode select 0 bit) note 1: use tou1 control register 1 to select between these two modes. notes: ? this register must always be accessed in halfwords. ? operation mode can only be set or changed while the counter is inactive. tou1 control register 1 (tou1cr1) b bit name function r w 0 tou1cks 0: use prescaler 4 r w tou1 clock source select bit 1: use external clock (tin26) 1 prs4cks 0: bclk/4 r w prescaler 4 supplied clock select bit 1: bclk 2?6 no function assigned. fix to "0." 00 7 tou1shen 0: disable shorting prevention function r w tou1 shorting prevention function enable bit 1: enable shorting prevention function 8 tou10m1 (tou1_0 operation mode select 1 bit) 0: single-shot pwm output mode r w 9 tou11m1 (tou1_1 operation mode select 1 bit) 1: delayed single-shot output mode 10 tou12m1 (tou1_2 operation mode select 1 bit) 11 tou13m1 (tou1_3 operation mode select 1 bit) 12 tou14m1 (tou1_4 operation mode select 1 bit) 13 tou15m1 (tou1_5 operation mode select 1 bit) 14 tou16m1 (tou1_6 operation mode select 1 bit) 15 tou17m1 (tou1_7 operation mode select 1 bit) note 1: this register must always be accessed in halfwords. note: ? operation mode and shorting prevention function can only be set or changed while the counter is inactive. tou1 control registers 0 and 1 are used to select operation modes of tou1_0?7. to select prescaler 4 as the clock source for tou1, make sure the tid1 control & prescaler 4 enable register?s prescaler 4 enable bit is set to "1." for details, see section 10.7.3, ?tid control & prescaler enable registers.? note: ? before setting up or modifying the tou control register, be sure to stop the relevant timer by writing "0" to its count enable bit.
10.8 tou (output-related 24-bit timer) multijunction timers 10 10-155 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b0123456b7 shfp29 shfp30 shfp31 shfp32 shfp33 shfp34 00000000 b0123456b7 shfp21 shfp22 shfp23 shfp24 shfp25 shfp26 00000000 10.8.5 shorting prevention function registers shorting prevention function f/f21-26 protect register (shff2126p) b bit name function r w 0 shfp21 0: enable write to shorting prevention function f/f output bit r w shorting prevention function f/f21 protect bit 1: disable write to shorting prevention function f/f output bit 1 shfp22 shorting prevention function f/f22 protect bit 2 shfp23 shorting prevention function f/f23 protect bit 3 shfp24 shorting prevention function f/f24 protect bit 4 shfp25 shorting prevention function f/f25 protect bit 5 shfp26 shorting prevention function f/f26 protect bit 6, 7 no function assigned. fix to "0." 00 shorting prevention function f/f29?34 protect register (shff2934p) b bit name function r w 0 shfp29 0: enable write to shorting prevention function f/f output bit r w shorting prevention function f/f29 protect bit 1: disable write to shorting prevention function f/f output bit 1 shfp30 shorting prevention function f/f30 protect bit 2 shfp31 shorting prevention function f/f31 protect bit 3 shfp32 shorting prevention function f/f32 protect bit 4 shfp33 shorting prevention function f/f33 protect bit 5 shfp34 shorting prevention function f/f34 protect bit 6, 7 no function assigned. fix to "0." 00 these registers control write to each shorting prevention function f/f (flip-flop) by enabling or disabling. if write to any f/f is disabled, writing to the shorting prevention f/f data register has no efect.
10-156 10.8 tou (output-related 24-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 shorting prevention function f/f21-26 data register (shff2126d) b bit name function r w 0 shfd21 0: shorting prevention function f/f output data = 0 r w shorting prevention function f/f21 data bit 1: shorting prevention function f/f output data = 1 1 shfd22 shorting prevention function f/f22 data bit 2 shfd23 shorting prevention function f/f23 data bit 3 shfd24 shorting prevention function f/f24 data bit 4 shfd25 shorting prevention function f/f25 data bit 5 shfd26 shorting prevention function f/f26 data bit 6, 7 no function assigned. fix to "0." 00 shorting prevention function f/f29?34 data register (shff2934d) b bit name function r w 0 shfd29 0: shorting prevention function f/f output data = 0 r w shorting prevention function f/f29 data bit 1: shorting prevention function f/f output data = 1 1 shfd30 shorting prevention function f/f30 data bit 2 shfd31 shorting prevention function f/f31 data bit 3 shfd32 shorting prevention function f/f32 data bit 4 shfd33 shorting prevention function f/f33 data bit 5 shfd34 shorting prevention function f/f34 data bit 6, 7 no function assigned. fix to "0." 00 these registers are used to set output in each shorting prevention function f/f (flip-flop). the f/f data register can only be operated on when the f/f protect register described earlier is enabled for write. b0123456b7 shfd21 shfd22 shfd23 shfd24 shfd25 shfd26 00000000 b0123456b7 shfd29 shfd30 shfd31 shfd32 shfd33 shfd34 00000000
10.8 tou (output-related 24-bit timer) multijunction timers 10 10-157 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.8.6 tou counters the tou counters are functionally different depending on the timer?s operation mode. (1) tou counters during single-shot output, delayed single-shot output and continuous output modes tou0_0 counter (tou00ctw) tou0_1 counter (tou01ctw) tou0_2 counter (tou02ctw) tou0_3 counter (tou03ctw) tou0_4 counter (tou04ctw) tou0_5 counter (tou05ctw) tou0_6 counter (tou06ctw) tou0_7 counter (tou07ctw) tou1_0 counter (tou10ctw) tou1_1 counter (tou11ctw) tou1_2 counter (tou12ctw) tou1_3 counter (tou13ctw) tou1_4 counter (tou14ctw) tou1_5 counter (tou15ctw) tou1_6 counter (tou16ctw) tou1_7 counter (tou17ctw) b bit name function r w 0?7 no function assigned. fix to "0" 00 8?31 tou00ctw-tou07ctw, 24-bit counter value r w tou10ctw-tou17ctw note: ? these registers must always be accessed wordwise (in 32 bits) beginning with the word boundary (low-order address b'00) . b16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 b31 ? ??????????????? b01234567891011121314b15 tou00ctw-tou07ctw, tou10ctw-tou17ctw ? ???????????????
10-158 10.8 tou (output-related 24-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 the tou counters operate as a 24-bit down-counter when in single-shot output, delayed single-shot output or continuous output mode. after the timer is enabled (by writing to the enable bit in software or upon occurrence of the event selected by the tou enable source select bit), the counter starts counting synchronously with the count clock. bits 8?15 and bits 16?31 are the 8 high-order and the 16 low-order bits of the counter, respec- tively. bits 0?7 are ignored. when writing to the counter separately in high and low-order bits, rewrite the 8 high-order bits first and then the 16 low-order bits. the 8 high-order bits become effective when the 16 low-order bits are rewritten. if the counter is rewritten in the reverse order beginning with the 16 low-order bits, the value of the 8 high-order bits is not reflected until the next time the 16 low-order bits are rewritten. if the 8 high-order bits are read before the cpu has finished rewriting the 16 low-order bits after rewriting the 8 high-order bits. the read value shows the previous data (when not counting) or the current count of the previous data (when count is in progress), and not the new rewritten data. if the counter is written to in 32-bit units, it is rewritten successively in order of the 8 high-order bits and then the 16 low-order bits automatically. during pwm output or single-shot pwm output mode, the tou counters operate as a 16-bit down-counter where only the 16 low-order bits are effective. for details, see section 10.8.6, paragraph (2), ?tou counters during pwm output and single-shot pwm output modes.?
10.8 tou (output-related 24-bit timer) multijunction timers 10 10-159 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (2) tou counters during pwm output and single-shot pwm output modes tou0_0 counter (tou00ct) tou0_1 counter (tou01ct) tou0_2 counter (tou02ct) tou0_3 counter (tou03ct) tou0_4 counter (tou04ct) tou0_5 counter (tou05ct) tou0_6 counter (tou06ct) tou0_7 counter (tou07ct) tou1_0 counter (tou10ct) tou1_1 counter (tou11ct) tou1_2 counter (tou12ct) tou1_3 counter (tou13ct) tou1_4 counter (tou14ct) tou1_5 counter (tou15ct) tou1_6 counter (tou16ct) tou1_7 counter (tou17ct) b bit name function r w 0?15 tou00ct?tou07ct, 16-bit counter value r w tou10ct?tou17ct note: ? these registers must always be accessed in halfwords. the tou counters operate as a 16-bit down-counter when in pwm output or single-shot pwm output mode. after the timer is enabled (by writing to the enable bit in software or upon occurrence of the event selected by the tou enable source select bit), the counter starts counting synchronously with the count clock. during single-shot output, delayed single-shot output and continuous output modes, the tou counters operate as a 24-bit down-counter, with the 8 high-order bits added. for details, see section 10.8.6, paragraph (1), ?tou counters during single-shot output, delayed single-shot output and continuous output modes.? b01234567891011121314b15 tou00ct ?tou07ct, tou10ct ?tou17ct ????????????????
10-160 10.8 tou (output-related 24-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.8.7 tou reload registers the tou reload registers are used to load data into the tou counters. these registers are functionally differ- ent depending on the timer?s operation mode. (1) tou reload registers during single-shot output, delayed single-shot output and continuous output modes tou0_0 reload register (tou00rlw) tou0_1 reload register (tou01rlw) tou0_2 reload register (tou02rlw) tou0_3 reload register (tou03rlw) tou0_4 reload register (tou04rlw) tou0_5 reload register (tou05rlw) tou0_6 reload register (tou06rlw) tou0_7 reload register (tou07rlw) tou1_0 reload register (tou10rlw) tou1_1 reload register (tou11rlw) tou1_2 reload register (tou12rlw) tou1_3 reload register (tou13rlw) tou1_4 reload register (tou14rlw) tou1_5 reload register (tou15rlw) tou1_6 reload register (tou16rlw) tou1_7 reload register (tou17rlw) b bit name function r w 0?7 no function assigned. fix to "0." 00 8?31 tou00rlw?tou07rlw, 24-bit reload register value r w tou10rlw?tou17rlw note: ? these registers must always be accessed wordwise (in 32 bits) beginning with the word boundary (low-order address b'00) . during single-shot output, delayed single-shot output and continuous output modes, tou operates as a 24-bit timer. the value set in the 24 low-order bits of the reload register is loaded into the counter. bits 8?15 and bits 16?31 are the 8 high-order and the 16 low-order bits of the counter, respectively. bits 0?7 are ignored. the content of "the reload register -1" is loaded into the counter synchronously with the count clock at the following timing: ? at the next cycle when the counter is enabled in single-shot output mode ? at the next cycle when the counter has underflowed in delayed single-shot output or continuous output mode simply because data is written to the reload register does not mean that the data is loaded into the counter. the counter is loaded with data in only the above cases. during pwm output and single-shot pwm output modes, the tou reload register operates as 16-bit reload 0 and reload 1 registers. for details, see section 10.8.7, paragraph (2), ?tou reload registers during pwm output and single-shot pwm output modes.? b0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 b15 tou00rlw-tou07rlw, tou10rlw-tou17rlw ? ??????????????? b16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 b31 ? ???????????????
10.8 tou (output-related 24-bit timer) multijunction timers 10 10-161 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (2) tou reload registers during pwm output and single-shot pwm output modes tou0_0 reload 0 register (tou00rl0) tou0_1 reload 0 register (tou01rl0) tou0_2 reload 0 register (tou02rl0) tou0_3 reload 0 register (tou03rl0) tou0_4 reload 0 register (tou04rl0) tou0_5 reload 0 register (tou05rl0) tou0_6 reload 0 register (tou06rl0) tou0_7 reload 0 register (tou07rl0) tou1_0 reload 0 register (tou10rl0) tou1_1 reload 0 register (tou11rl0) tou1_2 reload 0 register (tou12rl0) tou1_3 reload 0 register (tou13rl0) tou1_4 reload 0 register (tou14rl0) tou1_5 reload 0 register (tou15rl0) tou1_6 reload 0 register (tou16rl0) tou1_7 reload 0 register (tou17rl0) b bit name function r w 0?15 tou00rl0?tou07rl0, 16-bit reload register value r w tou10rl0?tou17rl0 note: ? these registers must always be accessed in halfwords. during pwm output and single-shot pwm output modes, tou operates as a 16-bit timer. use the reload 0 register to set the 16-bit value to be loaded into the counter when it is enabled. the content of "the reload 0 register -1" is loaded into the counter synchronously with the count clock at the following timing: ? at the next cycle when the counter is enabled ? at the next cycle when the count value set in the reload 1 register has underflowed in pwm output mode simply because data is written to the reload register does not mean that the data is loaded into the counter. the counter is loaded with data in only the above cases. if the value "h'ffff" is set in the reload register, f/f output will not be inverted, making it possible to produce a 0% or 100% duty-cycle pwm output. for details, see section 10.8.19, ?0% or 100% duty-cycle wave output during pwm output and single-shot pwm output modes.? during single-shot output, delayed single-shot output and continuous output modes, the reload 0 and reload 1 registers are combined for use as a 24-bit reload register. for details, see section 10.8.7, paragraph (1), ?tou reload registers during single-shot output, delayed single-shot output and continuous output modes.? b01234567891011121314b15 tou00rl0 ?tou07rl0, tou10rl0 ?tou17rl0 ????????????????
10-162 10.8 tou (output-related 24-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 tou0_0 reload 1 register (tou00rl1) tou0_1 reload 1 register (tou01rl1) tou0_2 reload 1 register (tou02rl1) tou0_3 reload 1 register (tou03rl1) tou0_4 reload 1 register (tou04rl1) tou0_5 reload 1 register (tou05rl1) tou0_6 reload 1 register (tou06rl1) tou0_7 reload 1 register (tou07rl1) tou1_0 reload 1 register (tou10rl1) tou1_1 reload 1 register (tou11rl1) tou1_2 reload 1 register (tou12rl1) tou1_3 reload 1 register (tou13rl1) tou1_4 reload 1 register (tou14rl1) tou1_5 reload 1 register (tou15rl1) tou1_6 reload 1 register (tou16rl1) tou1_7 reload 1 register (tou17rl1) b bit name function r w 0?15 tou00rl1?tou07rl1, 16-bit reload register value r w tou10rl1?tou17rl1 note: ? these registers must always be accessed in halfwords. during pwm output and single-shot pwm output modes, tou operates as a 16-bit timer. use the reload 1 register to set the 16-bit value to be loaded into the counter when the count value set in the reload 1 register has underflowed. the content of "the reload 1 register -1" is loaded into the counter synchronously with the count clock at the following timing: ? at the next cycle when the count value set in the reload 0 register has underflowed in pwm output mode simply because data is written to the reload register does not mean that the data is loaded into the counter. the counter is loaded with data in only the above cases. if the value "h'ffff" is set in the reload register, f/f output will not be inverted, making it possible to produce a 0% or 100% duty-cycle pwm output. for details, see section 10.8.19, ?0% or 100% duty-cycle wave output during pwm output and single-shot pwm output modes.? during single-shot output, delayed single-shot output and continuous output modes, the reload 0 and reload 1 registers are combined for use as a 24-bit reload register. for details, see section 10.8.7, paragraph (1), ?tou reload registers during single-shot output, delayed single-shot output and continuous output modes.? b01234567891011121314b15 tou00rl1 ?tou07rl1, tou10rl1 ?tou17rl1 ????????????????
10.8 tou (output-related 24-bit timer) multijunction timers 10 10-163 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b8 9 1011121314b15 toun0pro toun1pro toun2pro toun3pro toun4pro toun5pro toun6pro toun7pro 00000000 10.8.8 tou enable protect registers tou0 enable protect register (tou0pro) tou1 enable protect register (tou1pro) b bit name function r w 8 toun0pro 0: enable rewrite r w toun_0 enable protect bit 1: disable rewrite 9 toun1pro toun_1 enable protect bit 10 toun2pro toun_2 enable protect bit 11 toun3pro toun_3 enable protect bit 12 toun4pro toun_4 enable protect bit 13 toun5pro toun_5 enable protect bit 14 toun6pro toun_6 enable protect bit 15 toun7pro toun_7 enable protect bit the tou enable protect registers control rewriting of the tou count enable bit described in section 10.8.9, ?tou count enable registers,? by enabling or disabling rewrite.
10-164 10.8 tou (output-related 24-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b8 9 1011121314b15 toun0cen toun1cen toun2cen toun3cen toun4cen toun5cen toun6cen toun7cen 00000000 10.8.9 tou count enable registers tou0 count enable register (tou0cen) tou1 count enable register (tou1cen) b bit name function r w 8 toun0cen 0: stop count r w toun_0 count enable bit 1: enable count 9 toun1cen toun_1 count enable bit 10 toun2cen toun_2 count enable bit 11 toun3cen toun_3 count enable bit 12 toun4cen toun_4 count enable bit 13 toun5cen toun_5 count enable bit 14 toun6cen toun_6 count enable bit 15 toun7cen toun_7 count enable bit the tou count enable registers control operation of the tou counters. to enable any tou counter in soft- ware, enable its corresponding enable protect bit for rewrite and set the count enable bit by writing "1." to stop any tou counter, enable its corresponding enable protect bit for rewrite and reset the count enable bit by writing "0." in single-shot output, single-shot pwm output or delayed single-shot output mode, when the counter stops due to occurrence of an underflow, the count enable bit is automatically reset to "0." therefore, the tou count enable register when accessed for read serves as a status register indicating whether the counter is operating or idle.
10.8 tou (output-related 24-bit timer) multijunction timers 10 10-165 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 10.8.3 configuration of the tou0 enable circuit wr bn tou0m enable protect (tou0mpro) wr tou0m enable tou0 enable source selection (tou0ens) (tou0mcen) tou0m enable control f/f f/f event enable disable tid0_udf/ovf tou0_7udf output event bus 0 tin25s en-on wr bn (tou1mpro) wr en-on (tou1mcen) f/f f/f tid1_udf/ovf tou1_7udf tin27s tid0_udf/ovf tou0_7udf tin25s tou1m enable protect tou0 enable source selection (tou0ens) event enable disable output event bus 0 event enable disable tou1 enable source selection (tou1ens) tou1m enable tou1m enable control figure 10.8.4 configuration of the tou1 enable circuit
10-166 10.8 tou (output-related 24-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.8.10 pwmoff input processing control registers pwmoff0 input processing control register (pwmoff0cr) b bit name function r w 0?3 no function assigned. fix to "0." 00 4 pwmoff0sp ? 0 w pwmoff0s write control bit 5?7 pwmoff0s 000: input has no effect r w pwmoff0 input processing control bit 001: rising edge 010: falling edge 011: both edges 10x: "l" level 11x: "h" level pwmoff1 input processing control register (pwmoff1cr) b bit name function r w 0?3 no function assigned. fix to "0." 00 4 pwmoff1sp ? 0 w pwmoff1s write control bit 5?7 pwmoff1s 000: input has no effect r w pwmoff1 input processing control bit 001: rising edge 010: falling edge 011: both edges 10x: "l" level 11x: "h" level the pwmoff input processing control registers are used to set the active edge or level entered for pwm output disable control from an external pin. for details about the pwm output disable function, see section 10.8.20, ?pwm output disable function.? to set the pwmoff input processing control bits, follow the procedure described below. 1. write data "1" to the pwmoffns write control bit (pwmoffnsp). 2. after 1 above, write data "0" to the pwmoffns write control bit (pwmoffnsp) and the set value to the pwmoff input processing control bits (pwmoffns). note: ? if theare are writing cycles from cpu, dma, sdi (tool), nbd to any other area between 1 and 2, the continuous setting ( a pair of two consecutive is 1 set for writing operation) is disabled and the writing value is not reflected. therefore, disable interrupts and dma transfers before setting. however the writing cycle from rtd and dri are not effected. b0123456b7 pwmoff0sp pwmoff0s 00000000 b0123456b7 pwmoff1sp pwmoff1s 00000000
10.8 tou (output-related 24-bit timer) multijunction timers 10 10-167 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 if a write cycle to any other area occurs during this interval, the value that was set in the pwmoffns bits is not reflected. (note 1) pwmoffnsp "1" pwmoffnsp "0" pwmoffns 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) pwmoffnsp "1" write to other area (1) (2) pwmoffnsp "1" pwmoffnsp "1" because these two consecutive writes comprise a pair, the next set value is not reflected. pwmoffnsp "0" pwmoffns set value pwmoffnsp "0" pwmoffns set value 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 do not effect. figure 10.8.5 pwmoffns setting procedure
10-168 10.8 tou (output-related 24-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.8.11 pwm output disable control registers pwm output 0 disable control register ga (po0disgacr) b bit name function r w 0?5 no function assigned. fix to "0." 00 6 po0disgap ? 0 w po0disga write control bit 7 po0disga 0: enable output r w p87/to21?p82/to26 output disable select bit 1: disable output pwm output 1 disable control register ga (po1disgacr) b bit name function r w 0?5 no function assigned. fix to "0." 00 6 po1disgap ? 0 w po1disga write control bit 7 po1disga 0: enable output r w p110/to29?p115/to34 output disable select bit 1: disable output pwm output 0 disable control register gb (po0disgbcr) b bit name function r w 0?5 no function assigned. fix to "0." 00 6 po0disgbp ? 0 w po0disgb write control bit 7 po0disgb 0: enable output r w p00/to21?p05/to26 output disable select bit 1: disable output b0123456b7 po0disgap po0disga 00000000 b0123456b7 po1disgap po1disga 00000000 b0123456b7 po0disgbp po0disgb 00000000 pwm output disable control register is a register which performs disable control of the pwm output from to 21~26 and to29~to34 terminal. refer to the "10.8.20 pwm output disable function" for the details of pwm output disable function. the procedure of setting up a pondisgm bit is described blow. 1. set pondisgmp bit of pondisgmcr as "1" and write it. 2. write "0" in pondisgmp bit and write setting value in pondisgm bit. note: ? if theare are writing cycles from cpu, dma, sdi (tool), nbd to any other area between 1 and 2, the continuous setting ( a pair of two consecutive is 1 set for writing operation) is disabled and the writing value is not reflected. therefore, disable interrupts and dma transfers before setting. however the writing cycle from rtd and dri are not effected.
10.8 tou (output-related 24-bit timer) multijunction timers 10 10-169 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b0123456b7 po1disgbp po1disgb 00000000 pwm output 1 disable control register gb (po1disgbcr) b bit name function r w 0?5 no function assigned. fix to "0." 00 6 po1disgbp ? 0 w po1disgb write control bit 7 po1disgb 0: enable output r w p10/to29?p15/to34 output disable select bit 1: disable output these registers control output from the respective corresponding pins by enabling or disabling it. these pins can be used to control three-phase pwm output using the tou timer. three-phase pwm output can be forcibly disabled (placed in the high-impedance state) by controlling this register. this function can be used for all of output modes or port outputs of tou. however, use for other modes (external bus, sio mode, dri mode and top output modes (to0-to5) port inputs) is prohibited. for details, see section 10.8.20, ?pwm output disable function.? also, if this register is accessed for read, it serves as a status register indicating whether pwm output is disabled. to set this register, follow the procedure described below. (in the case of register gm) 1. write data "1" to the pondisgm write control bit (pondisgmp). 2. after 1 above, write data "0" to the pondisgm write control bit (pondisgmp) and data "0" or "1" to the output disable select bit (pondisgm). note: ? if theare are writing cycles from cpu, dma, sdi (tool), nbd to any other area between 1 and 2, the continuous setting ( a pair of two consecutive is 1 set for writing operation) is disabled and the writing value is not reflected. therefore, disable interrupts and dma transfers before setting. however the writing cycle from rtd and dri are not effected.
10-170 10.8 tou (output-related 24-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 10.8.6 pondisgm setting procedure if a write cycle to any other area occurs during this interval, the value that was set in the pondisgm bit is not reflected. (note 1) pondisgmp "1" pondisgmp "0" pondisgm 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) pondisgmp "1" write to other area pondisgmp "0" pondisgm set value (1) (2) pondisgmp "1" pondisgmp "1" pondisgmp "0" pondisgm 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 do not effect.
10.8 tou (output-related 24-bit timer) multijunction timers 10 10-171 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b8 9 1011121314b15 po0lvselgapo0lvenga 00000000 10.8.12 pwm output disable level control registers pwm output 0 disable level control register ga (po0lvgacr) b bit name function r w 8?13 no function assigned. fix to "0." 00 14 po0lvselga 0: select "l" output disable level r w p87/to21?p82/to26 output disable level select bit 1: select "h" output disable level 15 po0lvenga 0: disable selected output disable level r w output disable level enable/disable select bit 1: enable selected output disable level pwm output 1 disable level control register ga (po1lvgacr) b bit name function r w 8?13 no function assigned. fix to "0." 00 14 po1lvselga 0: select "l" output disable level r w p110/to29?p115/to34 output disable level select bit 1: select "h" output disable level 15 po1lvenga 0: disable selected output disable level r w output disable level enable/disable select bit 1: enable selected output disable level pwm output 0 disable level control register gb (po0lvgbcr) b bit name function r w 8?13 no function assigned. fix to "0." 00 14 po0lvselgb 0: select "l" output disable level r w p00/to21?p05/to26 output disable level select bit 1: select "h" output disable level 15 po0lvengb 0: disable selected output disable level r w output disable level enable/disable select bit 1: enable selected output disable level pwm output 1 disable level control register gb (po1lvgbcr) b bit name function r w 8?13 no function assigned. fix to "0." 00 14 po1lvselgb 0: select "l" output disable level r w p10/to29?p15/to34 output disable level select bit 1: select "h" output disable level 15 po1lvengb 0: disable selected output disable level r w output disable level enable/disable select bit 1: enable selected output disable level b8 9 1011121314b15 po0lvselgb po0lvengb 00000000 b8 9 1011121314b15 po1lvselgb po1lvengb 00000000 b8 9 1011121314b15 po1lvselgapo1lvenga 00000000
10-172 10.8 tou (output-related 24-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 the output disable level select function allows output from a port to be forcibly disabled (placed in the high- impedance state) depending on the output state of that port. this function may be used to determine whether three-phase pwm output signals are simultaneously on. furthermore, this function may be used for double-verification of ports because it works depending on the output state of ports. this function can be used for all of output modes or port outputs of tou. however, use for other modes (external bus, sio mode, dri mode and top output modes (to0-to5) port inputs) is prohibited. for details, see section 10.8.20, ?pwm output disable function.? (1) ponlvsel (output disable level select) bit (bit 14) this bit specifies the level ("h" or "l") at which port output is to be disabled. set this bit to "0" to disable port output when its level is "l", or "1" to disable port output when its level is "h". the following shows the conditions under which port output is turned off depending on the port?s output state. 1) po0lvsel = 0 if any one of the following conditions hold true, to21?to26 outputs (tou0_0?tou0_5 output pins) are disabled. ? to21 (tou0_0 output pin) output and to22 (tou0_1 output pin) output both are at the "l" level ? to23 (tou0_2 output pin) output and to24 (tou0_3 output pin) output both are at the "l" level ? to25 (tou0_4 output pin) output and to26 (tou0_5 output pin) output both are at the "l" level 2) po0lvsel = 1 if any one of the following conditions hold true, to21?to26 outputs (tou0_0?tou0_5 output pins) are disabled. ? to21 (tou0_0 output pin) output and to22 (tou0_1 output pin) output both are at the "h" level ? to23 (tou0_2 output pin) output and to24 (tou0_3 output pin) output both are at the "h" level ? to25 (tou0_4 output pin) output and to26 (tou0_5 output pin) output both are at the "h" level 3) po1lvsel = 0 if any one of the following conditions hold true, to29?p185/to34 outputs (tou1_0?tou1_5 output pins) are disabled. ? to29 (tou1_0 output pin) output and to30 (tou1_1 output pin) output both are at the "l" level ? to31 (tou1_2 output pin) output and to32 (tou1_3 output pin) output both are at the "l" level ? to33 (tou1_4 output pin) output and to34 (tou1_5 output pin) output both are at the "l" level 4) po1lvsel = 1 if any one of the following conditions hold true, to29?to34 outputs (tou1_0?tou1_5 output pins) are disabled. ? to29 (tou1_0 output pin) output and to30 (tou1_1 output pin) output both are at the "h" level ? to31 (tou1_2 output pin) output and to32 (tou1_3 output pin) output both are at the "h" level ? to33 (tou1_4 output pin) output and to34 (tou1_5 output pin) output both are at the "h" level (2) ponlven (output disable level enable/disable select) bit (bit 15) this bit enables or disables the output disable level that was selected with the ponlvsel bit. setting this bit to "1" enables the output disable level selected with the ponlvsel bit; setting this bit to "0" disables the output disable level selected with the ponlvsel bit.
10.8 tou (output-related 24-bit timer) multijunction timers 10 10-173 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b0123456b7 pwmoff0 pwmoff0 gben gaen 00000000 10.8.13 pwmoff function enable registers pwmoff0 function enable register (pwmoff0en) b bit name function r w 0 pwmoff0gben 0: disable pwmoff0 function r w p00?p05pwmoff function select bit 1: enable pwmoff0 function 1 pwmoff0gaen 0: disable pwmoff0 function r w p87?p82pwmoff function select bit 1: enable pwmoff0 function 2?7 no function assigned. fix to "0." 00 pwmoff1 function enable register (pwmoff1en) b bit name function r w 8 pwmoff1gben 0: disable pwmoff1 function r w p10?p15pwmoff function select bit 1: enable pwmoff1 function 9 pwmoff1gaen 0: disable pwmoff1 function r w p110?p115pwmoff function select bit 1: enable pwmoff1 function 10?15 no function assigned. fix to "0." 00 these registers enable or disable the pwm output disable function that was selected with the pwmoff input pin. this function can be used for all of output modes or port outputs of tou. however, use for other modes (external bus, sio mode, dri mode and top output modes (to0-to5) port inputs) is prohibited. for details, see section 10.8.20, ?pwm output disable function.? b8 9 1011121314b15 pwmoff1 pwmoff1 gben gaen 00000000
10-174 10.8 tou (output-related 24-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.8.14 operation in tou pwm output mode (without correction function) (1) outline of tou pwm output mode in pwm output mode, the timer uses two reload registers to generate a waveform with a given duty cycle.when pwm output mode, it is operated as a 16 bit timer. when the timer is enabled after setting the initial values in the reload 0 and reload 1 registers, the counter is loaded with the value that "the reload 0 register -1" and starts counting down synchronously with the count clock at the next cycle. the next cycle after the first time the counter underflows, it is loaded with the value that "the reload 1 register -1" and continues counting. thereafter, the counter is loaded with the reload 0 and reload 1 register values alternately each time an underflow occurs. the "reload 0 register set value + 1" and "reload 1 register set value + 1" respectively are effective as count values. the timer stops at the same time count is disabled by writing to the enable bit (and not in synchronism with pwm output period). the f/f output waveform in pwm output mode is inverted (f/f output level changes from "l" to "h" or vice versa) when the counter starts counting and each time it underflows. an interrupt request and dma transfer request can be generated at even-numbered occurrences of underflow after the counter is enabled. if the value "h'ffff" is set in either the reload 0 register or the reload 1 register, f/f output will not be inverted although an interrupt request is generated upon underflow, making it possible to produce a 0% or 100% duty-cycle pwm output. because a 0% or 100% duty-cycle needs to be determined when reloading the counter, there is a one count clock equivalent delay before f/f is inverted and an interrupt or dma transfer request is generated. however, startup requests to other timers are not delayed. for details, see section 10.8.19, ?0% or 100% duty-cycle wave output during pwm output and single-shot pwm output modes.? note that tou?s pwm output mode does not have the count correction function.
10.8 tou (output-related 24-bit timer) multijunction timers 10 10-175 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 10.8.7 typical operation in pwm output mode h'a000 h'(a000-1) h'c000 h'a000 h'(a000-1) count clock enabled (by writing to the enable bit or by external input) underflow (first time) enable bit reload 0 register underflow (second time) reload 1 register reload 1 buffer undefined value (note 2) dma transfer request f/f output (note 4) interrupt request due to underflow one count clock equivalent delay note 1: the value that "reload 0 register - 1" is reloaded. note 2: the value that "reload 1 register - 1" is reloaded. note 3: when reload0 is reloaded after updating reload0 register, reload 1 buffer is tranferd. note 4: updating of reload 0 and reload 1 during timer operation does not effect pwm waveform that is outputting at present. updating is reflected at the next pwm period after updating reload 0 register. note:  this diagram does not show detailed timing information. (note 1) (note 1) h'ffff h'0000 h'a000 h'(c000-1) h'c000 h'c000 h'a000 counter count down from the reload 0 register set value count down from the reload 1 register set value data inverted by enable data inverted by underflow data inverted by underflow pwm output period one count clock equivalent delay one count clock equivalent delay (note 3) (note 3) count down from the reload 0 register set value
10-176 10.8 tou (output-related 24-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (2) reload register updates in tou pwm output mode in pwm output mode, when the timer remains idle, the reload 0 and reload 1 registers are updated at the same time data are written to the respective registers. while the timer is operating, the reload 1 register is updated when reload 0 register is reloaded after updating the reload 0 register. however, if the reload 0 and reload 1 registers are accessed for read, the read values are always the data that have been written to the respective registers. tounrl1 f/f to tounrl0 internal bus reload 1 reload 1 wr reload 0 w r reload 1 buffer 16-bit counter prescaler output reload 0 pwm mode control (note 1) note 1: it is transferd from reload 1 register to reload 1 buffer when reload 0 register is reloaded after updating reload 0 register during counter operation. figure 10.8.8 pwm circuit diagram to rewrite the reload 0 and reload 1 registers while the timer is operating, rewrite the reload 1 register first and then the reload 0 register. that way, the reload 0 and reload 1 registers both are updated synchro- nously with pwm period, from which the timer starts operating. this operation can normally be performed collectively by accessing 32-bit addresses beginning with the reload 1 register address wordwise. (data are automatically written to the reload 1 and then the reload 0 registers in succession.) if the reload 0 and reload 1 registers are accessed for read, the read values are always the data that have been written to the respective registers, and not the reload values being actually used. when altering pwm period by rewriting the reload registers, if the pwm period terminates before the cpu finishes writing to reload 0 register, the pwm period is not altered in the current session and the data written to the register is reflected in the next period. when operating in the pwm output mode, writing the reload 0 register and reloard 1 register more than twice within the pwm period and meet the following conditions at the same time, the pwm waveform is output with the value that the last time written reload 0 register and finally written reload 1 register. condition 1: start writing reload 0 register after latching the reload 0 register pwm period of the old pwm output period. condition 2: rewrite reload 1 register before latching pwm period of the new pwm output period and start writing reload 0 register after latching pwm period.
10.8 tou (output-related 24-bit timer) multijunction timers 10 10-177 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 to update pwm period correctly, take either one of the following measures. ? identify the completion timing of pwm period by reading counter value at writing reload 1 register and reload 0 register, and then start writing reload 1 register and reload 0 register without crossing pwm period. ? when writing to reload 1 register and reload 0 register by using interruption, set the prescaler value of counter as small as possible. by doing this, write to reload 1 register and reload 0 register later than the counter to be h'ffff in the pwm period. ? writing reload 1 register and reload 0 register is performed under the period, less than one time per pwm period. (extend the reload register's rewrite period against pwm period.) (3) notes on using tou pwm output mode the following describes precautions to be observed when using tou pwm output mode. ? if the timer is enabled by external input in the same clock period as count is disabled by writing to the enable bit, the latter has priority so that count is disabled. ? if the counter is accessed for read to the cycle of underflow, the counter value is read out as h'ffff but changes to ?reload register value -1? at the next count clock timing. ? because the timer operates synchronously with the count clock, a count clock-dependent delay is in- cluded before f/f output is inverted after the timer is enabled. because a 0% or 100% duty-cycle needs to be determined when reloading the counter, there is a one count clock equivalent delay before f/f is inverted and an interrupt or dma transfer request is generated. how- ever, startup requests to other timers are not delayed. for details, see section 10.8.19, ?0% or 100% duty- cycle wave output during pwm output and single-shot pwm output modes.? figure 10.8.9 update timing of pwm period count clock counter h'ffff h'0000 f/f output underflow (1st time) reload 0 register (note 2) (note 1) reload 1 register pwm period (note 1) note 1: the value that "the reload 0 register -1" is reloaded. note 2: the value that "the reload 1 buffer -1" is reloaded. notes: . : indicate sampling points. . this diagram does not show detailed timing information. reload 1 buffer condition 1 old pwm output period condition 2 new pwm putput period reloading "reload 0 register" (loading pwm period) reloading "reload 0 register" (loading pwm period) underflow (2nd time) underflow (2nd time)
10-178 10.8 tou (output-related 24-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 10.8.10 reload 0 and reload 1 register updates in pwm output mode h'0001 h'ffff h'1000 h'7fff h'2000 h'8000 h'9000 h'1000 h'2000 h'8000 h'9000 h'7ffe h'0000 h'2000 h'9000 h'0001 h'ffff h'1000 h'8000 h'9000 h'1000 h'2000 h'9000 h'0000 h'2000 enlarged view old pwm output period new pwm output period new pwm output period enlarged view old pwm output period old pwm output period (a) when reload register updates take effect in the current period (reflected in the next period) timing at which reload 0 register is updated operation by new reload value written reload 0 register reload 1 register f/f output write to reload 1 write to reload 0 (reload 1 data latched) pwm period latched and timing at which reload 1 buffer is updated count clock reload 0 register reload 1 register counter interrupt due to underflow f/f output reload 1 buffer h'0fff h'2000 (b) when reload register updates take effect in the next period (reflected one period later) operation by old reload value h'8000 h'0ffe h'9000 note:  this diagram does not show detailed timing information. count clock reload 0 register reload 1 register counter interrupt due to underflow timing at which reload 0 register is updated reload 0 register reload 1 register f/f output write to reload 1 write to reload 0 (reload 1 data latched) f/f output pwm period latched reload 1 buffer old pwm output period
10.8 tou (output-related 24-bit timer) multijunction timers 10 10-179 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 10.8.11 reload 0 and reload 1 register updates in pwm output mode (for 0% or 100% duty-cycle wave output) h'ffff ffff ffff h'1000 ffff h'9000 h'9000 (a) when reload register updates take effect in the current period (reflected in the next period) timing at which reload 0 register is updated operation by new reload value written reload 0 register reload 1 register f/f output write to reload 1 write to reload 0 (reload 1 data latched) pwm period latched and timing at which reload 1 buffer is updated count clock reload 0 register reload 1 register counter interrupt due to underflow f/f output reload 1 buffer h'0fff ffff h'9000 h'2000 h'0ffe h'9000 (b) when reload register updates take effect in the next period (reflected one period later) operation by old reload value note:  this diagram does not show detailed timing information. timing at which reload 0 register is updated reload 0 register reload 1 register f/f output write to reload 1 write to reload 0 (reload 1 data latched) pwm period latched count clock reload 0 register reload 1 register counter interrupt due to underflow f/f output reload 1 buffer h'0001 h'ffff h'1000 ffff h'2000 ffff h'9000 h'1000 h'2000 ffff h'9000 8fff h'0000 h'2000 h'9000 h'0001 h'ffff h'1000 h'0fff h'2000 ffff h'9000 h'1000 h'2000 ffff h'9000 h'0ffe h'0000 h'2000 old pwm output period new pwm output period new pwm output period enlarged view enlarged view old pwm output period old pwm output period old pwm output period
10-180 10.8 tou (output-related 24-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.8.15 operation in tou single-shot pwm output mode (without correction function) (1) outline of tou single-shot pwm output mode in single-shot pwm output mode, the timer uses two reload registers to generate a waveform with a given duty cycle only once. when pwm output mode, it is operated as a 16 bit timer. when the timer is enabled after setting the initial values in the reload 0 and reload 1 registers, the counter is loaded with the value that "the reload 0 register -1" and starts counting down synchronously with the count clock at the next cycle. at the cycle after the first time the counter underflows, it is loaded with tthe value that "the reload 1 register -1" and continues counting. the counter stops when it underflows next time. the "reload 0 register set value + 1" and "reload 1 register set value + 1" respectively are effective as count values. the timer can be stopped in software, in which case it stops at the same time count is disabled by writing to the enable bit (and not in synchronism with pwm output period). the f/f output waveform in single-shot pwm output mode is inverted (f/f output level changes from "l" to "h" or vice versa) each time the counter underflows. (unlike in pwm output mode, the f/f output is not inverted when the counter is enabled.) an interrupt request and dma transfer request can be generated when the counter underflows second time after being enabled. if the value "h'ffff" is set in either the reload 0 register or the reload 1 register, f/f output will not be inverted although an interrupt request is generated upon underflow, making it possible to produce a 0% or 100% duty-cycle pwm output. because a 0% or 100% duty-cycle needs to be determined when reloading the counter, there is a one count clock equivalent delay before f/f is inverted and an interrupt or dma transfer request is generated. however, startup requests to other timers are not delayed. for details, see section 10.8.19, ?0% or 100% duty-cycle wave output during pwm output and single-shot pwm output modes.? note that tou?s single-shot pwm output mode does not have the count correction function. (2) notes on using tou single-shot pwm output mode the following describes precautions to be observed when using tou single-shot pwm output mode. ? if the timer is enabled by external input in the same clock period as count is disabled by writing to the enable bit, the latter has priority so that count is disabled. ? if the counter is accessed for read at the cycle of underflow, the counter value is read out as h'ffff but changes to ?reload register value -1? at the next count clock timing. ? updating of reload 0 and reload 1 during timer operation does not effect pwm waveform that is outputting at present. updating is reflected at the next pwm period after updating reload 0 register. because a 0% or 100% duty-cycle needs to be determined when reloading the counter, there is a one count clock equivalent delay before f/f is inverted and an interrupt or dma transfer request is generated. how- ever, startup requests to other timers are not delayed. for details, see section 10.8.19, ?0% or 100% duty- cycle wave output during pwm output and single-shot pwm output modes.?
10.8 tou (output-related 24-bit timer) multijunction timers 10 10-181 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 10.8.12 typical operation in tou single-shot pwm output mode (without correction function) h'a000 h'f000 h'(a000-1) dma transfer reqiest count clock enabled (by writing to the enable bit or by external input) f/f output underflow (first time) interrupt request due to underflow enable bit reload 0 register underflow (second time) reload 1 register one count clock equivalent delay undefined value (note 1) (note 2) h'ffff h'0000 h'a000 h'a000 h'f000 h'f000 h'(f000-1) counter data inverted by underflow data inverted by underflow one count clock equivalent delay pwm output period reload 1 buffer note 1: the value that "reload 0 register - 1" is reloaded. note 2: the value that "reload 1 buffer - 1" is reloaded. note 3: updating of reload 0 and reload 1 during timer operation does not effect pwm waveform that is outputting at present. updating is reflected at the next pwm period after updating reload 0 register. note:  this diagram does not show detailed timing information.
10-182 10.8 tou (output-related 24-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.8.16 operation in tou delayed single-shot output mode (without correction function) (1) outline of tou delayed single-shot output mode in delayed single-shot output mode, the timer generates a pulse in width of "reload register set value + 1" after a finite time equal to "counter set value + 1" only once and then stops. when the timer is enabled after setting the counter and reload register, it starts counting down from the counter?s set value synchronously with the count clock. at the cycle after the first time the counter underflows, it is loaded with the value that "the reload register -1" and continues counting down. the counter stops when it underflows next time. the f/f output waveform in delayed single-shot output mode is inverted (f/f output level changes from "l" to "h" or vice versa) when the counter underflows first time and next, generating a single-shot pulse wave- form in width of "reload register set value + 1" after a finite time equal to "first set value of counter + 1" only once. an interrupt request can be generated when the counter underflows first time and next. the "counter set value + 1" and "reload register set value + 1" respectively are effective as count values. (for counting operation, see also section 10.3.10, ?operation of top delayed single-shot output mode.?) (2) notes on using tou delayed single-shot output mode the following describes precautions to be observed when using tou delayed single-shot output mode. ? if the counter stops due to an underflow in the same clock period as the timer is enabled by external input, the former has priority so that the counter stops. ? if the counter stops due to an underflow in the same clock period as count is enabled by writing to the enable bit, the latter has priority so that count is enabled. ? if the timer is enabled by external input in the same clock period as count is disabled by writing to the enable bit, the latter has priority so that count is disabled. ? if the counter is accessed for read at the cycle of underflow, the counter value is read as h'ff ffff but changes to ?reload register value -1? at the next count clock timing. ? because the timer operates synchronously with the count clock, a count clock-dependent delay is in- cluded before f/f output is inverted after the timer is enabled.
10.8 tou (output-related 24-bit timer) multijunction timers 10 10-183 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 10.8.13 typical operation in tou delayed single-shot output mode (without correction function) h'ff ffff h'00 0000 h'10 f000 h'08 a000 h'10 f000 h'(10 f000-1) data inverted by underflow data inverted by underflow dma transfer request count clock enabled (by writing to the enable bit or by external input) f/f output underflow (first time) interrupt request due to underflow enable bit underflow (second time) counter reload register count down from the counter set value (note 1) note 1: the value that "reload register - 1" is reloaded. note:  this diagram does not show detailed timing information.
10-184 10.8 tou (output-related 24-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.8.17 operation in tou single-shot output mode (without correction function) (1) outline of tou single-shot output mode in single-shot output mode, the timer generates a pulse in width of "reload register set value + 1" only once and then stops. when the timer is enabled after setting the reload register, the counter is loaded with the content of "the reload register -1" and starts counting synchronously with the count clock at the next cycle. the counter counts down and stops when it underflows after reaching the minimum count. the f/f output waveform in single-shot output mode is inverted (f/f output levels change from "l" to "h" or vice versa) at startup and upon underflow, generating a single-shot pulse waveform in width of "reload register set value + 1" only once. an interrupt request and dma request can be generated when the counter underflows. the count value is "reload register set value + 1." (for counting operation, see also section 10.3.9, ?opera- tion of top single-shot output mode.?) (2) notes on using tou single-shot output mode the following describes precautions to be observed when using tou single-shot output mode. ? if the counter stops due to an underflow in the same clock period as the timer is enabled by external input, the former has priority so that the counter stops. ? if the counter stops due to an underflow in the same clock period as count is enabled by writing to the enable bit, the latter has priority so that count is enabled. ? if the timer is enabled by external input in the same clock period as count is disabled by writing to the enable bit, the latter has priority so that count is disabled. ? because the timer operates synchronously with the count clock, up to one count clock-dependent delay is generated before f/f output is inverted after writing the enable bit.
10.8 tou (output-related 24-bit timer) multijunction timers 10 10-185 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 10.8.14 typical operation in tou single-shot output mode (without correction function) h'ff ffff h'00 0000 h'55 aa00 h'55 aa00 data inverted by enable data inverted by underflow h'(55 aa00-1) dma transfer request count clock enabled (by writing to the enable bit or by external input) f/f output interrupt request due to underflow enable bit reload register counter undefined value (note 1) note 1: the value that "reload register - 1" is reloaded. note:  this diagram does not show detailed timing information.
10-186 10.8 tou (output-related 24-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.8.18 operation in tou continuous output mode (without correction function) (1) outline of tou continuous output mode in continuous output mode, the timer counts down starting from the set value of the counter and when the counter underflows, it is loaded with the reload register value. thereafter, this operation is repeated each time the counter underflows, thus generating consecutive pulses whose waveform is inverted in width of "reload register set value + 1." when the timer is enabled after setting the counter and reload register, it starts counting down from the counter?s set value synchronously with the count clock and when the minimum count is reached, generates an underflow. at the next cycle after this underflow causes the counter to be loaded with the content of "the reload register -1" and start counting over again. thereafter, this operation is repeated each time an under- flow occurs. to stop the counter, disable count by writing to the enable bit in software. the f/f output waveform in continuous output mode is inverted (f/f output level changes from "l" to "h" or vice versa) at startup and upon underflow, generating a waveform of consecutive pulses until the timer stops counting. an interrupt request and dma request can be generated each time the counter underflows. the "counter set value + 1" and "reload register set value + 1" are effective as count values. (for counting operation, see also section 10.3.11, ?operation of top continuous output mode.?) (2) notes on using tou continuous output mode the following describes precautions to be observed when using tou continuous output mode. ? if the timer is enabled by external input in the same clock period as count is disabled by writing to the enable bit, the latter has priority so that count is disabled. ? if the counter is accessed for read at the cycle of underflow, the counter value is read out as h'ff ffff but changes to ?reload register value -1? at the next count clock timing. ? because the timer operates synchronously with the count clock, up to one count clock-dependent delay is generated before f/f output is inverted after writing the enable bit.
10.8 tou (output-related 24-bit timer) multijunction timers 10 10-187 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 10.8.15 typical operation in tou continuous output mode (without correction function) h'ff ffff h'ff 0000 h'0e 0000 h'0a 0000 h'0e 0000 h'(0e 000-1) data inverted by enable data inverted by underflow data inverted by underflow dma transfer request underflow (first time) count down from the counter set value underflow (second time) count clock enabled (by writing to the enable bit or by external input) f/f output interrupt request due to underflow enable bit reload register counter (note 1) note 1: the value that "reload register - 1" is reloaded. note:  this diagram does not show detailed timing information. h'(0e 000-1) (note 1)
10-188 10.8 tou (output-related 24-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.8.19 0% or 100% duty-cycle wave output during pwm output and single-shot pwm output modes during pwm output or single-shot pwm output mode, if the value "h'ffff" is written to the reload 0 or reload 1 register, f/f output will not be inverted, making it possible to produce a 0% or 100% duty-cycle pwm output. because determination is made to see if the reload value is "h'ffff" during pwm output or single-shot pwm output mode, following precautions must be observed. (1) because the counter counts one even when detecting 0% or 100% duty-cycle, one of the two reload registers must have set in it one less than the intended value in order for a constant-cycle waveform to be produced. example: if the desired output cycle is 10 counts cycle ratio 50% : 50% 80% : 20% 90% : 10% 100% : 0% count ratio 5 : 5 8 : 2 9 : 1 10 : 0 register set values 0004 : 0004 0007 : 0001 0008 : 0000 0009 : ffff because the counter counts n + 1, the values actually set in the respective registers must be one less than the intended value. (2) because setting the value "h'ffff" in the reload register produces a 0% or 100% duty-cycle, it is impossible to count the exact "h'ffff." (3) setting the value "h'ffff" in both reload 0 and reload 1 registers is inhibited. (4) writing the value "h'ffff" to the counter while in operation is inhibited. (5) even for a 0% or 100% duty-cycle, interrupt requests and startup registers to other timers are generated. (6) because a 0% or 100% duty-cycle needs to be determined when reloading the counter, there is a one count clock equivalent delay before f/f is inverted and an interrupt or dma transfer request is gener- ated. however, startup requests to other timers are not delayed. 0008: ffff the counter counts one without invert- ing f/f output after detecting "ffff." for this reason, the value to be set in the register must be "0008," and not "0009."
10.8 tou (output-related 24-bit timer) multijunction timers 10 10-189 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 10.8.16 typical operation in pwm output mode (reload 0 register: h?ffff) enabled (by writing to the enable bit or by external input) underflow superficial underflow h'ffff h'0000 h'ffff h'e000 h'(e000-1) h'(ffff-1) h'(ffff-1) h'(e000-1) h'e000 data not inverted data not inverted data not inverted counter undefined value dma transfer request enable bit reload 0 register reload 1 register f/f output interrupt request due to underflow timing at which startup requests to other timers are generated count clock (note 1) note 1: the value that "reload 0 register - 1" is reloaded. note 2: because reload 0 redister is h'ffff, pseudo underflow occurs and the value that "reload 1 register - 1" is reloaded. notes:  this diagram does not show detailed timing information.  this diagram is shown with respect to the one-count-clock delayed out. (note 1) (note 2) (note 2)
10-190 10.8 tou (output-related 24-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 10.8.17 typical operation in pwm output mode (reload 1 register: h?ffff) enabled (by writing to the enable bit or by external input) count clock enable bit underflow superficial underflow h'ffff h'0000 h'e000 h'e000 h'(e000-1) h'(ffff-1) h'(ffff-1) h'(e000-1) h'ffff reload 0 register reload 1 register interrupt request due to underflow f/f output data not inverted data inverted by enable data not inverted counter undefined value dma transfer request timing at which startup requests to other timers are generated h'(e000-1) (note 3) note 1: the value that "reload 0 register - 1" is reloaded. note 2: the value that "reload 1 register - 1" is reloaded. note 3: because reload 1 redister is h'ffff, pseudo underflow occurs and the value that "reload 0 register - 1" is reloaded. notes:  this diagram does not show detailed timing information.  this diagram is shown with respect to the one-count-clock delayed out. (note 2) (note 1) (note 3) (note 2)
10.8 tou (output-related 24-bit timer) multijunction timers 10 10-191 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 10.8.18 typical operation in single-shot pwm output mode (reload 0 register: h?ffff) underflow h'ffff h'0000 h'ffff h'e000 h'e000 data inverted by underflow data inverted by enable counter enabled (by writing to the enable bit or by external input) superficial underflow dma transfer request undefined value enable bit reload 0 register reload 1 register f/f output interrupt request due to underflow count clock timing at which startup requests to other timers are generated h'(ffff-1) h'(e000-1) note 1: the value that "reload 0 register - 1" is reloaded. note 2: because reload 0 redister is h'ffff, pseudo underflow occurs and the value that "reload 1 register - 1" is reloaded. notes:  this diagram does not show detailed timing information.  this diagram is shown with respect to the one-count-clock delayed out. (note 1) (note 2)
10-192 10.8 tou (output-related 24-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 10.8.19 typical operation in single-shot pwm output mode (reload 1 register: h?ffff) count clock enable bit h'ffff h'0000 h'e000 h'e000 h'ffff reload 0 register reload 1 register interrupt request due to underflow f/f output data not inverted counter enabled (by writing to the enable bit or by external input) underflow superficial underflow undefined value dma transfer request timing at which startup requests to other timers are generated note 1: the value that "reload 0 register - 1" is reloaded. note 2: the value that "reload 1 register - 1" is reloaded. note 3: because reload 0 redister is h'ffff, pseudo underflow occurs. notes:  this diagram does not show detailed timing information.  this diagram is shown with respect to the one-count-clock delayed out. h'(ffff-1) (note 2) h'(e000-1) (note 1) (note 3)
10.8 tou (output-related 24-bit timer) multijunction timers 10 10-193 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.8.20 pwm output disable function the microcomputer has the function to forcibly disable outputs from the p87(p00)/to21?p82(p05)/to26 and p110(p10)/to29?p115(p15)/to34 that respectively are the output pins for the tou0_0?tou0_5 and tou1_0? tou1_5 timers. this function may be used as a protective function when a fault condition such as short-circuiting is detected during three-phase pwm control. this function can be used for all of output modes or port outputs of tou. however, use for other modes (external bus, sio mode, dri mode and top output modes (to0-to5) port inputs) is prohibited. figure 10.8.19 shows the circuit configurations of the pwm output disable function. set f/f rd b7 pwmoff0s irq10 tms1(cap3) b7 wr address b6 po0disgacr(wr) po0lvselga irq10 tms1(cap2) wr address b6 po1disgacr(wr) po1lvselga po1lvenga po0disga p130/tin16/pwmoff0 p131/tin17/pwmoff1 tin17s pwmoff1s level detection edge detection level detection edge detection p87/to21 p86/to22 p85/to23 p84/to24 p83/to25 p82/to26 p175/to27 p174/to28 p87/to21(internal) p86/to22(internal) p85/to23(internal) p84/to24(internal) p83/to25(internal) p82/to26(internal) p175/to27(internal) p174/to28(internal) p87/to21(internal) p86/to22(internal) p85/to23(internal) p84/to24(internal) p83/to25(internal) p82/to26(internal) p110/to29(internal) p111/to30(internal) p112/to31(internal) p113/to32(internal) p114/to33(internal) p115/to34(internal) p110/to29 p111/to30 p112/to31 p113/to32 p114/to33 p115/to34 p116/to35 p117/to36 p110/to29(internal) p111/to30(internal) p112/to31(internal) p113/to32(internal) p114/to33(internal) p115/to34(internal) p116/to35(internal) p117/to36(internal) f/f f/f f/f f/f tin16s po0lvenga f/f f/f f/f f/f b7 f/f rd b7 set po1disga f/f pwmoff0gaen f/f pwmoff1gaen figure 10.8.20 circuit configurations of the pwm output disable function (pin group a)
10-194 10.8 tou (output-related 24-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 rd b7 irq10 b7 po0lvselgb rd b7 tms1(cap2) b7 wr address b6 po1disgbcr(wr) po1lvselgb po1lvengb po1disgb p130/tin16/pwmoff0 level detection edge detection level detection edge detection p00/to21(internal) p01/to22(internal) p02/to23(internal) p03/to24(internal) p04/to25(internal) p05/to26(internal) p06/to27(internal) p07/to28(internal) p10/to29(internal) p11/to30(internal) p12/to31(internal) p13/to32(internal) p14/to33(internal) p15/to34(internal) p16/to35(internal) p17/to36(internal) p00/to21(internal) p01/to22(internal) p02/to23(internal) p03/to24(internal) p04/to25(internal) p05/to26(internal) p10/to29(internal) p11/to30(internal) p12/to31(internal) p13/to32(internal) p14/to33(internal) p15/to34(internal) f/f f/f f/f f/f tin16s tms1(cap3) wr address b6 po0disgbcr(wr) po0lvengb f/f f/f f/f f/f irq10 p131/tin17/pwmoff1 tin17s pwmoff1s f/f p00/to21 p01/to22 p02/to23 p03/to24 p04/to25 p05/to26 p06/to27 p07/to28 set po0disgb f/f p10/to29 p11/to30 p12/to31 p13/to32 p14/to33 p15/to34 p16/to35 p17/to36 set f/f pwmoff0gben f/f pwmoff1gben pwmoff0s figure 10.8.21 circuit configurations of the pwm output disable function (pin group b)
10.8 tou (output-related 24-bit timer) multijunction timers 10 10-195 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 there are following three methods to disable pwm outputs. (1) using the signal entered from an external pin (tin16/pwmoff0 or tin17/pwmoff1) to disable pwm outputs the input signal on the external pin (tin16/pwmoff0) may be used to disable outputs from the ports p87(p00)/to21?p82(p05)/to26 that are provided for the pwm outputs of the timer tou0_0?tou0_5. simi- larly, the input signal on the external pin (tin17/pwmoff1) may be used to disable outputs from the ports p110(p10)/to29?p115(p15)/to34 that are provided for the pwm outputs of the timer tou1_0?tou1_5. when selecting rising or falling or both edges at pwmoffns bit of pwmoffn input procedure con- trol register (pwmoffncr) when edge detecting in extarnal pin (tin16/pwmoff0, tin17/pwmoff1, tin33/pwmoff2), pwm output is disabed. at that time pondisgm bit of pwm output n disable control gm register is set to "1." restoring pwm output enable status is done by "0" clearing pondisgm bit of pwm output n disable control gm register (pondisgmcr). when selecting "l" level or "h" level at pwmoffns bit of pwmoffn input procedure control regis- ter (pwmoffncr) during inputting pwm output disable level to extarrnal pin (tin16/pwmoff0, tin17/pwmoff1, tin33/ pwmoff2), pwm output is disabled.at that time pondisgm bit of pwm output n disable control gm register is set to "1." restoring pwm output enable status is done by exiting inputting pwm output disable level. at that time setting value written in last time is read out from pondisgmbit of pwm output n disable control gm register (pondisgmcr). note: ? when write to pondisgm bit of pwm output n disable control gm register druing input- ting pwm output disable level to extarrnal pin (tin16/pwmoff0, tin17/pwmoff1, tin33/pwmoff2), the value written is stored in the register. however, if read out, "1" is read out. then upon exiting pwm output disable level to external pin, it is possible to read out the contents of setting pondisgm bit, pwm output is controled by following the set- ting value. to disable pwm outputs by using the input signal on the external pin (tin16/pwmoff0 or tin17/ pwmoff1), set up the pwmoffn input processing control register (pwmoffncr) and the pwmoffn function enable register (pwmoffnen) as described below. when using the signal inputted from tin16/pwmoff0 to disable pwm outputs 1. write data "1" to the pwmoff0cr register pwmoff0sp bit. 2. after 1 above, write data "0" to the pwmoff0sp bit and then write setting value ("000," "001," "010," "011," "10x" or "11x") to the pwmoff0s bit in succession. 3. enable the pwmoff0 function by writing "1" to either or both of the pwmoff0gaen bits and pwmoff0gben bits of the pwmoff0en register. note: ? if theare are cpu, dma, sdi, writing cycle from nbd to any other area between 1 and 2, the continuous setting ( a pair of two consecutive is 1 set for writing operation) is disabled and the writing value is not reflected. therefore, disable interrupts and dma transfers before setting. however the writing cycle from rtd and dri is not effected. when using tin17/pwmoff1 to disable pwm outputs 1. write data "1" to the pwmoff1cr register pwmoff1sp bit. 2. after 1 above, write data "0" to the pwmoff1sp bit and then write setting value ("000," "001," "010," "011," "10x" or "11x") to the pwmoff1s bit in succession. 3. enable the pwmoff1 function by writing "1" to either or both of the pwmoff1gaen and pwmoff1gben bits of the pwmoff1en register.
10-196 10.8 tou (output-related 24-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 note: ? if theare are cpu, dma, sdi, and writing cycle from nbd to any other area between 1 and 2, the continuous setting (a pair of two consecutive is 1 set for writing operation) is dis- abled and the writing value is not reflected. therefore, disable interrupts and dma trans- fers before setting. however, the writing cycle from rtd and dri are not effected. (2) using the pwm output disable control registers to disable pwm outputs the pwm output 0 disable control gm register (po0disgacr, po0disgbcr) may be used to disable outputs from the ports p87(p00)/to21?p82(p05)/to26 that are provided for the pwm outputs of the timer tou0_0?tou0_5. similarly, the pwm output 1 disable control gm register (po1disgacr, po1disgbcr) may be used to disable outputs from the ports p110(p10)/to29?p115(p15)/to34 that are provided for the pwm outputs of the timer tou1_0?tou1_5. to disable pwm output by the pwm output disable control gm register (pondisgacr, pondiscbcr) set as described below. when using the pwm output 0 disable control register (po0disgacr, po0disgbcr) to disable pwm outputs 1. set the po0disgacr(po0disgbcr) register po0disgap(po0disgbp) bit to ?1.? 2. after 1 above, set the po0disgap(po0disgbp) bit to ?0? and then the po0disga(po0disgb) bit to ?1? (output disabled). note: ? if a write cycle to any other area ocurs between 1 and 2, the setting of the po0disga (po0disgb) bit has no effect. when using the pwm output 1 disable control register (po1disgacr, po1disgbcr) to disable pwm outputs 1. set the po1disgacr(po1disgbcr) register po1disgap(po1disgbp) bit to ?1.? 2. after 1 above, set the po1disgap(po1disgbp) bit to ?0? and then the po1disga(po1disgb) bit to ?1? (output disabled). note: ? if a write cycle to any other area ocurs between 1 and 2, the setting of the po1disga (po1disgb) bit has no effect. (3) using the pin level on ports p87(p00)/to21?p82(p05)/to26 or p110(p10)/to29?p115(p15)/to34 to disable pwm outputs the pin level ("h" or "l" level) on ports p87(p00)/to21?p82(p05)/to26 may be used to disable outputs from the ports p87(p00)/to21?p82(p05)/to26 that are provided for the pwm outputs of the timer tou0_0?tou0_5. similarly, the pin level ("h" or "l" level) on ports p110(p10)/to29?p115(p15)/to34 may be used to disable outputs from the ports p110(p10)/to29?p115(p15)/to34 that are provided for the pwm outputs of the timer tou1_0?tou1_5 . after detecting pwm output disable level from port p87(p00)/to21-p82(p05)/to26, p110(p10)/ to29~p115(p15)/to34, pwm output is disabled. during pwm output disable, pondisgmbit of pwm output n disable control gm register is set to "1." restoring output enable status is done by exiting outputting pwm output disable level from port p87(p00)/ to21-p82(p05)/to26, p110(p10)/to29-p115(p15)/to34 and then by "0" clearing pondisgm bit of pwm output n disable gm register (pondisgmcr ). note: ? if pondisgmbit in pwm output n disable control gm register is written during pwm output disable level outputting from port p87(p00)/to21-p82(p05)/to26, p110(p10)/ to29-p115(p15)/to34, that operation of writing has no effect.
10.8 tou (output-related 24-bit timer) multijunction timers 10 10-197 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 to disable pwm outputs using the pin level of ports, set up the pwm output disable level control register (ponlvgacr, ponlvgbcr) and pwmoff function enable register (pwmoffnen) as described below. when using the p87(p00)/to21?p82(p05)/to26 port level to disable pwm outputs 1. using the po0lvgacr(po0lvgbcr) register po0lvselga(po0lvselgb) bit, select the "h" or "l" level at which pwm output is to be disabled. 2. set the po0lvenga(po0lvengb) bit to "1" (the selected output disable level effective). 3. enable the pwmoff0 function by writing "1" to either or both of the pwmoff0gaen and pwmoff0gben bits of the pwmoff0en. when using the p110(p10)/to29?p115(p15)/to34 port level to disable pwm outputs 1. using the po1lvgacr(po1lvgbcr) register po1lvselga(po1lvselgb) bit, select the "h" or "l" level at which pwm output is to be disabled. 2. set the po1lvenga(po1lvengb) bit to "1" (the selected output disable level effective). 3. enable the pwmoff1 function by writing "1" to either or both of the pwmoff1gaen and pwmoff1gben bits of the pwmoff1en. 10.8.21 shorting prevention function before setting the shorting-prevention function enable/disable bit, be sure to stop the toun_0 through toun_ 5 counters. (setting this bit while the timer is enabled for counting is prohibited.) when the shorting-prevention function is enabled, make sure each timer is run in either of the following opera- tion modes. (using timers in any other modes is prohibited.) toun_0 (2, 4)single-shot pwm mode toun_1 (3, 5)single-shot output mode when the shorting-prevention function is enabled, the toun enable source select bits of toun_1 (3, 5) have no effect, so that these timers are invoked by an underflow of toun_0 (2, 4). use the toun_1 (3, 5) reload register to set the shorting-prevention time. at this time, note that the shorting- prevention time actually is the set value of the reload register + 3. the set value of the reload register must satisfy the condition given below. set value of the toun_1 (3, 5) reload register set value of the toun_0 (2, 4) reload 1 register ? 4 before the shorting-prevention function can be enabled, designated values must be set in the f/f data register and the f/f data register for the shorting-prevention function. ? to output a "h" level signal first set a "1" in the f/f data register and a "0" in the f/f data register for the shorting-prevention function. ? to output a "l" level signal first set a "0" in the f/f data register and a "1" in the f/f data register for the shorting-prevention function. if the same value is set in the f/f data register and the f/f data register for the shorting-prevention function, a fixed-level signal is output. when the shorting-prevention function is enabled, writing h?ffff to the toun_0 (2, 4) reload register 0 or the toun_0 (2, 4) reload register 1 is prohibited.
10-198 10.8 tou (output-related 24-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 10.8.22 schematic operation of shorting prevention function h'ffff h'0000 h'a000 h'f000 undefined value h'ffff h'0000 h'0010 count clock enable bit reload 0 register reload 1 register toun interrupt request counter enable bit reload register counter shorting-prevention period shorting-prevention period toun_0 (2, 4) f/f output toun_1 (3, 5) f/f output toun_0 (2, 4) toun_1 (3, 5) startup at 3 clocks later startup at 3 clocks later enabled (by writing to the enble bit or by external input) h'(f000-1) h'(a000-1) count down from the reload 0 register set value count down from the reload 1 register set value count down from the reload 0 register set value h'0010 h'f000 count down from the reload 0 register set value undefined value note 1: the value that "reload 0 register - 1" is reloaded. note 2: the value that "reload 1 register - 1" is reloaded. note 3: the value that "reload register - 1" is reloaded. note:  this diagram does not show detailed timing information. h'(0010-1) (note 3) h'(0010-1) (note 3) (note 1) (note 2)
10.8 tou (output-related 24-bit timer) multijunction timers 10 10-199 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 to enable the shorting-prevention function when it is necessary to forcibly fix output in software, follow the procedure described below. (1) write "0" to the toun_0/1 (2/3, 4/5) count enable bit. (2) set a ?value to prevent shorting? in the f/f data register and a ?value to be fixed? in the f/f data register for the shorting-prevention function. (3) write "1" to the toun_1 (3, 5) count enable bit. in this case, the shorting-prevention time is as follows: time before toun_1 (3, 5) count is enabled after writing f/f data + toun_1 (3, 5) reload register set value + 1 to stop counters in software, make sure toun_0/1 (2/3, 4/5) are made to stop counting at the same time. stopping counters individually is prohibited. before writing "1" to the toun_1 (3, 5) count enable bit, make sure toun_0 (2, 4) and toun_1 (3, 5) both have stopped counting.
10-200 10.8 tou (output-related 24-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 10.8.23 schematic operation for the case where the output is fixed forcibly in software h'ffff h'0000 undefined value h'ffff h'0000 h'0010 count clock enable bit counter enable bit reload register counter shorting-prevention period shorting-prevention period toun_0 (2, 4) f/f output toun_1 (3, 5) f/f output toun_0 (2, 4) toun_1 (3, 5) enabled (by writing to the enble bit or by external input) h'(0010-1) (note 3) h'(0010-1) (note 3) count down from the reload register set value h'0010 h'0010 count down from the reload register set value undefined (1) count stop (toun_0 (2, 4), toun_1 (3, 5)) (2) writing f/f data/ shorting-prevention f/f data (3) count enable (toun_1 (3, 5)) f/f data value output shorting- prevention f/f data value output note 1: the value that "reload0 register - 1" is reloaded. note 2: the value that "reload1 register - 1" is reloaded. note 3: the value that "reload register - 1" is reloaded. note:  this diagram does not show detailed timing information. (note 1) (note 2)
10.8 tou (output-related 24-bit timer) multijunction timers 10 10-201 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 10.8.22 example application for using the 32192/32195/32196 in motor control the two-channel tou timers incorporated in the 32192/32195/32196 help to reduce software burdens during motor control. the following shows an example application for using these timers in motor control. the three-phase motor control waveform is produced by starting tou in accordance with the fixed 20 khz tou startup timing generated by tid. the single-shot pwm function included in tou enables any desired output waveform to be configured easily by storing waveform data only when the data needs to be rewritten. note that the transistor shorting prevention time can be provided by changing the set time of tou in software or using the shorting prevention function. 32192 32195 32196 power-mos motor u /u v /v w /w tou tou tou tou tou tou circuit board figure 10.8.24 system configuration diagram clk toun_0 clk toun_1 clk toun_2 clk toun_3 clk toun_4 clk toun_5 f/f f/f f/f f/f f/f f/f to(u) prs en en en en en en clk udf tidn single-shot pwm single-shot pwm single-shot pwm single-shot pwm single-shot pwm single-shot pwm fixed period udf udf udf udf udf udf to(/u) to(v) to(/v) to(w) to(/w) 20 khz generated startup note:  when the shorting-prevention function is enabled, make sure that toun_1 (3, 5) is set to run in single-shot output mode. figure 10.8.25 timer connections when used for three-phase motor control u v w 20khz tou start to(u) to(/u) to(v) to(/v) to(w) to(/w) delay single shot delay single shot : shorting prevention time figure 10.8.26 conceptual diagram of motor control
10-202 10.8 tou (output-related 24-bit timer) multijunction timers 10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 this page is blank for reasons of layout.
chapter 11 a/d converter 11.1 outline of a/d converter 11.2 a/d converter related registers 11.3 functional description of a/d converter 11.4 inflow current bypass circuit 11.5 notes on the a/d converter
a/d converter 11-2 11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.1 outline of a/d converter the 32192/32195/32196 contains 10-bit resolution a/d converter of the successive approximation type. the a/ d converter has 16 analog input pins (channels) ad0in0?ad0in15. in addition to performing conversion indi- vidually on each channel, the a/d converter can perform conversion successively on all of n channels (n = 1? 16) as a single group. the conversion result can be read out in either 10 or 8 bits. there are following conversion and operation modes for the a/d conversion: (1) conversion modes ? a/d conversion mode : ordinary mode in which analog input voltages are converted into digital quantities. ? comparator mode (note 1) : a mode in which analog input voltage is compared with a preset comparison voltage to find only the relative magnitude of two quantities. (useful in only single operation mode) (2) operation modes ? single mode : analog input voltage on one channel is a/d converted once or comparated (note 1) with a given quantity. ? scan mode : analog input voltages on two or more selected channels (in n channel units, n = 1?16) are sequentially a/d converted. single-shot scan mode : scan operation is performed for one cycle. continuous scan mode : scan operation is repeated until stopped. (3) special operation modes ? forcible single mode execution during scan mode : conversion is forcibly executed in single mode (compara- tor mode) during scan operation. ? scan mode start after single mode execution : scan operation is started subsequently after executing conversion in single mode. ? conversion restart : a/d conversion being executed in single or scan mode is restarted. (4) sample-and-hold function the analog input voltage is sampled when starting a/d conversion, and a/d conversion is performed on the sampled voltage. this function can be enabled or disabled as necessary. (5) simultaneous sampling function two channels are sampled at the same time, and 2-channel continuous a/d conversion is able to be carried out for the sampled voltage. (6) a/d disconnection detection assist function to suppress influences of the analog input voltage leakage from any preceding channel during scan mode operation, a function is incorporated that helps to fix the electric charge on the chopper amp capacitor to the given state (avcc0 or gnd) before starting a/d conversion. this function provides a sure and reliable means of detecting a disconnection in the wiring patterns connecting to the analog input pins. 11.1 outline of a/d converter
a/d converter 11 11-3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.1 outline of a/d converter (7) inflow current bypass circuit if an overvoltage or negative voltage is applied to any analog input channel which is currently inactive, a current flows into or out of the analog input channel currently being a/d converted via the internal circuit, causing the conversion accuracy to degrade. to solve this problem, the a/d converter incorporates a circuit that bypasses such inflow current. this circuit is always enabled. (8) conversion speed the a/d conversion speed is shown in table 11.1.1 below. the a/d conversion speed is decided by selecting combination such as with or without sample-and-hold and selecting normal or fast sample-and-hold, select- ing slow or fast mode, selecting normal or double speed. conversion speed of comparator mode is decided by selecting combination such as selecting slow or fast mode, selecting normal or double speed. (9) interrupt request and dma transfer request generation functions an a/d conversion interrupt or dma transfer request can be generated each time a/d conversion (single mode operation, single-shot scan operation or one cycle of continuous operation) or comparate operation is completed. note 1: to discriminate between the comparison performed internally by the successive approximation- type a/d converter and that performed in comparator mode using the same a/d converter as a comparator, the comparison in comparator mode is referred to in this manual as ?comparate.? table 11.1.1 outlines the a/d converter and figure 11.1.1 shows block diagram of a/d converter. table 11.1.1 outline of the a/d converter (1/2) item description analog input 16 channels x 1 a/d conversion method successive approximation method resolution 10 bits (conversion result can be read out in either 8 or 10 bits) absolute accuracy sample-and-hold is disabled slow mode normal speed 2lsb (note 1) double speed 2lsb (note 2) fast mode normal speed 3lsb double speed 3lsb normal sample-and-hold is enabled, slow mode normal speed 2lsb simultaneous sampling is disabled double speed 2lsb fast mode normal speed 3lsb double speed 3lsb fast sample-and-hold is enabled, slow mode normal speed 3lsb simultaneous sampling is disabled double speed 3lsb fast mode normal speed 3lsb double speed 8lsb normal sample-and-hold is enabled, slow mode normal speed 3lsb simultaneous sampling is enabled double speed 3lsb fast mode normal speed 3lsb double speed 3lsb fast sample-and-hold is enabled, slow mode normal speed 3lsb simultaneous sampling is enabled double speed 3lsb fast mode normal speed 3lsb double speed 8lsb
a/d converter 11-4 11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.1 outline of a/d converter table 11.1.1 outline of the a/d converter (2/2) item description conversion mode a/d conversion, comparator mode operation mode single mode, scan one shot mode, scan continuous mode conversion start trigger software start started by setting the a/d conversion start bit to "1" hardware start a/d0 converter mjt (input event bus 2), mjt (input event bus 3), mjt (output event bus 3) and mjt (tin23) conversion during single mode slow mode normal speed 598 x bclk 14.95s speed (when sample-and-hold disabled/ double speed 346 x bclk 8.65s (note 1) when normal sample-and-hold enabled) fast mode normal speed 262 x bclk 6.55s (note 2) double speed 178 x bclk 4.45s during single mode slow mode normal speed 382 x bclk 9.55s (when fast sample-and-hold enabled) double speed 202 x bclk 5.05s fast mode normal speed 190 x bclk 4.75s double speed 106 x bclk 2.65s during comparator mode slow mode normal speed 94 x bclk 2.35s double speed 58 x bclk 1.45s fast mode normal speed 46 x bclk 1.15s double speed 34 x bclk 0.85s sample-and-hold function sample-and-hold function can be enabled or disabled as necessary. simultaneous when sample-and-hold function is effective, 2 channel simultaneous sampling function can be sampling function selected. a/d disconnection influences of the analog input voltage leakage from any preceding channel during scan detection assist function mode operation are suppressed. interrupt request generated when a/d con version (single mode operation, single-shot scan operation or one cycle of generation function continuous operation) or comparate ope ration is completed. dma transfer request generated when a/d con version (single mode operation, single-shot scan operation or one cycle of generation function continuous operation) or comparate ope ration is completed. note 1: condition for stamdard value : f(xin)=20mhz, vcce=vccbus=vdde=avcc0=5.12v, vccer=3.3v0.3v, ta=-40c to +105c, 2 bclk mode note 2: the conversion accuracy stipulated here refers to that of the microcomputer alone, with influences of the power supply wiring and noise on the board not taken into account.
a/d converter 11 11-5 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.1 outline of a/d converter figure 11.1.1 block diagram of the a/d converter ad0in0 ad0in1 ad0in2 ad0in3 ad0in4 ad0in5 ad0in6 ad0in7 selector interrupt request avss0 vref0 10-bit a/d successive approximation register (ad0sar) 10-bit a/d0 data register 0 10-bit a/d0 data register 1 a/d0 single mode register a/d0 comparate data register a/d control circuit ? mode selection  channel selection  conversion time selection  flag control  interrupt control 10-bit d/a converter comparator ad0in8 ad0in9 ad0n10 ad0in11 ad0in12 ad0in13 ad0in14 ad0in15 ad0cmp ad0dt0 ad0dt1 ad0dt2 ad0dt3 ad0dt4 ad0dt5 ad0dt6 ad0dt7 ad0dt8 ad0dt9 ad0dt10 ad0dt11 ad0dt12 ad0dt13 ad0dt14 ad0dt15 dma transfer request successive approximation-type a/d converter unit internal data bus a/d0 scan mode register ad0scm0,1 ad0sim0,1,2 avcc0 10-bit readout 8-bit readout shifter 10-bit a/d0 data register 2 10-bit a/d0 data register 3 10-bit a/d0 data register 4 10-bit a/d0 data register 5 10-bit a/d0 data register 6 10-bit a/d0 data register 7 10-bit a/d0 data register 8 10-bit a/d0 data register 9 10-bit a/d0 data register 10 10-bit a/d0 data register 11 10-bit a/d0 data register 12 10-bit a/d0 data register 13 10-bit a/d0 data register 14 10-bit a/d0 data register 15 input event bus 2 input event bus 3 output event bus 3 tin23s s s adctrg1 adstrg1 dma0, dma common sample & hold control circuit s comparator sample & hold control circuit
a/d converter 11-6 11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 11.1.2 operation in single mode (a/d conversion) a/d conversion interrupt or dma transfer request note 1: a/d0 conversion start: software trigger started by setting the a/d0 conversion start bit to "1" hardware trigger started by input event bus 3, input event bus 2, output event bus 3 or tin23s signal input adiinn completed adidtn 10-bit a/di data register conversion starts (note 1) i=0 n=0?15 11.1.1 conversion modes the a/d converter has two conversion modes: ?a/d conversion mode? and ?comparator mode.? (1) a/d conversion mode in a/d conversion mode, the analog input voltage on a specified channel is a/d converted. in single mode, a/d conversion is performed on a channel selected by the a/d single mode register 1 analog input pin select bit. in scan mode, a/d conversion is performed on channels selected by a/d scan mode register 1 according to settings of a/d scan mode register 0. the conversion result is stored in each channel?s corresponding 10-bit a/d data register. there is also an 8-bit a/d data register for each channel, from which 8-bit a/d conversion results can be read out. an a/d conversion interrupt or dma transfer request can be generated when a/d conversion in single mode is completed, as well as when one cycle of scan loop in scan mode is completed. (2) comparator mode in comparator mode, the analog input voltage on a specified channel is ?comparated? (compared) with the successive approximation register value, and the result (relative magnitude of two values) is returned to a flag. the channel to be comparated is selected using the a/d single mode register 1 analog input pin select bit. the result of comparate operation is flagged ("0" or "1") by setting the a/d comparate data register bit that corresponds to the selected channel. an a/d conversion interrupt or dma transfer request can be generated when comparate operation is completed. 11.1.2 operation modes there are two operation modes for the a/d converter: ?single mode? and ?scan mode.? when comparator mode is selected as a/d conversion mode, only single mode can be used. (1) single mode in single mode, the analog input voltage on one selected channel is a/d converted or comparated once. an a/d conversion interrupt or dma transfer request can be generated when a/d conversion or comparate operation is completed. 11.1 outline of a/d converter
a/d converter 11 11-7 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 a/d conversion interrupt or dma transfer request adiin0 completed here when operating in single-shot scan mode adidt0 10-bit a/di data register conversion starts (note 1) adiin1 adiinn-1 adiinn adidt1 adidtn-1 adidtn during continuous scan mode i= 0 n=0?15 note 1: a/d0 conversion start: software trigger started by setting the a/d0 conversion start bit to "1" hardware trigger started by input event bus 3, input event bus 2, output event bus 3 or tin23s signal input figure 11.1.4 operation of a/d conversion in scan mode 11.1 outline of a/d converter figure 11.1.3 operation in single mode (comparate) (2) scan mode in scan mode, the analog input voltages from channel 0 to the channel selected by the a/d scan mode register 1 scan loop select bit (channels 0?15) are sequentially a/d converted. there are two types of scan mode: ?single-shot scan mode? in which a/d conversion is completed after performing one cycle of scan operation, and ?continuous scan mode? in which scan operation is continued until halted by setting the a/d scan mode register 0?s a/d conversion stop bit to "1." these types of scan mode are selected using a/d scan mode register 0. the channels to be scanned are selected using a/d scan mode register 1. the selected channels are scanned sequentially beginning with channel 0. an a/d conversion interrupt or dma transfer request can be generated when one cycle of scan operation is completed. a/d conversion interrupt or dma transfer request note 1: comparate operation is started by writing a comparison value to the successive approximation register (adisar) adiinn completed adicmp a/di comparate data register conversion starts (note 1) adisar a/d successive approximation register comparate result adicmp=0 (ann > adisar) adicmp=1 (ann < adisar) i=0 n=0?15
a/d converter 11-8 11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.1 outline of a/d converter ? ? ? ? ? ? ? ? ? ? ? ? table 11.1.2 registers in which scan mode a/d conversion results are stored scan mode register 1 selected channels selected channels a/d conversion result channel selection for single-shot scan for continuous scan storage register b'0000:0 adiin0 adiin0 10-bit a/di data register 0 (adiin0) completed adiin0 10-bit a/di data register 0 (repeated until forcibly terminated) b'0001:1 adiin0 adiin0 10-bit a/di data register 0 (adiin1) adiin1 adiin1 10-bit a/di data register 1 completed adiin0 10-bit a/di data register 0 (repeated until forcibly terminated) b'0010:2 adiin0 adiin0 10-bit a/di data register 0 (adiin2) adiin1 adiin1 10-bit a/di data register 1 adiin2 adiin2 10-bit a/di data register 2 completed adiin0 10-bit a/di data register 0 (repeated until forcibly terminated) b'0011:3 adiin0 adiin0 10-bit a/di data register 0 (adiin3) adiin1 adiin1 10-bit a/di data register 1 adiin2 adiin2 10-bit a/di data register 2 adiin3 adiin3 10-bit a/di data register 3 completed adiin0 10-bit a/di data register 0 (repeated until forcibly terminated) b'xxxx:n adiin0 adiin0 10-bit a/di data register 0 (adiinn) adiin1 adiin1 10-bit a/di data register 1 adiin2 adiin2 10-bit a/di data register 2 n 15 ... adiinn adiinn 10-bit a/di data register n completed adiin0 10-bit a/di data register 0 (repeated until forcibly terminated) (i=0)
a/d converter 11 11-9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.1.3 special operation modes (1) forcible single mode execution during scan mode in this special operation mode, single mode conversion (a/d conversion or comparate) is forcibly executed on a specified channel during scan mode operation. for a/d conversion mode, the conversion result is stored in the a/d data register corresponding to the specified channel, whereas for comparate mode, the comparison result is stored in the 10-bit a/d comparate data register. when the a/d conversion or comparate operation on a specified channel finishes, scan mode a/d conversion is restarted from where it was canceled during scan operation. to start single mode conversion during scan mode operation in software, choose a software trigger using the single mode register 0 a/d conversion start trigger select bit. then, for a/d conversion, set the said register?s a/d conversion start bit to "1." for comparate mode, write a comparison value to the a/d succes- sive approximation register (ad0sar) during scan mode operation. to start single mode conversion during scan mode operation in hardware, choose a hardware trigger using the single mode register 0 a/d conversion start trigger select bit. then enter the hardware trigger selected with the said register. an a/d conversion interrupt or dma transfer request can be generated when conversion on a specified channel or one cycle of scan operation is completed. figure 11.1.5 forcible single mode execution during scan mode a/d conversion interrupt or dma transfer request adiin0 adidt0 10-bit a/di data register scan mode conversion starts adiin1 adidt1 adidt5 note 1: the canceled convert operation on channel 2 is reexecuted from the beginning. completed adiin2 adiinn adidt2 adidtn adiin5 forcible single mode execution starts (note 1) adiin2 i=0 n=0?15 11.1 outline of a/d converter
a/d converter 11-10 11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 11.1.6 scan mode start after single mode execution a/d conversion interrupt or dma transfer request adiin0 adidt0 10-bit a/di data register instructed to start scan mode conversion adiin1 adidt1 adidt5 completed adiinn-1 adiinn adidtn-1 adidtn adiin5 single mode conversion starts i=0 n=0?15 (2) scan mode start after single mode execution in this special operation mode, scan operation is started subsequently after executing single mode conver- sion (a/d conversion or comparate). to start this mode in software, choose a software trigger using the a/d scan mode register 0 a/d conver- sion start trigger select bit. then set the said register?s a/d conversion start bit to "1" during single mode conversion operation. to start this mode in hardware, choose a hardware trigger using the a/d scan mode register 0 a/d conver- sion start trigger select bit. then enter the hardware trigger selected with the said register during single mode conversion operation. if a hardware trigger is selected using the a/d conversion start trigger select bit in both a/d single mode register 0 and a/d scan mode register 0 and the selected hardware triggers are entered, the a/d con- verter first performs single mode conversion and then scan mode conversion in succession. an a/d conversion interrupt or dma transfer request can be generated when single mode conversion on a specified channel or one cycle of scan operation is completed. 11.1 outline of a/d converter
a/d converter 11 11-11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.1 outline of a/d converter (3) conversion restart in this special operation mode, operation being executed in single or scan mode is stopped in the middle and reexecuted from the beginning. when in single mode, set the a/d single mode register 0 a/d conversion start bit to "1" again or enter a hardware trigger during a/d conversion or comparate operation, and the operation being executed is re- started over again. when in scan mode, set the a/d scan mode register 0 a/d conversion start bit to "1" again or enter a hardware trigger signal during scan operation, and the channel being converted is canceled and a/d con- version is performed from channel 0 over again. figure 11.1.7 conversion restart during single mode operation a/d conversion interrupt or dma transfer request single mode adiin5 conversion starts adidt5 completed single mode adiin5 restarts adiin5 adiin5 10-bit a/di data register i=0 figure 11.1.8 conversion restart during scan operation a/d conversion interru p t or dma transfer re q uest adiin0 adidt0 10-bit a/di data register scan mode conversion starts adiin1 adidt1 completed adiinn-1 adiinn adidtn-1 adidtn scan mode restarts adiin2 adiin0 adidt0 adiin1 adidt1 i=0 n=0?15
a/d converter 11-12 11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.1.4 a/d converter interrupt and dma transfer requests the a/d converter can generate an a/d conversion interrupt or dma transfer request each time a/d conver- sion (single mode operation, single-shot scan operation or one cycle of continuous operation) or comparate operation is completed. the a/d single mode register 0 and a/d scan mode register 0 are used to select between a/d conversion interrupt and dma transfer requests. 11.1 outline of a/d converter figure 11.1.9 selecting between interrupt and dma transfer requests 11.1.5 sample-and-hold function the analog input voltage that was sampled immediately after a/d conversion started is held on, and a/d conversion is performed on that seized voltage. the a/d conversion time in ?normal? sample-and-hold mode is the same as in conventional a/d conversion mode of the 32170, etc. the a/d conversion time in ?fast? sample-and-hold mode is significantly short, allowing to obtain conversion results more quickly than ever. scan mode (when one cycle of scan is completed) single mode (when a/d conversion or comparate operation is completed) a/d conversion interrupt request (to the interrupt controller) dma transfer request (to the dmac) a/d scan mode register 0 interrupt/dma transfer request select bit a/d single mode register 0 interrupt/dma transfer request select bit
a/d converter 11 11-13 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.1 outline of a/d converter 11.1.6 simultaneous sampling function when the sample-and-hold function is effective, 2 channel simultaneous sampling function can be used, and a/d conversion is carried out with 2-channel continually for the sampled voltage. figure 11.1.10 single mode when simultaneous sampling is effective figure 11.1.11 forcible single mode execution during scanning when simultaneous sampling is effective completed conversion starts a/d conversion interrupt or dma transfer request adiin0 adiin15 adiin15 (only sampling) i=0 a/d conversion interrupt or dma transfer request adiin0 scan conversion starts adiin1 adiin2 adiin3 single mode execution request adiin2 adiin0 adiin15 adiin15 (only sampling) i=0
a/d converter 11-14 11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.1 outline of a/d converter figure 11.1.13 single mode restart when simultaneous sampling is effective a/d conversion interrupt or dma transfer request conversion starts single mode re-execution request adiin0 adiin0 adiin15 adiin15 (only sampling) completed conversion starts single mode re-execution request adiin0 adiin0 adiin15 adiin15 (only sampling) completed adiin0 i=0 figure 11.1.12 scanning start after single mode execution when simultaneous sampling is effective a/d conversion interrupt or dma transfer reques t conversion starts adiin0 adiin1 scan mode execution request adiin0 adiin15 adiin15 (only sampling) i=0
a/d converter 11 11-15 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.2 a/d converter related registers shown below is an a/d converter related register map. a/d converter related register map (1/2) address +0 address +1 address see b0 b7 b8 b15 pages 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) 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) 11.2 a/d converter related registers |
a/d converter 11-16 11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 a/d converter related register map (2/2) address +0 address +1 address see b0 b7 b8 b15 pages 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) 11.2 a/d converter related registers
a/d converter 11 11-17 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.2 a/d converter related registers 11.2.1 a/d single mode register 0 a/d0 single mode register 0 (ad0sim0) 123456b7 b0 adstrg0 adstrg1 adssel adsreq adsstt adsstp adscmp 0 000100 0 b bit name function r w 0 adstrg1 (note 1) bits 0 and 2 are used to select an a/d hardware trigger. r w a/d hardware trigger select 1 bit b0 b2 0 0 : input event bus 2 0 1 : input event bus 3 1 0 : output event bus 3 1 1 : tin23s signal 1 no function assigned. fix to "0." 00 2 adstrg0 (note 1) bits 0 and 2 are used to select an a/d hardware trigger. r w a/d hardware trigger select 0 bit (see the column for bit 0.) 3 adssel 0: software trigger r w a/d conversion start trigger select bit 1: hardware trigger (note 2) 4 adsreq 0: a/d conversion interrupt request r w a/d interrupt/dma transfer request select bit 1: dma transfer request 5 adscmp 0: a/d conversion/comparate in progress r ? a/d conversion/comparate completed bit 1: a/d conversion/comparate completed 6 adsstp 0: no operation 0 w a/d conversion stop bit 1: stop a/d conversion 7 adsstt 0: no operation 0 w a/d conversion start bit 1: start a/d conversion note 1: two bits?bit 0 (a/d hardware trigger select 1) and bit 2 (a/d hardware trigger select 0)?are used to select an a/d hard ware trigger. note 2: during comparator mode, hardware triggers, if any selected, are ignored and operation is started by a software trigger. a/d single mode register 0 is used to control operation of the a/d converter during single mode (including special mode, ?forcible single mode execution during scan mode?). (1) adstrg (a/d hardware trigger select) bits (bits 0, 2) these bits select a hardware trigger when a/d conversion by the a/d converter is to be started in hardware. select one from the following hardware trigger sources: a/d0 converter: input event bus 2 input event bus 3 output event bus 3 tin23 edge select output the contents of these bits are ignored if a software trigger is selected by adssel (a/d conversion start trigger select bit).
a/d converter 11-18 11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.2 a/d converter related registers (2) adssel (a/d conversion start trigger select) bit (bit 3) this bit selects whether to use a software or hardware trigger to start a/d conversion during single mode. if a software trigger is selected, a/d conversion is started by setting the adsstt (a/d conversion start) bit to "1." if a hardware trigger is selected, a/d conversion is started by the trigger source selected with the adstrg (hardware trigger select) bits. (3) adsreq (a/d interrupt request/dma transfer request select) bit (bit 4) this bit selects whether to request an a/d conversion interrupt or a dma transfer when single mode opera- tion (a/d conversion or comparate) is completed. if neither an interrupt nor a dma transfer are used, choose to request an a/d conversion interrupt and use the a/d conversion interrupt control register of the inter- rupt controller (icu) to mask the interrupt request, or choose to request a dma transfer and use the dma channel control register to disable dma transfers to be performed upon completion of a/d conversion. (4) adscmp (a/d conversion/comparate completed) bit (bit 5) this is a read-only bit, whose value when exiting the reset state is "1." this bit is "0" when the a/d converter is performing single mode operation (a/d conversion or comparate) and is set to "1" when the operation finishes. this bit is also set to "1" when a/d conversion or comparate operation is forcibly terminated by setting the adsstp (a/d conversion stop) bit to "1" during a/d conversion or comparate operation. (5) adsstp (a/d conversion stop) bit (bit 6) setting this bit to "1" while the a/d converter is performing single mode operation (a/d conversion or comparate) causes the operation being performed to stop. manipulation of this bit is ignored while single mode operation is idle or scan mode operation is under way. operation stops immediately after writing to this bit. if the a/d successive approximation register is read after being stopped, the content read from the register is the value in the middle of conversion (not trans- ferred to the a/d data register). if the a/d conversion start bit and a/d conversion stop bit are set to "1" at the same time, the a/d conversion stop bit has priority. if this bit is set to "1" when performing single mode operation in special mode ?forcible single mode execu- tion during scan mode,? only single mode conversion stops and scan mode operation restarts. (6) adsstt (a/d conversion start) bit (bit 7) if this bit is set to "1" when a software trigger has been selected with the adssel (a/d conversion start trigger select) bit, the a/d converter starts a/d conversion. if the a/d conversion start bit and a/d conversion stop bit are set to "1" at the same time, the a/d conversion stop bit has priority. if this bit is set to "1" again while performing single mode conversion, special operation mode ?conversion restart? is turned on, so that single mode conversion restarts. if this bit is set to "1" again while performing a/d conversion in scan mode, special operation mode ?forcible single mode execution during scan mode? is turned on, so that the channel being converted in scan mode is canceled and single mode conversion is performed. when the single mode conversion finishes, scan mode a/d conversion restarts beginning with the canceled channel.
a/d converter 11 11-19 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.2 a/d converter related registers 11.2.2 a/d single mode register 1 a/d0 single mode register 1 (ad0sim1) 9 1011121314b15 b8 adsmsl adsspd adsshsl ansel 00000000 adsshspd b bit name function r w 8 adsmsl 0: a/d0 conversion mode r w a/d conversion mode select bit 1: comparator mode 9 adsspd (note 1) 0: normal speed r w a/d conversion speed select bit 1: double speed 10 adsshsl 0: disable sample-and-hold r w a/d conversion method select bit 1: enable sample-and-hold 11 adsshspd (note 2) 0: normal sample-and-hold r w a/d sample-and-hold conversion speed select bit 1: fast sample-and-hold 12?15 ansel 0000 : select adiin0 (i = 0) r w a/d analog input pin select bit 0001 : select adiin1 0010 : select adiin2 0011 : select adiin3 0100 : select adiin4 0101 : select adiin5 0110 : select adiin6 0111 : select adiin7 1000 : select adiin8 1001 : select adiin9 1010 : select adiin10 1011 : select adiin11 1100 : select adiin12 1101 : select adiin13 1110 : select adiin14 1111 : select adiin15 note 1: the a/d conversion speed is determined by a combination of adsspd, adsshsl and adsshspd bits and the a/d conversion speed control register adcvsd2 and adcvsd bits. note 2: setting of this bit is effective when the sample-and-hold function is enabled by adsshsl bit. a/d single mode register 1 is used to select operation mode, conversion speed and analog input pins when the a/d converter is operating in single mode.
a/d converter 11-20 11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (1) adsmsl (a/d conversion mode select) bit (bit 8) this bit selects a/d conversion mode when the a/d converter is operating in single mode. setting this bit to "0" selects a/d conversion mode, and setting this bit to "1" selects comparator mode. (2) adsspd (a/d conversion speed select) bit (bit 9) this bit selects the a/d conversion speed when the a/d converter is operating in single mode. setting this bit to "0" selects normal speed, and setting this bit to "1" selects double speed. (3) adsshsl (a/d conversion method select) bit (bit 10) this bit enables or disables the sample-and-hold function when the a/d converter is operating in single mode. setting this bit to "0" disables the sample-and-hold function, and setting this bit to "1" enables the sample-and-hold function. setting of this bit has no effect if comparator mode is selected with the adsmsl (a/d conversion mode select) bit. (4) adsshspd (a/d sample-and-hold speed select) bit (bit 11) when the a/d converter?s sample-and-hold function is enabled, this bit selects a conversion speed. when this bit is "0," the conversion speed is the same as normal a/d conversion speed. when this bit is "1", conversion is performed at a speed faster than normal a/d conversion speed. setting of this bit has no effect if the sample-and-hold function is disabled by setting the adsshsl (a/d conversion method select) bit to "0." for details about the conversion time, see section 11.3.4, ?calculating the a/d conversion time.? (5) ansel (a/d analog input pin select) bits (bits 12?15) these bits select the analog input pins when the a/d converter is operating in single mode. a/d conversion or comparate operation is performed on the channels selected with these bits. if these bits are accessed for read, the value written to them is read out. 11.2 a/d converter related registers
a/d converter 11 11-21 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.2 a/d converter related registers 11.2.3 a/d single mode register 2 a/d0 single mode register 2 (ad0sim2) 9 1011121314b15 b8 ad0sh2 ad0sel2 00 0000 ad0sh2st 0 0 b bit name function r w 8 adsh2 0: simultaneous sampling invalid r w a/d simultaneous sampling select bit (note 1) 1: simultaneous sampling valid 9 adsh2st 0: 2nd simultaneous sampling conversion not in progress r ? a/d simultaneous sampling status bit (note 2) 1: 2nd simultaneous sampling conversion in progress 10, 11 no function assigned. fix to "0." r0 12?15 adsel2 0000 : no channels selected r w a/d simultaneous sampling analog input pin | | select bit (note 3) 0011 : no channels selected 1100 : select ad0in12 1101 : select adi0n13 1110 : select adi0n14 1111 : select adi0n15 note 1: the a/d conversion mode/sample-and-hold function must be effective with single mode register 1. when the comparator mode/sample-and-hold function is invalid, set the ad0sh2 to "0" (simultaneous sampling invalid). note 2: the second conversion speed is the same as the first conversion speed. note 3: when simultaneous sampling valid is selected, select from b'1100 to b'1111. furthermore, when simultaneous sampling invalid is seledted, select from b'0000 to b'1011. the a/d single mode register 2 is provided to select simultaneous sampling valid or invalid in the single mode of a/d converter and analog input pin sampled at the same time. (1) adsh2 (a/d simultaneous sampling select) bit (bit 8) this bit selects whether simultaneous sampling is valid or invalid? when the a/d converter is in single mode. by clearing this bit to ?0,? simultaneous sampling becomes invalid and by setting it to ?1,? simultaneous sampling becomes valid. (2) adsh2st (a/d simultaneous sampling status) bit (bit 9) this bit indicates that the number of times the a/d conversion is executed when simultaneous sampling is effective. the bit is set to "1" only when second conversion is in progress. (3) adsel2 (a/d simultaneous sampling analog input pin select) bit (bits 12?15) these bits select a channel sampled at the same time when simultaneous sampling is effective.
a/d converter 11-22 11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.2 a/d converter related registers 11.2.4 a/d scan mode register 0 a/d0 scan mode register 0 (ad0scm0) b bit name function r w 0 adctrg1 (note 1) bits 0 and 2 are used to select an a/d hardware trigger r w a/d hardware trigger select 1 bit b0 b2 0 0 : input event bus 2 0 1 : input event bus 3 1 0 : output event bus 3 1 1 : tin23s signal 1 adcmsl 0: single-shot mode r w a/d scan mode select bit 1: continuous mode 2 adctrg0 bits 0 and 2 are used to select an a/d hardware trigger r w a/d hardware trigger select 0 bit (see the column for bit 0.) 3 adcsel 0: software trigger r w a/d conversion start trigger select bit 1: hardware trigger 4 adcreq 0: a/d conversion interrupt request r w a/d interrupt/dma transfer request select bit 1: dma transfer request 5 adccmp 0: a/d conversion in progress r ? a/d conversion completed bit 1: a/d conversion completed 6 adcstp 0: no operation 0 w a/d conversion stop bit 1: stop a/d conversion 7 adcstt 0: no operation 0 w a/d conversion start bit 1: start a/d conversion note 1: two bits?bit 0 (a/d hardware trigger select 1) and bit 2 (a/d hardware trigger select 0)?are used to select an a/d hard ware trigger. a/d scan mode register 0 is used to control operation of the a/d converter during scan mode. (1) adctrg (a/d hardware trigger select) bits (bits 0 and 2) these bits select a hardware trigger when a/d conversion by the a/d converter is to be started in hardware. select one from the following hardware trigger sources: a/d0 converter: input event bus 2 input event bus 3 output event bus 3 tin23 edge select output the contents of these bits are ignored if a software trigger is selected by adcsel (a/d conversion start trigger select bit). b0123456b7 adctrg1 adcmsl adctrg0 adcsel adcreq adccmp adcstp adcstt 00000100
a/d converter 11 11-23 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.2 a/d converter related registers (2) adcmsl (a/d scan mode select) bit (bit 1) this bit selects scan mode of the a/d converter between single-shot scan and continuous scan. setting this bit to "0" selects single-shot scan mode, where the channels selected with the anscan (a/d scan loop select) bits of the a/d0 scan mode register 1 (ad0scm1) are sequentially a/d converted and when a/d conversion on all selected channels is completed, the conversion operation stops. setting this bit to "1" selects continuous scan mode, where after operation in single-shot scan mode fin- ishes, a/d conversion is reexecuted beginning with the first channel and continued until stopped by setting the adcstp (a/d conversion stop) bit to "1." (3) adcsel (a/d conversion start trigger select) bit (bit 3) this bit selects whether to use a software or hardware trigger to start a/d conversion during scan mode. if a software trigger is selected, a/d conversion is started by setting the adcstt (a/d conversion start) bit to "1." if a hardware trigger is selected, a/d conversion is started by the trigger source selected with the adctrg (hardware trigger select) bits. (4) adcreq (a/d interrupt request/dma transfer request select) bit (bit 4) this bit selects whether to request an a/d conversion interrupt or a dma transfer when one cycle of scan mode operation is completed. if neither an interrupt nor a dma transfer are used, choose to request an a/d conversion interrupt and use the a/d conversion interrupt control register of the interrupt controller (icu) to mask the interrupt request, or choose to request a dma transfer and use the dma channel control register to disable dma transfers to be performed upon completion of a/d conversion. (5) adccmp (a/d conversion completed) bit (bit 5) this is a read-only bit, whose value when exiting the reset state is "1." this bit is "0" when the a/d converter is performing scan mode a/d conversion and is set to "1" when single-shot scan mode finishes or continu- ous scan mode is stopped by setting the adcstp (a/d conversion stop) bit to "1." (6) adcstp (a/d conversion stop) bit (bit 6) setting this bit to "1" while the a/d converter is performing scan mode a/d conversion causes the operation being performed to stop. this bit is effective only for scan mode operation, and does not affect single mode operation even when single and scan modes both are active during special operation mode. operation stops immediately after writing to this bit, and the a/d conversion being performed on any chan- nel is aborted in the middle, without transferring the result to the a/d data register. if the a/d conversion start bit and a/d conversion stop bit are set to "1" at the same time, the a/d conversion stop bit has priority. (7) adcstt (a/d conversion start) bit (bit 7) this bit is used to start scan mode operation of the a/d converter in software. only when a software trigger has been selected with the adcsel (a/d conversion start trigger select) bit, setting this bit to "1" causes a/ d conversion to start. if the a/d conversion start bit and a/d conversion stop bit are set to "1" at the same time, the a/d conversion stop bit has priority. if this bit is set to "1" again while performing scan mode conversion, special operation mode ?conversion restart? is turned on, so that scan mode operation is restarted using the contents set by a/d scan mode registers 0 and 1. if this bit is set to "1" again while performing a/d conversion in single mode, special operation mode ?scan mode start after single mode execution? is turned on, so that scan mode operation starts subsequently after single mode has finished.
a/d converter 11-24 11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.2 a/d converter related registers 11.2.5 a/d scan mode register 1 a/d0 scan mode register 1 (ad0scm1) b bit name function r w 8 no function assigned. fix to "0." 00 9 adcspd (note 1) 0: normal speed r w a/d conversion speed select bit 1: double speed 10 adcshsl 0: disable sample-and-hold r w a/d conversion method select bit 1: enable sample-and-hold 11 adcshspd (note 2) 0: normal sample-and-hold r w a/d sample-and-hold conversion speed select bit 1: fast sample-and-hold 12?15 anscan r w a/d scan loop select bit ?b0000?1111 (channels 0?15) (i = 0) 0000: converting adiin0 0001: converting adiin1 0010: converting adiin2 0011: converting adiin3 0100: converting adiin4 0101: converting adiin5 0110: converting adiin6 0111: converting adiin7 1000: converting adiin8 1001: converting adiin9 1010: converting adiin10 1011: converting adiin11 1100: converting adiin12 1101: converting adiin13 1110: converting adiin14 1111: converting adiin15 note 1: the a/d conversion speed is determined by a combination of adcspd, adcshsl and adcshspd bits and the a/d conversion speed control register ad0cvsd2 and ad0cvsd bits. note 2: setting of this bit is effective when the sample-and-hold function is enabled by adcshsl bit. a/d scan mode register 1 is used to select operation mode, conversion speed and scan loop when the a/d converter is operating in scan mode. the channels selected with the scan loop select bit are scanned sequen- tially beginning with channel 0 (n-channel scan). (1) adcspd (a/d conversion speed select) bit (bit 9) this bit selects an a/d conversion speed when the a/d converter is operating in scan mode. setting this bit to "0" selects normal speed, and setting this bit to "1" selects double speed. (2) adcshsl (a/d conversion method select) bit (bit 10) this bit enables or disables the sample-and-hold function when the a/d converter is operating in scan mode. setting this bit to "0" disables the sample-and-hold function, and setting this bit to "1" enables the sample-and-hold function. b8 9 1011121314b15 adcspd adcshsl adcshspd anscan 00000000
a/d converter 11 11-25 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.2 a/d converter related registers (3) adcshspd (a/d sample-and-hold conversion speed select) bit (bit 11) when the a/d converter?s sample-and-hold function is enabled, this bit selects a conversion speed. when this bit is "0," the conversion speed is the same as normal a/d conversion speed. when this bit is "1," conversion is performed at a speed faster than normal a/d conversion speed. setting of this bit has no effect if the sample-and-hold function is disabled by setting the adcshsl (a/d conversion method select) bit to "0." for details about the conversion time, see section 11.3.4, ?calculating the a/d conversion time.? (4) anscan (a/d scan loop select) bits (bits 12?15) the anscan (a/d scan loop select) bits set the channels to be scanned during scan mode of the a/d converter. the anscan (a/d scan loop select) bits when accessed for read during scan operation serve as a status register indicating the channel being scanned. the value read from these bits during single mode is always b?0000. when it is read out by one shot mode after scan operation is compeleted, the channel value changed last time is read out. if a/d conversion is stopped by setting a/d scan mode register 0 adcstp (a/d conversion stop) bit to "1" while executing scan mode, the value read from these bits indicates the channel whose a/d conversion has been canceled. also, if read during single mode conversion of special operation mode ?forcible single mode execution during scan mode,? the value of these bits indicates the channel whose a/d conversion has been canceled in the middle of scan.
a/d converter 11-26 11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.2.6 a/d conversion speed control register a/d0 conversion speed control register (ad0cvscr) b bit name function r w 8?13 no function assigned. fix to "0." 00 14 adcvsd2 0: 2bclk mode r w a/d conversion speed control bit 2 1: setting prihibited 15 adcvsd (note 1) 0: slow mode r w a/d conversion speed control bit 1: fast mode note 1: the a/d conversion speed is determined by a combination of ad0cvsd and ad0cvsd2 bits and a/d0 single mode register 1?s adsspd bit during single mode, or a combination of ad0cvsd and ad0cvsd2 bits and a/d scan mode register 1?s adcspd bit during scan mode. the a/d conversion speed control register controls the a/d conversion speed during single and scan modes of the a/d converter. the a/d conversion speed is determined in combination with the conversion speed select bits (double/normal) in a/d single mode register 1 and a/d scan mode register 1. b8 9 1011121314b15 adcvsd2 adcvsd 00000000 11.2 a/d converter related registers
a/d converter 11 11-27 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.2 a/d converter related registers 11.2.7 a/d disconnection detection assist function control register a/d0 disconnection detection assist function control register (ad0ddacr) b bit name function r w 0?6 no function assigned. fix to "0." 00 7 adddaen (note 1) 0: disable a/d disconnection detection assist function r w a/d disconnection detection assist function enable bit 1: enable a/d disconnection detection assist function note 1: for the a/d disconnection detection assist function to be enabled, the conversion start state (discharge or precharge) must be set using the a/d disconnection detection assist method select register after setting the adddaen bit to "1." the a/d disconnection detection assist function control register is used to enable or disable the content of the a/d disconnection detection assist method select register. note: ? if any analog input wiring is disconnected, the conversion result varies depending on the circuits fitted external to the chip. this function must be fully evaluated in the actual application system before it can be used. b0123456b7 adddaen 00000000
a/d converter 11-28 11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.2 a/d converter related registers 11.2.8 a/d disconnection detection assist method select register a/d0 disconnection detection assist method select register (ad0ddasel) b01234567891011121314b15 addda sel0 addda sel1 addda sel2 addda sel3 addda sel4 addda sel6 addda sel7 addda sel8 addda sel9 addda sel10 addda sel11 addda sel12 addda sel13 addda sel14 addda sel15 addda sel5 ???????????????? b bit name function r w 0 adddasel0 0: discharge before conversion r w channel 0 disconnection detection assist method select bit 1: precharge before conversion 1 adddasel1 channel 1 disconnection detection assist method select bit 2 adddasel2 channel 2 disconnection detection assist method select bit 3 adddasel3 channel 3 disconnection detection assist method select bit 4 adddasel4 channel 4 disconnection detection assist method select bit 5 adddasel5 channel 5 disconnection detection assist method select bit 6 adddasel6 channel 6 disconnection detection assist method select bit 7 adddasel7 channel 7 disconnection detection assist method select bit 8 adddasel8 channel 8 disconnection detection assist method select bit 9 adddasel9 channel 9 disconnection detection assist method select bit 10 adddasel10 channel 10 disconnection detection assist method select bit 11 adddasel11 channel 11 disconnection detection assist method select bit 12 adddasel12 channel 12 disconnection detection assist method select bit 13 adddasel13 channel 13 disconnection detection assist method select bit 14 adddasel14 channel 14 disconnection detection assist method select bit 15 adddasel15 channel 15 disconnection detection assist method select bit notes: ? this register must always be accessed in halfwords. ? for these bits to be enabled, the adddaen bit (a/d disconnection detection assist function control register bit 7) must be set to "1" before setting these bits. in order to prevent the a/d conversion result from being affected by the analog input voltage leakage from any preceding channel, the a/d disconnection detection assist method select register is used to control the conversion start state by selecting whether to discharge or precharge the chopper amp capacitor before start- ing regular conversion operation.
a/d converter 11 11-29 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.2 a/d converter related registers figure 11.2.1 shows an example of a/d disconnection detection assist method in which the conversion start state is set to the avcc0 side (i.e., precharge before conversion is selected). figure 11.2.2 shows an example of a/d disconnection detection assist method in which the conversion start state is set to the avss0 side (i.e., discharge before conversion is selected). figure 11.2.1 example of a/d disconnection detection on avcc0 side (precharge before conversion selected) figure 11.2.2 example of a/d disconnection detection on avss0 side (discharge before conversion selected) analog input adiinn precharge broken wire r c precharge control signal chopper amp capacitor discharge control signal typical external circuit (note 1) on off note 1: in case of broken wire, the conversion result varies with external circuits. therefore, careful evaluation is required before this function can be used. adddaen i=0 n=0-15 analog input adiinn discharge broken wire rc precharge control signal chopper amp capacitor discharge control signal typical external circuit (note 1) off on note 1: in case of broken wire, the conversion result varies with external circuits. therefore, careful evaluation is required before this function can be used. adddaen i=0 n=0-15
a/d converter 11-30 11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.2 a/d converter related registers figure 11.2.3 a/d disconnection detection assist data (when discharge before conversion selected) figure 11.2.4 a/d disconnection detection assist data (when precharge before conversion selected) disconnection detection voltage (without sample-and-hold) 0 200 400 600 800 1000 1200 1400 1600 1800 2000 a/d conversion cycle [khz] voltage on disconnected port [mv] scan mode: disconnection detection enabled scan mode: disconnection detection disabled 0 20 40 60 80 100 120 note:  reference value when set as f(bclk)=40mhz, set 2bclk mode in adcvsd2 bit of a/d0 conversion speed control register. 2900 3100 3300 3500 3700 3900 4100 4300 4500 4700 4900 5100 a/d conversion cycle [khz] voltage on disconnected port [mv] disconnection detection voltage (without sample-and-hold) note:  reference value when set as f(bclk)=40mhz, set 2bclk mode in adcvsd2 bit of a/d0 conversion speed control register. 0 20 40 60 80 100 120 scan mode: disconnection detection enabled scan mode: disconnection detection disabled
a/d converter 11 11-31 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.2 a/d converter related registers 11.2.9 a/d successive approximation register a/d0 successive approximation register(ad0sar) b bit name function r w 0?5 no function assigned. fix to "0." 00 6?15 adsar ? a/d successive approximation value (a/d conversion mode) r w a/d successive approximation value/comparison value ? comparison value (comparator mode) note: ? this register must always be accessed in halfwords. the a/d successive approximation register (adsar) is used to read the conversion result of the a/d con- verter when operating in a/d conversion mode or write a comparison value when operating in comparator mode. in a/d conversion mode, the successive approximation method is used to perform a/d conversion. with this method, the reference voltage vref0 and analog input voltages are sequentially compared bitwise beginning with the high-order bit, and the comparison result is set in the a/d successive approximation register (adsar) bits 6?15. when the a/d conversion has finished, the value of this register is transferred to the 10-bit a/d data register (addtn) corresponding to each converted channel. when this register is accessed for read in the middle of a/d conversion, the value read from the register indicates the intermediate result of conversion. in comparator mode, this register is used to write a comparison value (the voltage with which to ?comparate?). simultaneously with a write to this register, the a/d converter starts comparing the voltage on the analog input pin selected with a/d single mode register 1 and the value written in this register. after comparate operation, the result is stored in the a/d comparate data register (adcmp). use the calculation formula shown below to find the comparison value to be written to the a/d successive approximation register (adsar) during comparator mode. comparison value = h?3ff x comparate comparison voltage [v] vref0 input voltage [v] b01234567891011121314b15 adsar 0 00000??????????
a/d converter 11-32 11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.2 a/d converter related registers 11.2.10 a/d comparate data register a/d0 comparate data register (ad0cmp) b01234567891011121314b15 ad cmp0 ad cmp1 ad cmp2 ad cmp3 ad cmp4 ad cmp6 ad cmp7 ad cmp8 ad cmp9 ad cmp10 ad cmp11 ad cmp12 ad cmp13 ad cmp14 ad cmp15 ad cmp5 ???????????????? b bit name function r w 0?15 adcmp0?adcmp15 (note 1) 0: analog input voltage > comparison voltage r ? a/d comparate result flag 1: analog input voltage < comparison voltage note 1: during comparator mode, the bits in this register correspond one for one to channels 0?15. note: ? this register must always be accessed in halfwords. when comparator mode is selected using the a/d single mode register 1 adsmsl (a/d conversion mode select) bit, the selected analog input voltage is compared with the value written to the a/d successive approxi- mation register and the result is stored in the corresponding bit of this comparate data register. the bit or flag in this register is "0" when analog input voltage > comparison voltage, or "1" when analog input voltage < comparison voltage.
a/d converter 11 11-33 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.2.11 10-bit a/d data registers 10-bit a/d0 data register 0(ad0dt0) 10-bit a/d0 data register 1(ad0dt1) 10-bit a/d0 data register 2(ad0dt2) 10-bit a/d0 data register 3(ad0dt3) 10-bit a/d0 data register 4(ad0dt4) 10-bit a/d0 data register 5(ad0dt5) 10-bit a/d0 data register 6(ad0dt6) 10-bit a/d0 data register 7(ad0dt7) 10-bit a/d0 data register 8(ad0dt8) 10-bit a/d0 data register 9(ad0dt9) 10-bit a/d0 data register 10(ad0dt10) 10-bit a/d0 data register 11(ad0dt11) 10-bit a/d0 data register 12(ad0dt12) 10-bit a/d0 data register 13(ad0dt13) 10-bit a/d0 data register 14(ad0dt14) 10-bit a/d0 data register 15(ad0dt15) b01234567891011121314b15 addt0-addt15 000000?????????? b bit name function r w 0?5 no function assigned. 00 6?15 addt0-addt15 10-bit a/d conversion result r ? 10-bit a/d data note: ? these registers must always be accessed in halfwords. during single mode, the 10-bit a/d data registers are used to store the result of a/d conversion performed on each corresponding channel. during single-shot or continuous scan mode, the content of the a/d successive approximation register is transferred to the 10-bit a/d data register for the corresponding channel when a/d conversion on each chan- nel has finished. each 10-bit a/d data register retains the last conversion result until they receive the next conversion result transferred, allowing the content to be read out at any time. 11.2 a/d converter related registers
a/d converter 11-34 11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.2.12 8-bit a/d data registers 8-bit a/d0 data register 0(ad08dt0) 8-bit a/d0 data register 1(ad08dt1) 8-bit a/d0 data register 2(ad08dt2) 8-bit a/d0 data register 3(ad08dt3) 8-bit a/d0 data register 4(ad08dt4) 8-bit a/d0 data register 5(ad08dt5) 8-bit a/d0 data register 6(ad08dt6) 8-bit a/d0 data register 7(ad08dt7) 8-bit a/d0 data register 8(ad08dt8) 8-bit a/d0 data register 9(ad08dt9) 8-bit a/d0 data register 10(ad08dt10) 8-bit a/d0 data register 11(ad08dt11) 8-bit a/d0 data register 12(ad08dt12) 8-bit a/d0 data register 13(ad08dt13) 8-bit a/d0 data register 14(ad08dt14) 8-bit a/d0 data register 15(ad08dt15) b bit name function r w 8?15 ad8dt0-ad8dt15 8-bit a/d conversion result r ? 8-bit a/d data the a/d data register is used to store the 8-bit conversion data for the a/d converter. during single mode, the 8-bit a/d data registers store the result of a/d conversion performed on each corre- sponding channel. during single-shot or continuous scan mode, the content of the a/d successive approximation register is transferred to the 8-bit a/d data register for the corresponding channel when a/d conversion on each channel has finished. each 8-bit a/d data register retains the last conversion result until they receive the next conver- sion result transferred, allowing the content to be read out at any time. b8 9 1011121314b15 ad8dt0-ad8dt15 ???????? 11.2 a/d converter related registers
a/d converter 11 11-35 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.3 functional description of a/d converter 11.3.1 how to find analog input voltages the a/d converter performs a/d conversion using a 10-bit successive approximation method. the equation shown below is used to calculate the actual analog input voltage from the digital value obtained by executing a/ d conversion. analog input voltage [v] = a/d conversion result x vref input voltage [v] 1,024 the a/d converter is a 10-bit converter, providing a resolution of 1,024 discrete voltage levels. because the reference voltage for the a/d converter is the voltage applied to the vref0 pin, make sure that an exact and stable constant-voltage power supply is connected to vref0. also make sure the analog circuit power supply and ground (avcc0, avss0) are separated from those of the digital circuit, with sufficient noise prevention measures incorporated. for details about the conversion accuracy, see section 11.3.5, ?accuracy of a/d conversion.? 11.3 functional description of a/d converter figure 11.3.1 outline block diagram of the successive approximation-type a/d converter unit adiin0 adiin1 adiin2 adiin3 adiin4 adiin5 adiin6 adiin7 selector avssi vrefi 10-bit a/di successive approximation register (adisar) 10-bit a/di data register a/di comparate data register a/d control circuit 10-bit d/a converter comparator adiin8 adiin9 a diin10 a diin11 a diin12 a diin13 a diin14 a diin15 adicmp adidt0?15 successive approximation-type a/d converter unit avcci vref vin sample-and-hold control circuit i=0
a/d converter 11-36 11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.3.2 a/d conversion by successive approximation method the a/d converter use an a/d conversion start trigger (software or hardware) as they start a/d conversion. once a/d conversion begins, the following operation is automatically performed. 1. during single mode, a/d single mode register 0?s a/d conversion/comparate completion bit is cleared to "0." during scan mode, a/d scan mode register 0?s a/d conversion completion bit is cleared to "0." 2. the content of the a/d successive approximation register is cleared to h?0000. 3. the a/d successive approximation register?s most significant bit (bit 6) is set to "1." 4. the comparison voltage, vref (note 1), is fed from the d/a converter into the comparator. 5. the comparison voltage, vref, and the analog input voltage, vin, are compared, and the comparison result will be stored in bit 6. if vref < vin, then bit 6 = "1" if vref > vin, then bit 6 = "0" 6. operations in 3 through 5 above are executed for all other bits from bit 7 to bit 15. 7. the value stored in the a/d successive approximation register by the time comparison for bit 15 has finished is held in it as the a/d conversion result. 11.3 functional description of a/d converter 1st comparison b6 7 8 9 10 11 12 13 14 b15 100000 0000 n9 1 0 0 0 0 0 0 0 0 n9n81000 0000 n9 n8 n7 n6 n5 n4 n3 n2 n1 1 2nd comparison 3rd comparison 10th comparison conversion completed n9 n8 n7 n6 n5 n4 n3 n2 n1 n0 result of 1st comparison result of 2nd comparison if vref > vin, then nx = 0 if vref < vin, then nx = 1 a/d successive approximation register (adisar) i = 0 figure 11.3.2 changes of the a/d successive approximation register during a/d convert operation note 1: the comparison voltage, vref (the voltage fed from the d/a converter into the comparator), is determined according to changes of the a/d successive approximation register content. shown below are the equations used to calculate the comparison voltage, vref. ? if the a/d successive approximation register content = 0 vref [v] = 0 ? if the a/d successive approximation register content = 1 to 1,023 vref [v] = (reference voltage vref0 / 1,024) (a/d successive approximation register content ? 0.5)
a/d converter 11 11-37 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.3 functional description of a/d converter the conversion result is stored in the 10-bit a/d data register (ad0dtn) corresponding to each converted channel. there is also an 8-bit a/d data register (ad08dtn) for each channel, from which the 8 high-order bits of the 10-bit a/d conversion result can be read out. the following shows the procedure for a/d conversion by a successive approximation method in each operation mode. (1) single mode the convert operation stops when comparison for the a/d successive approximation register bit 15 is completed. the content (a/d conversion result) of the a/d successive approximation register is trans- ferred to the 10-bit a/d data registers 0?15 for the converted channel. (2) single-shot scan mode when comparison for the a/d successive approximation register bit 15 on a specified channel is completed, the content of the a/d successive approximation register is transferred to the corresponding 10-bit a/d data registers 0?15, and the convert operations in said steps 2 to 7 are reexecuted for the next channel to be converted. in single-shot scan mode, the convert operation stops when a/d conversion in one specified scan loop is completed. (3) continuous scan mode when comparison for the a/d successive approximation register bit 15 on a specified channel is completed, the content of the a/d successive approximation register is transferred to the corresponding 10-bit a/d data reg- isters 0?15, and the convert operations in said steps 2 to 7 are reexecuted for the next channel to be converted. in continuous scan mode, the convert operation is executed continuously until scan operation is forcibly termi- nated by setting the a/d conversion stop bit (scan mode register 0 bit 6) to "1." 11.3.3 comparator operation when comparator mode (single mode only) is selected, the a/d converter functions as a comparator which compares analog input voltages with the comparison voltage that is set by software. when a comparison value is written to the successive approximation register, the a/d converter starts ?comparating? the analog input voltage selected by the single mode register 1 analog input select bit with the value written into the successive approximation register. once comparate begins, the following operation is automatically executed. 1. the a/d conversion/comparate completion bit in the a/d single mode register 0 is cleared to "0." 2. the comparison voltage, vref (note 1), is fed from the d/a converter into the comparator. 3. the comparison voltage, vref, and the analog input voltage, vin, are compared, and the comparison result will be stored in the comparate result flag for the corresponding channel. if vref < vin, then the comparate result flag = 0 if vref > vin, then the comparate result flag = 1 4. the comparate operation is stopped after storing the comparison result. the comparison result is stored in the a/d comparate data register (ad0cmp)?s corresponding bit. note 1: the comparison voltage, vref (the voltage fed from the d/a converter into the comparator), is determined according to changes of the a/d successive approximation register content. shown below are the equations used to calculate the comparison voltage, vref. ? if the a/d successive approximation register content = 0 vref [v] = 0 ? if the a/d successive approximation register content = 1 to 1,023 vref [v] = (reference voltage vref0 / 1,024) x (a/d0 successive approximation register content ? 0.5)
a/d converter 11-38 11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.3 functional description of a/d converter 11.3.4 calculating the a/d conversion time the a/d conversion time is expressed by the sum of dummy cycle time and actual execution cycle time. the following shows each time factor necessary to calculate the conversion time. 1. start dummy time a time from when the cpu executed the a/d conversion start instruction to when the a/d converter starts a/d conversion 2. a/d conversion execution cycle time if sample-and-hold is enabled, the sampling time is included in this execution cycle time. 3. comparate execution cycle time 4. end dummy time a time from when the a/d converter has finished a/d conversion to when the cpu can stably read out the conversion result from the a/d data register. 5. scan to scan dummy time a time during single-shot or continuous scan mode from when the a/d converter has finished a/d conversion on a channel to when it starts a/d conversion on the next channel. the equation to calculate the a/d conversion time is as follows: a/d conversion time = start dummy time + execution cycle time (+ scan to scan dummy time + execution cycle time + scan to scan dummy time + execution cycle time + scan to scan dummy time .... + execution cycle time) + end dummy time note: ? enclosed in ( ) are the conversion time required for the second and subsequent channels to be converted in scan mode. (1) calculating the conversion time during a/d conversion mode the following schematically shows the method for calculating the conversion time during a/d conversion mode. start dummy execution cycle a/d conversion start trigger convert operation starts transferred to the a/d data register end dummy start dummy execution cycle execution cycle completed execution cycle end dummy scan to scan dummy scan to scan dummy (channel 0) (channel 1) (last channel) figure 11.3.3 conceptual diagram of a/d conversion time
a/d converter 11 11-39 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.3 functional description of a/d converter (2) calculating the conversion time when sample-and-hold is enabled the following schematically shows the method for calculating the conversion time when the sample-and- hold function is enabled. start dummy execution cycle a /d conversion start trigger convert operation starts end dummy completed sampling time figure 11.3.4 conceptual diagram of a/d conversion time when sample-and-hold is enabled table 11.3.1 conversion clock periods in a/d conversion mode when sample-and-hold is disabled or normal sample-and-hold is enabled (shortest period) unit: bclk conversion speed start dummy execution cycle end dummy scan to scan dummy (note 1) (note 2) 2bclk mode slow mode normal speed 8 588 2 8 double speed 8 336 2 8 fast mode normal speed 8 252 2 8 double speed 8 168 2 8 note 1: the same applies to both software and hardware triggers. note 2: only during scan mode operation, execution time per channel is added. table 11.3.2 conversion clock periods in a/d conversion mode when fast sample-and-hold is enabled (shortest period) unit: bclk conversion speed start dummy execution cycle end dummy scan to scan dummy (note 1) (note 2) 2bclk mode slow mode normal speed 8 372 2 8 double speed 8 192 2 8 fast mode normal speed 8 180 2 8 double speed 8 96 2 8 note 1: the same applies to both software and hardware triggers. note 2: only during scan mode operation, execution time per channel is added.
a/d converter 11-40 11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 table 11.3.3 conversion clock periods in comparate mode (shortest period) unit: bclk conversion speed start dummy execution cycle end dummy 2bclk mode slow mode normal speed 8 84 2 double speed 8 48 2 fast mode normal speed 8 36 2 double speed 8 24 2 start dummy execution cycle a /d conversion start trigger convert operation starts transferred to the comparate data register end dummy completed (3) calculating the conversion time during comparator mode the following schematically shows the method for calculating the conversion time during comparator mode. figure 11.3.5 conceptual diagram of a/d conversion time during comparator mode 11.3 functional description of a/d converter
a/d converter 11 11-41 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.3 functional description of a/d converter table 11.3.4 conversion clock periods for simultaneous sampling when normal sample-and-hold is enabled (shortest period) unit: bclk conversion speed start dummy execution channel to execution end (note 1) cycle 1 channel dummy cycle 2 dummy 2bclk mode slow mode normal speed 8 588 8 588 2 double speed 8 336 8 336 2 fast mode normal speed 8 252 8 252 2 double speed 8 168 8 168 2 note 1: the same applies to both software and hardware triggers. table 11.3.5 conversion clock periods for simultaneous sampling when fast sample-and-hold is enabled (shortest period) unit: bclk conversion speed start dummy execution channel to execution end (note 1) cycle 1 channel dummy cycle 2 dummy 2bclk mode slow mode normal speed 8 372 8 372 2 double speed 8 192 8 192 2 fast mode normal speed 8 180 8 180 2 double speed 8 96 8 96 2 note 1: the same applies to both software and hardware triggers. (4) calculating the conversion time during simultaneous sampling conversion the following schematically shows the method for calculating the conversion time during the simultaneous sampling conversion. figure 11.3.6 conceptual diagram of a/d conversion time during simultaneous sampling conversion start dummy end dummy sampling time sampling dummy time channel to channel dummy execution cycle 1 start trigger convert operation starts completed execution cycle 2
a/d converter 11-42 11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.3 functional description of a/d converter (5) total a/d conversion time a total a/d conversion time in various modes are shown in the table below. table 11.3.6 a/d conversion time (total time) unit: bclk conversion start method conversion speed conversion mode (note 1) conversion time when fast sample- and-hold enabled software and 2bclk slow normal single mode 598 382 hardware triggers mode mode speed single-shot scan, (596 n)+2 (380 n)+2 (note 2) n-channel scan/continuous mode comparator mode 94 94 simultaneous sampling 1194 762 double single mode 346 202 speed single-shot scan, (344 n)+2 (200 n)+2 n-channel scan/continuous mode comparator mode 58 58 simultaneous sampling 690 402 fast normal single mode 262 190 mode speed single-shot scan, (260 n)+2 (188 n)+2 n-channel scan/continuous mode comparator mode 46 46 simultaneous sampling 522 378 double single mode 178 106 speed single-shot scan, (176 n)+2 (104 n)+2 n-channel scan/continuous mode comparator mode 34 34 simultaneous sampling 354 210 note 1: for single mode and comparator mode, this indicates an a/d conversion or comparate time per channel. for single- shot and continuous scan modes, this indicates an a/d conversion time per scan loop, and for simultaneous sampling, this indicates total time for the first and second conversion. note 2: this indicates a time from when a register write cycle has finished to when an a/d conversion completion interrupt request is generated, or a time from when an event bus or other mjt event has occurred to when an a/d conversion completion interrupt request is generated. note: ? during 2bclk mode, 1-2bclk cycle(s) will be additionally generated at each start/end dummy cycle to synchronize with the clock.
a/d converter 11 11-43 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.3.5 accuracy of a/d conversion the accuracy of the a/d converter is indicated by an absolute accuracy. the absolute accuracy refers to a difference expressed by lsb between the output code obtained by a/d converting the analog input voltages and the output code expected for an a/d converter with ideal characteristics. the analog input voltages used during accuracy measurement are the midpoint values of the voltage width in which an a/d converter with ideal characteristics produces the same output code. if vref0 = 5.12 v, for example, the width of 1 lsb for a 10-bit a/d converter is 5 mv, so that 0 mv, 5 mv, 10 mv, 15 mv, 20 mv, 25 mv and so on are selected as midpoints of the analog input voltage. if an a/d converter is said to have the absolute accuracy of 2 lsb, it means that if the input voltage is 25 mv, for example, the output code expected for an a/d converter with ideal characteristics is h?005, and the actual a/ d conversion result is in the range of h?003 to h?007. note that the absolute accuracy includes zero and full- scale errors. when actually using the a/d converter, the analog input voltages are in the range of avss0 to vref0. note, however, that low vref0 voltages result in a poor resolution. note also that output codes for the analog input voltages from vref0 to avcc0 are always h?3ff. h'000 h'001 h'002 h'003 h'3fe h'3ff a/d conversion result (hexade cimal) analog input voltage [v] vref0 1024 x 1 ideal a/d conversion characteristics a/d conversion characteristics with infinite resolution 0 vref0 1024 x 2 vref0 1024 x 3 vref0 1024 x 1022 vref0 1024 x 1023 vref0 1024 x 1024 figure 11.3.7 ideal a/d conversion characteristics relative to the 10-bit a/d converter?s analog input voltages 11.3 functional description of a/d converter
a/d converter 11-44 11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.3 functional description of a/d converter h'000 h'001 h'002 h'003 h'004 h'005 h'006 output code (hexadecimal) 0 analog input voltage [mv] ideal a/d conversion characteristics a/d conversion characteristics with infinite resolution 5 10152025303540455055 h'007 h'008 h'009 h'00a h'00b +2 lsb -2 lsb figure 11.3.8 absolute accuracy of a/d converter
a/d converter 11 11-45 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.4 inflow current bypass circuit 11.4 inflow current bypass circuit if when the a/d converter is a/d converting a selected analog input an overvoltage exceeding the converter?s absolute maximum rating is applied to any unselected analog input, the selector for the unselected analog input is inadvertently turned on by that overvoltage. this causes current to leak to the selected analog input, and the accuracy of the a/d conversion result is thereby deteriorated. the inflow current bypass circuit fixes the internal signals of unselected analog inputs to the gnd level, so that when an overvoltage is applied, this circuit lets the current flow into the gnd and prevents it from leaking to the selected analog input. that way, the accuracy of the a/d conversion result is prevented from being deteriorated by overvoltages. this circuit is always active while the a/d converter is operating, and does not need to be controlled in software. unselected channel selected channel to the internal logic of the a/d converte r off on off on on off fixed to gnd level external input latched into assist circuit figure 11.4.1 configuration of the inflow current bypass circuit figure 11.4.2 example of an inflow current bypass circuit where avcc0 + 0.7 v or more is applied unselected channel selected channel to the internal logic of the a/d converte r off on off on on off assist circuit a vcc0 + 0.7 v or more leakage current generated sensor input leakage current generated unaffected by leakage
a/d converter 11-46 11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.4 inflow current bypass circuit figure 11.4.3 example of an inflow current bypass circuit where gnd ? 0.7 v or less is applied table 11.4.1 accuracy errors (reference values) when current is injected into ad0in0 note: ? since the influence of the accuracy on a contiguity channel becomes large, do not inject an over-current into the channel selected in the a/d0 simultaneous sampling analog input selection bit (adsel2) of the a/d single mode register 2 (adsim2). (no channel is selected if "0000"to"1011" is set up in 2 bit of adsel(s).) unselected channel selected channel to the internal logic of the a/d converte r off on off on on off assist circuit gnd - 0.7v or less leakage current generated sensor input unaffected by leakage leakage current generated ad0in0 ad0in1 ad0in2 ad0in3 ad0in4 ad0i n5 ad0in6 ad0in7 ad0in8 ad0in9 ad0in10 a d0in11 ad0in12 ad0in13 ad0in14 ad0in15 2ma 422222222222222 1ma 222222222222222 0ma 222222222222222 -1ma 122222222222222 -2ma 022222222222222 accuracy error on overcurrent injected ports (unit: lsb) analog input pin injection current
a/d converter 11 11-47 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 11.5.1 internal equivalent circuit of the analog input part 11.5 notes on the a/d converter ? forcible termination during scan operation if a/d conversion is forcibly terminated by setting the a/d conversion stop bit (adcstp) to "1" during scan mode operation and the a/d data register for the channel that was in the middle of conversion is accessed for read, the read value shows the last conversion result that had been transferred to the data register before the conversion was forcibly terminated. ? modification of the a/d converter related registers if the content of any register?a/d conversion interrupt control register, single or scan mode registers or a/d successive approximation register, except the a/d conversion stop bit?is modified in the middle of a/d conver- sion, the conversion result cannot be guaranteed. therefore, do not modify the contents of these registers while a/d conversion is in progress, or be sure to restart a/d conversion if register contents have been modified. ? handling of analog input signals when using the a/d converter with its sample-and-hold function disabled, make sure the analog input level is fixed during a/d conversion. ? a/d conversion completed bit read timing to read the a/d conversion completed bit (the single mode register 0 adscmp bit or the scan mode register 0 adccmp bit), as well as the a/d simultaneous sampling status bit (the a/d0 single mode register 2 adsh2st bit) immediately after a/d conversion has started or has been terminated by the a/d conversion stop bit, be sure to adjust the timing 6 bclk periods by performing a dummy read of their registers before read. ? regarding the analog input pins figure 11.5.1 shows the internal equivalent circuit of the a/d converter?s analog input part. to obtain accurate a/d conversion results, make sure the internal capacitor c2 of the a/d conversion circuit is charged up within a predetermined time (sampling time). to meet this sampling time requirement, it is recommended that a stabilizing capacitor c1 be connected external to the chip. the method for determining the necessary value of this external stabilizing capacitor with respect to the output impedance of an analog output device is described below. also, an explanation is made of the case where the output impedance of an analog output device is low and the external stabilizing capacitor c1 is unnecessary. ? rated value of the absolute accuracy the rated value of the absolute accuracy is the actual performance value of the microcomputer alone, with influences of the power supply wiring and noise on the board not taken into account. when designing the application system, use caution for the board layout by, for example, separating the analog circuit power supply and ground (avcc, avss and vref) from those of the digital circuit and incorporating measures to prevent the analog input pins from being affected by noise, etc. from other digital signals. 11.5 notes on the a/d converter comparator inside the microcomputer 10-bit a/d successive approximation register (adisar) 10-bit d/a converter vref0 v2 c2 cin : input pin capacitance (approx. 10 pf) r2 : parasitic resistance of the selector (1-2 k ? ) c2 : comparator capacitance (approx. 2.9 pf) selector r2 i i1 i2 adinn c1 e r1 c1 : parasitic capacitance of the board + stabilizing capacitance r1 : resistance of analog output device analog output device cin e : voltage of analog output device v2 : voltage across c2 vref0 : analog reference voltage
a/d converter 11-48 11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 thus, for a 10-bit resolution a/d converter where c2 = 2.9 pf, c1 is 0.06 f or more. use this value for reference when setting up c1. (b) maximum value of the output impedance r1 when c1 is not added if the external capacitor c1 in figure 11.5.1 is not used, examination must be made to see if the analog output device can fully charge c2 within a predetermined time. first, the equation to find i2 when c1 in figure 11.5.1 does not exist is shown below. i2 = c2(e - v2) exp { - t } ------------------------ eq. b-1 cin r1+c2(r1+r2) cin r1+c2(r1+r2) 11.5 notes on the a/d converter (a) example for calculating the external stabilizing capacitor c1 (addition of this capacitor is recommended) assuming the r1 in figure 11.5.1 is infinitely large and that the current necessary to charge the internal capacitor c2 is supplied from c1, if the potential fluctuation, vp, caused by capacitance division of c1 and c2 is to be within 0.1 lsb, then what amount of capacitance c1 should have. for a 10-bit a/d converter where vref0 is 5.12 v, 1 lsb determination voltage = 5.12 v / 1,024 = 5 mv. the potential fluctuation of 0.1 lsb means a 0.5 mv fluctuation. vp is also obtained by the equation below: the relationship between the capacitance division of c1 and c2 and the potential fluctuation, vp, is obtained by the equation below: c2 c1 + c2 vp = (e - v2) eq. a-1 1 2 vp = vp1 eq. a-2 i vref0 10 2 x - 1 i = 0 where vp1 = potential fluctuation in the first a/d conversion performed and x = 10 for a 10-bit resolution a/d converter when eq. a-1 and eq. a-2 are solved, the following results: e - v2 vp1 c1 = c2 { - 1 } eq. a-3 1 2 c1 > c2 { 10 2 - 1 } eq. a-4 i x - 1 i = 0 adini conversion time for the first bit sampling time comparison time repeated (10 times) for 10 bits second bit sampling time when sample-and-hold is disabled * when sample-and-hold is enabled, the analog input is sampled for only the first bit. figure 11.5.2 a/d conversion timing diagram figure 11.5.2 shows an a/d conversion timing diagram. c2 must be charged up within the sampling time shown in this diagram. when the sample-and-hold function is disabled, the sampling time for the second and subsequent bits is about half that of the first bit. the sampling times at the respective conversion speeds are listed in the table 11.5.1. note that when the sample-and-hold function is enabled, the analog input is sampled for only the first bit.
a/d converter 11 11-49 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 11.5 notes on the a/d converter table 11.5.1 sampling time (in which c2 needs to be charged) conversion start method conversion speed sampling time sampling time for the for the first bit 2nd and subsequent bits 2bclk mode single mode slow mode normal speed 55bclk 27bclk (when sample-and-hold double speed 31bclk 15bclk disabled or normal fast mode normal speed 23bclk 11bclk sample-and-hod enabled double speed 15bclk 7bclk single mode slow m ode normal speed 55bclk ? (when fast s ample- double speed 31bclk ? and-hold enabled) fast mode normal speed 23bclk ? double speed 15bclk ? comparator mode slow m ode normal speed 55bclk ? double speed 31bclk ? fast mode normal speed 23bclk ? double speed 15bclk ? simultaneous slow mode normal speed 55bclk ? sampling double speed 31bclk ? fast mode normal speed 23bclk ? double speed 15bclk ? therefore, the time in which c2 needs to be charged is found from eq. b-1, as follows: sampling time (in which c2 needs to be charged) > cin r1 + c2(r1 + r2) eq. b-2 thus, the maximum value of r1 can be obtained as a criterion from the equation below. note, however, that for single mode (when sample-and-hold is disabled), the sampling time for the second and subsequent bits (c2 charging time) must be applied. c2 charging time - c2 r2 r1 < cin + c2
a/d converter 11-50 11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 this page is blank for reasons of layout. 11.5 notes on the a/d converter
chapter 12 serial interface 12.1 outline of serial interface 12.2 serial interface related registers 12.3 transmit operation in csio mode 12.4 receive operation in csio mode 12.5 notes on using csio mode 12.6 transmit operation in uart mode 12.7 receive operation in uart mode 12.8 fixed period clock output function 12.9 notes on using uart mode
12 serial interface 12-2 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 12.1 outline of serial interface the 32192/32195/32196 contains a total of six serial interface channels, sio0?sio5. channels sio0, sio1, sio4 and sio5 can be selected between csio mode (clock-synchronous serial interface) and uart mode (clock-asynchronous serial interface). channels sio2 and sio3 are uart mode only. ? csio mode (clock-synchronous serial interface) communication is performed synchronously with a transfer clock, using the same clock on both transmit and receive sides. the transfer data length can be selected within the range from 8 to 16 bits long. ? uart mode (clock-asynchronous serial interface) communication is performed at any transfer rate in any transfer data format. the transfer data length can be selected from 7, 8 and 9 bits. channels sio0?sio5 each have a transmit dma transfer and a receive dma transfer request. these serial interfaces, when combined with the internal dma controller (dmac), allow serial communication to be performed at high speed, as well as reduce the data communication load of the cpu. serial interface is outlined below. table 12.1.1 outline of serial interface item description number of channels csio mode/uart mode: 4 channels (sio0, sio1, sio4, sio5) uart only : 2 channels (sio2, sio3) clock during csio mode : internal clock or external clock as selected (note 1), clock polarity can be selected during uart mode : internal clock only transfer mode transmit half-duplex, receive half-duplex, transmit/receive full-duplex brg count source f(bclk), f(bclk)/8, f(bclk)/32, f(blck)/256 (note 2) (when internal clock selected) f(bclk)/2, f(bclk)/16, f(bclk)/64, f(bclk)/512 f(bclk): peripheral clock operating frequency data format csio mode : data length = selectable in the range of 8?16 bits order of transfer = selectable from lsb first or msb first uart mode : start bit = 1 bit character length = 7, 8 or 9 bits parity bit = added (odd, even) or not added stop bit = 1 or 2 bits order of transfer = selectable from lsb first or msb first baud rate csio mode : 152 bits/sec to 5 mbits/sec (when f(bclk) = 40 mhz/internal clock selected) (note 1) max 2.5 mbits/sec (when f(bclk) = 40 mhz/external clock selected) uart mode : 19 bits/sec to 2.5 mbits/sec (when f(bclk) = 40 mhz) error detection csio mode : overrun error only uart mode : overrun, parity and framing errors (occurrence of any of these errors is indicated by an error sum bit) fixed period clock when using sio0, sio1, sio4 and sio5 as uart mode, this function outputs a divided-by-2 brg output function clock from the sclk pin. note 1: the maximum input frequency of an external clock during csio mode is f(bclk)/16. note 2: if f(bclk) is selected as the count source, the brg set value is subject to limitations. 12.1 outline of serial interface
12 serial interface 12-3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 table 12.1.2 interrupt generation functions of serial interface serial interface interrupt request cause icu interrupt request sources sio0 transmit buffer empty or transmission finished sio0 transmit interrupt sio0 reception finished or receive error sio0 receive interrupt sio1 transmit buffer empty or transmission finished sio1 transmit interrupt sio1 reception finished or receive error sio1 receive interrupt sio2 transmit buffer empty or transmission finished sio2,3 transmit/receive interrupt (group interrupt) sio2 reception finished or receive error sio2,3 transmit/receive interrupt (group interrupt) sio3 transmit buffer empty or transmission finished sio2,3 transmit/receive interrupt (group interrupt) sio3 reception finished or receive error sio2,3 transmit/receive interrupt (group interrupt) sio4 transmit buffer empty or transmission finished sio4,5 transmit/receive interrupt (group interrupt) sio4 reception finished or receive error sio4,5 transmit/receive interrupt (group interrupt) sio5 transmit buffer empty or transmission finished sio4,5 transmit/receive interrupt (group interrupt) sio5 reception finished or receive error sio4,5 transmit/receive interrupt (group interrupt) note: ? the transmission-finished interrupt is effective when the internal clock is selected in uart or csio mode. table 12.1.3 dma transfer request generation functions of serial interface serial interface dma transfer request dmac input channels sio0 transmit buffer empty dma3, dma4 sio0 reception finished dma4 sio1 transmit buffer empty dma6 sio1 reception finished dma3, dma6 sio2 transmit buffer empty dma7 sio2 reception finished dma5 sio3 transmit buffer empty dma7, dma9 sio3 reception finished dma8 sio4 transmit buffer empty dma0 sio4 reception finished dma1 sio5 transmit buffer empty dma2 sio5 reception finished dma3 12.1 outline of serial interface
12 serial interface 12-4 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sclki0/sclko0 baud rate generator (brg) internal data bus csio mode when internal clock selected csio mode uart mode when internal clock selected 1/16 1/2 rxd0 txd0 receive interrupt request transmit/ receive control circuit sio0 transmit buffer register sio0 transmit shift register receive dma transfer request transmit interrupt request transmit dma transfer request to dma3, dma4 sio0 receive shift register sio0 receive buffer register when external clock selected when uart mode selected notes: ? when f(bclk) is selected as brg cout source, the brg set value is subjected to limitations.  sio2 and sio3 do not have the sclki/sclko function. sclki1/sclko1 to dma6 to the interrupt controller (icu) sio0 sio1 sio2 sio3 rxd1 txd1 transmit/ receive control circuit sio1 transmit shift register sio1 receive shift register to dma7 rxd2 txd2 transmit/ receive control circuit sio2 transmit shift register sio2 receive shift register to dma7, dma9 rxd3 txd3 transmit/ receive control circuit sio3 transmit shift register sio3 receive shift register receive interrupt request receive dma transfer request transmit interrupt request transmit dma transfer request receive interrupt request receive dma transfer request transmit interrupt request transmit dma transfer request receive interrupt request receive dma transfer request transmit interrupt request transmit dma transfer request to the interrupt controller (icu) to dma8 to dma5 to dma3, dma6 to dma4 to the interrupt controller (icu) bclk 1/2 clock divider 1/1 1/8 1/32 1/256 sio4 sio4 transmit shift register sio4 receive shift register receive interrupt request transmit interrupt request sio5 sio5 transmit shift register sio5 receive shift register rxd4 txd4 rxd5 txd5 receive interrupt request transmit interrupt request to the interrupt controller (icu) sclki4/sclko4 sclki5/sclko5 to dma0 receive dma transfer request transmit dma transfer request to dma1 to dma2 receive dma transfer request transmit dma transfer request to dma3 transmit/ receive control circuit transmit/ receive control circuit figure 12.1.1 block diagram of serial interfaces 12.1 outline of serial interface
12 serial interface 12-5 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 12.2 serial interface related registers shown below is a serial interface related register map. serial interface related register map (1/2) address +0 address +1 address see b0 b7 b8 b15 pages 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 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 12.2 serial interface related registers
12 serial interface 12-6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 12.2.1 sio interrupt related registers the sio interrupt related registers are used to control the interrupt request signals output from sio to the interrupt controller (icu), as well as select the source of each interrupt request. (1) interrupt request status bit this status bit is used to determine whether an interrupt is requested. when an interrupt request occurs, this bit is set in hardware (cannot be set in software). the status bit is cleared by writing "0." writing "1" has no effect; the bit retains the status it had before the write. because this bit is unaffected by the interrupt request mask bit, it can also be used to inspect the operating status of peripheral functions. in interrupt handling, make sure that within the grouped interrupt request status, only the status bit for the interrupt request that has been serviced is cleared. if the status bit for any interrupt request that has not been serviced is cleared, the pending interrupt request is cleared simultaneously with its status bit. (2) interrupt request mask bit this bit is used to disable unnecessary interrupt requests within the grouped interrupt request. set this bit to "1" to enable interrupt requests or "0" to disable interrupt requests. figure 12.2.1 interrupt request status and mask registers to the interrupt controlle r interrupt request from each peripheral function interrupt request status data bus set  group interrupt interrupt request mask clear f/f f/f data=0 serial interface related register map (2/2) address +0 address +1 address see b0 b7 b8 b15 pages 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) 12.2 serial interface related registers
12 serial interface 12-7 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 12.2.2 example for clearing interrupt request status b4 5 b7 interrupt request status initial state bit 6 event occurs interrupt request bit 4 event occurs only bit 6 cleared bit 4 data retained b4 5 b7 1 1 0 1 write to the interrupt request status example for clearing interrupt request status 0 0 0 0 0 0 1 0 1 0 1 0 1 0 0 0 program example istreg = 0xfd; /* clear istat1 (0x02 bit) only */  to clear the interrupt request status register 0 (istreg) interrupt request status 1: istat1 (0x02 bit) to clear an interrupt request status, always be sure to write 1 to all other interrupt request status bits. at this time, avoid using a logic operation like the one shown below. because it requires three step-istreg read, logic operation and write, if another interrupt request occurs between the read and write, status may be inadvertently cleared. b4 5 6 b7 interrupt request status bit 6 event occurs bit 4 event occurs only bit 6 cleared bit 4 also cleared 0 0 1 0 1 0 1 0 0 0 0 0 read 0 0 1 0 0 0 0 0 clear bit 6 (anding with 1101) write 6 6 istreg &= 0xfd; /* clear istat1 (0x02 bit) only */ 12.2 serial interface related registers
12 serial interface 12-8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 receive dma transfer request rfin (reception finished bit) note:  no reception-finished dma transfer requests are generated if a receive error occurs. figure 12.2.4 reception-finished dma transfer request (3) selecting the source of an interrupt request the interrupt request signals sent from each sio to the interrupt controller (icu) are broadly classified into transmit interrupts and receive interrupts. transmit interrupt requests can be generated when the transmit buffer is empty or transmission is finished, and the receive interrupt requests can be generated when recep- tion is finished or an receive error is detected, as selected by the interrupt request source select registers (si03sel, si45sel). notes: ? no interrupt request signals are generated unless interrupts are generated by the sio interrupt request mask register after enabling the ten (transmit enable) bit or ren (receive enable) bit for the corresponding sio. ? sio2 and sio3 together comprise one interrupt group, so do sio4 and sio5. ? the transmission-finished interrupt is effective when the internal clock is selected in uart or csio mode. (4) notes on using transmit interrupts when the interupt request is enable in sio interrupt request mask register and the transmit buffer empty interrupt is selected in sio interrupt request source slect resgister, a transmit interrupt request is gener- ated upon enabling the corresponding ten (transmit enable) bit. (5) about dma transfer requests from sio each sio can generate a transmit dma transfer and a reception-finished dma transfer request. these dma transfer requests can be generated by enabling each sio?s corresponding ten (transmit enable) bit or ren (receive enable) bit. when using dma transfers to communicate with external devices, be sure to set the dma controller (dmac) before enabling the ten or ren bit. no reception-finished dma transfer requests are generated if a receive error occurs. ? transmit dma transfer request generated when the transmit buffer is empty and the ten bit is enabled. ten (transmit enable bit) tbe (transmit buffer empty bit) transmit dma transfer request figure 12.2.3 transmit dma transfer request ? reception-finished dma transfer request a dma transfer request is generated when the receive buffer is filled. 12.2 serial interface related registers
12 serial interface 12-9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sio23 interrupt request status register (si23stat) 123456b7 b0 irqt2 irqr3 irqt3 irqr2 0000 0 0 0 0 b bit name function r w 0?3 no function assigned. fix to "0." 00 4 irqt2 0: interrupt not requested r (note 1) sio2 transmit interrupt request status bit 1: interrupt requested 5 irqr2 0: interrupt not requested r (note 1) sio2 receive interrupt request status bit 1: interrupt requested 6 irqt3 0: interrupt not requested r (note 1) sio3 transmit interrupt request status bit 1: interrupt requested 7 irqr3 0: interrupt not requested r (note 1) sio3 receive interrupt request status bit 1: interrupt requested note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. sio45 interrupt request status register (si45stat) 123456b7 b0 irqt4 irqr5 irqt5 irqr4 0000 0 0 0 0 b bit name function r w 0 irqt4 0: interrupt not requested r (note 1) sio4 transmit interrupt request status bit 1: interrupt requested 1 irqr4 0: interrupt not requested r (note 1) sio4 receive interrupt request status bit 1: interrupt requested 2 irqt5 0: interrupt not requested r (note 1) sio5 transmit interrupt request status bit 1: interrupt requested 3 irqr5 0: interrupt not requested r (note 1) sio5 receive interrupt request status bit 1: interrupt requested 4?7 no function assigned. fix to "0." 00 note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. these registers indicate the transmit/receive interrupt requests from each sio. [setting the interrupt request status bit] this bit can only be set in hardware, and cannot be set in software. [clearing the interrupt request status bit] this bit is cleared by writing "0" in software. note: ? if the status bit is set in hardware at the same time it is cleared in software, the former has priority and the status bit is set. when writing to the sio interrupt request status register, make sure only the bits to be cleared are set to "0" and all other bits are set to "1." those bits that have been set to "1" are unaffected by writing in software and retain the value they had before the write. 12.2 serial interface related registers
12 serial interface 12-10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sio03 interrupt request mask register (si03mask) 9 1011121314b15 b8 t0mask r0mask t1mask r1mask t2mask r2mask t3mask r3mask 00000000 b bit name function r w 8 t0mask 0: mask (disable) interrupt request r w sio0 transmit interrupt request enable bit 1: enable interrupt request 9 r0mask 0: mask (disable) interrupt request r w sio0 receive interrupt request enable bit 1: enable interrupt request 10 t1mask 0: mask (disable) interrupt request r w sio1 transmit interrupt request enable bit 1: enable interrupt request 11 r1mask 0: mask (disable) interrupt request r w sio1 receive interrupt request enable bit 1: enable interrupt request 12 t2mask 0: mask (disable) interrupt request r w sio2 transmit interrupt request enable bit 1: enable interrupt request 13 r2mask 0: mask (disable) interrupt request r w sio2 receive interrupt request enable bit 1: enable interrupt request 14 t3mask 0: mask (disable) interrupt request r w sio3 transmit interrupt request enable bit 1: enable interrupt request 15 r3mask 0: mask (disable) interrupt request r w sio3 receive interrupt request enable bit 1: enable interrupt request sio45 interrupt request mask register (si45mask) 9 1011121314b15 b8 t4mask r5mask t5mask r4mask 0000 0 0 0 0 b bit name function r w 8 t4mask 0: mask (disable) interrupt request r w sio4 transmit interrupt request enable bit 1: enable interrupt request 9 r4mask 0: mask (disable) interrupt request r w sio4 receive interrupt request enable bit 1: enable interrupt request 10 t5mask 0: mask (disable) interrupt request r w sio5 transmit interrupt request enable bit 1: enable interrupt request 11 r5mask 0: mask (disable) interrupt request r w sio5 receive interrupt request enable bit 1: enable interrupt request 12?15 no function assigned. fix to "0." 00 these registers enable or disable the interrupt requests generated by each sio. interrupt requests from any sio are enabled by setting its corresponding interrupt request enable bit to "1." 12.2 serial interface related registers
12 serial interface 12-11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sio03 interrupt request source select register (si03sel) 123456b7 b0 isr0 ist0 ist1 ist2 ist3 isr3 isr2 isr1 00000000 b bit name function r w 0 ist0 0: transmit buffer empty interrupt r w sio0 transmit interrupt request source select bit 1: transmission finished interrupt 1 ist1 0: transmit buffer empty interrupt r w sio1 transmit interrupt request source select bit 1: transmission finished interrupt 2 ist2 0: transmit buffer empty interrupt r w sio2 transmit interrupt request source select bit 1: transmission finished interrupt 3 ist3 0: transmit buffer empty interrupt r w sio3 transmit interrupt request source select bit 1: transmission finished interrupt 4 isr0 0: reception finished interrupt r w sio0 receive interrupt request source select bit 1: receive error interrupt 5 isr1 0: reception finished interrupt r w sio1 receive interrupt request source select bit 1: receive error interrupt 6 isr2 0: reception finished interrupt r w sio2 receive interrupt request source select bit 1: receive error interrupt 7 isr3 0: reception finished interrupt r w sio3 receive interrupt request source select bit 1: receive error interrupt sio45 interrupt request source select register (si45sel) 123456b7 b0 isr 4 ist4 ist5 isr 5 00 00 0 0 0 0 b bit name function r w 0 ist4 0: transmit buffer empty interrupt r w sio4 transmit interrupt request source select bit 1: transmission finished interrupt 1 ist5 0: transmit buffer empty interrupt r w sio5 transmit interrupt request source select bit 1: transmission finished interrupt 2, 3 no function assigned. fix to "0." 00 4 isr4 0: reception finished interrupt r w sio4 receive interrupt request source select bit 1: receive error interrupt 5 isr5 0: reception finished interrupt r w sio5 receive interrupt request source select bit 1: receive error interrupt 6, 7 no function assigned. fix to "0." 00 these registers select the source of interrupt requests generated by each sio when transmit or receive opera- tion is completed. 12.2 serial interface related registers
12 serial interface 12-12 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (1) sion transmit interrupt request source select bit [when set to "0"] the transmit buffer empty interrupt is selected. a transmit buffer empty interrupt request is generated when data is transferred from the transmit buffer register to the transmit shift register. also, a transmit buffer empty interrupt request is generated when the ten (transmit enable) bit is set to "1" (interrupt enabled). [when set to "1"] the transmission finished (transmit shift buffer empty) interrupt is selected. a transmission finished interrupt request is generated when all of the data in the transmit shift register has been transferred. note: ? do not select the transmission finished interrupt when an external clock is selected in csio mode. (2) sion receive interrupt request source select bit [when set to "0"] the reception finished (receive buffer full) interrupt is selected. a reception finished interrupt request is also generated when a receive error (except overrun error) occurs. [when set to "1"] the receive error interrupt is selected. following types of errors constitute a receive error: ? csio mode: overrun error ? uart mode: overrun, parity and framing errors 12.2 serial interface related registers
12 serial interface 12-13 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 12.2.5 block diagram of sio2,3 transmit interrupt requests figure 12.2.6 block diagram of sio4,5 transmit interrupt requests f/f f/f r3mask irqr3 f/f f/f t3mask irqt3 f/f f/f r2mask irqr2 f/f f/f t2mask irqt2 b15 b7 b14 b6 b13 b5 b12 b4 data bus sio2, 3 transmit/receive interrupt requests (level) 4-source inputs f/f sio2 reception finished sio2 receive error isr2 b6 f/f sio2 transmit buffer empty sio2 transmission finished ist2 b2 f/f sio3 transmit buffer empty sio3 transmission finished ist3 b3 f/f sio3 reception finished sio3 receive error isr3 b7 f/f f/f r5mask irqr5 f/f f/f t5mask irqt5 f/f f/f r4mask irqr4 f/f f/f t4mask irqt4 b11 b3 b10 b2 b9 b1 b8 b0 data bus sio4, 5 transmit/receive interrupt requests (level) 4-source inputs f/f sio4 reception finished sio4 receive error isr4 b4 f/f sio4 transmit buffer empty sio4 transmission finished ist4 b0 f/f sio5 transmit buffer empty sio5 transmission finished ist5 b1 f/f sio5 reception finished sio5 receive error isr5 b5 12.2 serial interface related registers
12 serial interface 12-14 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 12.2.2 sio transmit control registers sio0 transmit control register (s0tcnt) sio1 transmit control register (s1tcnt) sio2 transmit control register (s2tcnt) sio3 transmit control register (s3tcnt) sio4 transmit control register (s4tcnt) sio5 transmit control register (s5tcnt) 123456b7 b0 tstat tbe ten cdiv 0 1010 0 0 0 b bit name function r w 0, 1 no function assigned. fix to "0." 00 2, 3 cdiv b2 b3 (note 1) r w brg count source select bit 0 0: select f(bclk) or f(bclk)/2 0 1: select f(bclk) or f(bclk)/2 divided by 8 1 0: select f(bclk) or f(bclk)/2 divided by 32 1 1: select f(bclk) or f(bclk)/2 divided by 256 4 no function assigned. fix to "0." 00 5 tstat 0: transmission stopped and no data in transmit buffer register r ? transmit status bit 1: transmitting now or data present in transmit buffer register 6 tbe 0: data present in transmit buffer register r ? transmit buffer empty bit 1: no data in transmit buffer register 7 ten 0: disable transmission r w transmit enable bit 1: enable transmission note 1: the selection between f(bclk) and f(bclk)/2 is made with the sion special mode register (snsmod). (1) cdiv (brg count source select) bits (bits 2 and 3) these bits select the count source for brg (the baud rate generator). (2) tstat (transmit status) bit (bit 5) [set condition] this bit is set to "1" by a write to the transmit buffer register while transmission is enabled. [clear condition] this bit is cleared to "0" when transmission is idle (no data in the transmit shift register) and no data exists in the transmit buffer register. this bit is also cleared by clearing the transmit enable bit. (3) tbe (transmit buffer empty) bit (bit 6) [set condition] this bit is set to "1" when data is transferred from the transmit buffer register to the transmit shift register and the transmit buffer register is thereby emptied. this bit is also set by clearing the transmit enable bit to "0." [clear condition] this bit is cleared to "0" by writing data to the lower byte of the transmit buffer register while transmis- sion is enabled (ten = "1"). (4) ten (transmit enable) bit (bit 7) transmission is enabled by setting this bit to "1" and disabled by clearing this bit to "0." if this bit is cleared to "0" while transmitting data, the transmit operation stops. 12.2 serial interface related registers
12 serial interface 12-15 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 12.2.3 sio transmit/receive mode registers sio0 transmit/receive mode register (s0mod) sio1 transmit/receive mode register (s1mod) sio2 transmit/receive mode register (s2mod) sio3 transmit/receive mode register (s3mod) sio4 transmit/receive mode register (s4mod) sio5 transmit/receive mode register (s5mod) 9 1011121314b15 b8 smod pen sen psel stb cks 00000000 b bit name function r w 8?10 smod b8 b9 b10 r w serial interface mode select bit 0 0 0 : 7-bit uart (note 1) 0 0 1 : 8-bit uart 0 1 x : 9-bit uart 1 xx: 8 ? 16-bit csio (note 4) 11 cks 0: internal clock r w internal/external clock select bit 1: external clock (note 2) 12 stb 0: one stop bit r w stop bit length select bit, uart mode only 1: two stop bits (note 3) 13 psel 0: odd parity r w odd/even parity select bit, uart mode only 1: even parity (note 3) 14 pen 0: disable parity r w parity enable bit, uart mode only 1: enable parity (note 3) 15 sen 0: disable sleep function r w sleep select bit, uart mode only 1: enable sleep function (note 3) note 1: for sio2 and 3, bit 8 is fixed to "0" in hardware. this bit cannot be set to "1" in software (to select clock-synchronous seria l interface). note 2: has no effect when uart mode selected. note 3: bits 12?15 have no effect during clock-synchronous mode. note 4: the selection of csio bit length is made with the sion special mode register (snsmod). the sio transmit/receive mode registers consist of bits to set the serial interface operation mode, data format and the functions used during communication. the sio transmit/receive mode registers must always be set before the serial interface starts operating. to change register settings after the serial interface starts sending or receiving data, first confirm that transmit and receive operations have finished and then disable transmit/receive operations (by clearing the sio transmit control register transmit enable bit and sio receive control register receive enable bit to "0") before making changes. (1) smod (serial interface mode select) bits (bits 8?10) these bits select the operation mode of serial interface. (2) cks (internal/external clock select) bit (bit 11) this bit is effective when csio mode is selected. setting this bit has no effect when uart mode is selected, in which case the serial interface is clocked by the internal clock. 12.2 serial interface related registers
12 serial interface 12-16 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (3) stb (stop bit length select) bit (bit 12) this bit is effective during uart mode. use this bit to select the stop bit length that indicates the end of data to transmit. setting this bit to "0" selects one stop bit, and setting this bit to "1" selects two stop bits. during clock-synchronous mode, the content of this bit has no effect. (4) psel (odd/even parity select) bit (bit 13) this bit is effective during uart mode. when parity is enabled (bit 14 = "1"), use this bit to select the parity attribute (whether odd or even). setting this bit to "0" selects an odd parity, and setting this bit to "1" selects an even parity. when parity is disabled (bit 14 = "0") and during clock-synchronous mode, the content of this bit has no effect. (5) pen (parity enable) bit (bit 14) this bit is effective during uart mode. when this bit is set to "1," a parity bit is added immediately after the data bits of the transmit data, and the received data is checked for parity. the parity bit added to the transmit data is automatically determined to be "0" or "1" so that the attribute (odd/even) derived by adding the number of 1?s in data bits and the content of the parity bit agrees with one that was selected with the odd/even parity select bit (bit 13). figure 12.2.7 shows an example of a data format when parity is enabled. (6) sen (sleep select) bit (bit 15) this bit is effective during uart mode. if the sleep function is enabled by setting this bit to "1," data is latched into the uart receive buffer register only when the most significant bit (msb) of the received data is "1." 12.2 serial interface related registers
12 serial interface 12-17 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b8 b7 b6 b5 b4 b3 b2 b1 par sp st b0 b7 b6 b5 b4 b3 b2 b1 b0 par sp st b6 b5 b4 b3 b2 b1 b0 par sp st b7 b6 b5 b4 b3 b2 b1 b0 b15 b14 b13 b12 b11 b10 b9 b8 b8 b7 b6 b5 b4 b3 b2 b0 b9 b8 b7 b6 b5 b4 b3 b2 b10 b9 b8 b7 b6 b5 b4 b3 b11 b10 b9 b8 b7 b6 b5 b4 b12 b11 b10 b9 b8 b7 b6 b5 b13 b12 b11 b10 b9 b8 b7 b6 b14 b13 b12 b11 b10 b9 b8 b7 b1 b1 b0 b2 b1 b0 b3 b2 b1 b0 b4 b3 b2 b1 b0 b5 b4 b3 b2 b1 b0 b6 b5 b4 b3 b2 b1 b0 b7 b6 b5 b4 b3 b2 b1 b0 st : start bit par : parity bit : one frame equivalent b : data bits sp : stop bit direction of transfer note 1: whether or not to add a parity bit is selectable. note 2: the stop bit can be chosen to be one bit or two bits long.  9-bit uart mode  8-bit uart mode  7-bit uart mode  16-bit clock-synchronous mode (note 1) (note 2) (note 1) (note 1) (note 2) (note 2)  15-bit clock-synchronous mode  14-bit clock-synchronous mode  13-bit clock-synchronous mode  12-bit clock-synchronous mode  11-bit clock-synchronous mode  10-bit clock-synchronous mode  9-bit clock-synchronous mode  8-bit clock-synchronous mode figure 12.2.7 data format when parity is enabled (1/2) 12.2 serial interface related registers
12 serial interface 12-18 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07  when transmitting if the attribute (odd/even) represented by the number of 1's in data bits agrees with the selected parity attribute, a parity bit "0" is added. if the attribute (odd/even) represented by the number of 1's in data bits does not agree with the selected parity attribute, a parity bit "1" is added. b7 b6 b5 b4 b3 b2 b1 b0 par sp st attribute derived from b7 + b6 + ... + b0 if it agrees with the selected parity attribute, par = "0" is added. if it does not agree with the selected parity attribute, par = "1" is added. lsb msb  when receiving the received data is checked to see if the number of 1's included in its data and parity bits agrees with the parity attribute (known as parity check). b7 b6 b5 b4 b3 b2 b1 b0 par sp st lsb msb if the result of b7 + b6 + ... + b0 + par does not agree with the selected parity attribute, a parity error is assumed. notes :  shown above is an example of a data format in 8-bit uart mode.  the data bit numbers (bn) above indicate bit numbers in a data list, and not the register bit numbers (bn). figure 12.2.8 data format when parity is enabled (2/2) 12.2 serial interface related registers
12 serial interface 12-19 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 12.2.4 sio transmit buffer registers sio0 transmit buffer register (s0txb) sio1 transmit buffer register (s1txb) sio2 transmit buffer register (s2txb) sio3 transmit buffer register (s3txb) sio4 transmit buffer register (s4txb) sio5 transmit buffer register (s5txb) b01234567891011121314b15 tdata ???????????????? b bit name function r w 0?15 tdata transmit data is set in these bits. r w transmit data the sio transmit buffer registers are used to set transmit data. the write value of these registers can be read out. data must be lsb-aligned when write a transmit data. according to the conditions of the serial interface mode select bit, the csio bit length select bit and the transfer order select bit, the data corresponding to the specified bit is transmitted from the lsb or msb side. before setting transmit data in these registers, enable the transmit control register ten (transmit enable) bit by setting it to "1." writing data to these registers while the ten bit is disabled (cleared to "0") has no effect. when data is written to the sio transmit buffer register while transmission is enabled, the data is transferred from that register to the sio transmit shift register, upon which the serial interface starts sending data. note: ? for the 7-bit and 8-bit data formats, the register can be accessed bytewise. 12.2 serial interface related registers
12 serial interface 12-20 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 12.2.5 sio receive buffer registers sio0 receive buffer register (s0rxb) sio1 receive buffer register (s1rxb) sio2 receive buffer register (s2rxb) sio3 receive buffer register (s3rxb) sio4 receive buffer register (s4rxb) sio5 receive buffer register (s5rxb) b01234567891011121314b15 rdata ???????????????? b bit name function r w 0?15 rdata received data is stored in these bits. r ? received data the sio receive buffer registers are used to store the received data. when the serial interface has finished receiving data, the content of the sio receive shift register is transferred to the sio receive buffer register. these registers are a read-only register. data must be lsb-aligned when latching a received data. according to the conditions of the serial interface mode select bit, the csio bit length select bit and the transfer order select bit, the data corresponding to the specified bit is received from the lsb or msb side and an unused msb side bit is set to ?0.? when reading the content of the sio receive buffer register after reception is completed, if the serial interface finishes receiving the next data before the previous data is not read out, an overrun error occurs and the subsequent received data are not transferred to the receive buffer register. to restart normal receive operation, clear the receive control register ren (receive enable) bit to "0." note: ? for the 7-bit and 8-bit data formats, the register can be accessed bytewise. 12.2 serial interface related registers
12 serial interface 12-21 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 12.2.6 sio receive control registers sio0 receive control register (s0rcnt) sio1 receive control register (s1rcnt) sio2 receive control register (s2rcnt) sio3 receive control register (s3rcnt) sio4 receive control register (s4rcnt) sio5 receive control register (s5rcnt) 123456b7 b0 pty flm ers rstat rfin ren ovr 0000000 0 b bit name function r w 0 no function assigned. fix to "0." 00 1 rstat 0: reception stopped r ? receive status bit 1: reception in progress 2 rfin 0: no data in receive buffer register r ? reception finished bit 1: data present in receive buffer register 3 ren 0: disable reception r w receive enable bit 1: enable reception 4 ovr 0: no overrun error r ? overrun error bit 1: overrun error occurred 5 pty 0: no parity error r ? parity error bit, uart mode only 1: parity error occurred 6 flm 0: no framing error r ? framing error bit, uart mode only 1: framing error occurred 7 ers 0: no error r ? error sum bit 1: error occurred 12.2 serial interface related registers
12 serial interface 12-22 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (1) rstat (receive status) bit (bit 1) [set condition] this bit is set to "1" by a start of receive operation. when this bit = "1," the serial interface is receiving data. [clear condition] this bit is cleared upon completion of receive operation or by clearing the ren (receive enable) bit to "0." (2) rfin (reception finished) bit (bit 2) [set condition] this bit is set to "1" when all data bits have been received in the receive shift register and whose content is transferred to the receive buffer register. [clear condition] this bit is cleared to "0" by reading out the lower byte of the receive buffer register or by clearing the ren (receive enable) bit. however, if an overrun error occurs, this bit cannot be cleared by reading out the lower byte of the receive buffer register. in this case, clear ren (receive enable) bit to "0." (3) ren (receive enable) bit (bit 3) reception is enabled by setting this bit to "1," and is disabled by clearing this bit to "0," in which case the receiver unit is initialized. accordingly, the receive status and reception finished bits, as well as the overrun error, framing error, parity error and error sum bits all are cleared. the receive operation stops if the receive enable bit is cleared to "0" while receiving data. (4) ovr (overrun error) bit (bit 4) when an overrun error occurs, the received data is not stored in the receive buffer register. in this case, neither an interrupt request nor a dma transfer request by receive completion occurs. [set condition] this bit is set to "1" when all bits of the next received data have been set in the receive shift register while the receive buffer register still contains the previous received data. although receive operation continues even when the overrun error flag = "1," the received data is not stored in the receive buffer register. this error bit must be cleared before normal reception can be restarted. [clear condition] this bit is cleared by only clearing the ren (receive enable) bit to "0." (5) pty (parity error) bit (bit 5) this bit is effective in only uart mode. it is fixed to "0" during csio mode. when a parity error occurs, the received data is stored in the receive buffer register. in this case, an interrupt request by receive comple- tion occurs but a dma transfer request does not occur. [set condition] the pty (parity error) bit is set to "1" when the sio transmit/receive mode register pen (parity enable/disable) bit is enabled and the parity (even or odd) of the received data does not agree with one that was set by the said register?s psel (parity select) bit. [clear condition] the pty bit is cleared to "0" by reading out the lower byte of the sio receive buffer register or by clearing the sio receive control register ren (receive enable) bit. however, if an overrun error occurs, this bit cannot be cleared by reading out the lower byte of the receive buffer register. in this case, clear the ren (receive enable) bit to "0." 12.2 serial interface related registers
12 serial interface 12-23 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (6) flm (framing error) bit (bit 6) this bit is effective in only uart mode. it is fixed to "0" during csio mode. when a framing error occurs, the received data is stored in the receive buffer register. in this case, an interrupt request by receive comple- tion occurs but a dma transfer request does not occur. [set condition] the flm (framing error) bit is set to "1" when the number of received bits does not agree with one that was set by the sio transmit/receive mode register. [clear condition] the flm bit is cleared to "0" by reading out the lower byte of the sio receive buffer register or by clearing the sio receive control register ren (receive enable) bit. however, if an overrun error occurs, this bit cannot be cleared by reading out the lower byte of the receive buffer register. in this case, clear the ren (receive enable) bit to "0." (7) ers (error sum) bit (bit 7) [set condition] this bit is set to "1" when any one of overrun, framing or parity errors is detected at completion of recep- tion. [clear condition] if the detected error was an overrun error, this bit is cleared by clearing the ren (receive enable) bit to "0." otherwise, this flag is cleared by reading out the lower byte of the sio receive buffer register or by clearing the sio receive control register ren (receive enable) bit. 12.2 serial interface related registers
12 serial interface 12-24 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 sio baud rate register set value = clock divider count source ? 1 baud rate clock divider divide value 2 12.2.7 sio baud rate registers sio0 baud rate register (s0baur) sio1 baud rate register (s1baur) sio2 baud rate register (s2baur) sio3 baud rate register (s3baur) sio4 baud rate register (s4baur) sio5 baud rate register (s5baur) 9 1011121314b15 b8 brg ???????? b bit name function r w 8?15 brg baud rate divide value is set in these bits r w baud rate divide value (1) brg (baud rate divide value) (bits 8?15) the sio baud rate registers are used to set a baud rate divide value, so that the brg count source selected by sio transmit control register is divided by (n + 1) where n = brg set value. because the brg value initially is undefined, be sure to set the divide value before the serial interface starts operating. the value written to the brg during transmit/receive operation takes effect in the next cycle after the brg counter has finished counting. when using the internal clock (to output the sclko signal) in csio mode, the serial interface divides the clock divider count source using a clock divider and then divides the resulting clock by (n + 1) where n = brg set value and further by 2, thereby generating a transmit/receive shift clock. when using an external clock in csio mode, the serial interface does not use the brg. (transmit/receive operations are synchronized to the externally supplied clock.) during uart mode, the serial interface divides the clock divider count source using a clock divider and then divides the resulting clock by (n + 1) where n = brg set value and further by 16, thereby generating a transmit/receive shift clock. when using sio0, sio1, sio4 or sio5 in uart mode, set the relevant port to function as an sclko pin, so that a brg output clock divided by 2 can be output from that sclko pin. during internal clock csio mode, make sure the transfer rate does not exceed f(bclk)/8. the baud rate register set value when internal clock csio mode is selected can be calculated by the following equations. ? csio mode ? uart mode clock divider count source:selected between f(bclk) and f(bclk)/2 by setting the sio special mode register clock divider count source select bit. clock divider divide value: selected among 1, 8, 32 and 256 by setting the sio transmit control register brg count source select bit. sio baud rate register set value = clock divider count source ? 1 baud rate clock divider divide value 16 12.2 serial interface related registers
12 serial interface 12-25 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 items baud rate [bps] clock divider di vi de val ue [divided-by n] brg set value actual baud rate [bps] clock divider di vi d e va l u e [divided-by n] brg set value actual baud rate [bps] 250 256 124 250.00 256 155 250.40 500 256 62 496.03 256 77 500.80 1000 32 249 1000.00 256 38 1001.60 2500 32 99 2500.00 32 124 2500.00 5000 32 49 5000.00 8 249 5000.00 10000 32 24 10000.00 8 124 10000.00 25000 32 9 25000.00 8 49 25000.00 50000 32 4 50000.00 1 199 50000.00 100000 8 9 100000.00 1 99 100000.00 250000 1 31 250000.00 1 39 250000.00 500000 1 15 500000.00 1 19 500000.00 1000000 1 7 1000000.00 1 9 1000000.00 2500000 - - - 1 3 2500000.00 5000000 1 1 4000000.00 1 1 5000000.00 items baud rate [bps] clock divider di vi de val ue [divided-by n] brg set value actual baud rate [bps] clock divider di vi d e va l u e [divided-by n] brg set value actual baud rate [bps] 250 256 249 250.00 - - - 500 256 124 500.00 256 155 500.80 1000 256 62 992.06 256 77 1001.60 2500 32 199 2500.00 32 249 2500.00 5000 32 99 5000.00 32 124 5000.00 10000 32 49 10000.00 8 249 10000.00 25000 32 19 25000.00 8 99 25000.00 50000 32 9 50000.00 8 49 50000.00 100000 8 19 100000.00 1 199 100000.00 250000 1 63 250000.00 1 79 250000.00 500000 1 31 500000.00 1 39 500000.00 1000000 1 15 1000000.00 1 19 1000000.00 2500000 - - - 1 7 2500000.00 5000000 - - - 1 3 5000000.00 when clock divider count source = 16mhz when clock divider count source = 20mhz when clock divider count source = 40mhz when clock divider count source = 32mhz table 12.2.1 example settings of the sio baud rate register (csio mode) (1/2) notes: ? this does not mean that the communication at the above baud rates is guaranteed. careful consideration and inspection under your environment are required before use. ? select clock divider count source in selclk bit of sion special mode register (snsmod). ? select divide-by value of clock divider in the cdiv bit of sion transmit control register (sntcnt). ? set brg set value in the sion baud rate register (snbaur). table 12.2.1 example settings of the sio baud rate register (csio mode) (2/2) notes: ? this does not mean that the communication at the above baud rates is guaranteed. careful consideration and inspection under your environment are required before use. ? select clock divider count source in selclk bit of sion special mode register (snsmod). ? select divide-by value of clock divider in the cdiv bit of sion transmit control register (sntcnt). ? set brg set value in the sion baud rate register (snbaur). 12.2 serial interface related registers
12 serial interface 12-26 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 item s baud rate [bps] clock divider divide value [divided-by n] brg set va l u e error [%] actual baud rate [bps] clock divider divide value [divided-by n] brg set va l u e error [%] actual baud rate [bps] 300 32 103 0.16 300.48 32 129 0.16 300.48 600 32 51 0.16 600.96 32 64 0.16 600.96 1200 32 25 0.16 1201.92 8 129 0.16 1201.92 2400 32 12 0.16 2403.85 8 64 0.16 2403.85 4800 1 207 0.16 4807.69 8 32 -1.36 4734.85 9600 1 103 0.16 9615.38 1 129 0.16 9615.38 12500 1 79 0.00 12500.00 1 99 0.00 12500.00 14400 1 68 0.64 14492.75 1 86 -0.22 14367.82 19200 1 51 0.16 19230.77 1 64 0.16 19230.77 28800 1 34 -0.79 28571.43 1 42 0.94 29069.77 31250 1 31 0.00 31250.00 1 39 0.00 31250.00 38400 1 25 0.16 38461.54 1 32 -1.36 37878.79 57600 1 16 2.12 58823.53 1 21 -1.36 56818.18 62500 1 15 0.00 62500.00 1 19 0.00 62500.00 115200 1 8 -3.55 111111.11 1 10 -1.36 113636.36 125000 1 7 0.00 125000.00 1 9 0.00 125000.00 250000 1 3 0.00 250000.00 1 4 0.00 250000.00 500000 1 1 0.00 500000.00 1 2 -16.67 416666.67 625000 - - - - 1 1 0.00 625000.00 1000000 1 0 0.00 1000000.00 - - - - 1250000 - - -- 10 0.00 1250000.00 item s baud rate [bps] clock divider divide value [divided-by n] brg set va l u e error [%] actual baud rate [bps] clock divider divide value [divided-by n] brg set va l u e error [%] actual baud rate [bps] 300 256 25 0.16 300.48 256 32 -1.36 295.93 600 256 12 0.16 600.96 32 129 0.16 600.96 1200 32 51 0.16 1201.92 32 64 0.16 1201.92 2400 32 25 0.16 2403.85 8 129 0.16 2403.85 4800 32 12 0.16 4807.69 8 64 0.16 4807.69 9600 8 25 0.16 9615.38 8 32 -1.36 9469.70 12500 8 19 0.00 12500.00 1 199 0.00 12500.00 14400 1 138 -0.08 14388.49 1 173 -0.22 14367.82 19200 1 103 0.16 19230.77 1 129 0.16 19230.77 28800 1 68 0.64 28985.51 1 86 -0.22 28735.63 31250 1 63 0.00 31250.00 1 79 0.00 31250.00 38400 1 51 0.16 38461.54 1 64 0.16 38461.54 57600 1 34 -0.79 57142.86 1 42 0.94 58139.53 62500 1 31 0.00 62500.00 1 39 0.00 62500.00 115200 1 16 2.12 117647.06 1 21 -1.36 113636.36 125000 1 15 0.00 125000.00 1 19 0.00 125000.00 250000 1 7 0.00 250000.00 1 9 0.00 250000.00 500000 1 3 0.00 500000.00 1 4 0.00 500000.00 625000 - - - - 1 3 0.00 625000.00 1000000 1 1 0.00 1000000.00 - - - - 1250000 - - - - 1 1 0.00 1250000.00 2000000 1 0 0.00 2000000.00 - - - - 2500000 - - -- 10 0.00 2500000.00 when clock divider count source = 16mhz when clock divider count source = 20mhz when clock divider count source = 32mhz when clock divider count source = 40mhz table 12.2.2 example settings of the sio baud rate register (uart mode) (1/2) notes: ? this does not mean that the communication at the above baud rates is guaranteed. careful consideration and inspection under your environment are required before use. ? select clock divider count source in selclk bit of sion special mode register (snsmod). ? select divide-by value of clock divider in the cdiv bit of sion transmit control register (sntcnt). ? set brg set value in the sion baud rate register (snbaur). table 12.2.2 example settings of the sio baud rate register (uart mode) (2/2) notes: ? this does not mean that the communication at the above baud rates is guaranteed. careful consideration and inspection under your environment are required before use. ? select clock divider count source in selclk bit of sion special mode register (snsmod). ? select divide-by value of clock divider in the cdiv bit of sion transmit control register (sntcnt). ? set brg set value in the sion baud rate register (snbaur). 12.2 serial interface related registers
12 serial interface 12-27 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 12.2.8 sio special mode registers sio0 special mode register (s0smod) sio1 special mode register (s1smod) sio2 special mode register (s2smod) sio3 special mode register (s3smod) sio4 special mode register (s4smod) sio5 special mode register (s5smod) b0123456b7 ckpol 00000000 sel3pnt selfst selclk csibl b bit name function r w 0?3 csibl 0000: 8 bits r w csio bit length select bit 0001: 9 bits 0010: 10 bits 0011: 11 bits 0100: 12 bits 0101: 13 bits 0110: 14 bits 0111: 15 bits 1xxx: 16 bits 4 selclk 0: f(bclk)/2 r w clock divider count source select bit 1: f(bclk) 5 selfst 0: lsb-first r w transfer order select bit 1: msb-first 6 sel3pnt 0: 3-point sampling invalid r w 3-point sampling control bit 1: 3-point sampling valid 7 ckpol 0: transmit data output at sclk falling edge r w transmit/receive clock polarity select bit receive data fetch at sclk rising edge 1: transmit data output at sclk rising edge receive data fetch at sclk falling edge (1) csibl (csio bit length select) bits (bits 0?3) these bits are effective only when the clock-synchronous serial interface was selected with the transmitting/ receiving mode register. they select the data length. (2) selclk (clock divider count source select) bit (bit 4) this bit is provided for selection of clock divider count source. (3) selfst (transfer order select) bit (bit 5) this bit selects the data bit transfer order. (4) sel3pnt (3 points sampling control) bit (bit 6) setting this bit to ?1? allows 3-point sampling of each signal of rxd input/sclki input with bclk period, and sio operates with its majority output as rxd input/sclki input. rxd input and sclki input cannot be controlled individually. also, 3-point sampling for sclki becomes effective only at csio mode and external clock selection. 12.2 serial interface related registers
12 serial interface 12-28 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (5) ckpol (transfer/receive clock polarity select) bit (bit 7) this bit is used to select the transmit/receive clock polarity in the csio mode. by setting this bit to ?0,? a data is output from the txd pin synchronously with sclk falling edge, and a data is fetched from the rxd pin synchronously with sclk rising edge. by setting this bit to ?1,? a data is output from the txd pin synchronously with sclk rising edge, and a data is fetched from the rxd pin synchronously with sclk falling edge. note: ? change the sio special mode register value in the inhibiting state for both transmit enable bit and receive enable bit. figure 12.2.9 selection of transmit/receive clock polarity rxd transmit/receive clock txd rxd transmit/receive clock txd note: . "l" level is output from the sclko pin when no data is transmitted and received during internal clock selection. note: . "h" level is output from the sclko pin when no data is transmitted and received during internal clock selection. (1) when clock polarity select bit = "0" (2) when clock polarity select bit = "1" b7 b6 b5 b4 b3 b2 b1 b0 b7 b6 b5 b4 b3 b2 b1 b0 b7 b6 b5 b4 b3 b2 b1 b0 b7 b6 b5 b4 b3 b2 b1 b0 12.2 serial interface related registers
12 serial interface 12-29 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 12.3 transmit operation in csio mode 12.3.1 setting the csio baud rate the baud rate (data transfer rate) in csio mode is determined by a transmit/receive shift clock. the clock source from which a transmit/receive shift clock derives is selected from the internal clock f(bclk) or external clock. the cks (internal/external clock select) bit (sio transmit/receive mode register bit 11) is used to select the clock source. the equation used to calculate the transmit/receive baud rate differs depending on whether an internal or external clock is selected. (1) when internal clock is selected in csio mode when the internal clock was selected, select the clock source from f(bclk) or f(bclk)/2 with the clock divider count source select bit (bit 4 of sio special mode register). f(bclk) or f(bclk)/2 is input to the baud rate generator (brg) after being divided by the clock divider. the clock divider?s divide-by value is selected from 1, 8, 32 or 256 by using the cdiv (baud rate generator count source select) bits (transmit control register bits 2?3). the baud rate generator divides the clock divider output by (baud rate register set value + 1) and further by 2, thus generating a transmit/receive shift clock. when the internal clock is selected in csio mode, the baud rate is calculated using the equation below. baud rate = f(bclk) or f(bclk)/2 [bps] clock divider?s divide-by value x (baud rate register set value + 1) x 2 baud rate register set value = h?00 to h?ff (note 1) clock divider?s divide-by value = 1, 8, 32 or 256 note 1: use caution when setting the baud rate register so that the transfer rate will not exceed f(bclk)/8. (2) when external clock is selected in csio mode in this case, the baud rate generator is not used, and the input clock from the sclki pin serves directly as a transmit/receive shift clock for csio. the maximum frequency of the sclki pin input clock is f(bclk)/16. baud rate = sclki pin input clock [bps] 12.3 transmit operation in csio mode
12 serial interface 12-30 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 12.3.2 initializing csio transmission to transmit data in csio mode, initialize the serial interface following the procedure described below. (1) setting sio special mode register ? set the data length selection in csio mode ? select the clock divider count source ? set the data bit transfer order ? 3-point sampling control ? select the clock polarity in csio mode (2) setting sio transmit/receive mode register ? set the register to csio mode. ? select the internal or an external clock. (3) setting sio transmit control register ? select the clock divider?s divide-by ratio (when internal clock selected). (4) setting sio baud rate register when the internal clock is selected, set a baud rate generator value. (see section 12.3.1, ?setting the csio baud rate.?) (5) setting the sio interrupt related registers ? select the source of transmit interrupt request (transmit buffer empty or transmission finished) (sio inter- rupt request source select register). ? enable or disable transmit interrupt requests (sio interrupt request mask register). note: ? transmission finished interrupt requests are effective only when the internal clock is selected. (6) setting the interrupt controller (sio transmit interrupt control register) to use transmit interrupts, set their priority levels. (7) setting the dmac to issue dma transfer requests to the internal dmac when the transmit buffer is empty, set up the dmac. (see chapter 9, ?dmac.?) (8) selecting pin functions because the serial interface related pins serve dual purposes, set the pin functions for use as sio pins or input/output ports. (see chapter 8, ?input/output ports and pin functions.?) 12.3 transmit operation in csio mode
12 serial interface 12-31 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 12.3.1 procedure for initializing csio transmission set sio transmit/receive mode register initialize csio transmission note 1: necessary when the internal clock is selected. note 2: caution must be used when internal clock ciso mode, the transfer rate does not exceed f(bclk)/8. note 3: transmission finished interrupts are effective only when the internal clock is selected.  set the register to csio mode  select the internal or external clock (when using the dmac) set dmac (when using interrupts) set interrupt controller set sio interrupt related registers  divide-by ratio = h'00 to h'ff (note 2) set sio baud rate register  select the clock divider divide-by ratio (note 1) set sio transmit control register set input/output port operation mode register serial interface related registers end of csio transmit initialization  enable or disable transmit interrupt requests  select the source of transmit interrupt request (note 3) set sio special mode register  set the data length  select the clock divider count source  set the transfer order  3-point sampling control  select the clock polarity 12.3 transmit operation in csio mode
12 serial interface 12-32 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 12.3.3 starting csio transmission the serial interface starts a transmit operation when all of the following conditions are met after being initial- ized. (1) transmit conditions when csio mode internal clock is selected ? the sio transmit control register transmit enable bit is set to "1." ? transmit data (8 ? 16 bits) is written to the lower byte of the sio transmit buffer register (transmit buffer empty bit = "0") (note 1) (note 2) (2) transmit conditions when csio mode external clock is selected ? the sio transmit control register transmit enable bit is set to "1." ? transmit data is written to the lower byte of the sio transmit buffer register (transmit buffer empty bit = "0"). (note 1) ? a transmit clock (clock polarity is selected by ckpol bit of the snsmod register) is inputted to the sclki pin. when transmission starts, the serial interface sends data following the procedure described below. ? transfer the content of the sio transmit buffer register to the sio transmit shift register. ? set the transmit buffer empty bit to "1" (note 3). ? start sending data synchronously with the shift clock. note 1: while the transmit enable bit is cleared to "0," writes to the transmit buffer register are ignored. always set the transmit enable bit to "1" before writing to the transmit buffer regis- ter. also, the transmit status bit is set to "1" at the time data is set in the lower byte of the sio transmit buffer register. note 2: when the internal clock is selected, a write to the lower byte of the transmit buffer register triggers transmission to start. note 3: a transmit interrupt request can be generated for reasons that the transmit buffer is empty or transmission has finished. also, a dma transfer request can be generated when the transmit buffer is empty. no dma transfer requests can be generated for reasons that transmission has finished. 12.3.4 successive csio transmission once data has been transferred from the transmit buffer register to the transmit shift register, the next data can be written to the transmit buffer register even when the serial interface has not finished sending the previous data. if the next data is written to the transmit buffer register before transmission has finished, the previous and the next data are transmitted successively. check the sio transmit control register?s status register?s transmit buffer empty flag to see if data has been transferred from the transmit buffer register to the transmit shift register. 12.3 transmit operation in csio mode
12 serial interface 12-33 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 12.3.5 processing at end of csio transmission when data transmission finishes, the following operation is automatically performed in hardware. (1) when not transmitting successively ? the transmit status bit is cleared to "0." (2) when transmitting successively ? when transmission of the last data in a consecutive data train finishes, the transmit status bit is cleared to "0." 12.3.6 transmit interrupts (1) transmit buffer empty interrupt if the transmit buffer empty interrupt was selected using the sio interrupt request source select register, a transmit buffer empty interrupt request is generated when data has been transferred from the transmit buffer register to the transmit shift register. a transmit buffer empty interrupt request is also generated when the ten (transmit enable) bit is set to "1" (disabled enabled) while the transmit buffer empty interrupt has been enabled. (2) transmission finished interrupt if the transmission finished interrupt was selected using the sio interrupt request source select register, a transmission finished interrupt request is generated by a falling edge of the internal transfer clock pulse at which the last bit of data in the transmit shift register has been transmitted. the sio interrupt request mask register and the interrupt controller (icu) must be set before these trans- mit interrupts can be used. 12.3.7 transmit dma transfer request when data has been transferred from the transmit buffer register to the transmit shift register, a transmit dma transfer request for the corresponding sio channel is output to the dmac. a transmit dma transfer request is also output when the ten (transmit enable) bit is set to "1" (disabled enabled). the dmac must be set before dma transfers can be used during data transmission. 12.3 transmit operation in csio mode
12 serial interface 12-34 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 12.3.2 transmit operation during csio mode (hardware processing) the following processing is automatically performed in hardware.  transfer the content of the transmit buffer to the transmit shift register  set the transmit buffer empty bit to "1" transmit data yes (successive transmission) transmit conditions met? transmit conditions met? yes no no clear the transmit status bit to "0" transmit dma transfer request transmit interrupt request (note 1) csio transmit operation starts end of csio transmit operation note 1: this applies when the transmit interrupt request was enabled using the sio interrupt request mask registe r after selecting the transmit buffer empty interrupt with the sio interrupt request source select register. 12.3 transmit operation in csio mode
12 serial interface 12-35 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 12.3.8 example of csio transmit operation the following shows a typical transmit operation in csio mode. figure 12.3.3 example of csio transmission (transmitted only once) note 1: changes of the interrupt controller's sio transmit interrupt control register interrupt request bit note 2: when transmit buffer empty interrupt is enabled (dma transfer can also be requested at the same time) note 3: when transmission finished interrupt is enable note 4: the interrupt controller's ivect register is read or the sio transmit interrupt control register interrupt request bit cleared note 5: a transmit interrupt request is generated when transmission is enabled. note 6: be aware that even after transmit data is written to the transmit buffer, a transmit interrupt request is generated whe n the data is transferred from the transmit buffer to the transmit shift register and the transmit buffer is thereby emptied. note 7: a transmission finished interrupt request is generated by a falling edge of the internal transfer clock pulse at which transmission of the transmit shift register data has finished. note 8: it is inhibited to select the transmission finished interrupt when an external clock is selected. internal clock selected external clock selected set transmit enable bit transmit buffer empty bit transmit status bit txd (when transmit buffer empty interrupt is selected) transmit interrupt request (note 2) (note 5) transmit interrupt request (note 2) (note 6) interrupt request accepted (note 4) set by a write to the transmit buffer write to the transmit buffer register transmit clock (sclko) cleared cleared by completion of transmission b7 b6 b5 b4 b3 b2 b1 b0 content of the transmit buffer register is transferred to the transmit shift register : interrupt request generated : processing by software sclko txd sclki rxd transmit interrupt request (note 3) (note 7) interrupt request accepted (when transmission finished interrupt is selected)(note 8) (internal transfer clock) sio transmit interrupt request (note 1) 12.3 transmit operation in csio mode
12 serial interface 12-36 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 12.3.4 example of csio transmission (transmitted successively) note 1: changes of the interrupt controller's sio transmit interrupt control register interrupt request bit note 2: when transmit buffer empty interrupt is enabled (dma transfer can also be requested at the same time) note 3: when transmission finished interrupt is enable note 4: the interrupt controller's ivect register is read or the sio transmit interrupt control register interrupt request bit cleared note 5: a transmit interrupt request is generated when transmission is enabled. note 6: be aware that even after transmit data is written to the transmit buffer, a transmit interrupt request is generated whe n the data is transferred from the transmit buffer to the transmit shift register and the transmit buffer is thereby empt ied. note 7: a transmission finished interrupt request is generated by a falling edge of the internal transfer clock pulse at which transmission of the transmit shift register data has finished. note 8: it is inhibited to select the transmission finished interrupt when an external clock is selected. : interrupt request generated : processing by software transmit enable bit transmit buffer empty bit transmit status bit txd sio transmit interrupt request (note 1) transmit clock (sclko) sclko txd sclki rxd b7 b6 b5 b0 b7 b6 b5 b0 (note 2) (note 5) (note 2) (note 2)(note 6) next data is written at a transmit buffer empty interrupt first data next data write to the transmit buffer register (first data) (next data) write to the transmit buffer register cleared internal clock selected external clock selected set (internal transfer clock) (when transmit buffer empty interrupt is selected) (when transmission finished interrupt is selected) (note 8) (note 3) transmit interrupt request (note 3)(note 7) interrupt request accepted (note 4) interrupt request accepted (note 4) 12.3 transmit operation in csio mode
12 serial interface 12-37 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 12.4 receive operation in csio mode 12.4.1 initialization for csio reception to receive data in csio mode, initialize the serial interface following the procedure described below. note, however, that because the receive shift clock is derived by an operation of the transmit circuit, transmit opera- tion must always be executed even when the serial interface is used for only receiving data. (1) setting sio special mode register ? set the data length selection in csio mode ? select the clock divider count source ? set the data bit transfer order ? 3-point sampling control ? select the clock polarity in csio mode (2) setting sio transmit/receive mode register ? set the register to csio mode. ? select the internal or an external clock. (3) setting sio transmit control register ? select the clock divider?s divide-by ratio (when internal clock selected). (4) setting sio baud rate register when the internal clock is selected, set a baud rate generator value. (see section 12.3.1, ?setting the csio baud rate.?) (5) setting sio interrupt related registers ? select the source of receive interrupt request (reception finished or error) (sio interrupt request source select register). ? enable or disable receive interrupts (sio interrupt request mask register). (6) setting sio receive control register ? set the receive enable bit. (7) setting interrupt controller (sio receive interrupt control register) to use receive interrupts, set their priority levels. (8) setting dmac set up the dmac when the dma transfer is requested to the internal dmac on completion of the reception. (see chapter 9, ?dmac.?) (9) selecting pin functions because the serial interface related pins serve dual purposes, set the pin functions for use as sio pins or input/output ports. (see chapter 8, ?input/output ports and pin functions.?) 12.4 receive operation in csio mode
12 serial interface 12-38 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 12.4.1 procedure for initializing csio reception note 1: necessary when the internal clock is selected. note 2: caution must be used when setting the baud rate register so that the transfer rate will not exceed f(bclk)/8.  set the register to csio mode  select the internal or external clock set sio transmit/receive mode register (when using the dmac) set dmac (when using interrupts) set interrupt controller  select the source of receive interrupt request set sio interrupt related registers  divide-by ratio = h'00 to h'ff (note 2) set sio baud rate register  select the clock divider divide-by ratio (note 1) set sio transmit control register set input/output port operation mode register serial interface related registers set sio receive control register  set the receive enable bit end of csio receive initialization  enable or disable receive interrupt requests initialize csio reception set sio special mode register  set the data length  select the clock divider count source  set the transfer order  3-point sampling control  select the clock polarity 12.4 receive operation in csio mode
12 serial interface 12-39 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 12.4.2 starting csio reception the serial interface starts receive operation when all of the following conditions are met after being initialized. (1) receive conditions when csio mode internal clock is selected ? the sio receive control register receive enable bit is set to "1." ? transmit conditions are met. (see section 12.3.3, ?starting csio transmission.?) (2) receive conditions when csio mode external clock is selected ? the sio receive control register receive enable bit is set to "1." ? transmit conditions are met. (see section 12.3.3, ?starting csio transmission.?) note: ? the receive status bit is set to "1" at the time dummy data is set in the lower byte of the sio transmit buffer register. when the above conditions are met, the serial interface starts receiving 8 to 16 bits serial data synchronously with the receive shift clock. 12.4.3 processing at end of csio reception when data reception finishes, the following operation is automatically performed in hardware. (1) when reception is completed normally the reception finished (receive buffer full) bit is set to "1." notes: ? an interrupt request is generated if the reception finished (receive buffer full) interrupt has been enabled. ? a dma transfer request is generated. (2) when an error occurred during reception if an error (only overrun error in csio mode) occurred during reception, the overrun error bit and receive error sum bit are set to "1." notes: ? if the reception finished interrupt has been selected (by sio receive interrupt request source select register), neither a reception finished interrupt request nor a dma transfer request is generated. ? if the receive error interrupt has been selected (by sio receive interrupt request source select register), a receive error interrupt request is generated when interrupt requests are enabled. no dma transfer requests are generated. 12.4 receive operation in csio mode
12 serial interface 12-40 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 12.4.2 receive operation during csio mode (hardware processing) receive data set the sio receive control register reception finished bit to "1" store the received data in the receive buffer register set the sio receive control register overrun error and receive error sum bits to "1" receive conditions met? overrun error ? yes yes no no end of csio receive operation csio receive operation starts 12.4.4 about successive reception if the following conditions are met when data reception has finished, data may be received successively. ? the receive enable bit is set to "1." ? transmit conditions are met. ? no overrun error has occurred. 12.4 receive operation in csio mode
12 serial interface 12-41 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 12.4.5 flags showing the status of csio receive operation there are following flags that indicate the status of receive operation during csio mode: ? sio receive control register receive status bit ? sio receive control register reception finished bit ? sio receive control register receive error sum bit ? sio receive control register overrun error bit when reading the content of the sio receive buffer register after reception is completed, if the serial interface finishes receiving the next data before the previous data is not read out, an overrun error occurs and the subsequent received data are not transferred to the receive buffer register. before receive operation can be restarted, the receive enable bit must temporarily be cleared to "0" to initialize the receive control unit. the above reception finished bit, if no receive errors occurred (note 1), may be cleared by reading out the lower byte of the sio receive buffer register or clearing the ren (receive enable) bit. however, if any receive error occurred, the reception finished bit can only be cleared by clearing the ren (receive enable) bit, and cannot be cleared by reading out the lower byte of the sio receive buffer register. note 1: overrun errors are the only error that can be detected during reception in csio mode. 12.4 receive operation in csio mode
12 serial interface 12-42 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 12.4.3 example of csio reception (when received normally) note 1: changes of the interrupt controller's sio receive interrupt control register interrupt request bit note 2: when reception finished interrupt is enabled (dma transfer can also be requested at the same time) note 3: the interrupt controller's ivect register is read or the sio receive interrupt control register interrupt request bit cleared sclko txd sclki rxd internal clock selected external clock selected receive clock (sclko) set receive enable bit rxd receive status bit reception finished bit sio receive interrupt request (note 1) (when reception finished interrupt is selected) (when receive error interrupt is selected) no interrupt request interrupt request accepted (note 3) reception finished interrupt request (note 2) read from the receive buffer : interrupt request generated : processing by software automatically cleared for each receive operation performed clock stops cleared set by a write to the transmit buffer b7 b6 b5 b4 b3 b2 b1 b0 12.4.6 example of csio receive operation the following shows a typical receive operation in csio mode. 12.4 receive operation in csio mode
12 serial interface 12-43 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 12.4.4 example of csio reception (when overrun error occurred) external clock selected internal clock selected sclko rxd sclki txd : processing by software : interrupt request generated receive clock (sclki) set receive enable bit b7 b6 b0 rxd b7 b6 b0 note 1: changes of the interrupt controller's sio receive interrupt control register interrupt request bit note 2: when reception finished interrupt is enabled note 3: when receive error interrupt is enabled note 4: the receive enable bit is cleared note 5: the interrupt controller's ivect register is read or the sio receive interrupt control register interrupt request bit cleared first data reception completed next data reception completed reception finished bit sio receive interrupt request (note 1) (when reception finished interrupt is selected) receive buffer not read out during this interval set overrun error bit cleared (note 4) reception finished interrupt request (note 2) interrupt request accepted (note 5) cleared receive error interrupt request (note 3) interrupt request accepted (note 5) (when receive error interrupt is selected) overrun error bit 12.4 receive operation in csio mode
12 serial interface 12-44 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 12.5 notes on using csio mod 12.5 notes on using csio mode ? settings of sio transmit/receive mode register and sio baud rate register the sio transmit/receive mode register, sio special mode register and sio baud rate register and the transmit control register?s brg count source select bit must always be set when the serial interface is not operating. if a transmit or receive operation is in progress, wait until the transmit and receive operations are finished and then clear the transmit and receive enable bits before making changes. ? settings of sion baud rate register use caution when setting sion baud rate register so that the transfer rate will not exceed f(bclk)/8. ? about successive transmission to transmit data successively, make sure the next transmit data is set in the sio transmit buffer register before the current data transmission finishes. ? about reception because the receive shift clock in csio mode is derived by an operation of the transmit circuit, transmit operation must always be executed (by sending dummy data) even when the serial interface is used for only receiving data. in this case, be aware that if the port function is set for the txd pin (by setting the operation mode register to "1"), dummy data may actually be output from the pin. ? about successive reception to receive data successively, make sure that data (dummy data) is set in the sio transmit buffer register before a transmit operation on the transmitter side starts. ? transmission/reception using dma to transmit/receive data in dma request mode, enable the dmac to accept transfer requests (by setting the dma mode register) before serial communication starts. ? about reception finished bit if a receive error (overrun error) occurs, the reception finished bit can only be cleared by clearing the receive enable bit, and cannot be cleared by reading out the receive buffer register. ? about overrun error if all bits of the next received data have been set in the sio receive shift register before reading out the sio receive buffer register (i.e., an overrun error occurred), the received data is not stored in the receive buffer register, with the previous received data retained in it. although a receive operation continues there- after, the subsequent received data is not stored in the receive buffer register (receive status bit = "1"). before normal receive operation can be restarted, the receive enable bit must be temporarily cleared to "0." and this is the only way that the overrun error flag can be cleared. ? about dma transfer request generation during sio transmission if the transmit buffer register becomes empty (transmit buffer empty flag = "1") while the transmit enable bit remains set to "1" (transmission enabled), an sio transmit buffer empty dma transfer request is generated. ? about dma transfer request generation during sio reception if the reception finished bit is set to "1" (receive buffer register full), a reception finished dma transfer request is generated. be aware, however, that if an overrun error occurred during reception, this dma transfer request is not generated.
12 serial interface 12-45 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 12.5 notes on using csio mod ? switching from general-purpose to serial interface pin when switching general-purpose to serial interface pin, sclkon pin outputs "h" level (for the case of selecting internal clock and setting ckpol bit to "0." when setting ckpol bit to "1," it outputs "l" level.), and txdn pin outputs undefined value. however, when switching general-purpose to serial interface pin with setting ten bit of the sion transmit control register to "1" (transmit enable), txdn pin outputs the last bit level of the previously output serial data.
12 serial interface 12-46 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 12.6.1 example of a transfer data format during uart mode st b7 b6 b5 b4 b3 b2 b1 b0 par sp sp lsb msb st parity bit stop bit start bit data bits (8 bits) transmit data nex t data 12.6 transmit operation in uart mode 12.6.1 setting the uart baud rate the baud rate (data transfer rate) in uart mode is determined by a transmit/receive shift clock. during uart mode, the source for this transmit/receive shift clock is always the internal clock no matter how the internal/ external clock select bit (sio transmit/receive mode register bit 11) is set. (1) calculating the uart mode baud rate the clock source is selected from f(bclk) or f(bclk)/2 with the clock divider count source select bit (bit 4 of sio special mode register). f(bclk) or f(bclk)/2 is input to the baud rate generator (brg) after being divided by the clock divider, after which it is further divided by 16 to produce a transmit/receive shift clock. the clock divider?s divide-by value is selected from 1, 8, 32 or 256 by using the sio transmit control register cdiv (baud rate generator count source select) bits (bits 2 and 3). the baud rate generator divides the clock divider output by (baud rate register set value + 1) and further by 16, thus generating a transmit/receive shift clock. when the internal clock is selected in uart mode, the baud rate is calculated using the equation below. baud rate = f(bclk) or f(bclk)/2 [bps] clock divider?s divide-by value x (baud rate register set value + 1) x 16 baud rate register set value = h?00 to h?ff clock divider?s divide-by value = 1, 8, 32 or 256 12.6.2 uart transmit/receive data formats the transmit/receive data format during uart mode is determined by setting the sio transmit/receive mode register. shown below is the transmit/receive data format that can be used in uart mode. 12.6 transmit operation in uart mode
12 serial interface 12-47 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 table 12.6.1 transfer data in uart mode bit name content st (start bit) indicates the beginning of data transmission. this is a "l" level signal of a one bit period, which is added immediately preceding the transmit data. bits 0?8 (character bits) transmit/receive data transferred via serial interface. in uart mode, 7, 8 or 9 bits of datacan be transmitted/received. par (parity bit) added to the transmit/receive character. when parity is enabled, parity is automatically set in such a way that the number of 1?s in the character including the parity bit itself is always even or odd as selected by the even/odd parity select bit. sp (stop bit) indicates the end of data transmission, which is added immediately following the character (or if parity is enabled, immediately following the parity bit). the stop bit can be chosen to be one bit or two bits long. figure 12.6.2 selectable data formats during uart mode st b7 b6 b5 b4 b3 b2 b1 b0 par sp sp st b7 b6 b5 b4 b3 b2 b1 b0 par sp st b7 b6 b5 b4 b3 b2 b1 b0 sp sp st b7 b6 b5 b4 b3 b2 b1 b0 sp lsb msb 8-bit character st b6 b5 b4 b3 b2 b1 b0 sp sp par st b6 b5 b4 b3 b2 b1 b0 sp par st b6 b5 b4 b3 b2 b1 b0 sp sp st b6 b5 b4 b3 b2 b1 b0 sp lsb msb 7-bit character 9-bit character st b7 b6 b5 b4 b3 b2 b1 b0 par sp sp st b7 b6 b5 b4 b3 b2 b1 b0 par sp st b7 b6 b5 b4 b3 b2 b1 b0 sp sp st b7 b6 b5 b4 b3 b2 b1 b0 sp lsb msb b8 b8 b8 b8 bits 0-8: character (data) bits sp: stop bit st: start bit par: parity bit b0 b7 b8 b15 7-bit character 8-bit character 9-bit character sio transmit buffer register sio receive buffer register n otes:  the high-order bits of the selected character length in the sio receive buffer register are fixed to "0".  the data bit numbers (bn) above indicate bit numbers in a data list, and not the register bit numbers (bn). 12.6 transmit operation in uart mode
12 serial interface 12-48 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 12.6.3 initializing uart transmission to transmit data in uart mode, initialize the serial interface following the procedure described below. (1) setting sio special mode register ? select the clock divider count source. ? set the data bit transfer order. ? 3-points sampling control. (2) setting sio transmit/receive mode register ? set the register to uart mode. ? set parity (when enabled, select odd/even). ? set the stop bit length. ? set the character length (note 1). note 1: during uart mode, settings of the internal/external clock select bit have no effect (only the internal clock is useful). (3) setting sio transmit control register ? select the clock divider?s divide-by ratio. (4) setting sio baud rate register set a baud rate generator value. (see section 12.6.1, ?setting the uart baud rate.?) (5) setting sio interrupt related registers ? select the source of transmit interrupt request (transmit buffer empty or transmission finished) (sio interrupt request source select register). ? enable or disable sio transmit interrupt requests (sio interrupt request mask register). (6) setting interrupt controller (sio transmit interrupt control register) to use transmit interrupts, set their priority levels. (7) setting dmac to issue dma transfer requests to the internal dmac when the transmit buffer is empty, set up the dmac. (see chapter 9, ?dmac.?) (8) selecting pin functions because the serial interface related pins serve dual purposes, set the pin functions for use as sio pins or input/output ports. (see chapter 8, ?input/output ports and pin functions.?) 12.6 transmit operation in uart mode
12 serial interface 12-49 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 12.6.3 procedure for initializing uart transmission  set the register to uart mode  set parity (when enabled, select odd/even)  set the stop bit length  set the character length set sio transmit/receive mode register (when using the dmac) set dmac related registers set interrupt controller set sio interrupt related registers  divide-by ratio = h'00 to h'ff set sio baud rate register  select the clock divider divide-by ratio set sio transmit control register set input/output port operation mode register serial interface related registers end of uart transmit initialization (when using interrupts)  select the source of transmit interrupt reques t  enable or disable transmit interrupt requests initialize uart transmission set sio special mode register  select the clock divider count source  set the transfer order  3-point sampling control 12.6 transmit operation in uart mode
12 serial interface 12-50 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 12.6.4 starting uart transmission the serial interface starts a transmit operation when all of the following conditions are met after being initial- ized. ? sio transmit control register ten (transmit enable) bit is set to "1" (note 1). ? transmit data is written to the sio transmit buffer register (transmit buffer empty bit = "0"). note 1: while the transmit enable bit is cleared to "0," writes to the transmit buffer are ignored. always be sure to set the transmit enable bit to "1" before writing to the transmit buffer register. when transmission starts, the serial interface sends data following the procedure described below. ? transfer the content of the sio transmit buffer register to the sio transmit shift register. ? set the transmit buffer empty bit to "1" (note 2). ? start sending data synchronously with the shift clock. note 2: a transmit interrupt request can be generated for reasons that the transmit buffer is empty or transmission has finished. also, a dma transfer request can be generated when the transmit buffer is empty. no dma transfer requests can be generated for reasons that transmission has finished. 12.6.5 successive uart transmission once data has been transferred from the transmit buffer register to the transmit shift register, the next data can be written to the transmit buffer register even when the serial interface has not finished sending the previous data. if the next data is written to the transmit buffer before transmission has finished, the previous and the next data are transmitted successively. check the sio transmit control register?s transmit buffer empty flag to see if data has been transferred from the transmit buffer register to the transmit shift register. 12.6.6 processing at end of uart transmission when data transmission finishes, the following operation is automatically performed in hardware. (1) when not transmitting successively ? the transmit status bit is cleared to "0." (2) when transmitting successively ? when transmission of the last data in a consecutive data train finishes, the transmit status bit is cleared to "0." 12.6.7 transmit interrupts (1) transmit buffer empty interrupt if the transmit buffer empty interrupt was selected using the sio interrupt request source select register, a transmit buffer empty interrupt request is generated when data has been transferred from the transmit buffer register to the transmit shift register. a transmit buffer empty interrupt request is also generated when the ten (transmit enable) bit is set to "1" (reenabled after being disabled) while the transmit buffer empty interrupt has been enabled. 12.6 transmit operation in uart mode
12 serial interface 12-51 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 12.6.4 transmit operation during uart mode (hardware processing) the following processing is automatically performed in hardware.  transfer the content of the transmit buffer to the transmit shift register  set the transmit buffer empty bit to "1" transmit dma transfer request transmit interrupt request transmit data yes (successive transmission) transmit conditions met ? transmit conditions met ? clear the transmit status bit to "0" yes no no (note 1 ) note 1: this applies when the transmit interrupt was enabled using the sio interrupt request mask register after selecting the transmit buffer empty interrupt with the sio interrupt request source select register. end of uart transmit operation uart transmit operation starts (2) transmission finished interrupt if the transmission finished interrupt was selected using the sio interrupt request source select register, a transmission finished interrupt request is generated when data in the transmit shift register has all been transmitted. the sio interrupt request mask register and the interrupt controller (icu) must be set before these transmit interrupts can be used. 12.6.8 transmit dma transfer request when data has been transferred from the transmit buffer register to the transmit shift register, a transmit dma transfer request for the corresponding sio channel is output to the dmac. a transmit dma transfer request is also output when the ten (transmit enable) bit is set to "1" (disabled enabled). the dmac must be set before dma transfers can be used during data transmission. 12.6 transmit operation in uart mode
12 serial interface 12-52 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 12.6.9 example of uart transmit operation the following shows a typical transmit operation in uart mode. txd rxd transmit enable bit transmit buffer empty bit b0 b6 b7 st sp par write to the transmit buffer register transmit status bit txd sio transmit interrupt request (note 1) set cleared : processing by software : interrupt request generated cleared transferred from the transmit buffer to the transmit shift register (transmission starts) set interrupt request accepted (note 4) (note 2)(note 6) (note 3)(note 7) (note 2) (note 5) transmit interrupt request transmit interrupt request transmit interrupt reques t interrupt request accepted (note 4) (when transmit buffer empty interrupt is selected) (when transmission finished interrupt is selected) note 1: changes of the interrupt controller's sio transmit interrupt control register interrupt request bit note 2: when transmit buffer empty interrupt is enabled (dma transfer can also be requested at the same time) note 3: when transmission finished interrupt is enable note 4: the interrupt controller's ivect register is read or the sio transmit interrupt control register interrupt request bit cleared note 5: a transmit interrupt request is generated when transmission is enabled. note 6: be aware that even after transmit data is written to the transmit buffer, a transmit interrupt request is generated whe n the data is transferred from the transmit buffer to the transmit shift register and the transmit buffer is thereby empt ied. note 7: a transmission finished interrupt request is generated when data in the transmit shift register has all been transmitte d. sp figure 12.6.5 example of uart transmission (transmitted only once) 12.6 transmit operation in uart mode
12 serial interface 12-53 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 12.6.6 example of uart transmission (transmitted successively) : processing by software : interrupt request generated set transmit buffer empty bit transmit enable bit cleared transmit status bit transferred from the transmit buffer to the transmit shift register (transmission starts) txd sio transmit interrupt request (note 1) (first data) (next data) write to the transmit buffer register first data next data is written upon transmit interrupt (note 5) (note 2) (note 2) txd rxd st b7 b0 st sp b7 b0 sp cleared when transfer of the last data is completed interrupt request accepted (note 4) next data (note 2)(note 6) (note 3) (note 3)(note 7) interrupt request accepted (note 4) (when transmit buffer empty interrupt is selected) (when transmission finished interrupt is selected) write to the transmit buffer register note 1: changes of the interrupt controller's sio transmit interrupt control register interrupt request bit note 2: when transmit buffer empty interrupt is enabled (dma transfer can also be requested at the same time) note 3: when transmission finished interrupt is enable note 4: the interrupt controller's ivect register is read or the sio transmit interrupt control register interrupt request bit cleared note 5: a transmit interrupt request is generated when transmission is enabled. note 6: be aware that even after transmit data is written to the transmit buffer, a transmit interrupt request is generated whe n the data is transferred from the transmit buffer to the transmit shift register and the transmit buffer is thereby empt ied. note 7: a transmission finished interrupt request is generated when data in the transmit shift register has all been transmitte d. 12.6 transmit operation in uart mode
12 serial interface 12-54 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 12.7 receive operation in uart mode 12.7.1 initialization for uart reception to receive data in uart mode, initialize the serial interface following the procedure described below. (1) setting sio special mode register ? select the clock divider count source. ? set the data bit transfer order. ? 3-points sampling control. (2) setting sio transmit/receive mode register ? set the register to uart mode. ? set parity (when enabled, select odd/even). ? set the stop bit length. ? set the character length. note: ? during uart mode, settings of the internal/external clock select bit have no effect (only the internal clock is useful). (3) setting sio transmit control register ? set the clock divider?s divide-by ratio. (4) setting sio baud rate register set a baud rate generator value. (see section 12.6.1, ?setting the uart baud rate.?) (5) setting sio interrupt related registers ? select the source of receive interrupt request (reception finished or receive error) (interrupt request source select register). ? enable or disable receive interrupts (sio interrupt request mask register). (6) setting interrupt controller to use reception interrupts, set their priority levels. (7) setting dmac to issue dma transfer requests to the internal dmac when reception has finished, set up the dmac. (see chapter 9, ?dmac.?) (8) selecting pin functions because the serial interface related pins serve dual purposes, set the pin functions for use as sio pins or input/output ports. (see chapter 8, ?input/output ports and pin functions.?) 12.7 receive operation in uart mode
12 serial interface 12-55 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 12.7.1 procedure for initializing uart reception initialize uart reception  set the register to uart mode  set parity (when enabled, select odd/even)  set the stop bit length  set the character length set sio transmit/receive mode register (when using the dmac) set dmac related registers set interrupt controller's sio receive interrupt control register set sio interrupt related registers  select the source of receive interrupt request  enable or disable receive interrupt requests set sio baud rate register  select the clock divider divide-by ratio set sio transmit control register serial interface related registers end of uart receive initialization (when using interrupts)  divide-by ratio = h'00 to h'ff set input/output port operation mode register set sio special mode register  select the clock divider count source  set the transfer order  3-point sampling control 12.7 receive operation in uart mode
12 serial interface 12-56 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 12.7.2 starting uart reception the serial interface starts receive operation when all of the following conditions are met after being initialized. ? sio receive control register receive enable bit is set to "1" ? start bit (falling edge signal) is applied to the rxd pin when the above conditions are met, the serial interface enters uart receive operation. however, the start bit is checked again at the first rise of the internal receive shift clock and if it is detected "h" for reasons of noise, etc., the serial interface stops receive operation and waits for the start bit again. 12.7.3 processing at end of uart reception when data reception finishes, the following operation is automatically performed in hardware. (1) when reception is completed normally the reception finished (receive buffer full) bit is set to "1." notes: ? an interrupt request is generated if the reception finished (receive buffer full) interrupt has been enabled. ? a dma transfer request is generated. (2) when a receive error occurred if an error occurred, the corresponding error bit (oe, fe or pe) and the receive error sum bit are set to "1." notes: ? if the reception finished interrupt has been selected (by sio receive interrupt request source select register), a reception finished interrupt request is generated when interrupt requests are enabled. however, this does not apply when the detected error is an overrun error, in which case no reception finished interrupt requests are generated. ? if the receive error interrupt has been selected (by sio receive interrupt request source select register), a receive error interrupt request is generated when interrupt requests are enabled. ? no dma transfer requests are generated. 12.7 receive operation in uart mode
12 serial interface 12-57 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 12.7.2 receive operation during uart mode (hardware processing) the following processing is automatically performed in hardware. receive data yes yes no transfer data from the sio receive shift register to the sio receive buffer register set the sio receive control register reception finished bit to "1" set the receive status bit to "1" overrun error ? parity error or framing error ? receive conditions met ? start bit detected normally ? n0 set the sio receive control register overrun error bit and error sum bit to "1" set the sio receive control register's corresponding error bit and receive error sum bit to "1" no uart receive operation starts end of uart reception yes no yes 12.7 receive operation in uart mode
12 serial interface 12-58 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 12.7.4 example of uart receive operation the following shows a typical receive operation in uart mode. figure 12.7.3 example of uart reception (when received normally) txd rxd note 1: changes of the interrupt controller's sio receive interrupt control register interrupt request bit note 2: when reception finished interrupt is enabled (dma transfer can also be requested at the same time) note 3: the interrupt controller's ivect register is read or the sio receive interrupt control register interrupt request bit cleared receive enable bit (sio receive control register) b0 b6 b7 st sp sp par reception finished bit rxd set cleared : processing by software : interrupt request generated internal clock selected read from the receive buffer reception finished interrupt request (note 2) interrupt request accepted (note 3) receive status bit automatically cleared for each receive operation performed sio receive interrupt request (note 1) (when reception finished interrupt is selected) (when receive error interrupt is selected) no interrupt request 12.7 receive operation in uart mode
12 serial interface 12-59 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 12.7.4 example of uart reception (when overrun error occurred) txd rxd note 1: changes of the interrupt controller's sio receive interrupt control register interrupt request bit note 2: when reception finished interrupt is enabled note 3: when receive error interrupt is enabled note 4: this is done by clearing the receive enable bit to "0." note 5: the interrupt controller's ivect register is read or the sio receive interrupt control register interrupt request bit cleared receive enable bit (sio receive control register) b7 st sp sp reception finished bit rxd set : processing by software : interrupt request generated st b7 receive buffer not read during this interval first data reception completed next data reception completed (note 5) overrun error bit cleared (note 4) overrun error bit set sio receive interrupt request (note 1) (when reception finished interrupt is selected) reception finished interrupt request interrupt request accepted (note 5) receive error interrupt request (note 3) interrupt request accepted (note 5) (when receive error interrupt is selected) (note 2) 12.7 receive operation in uart mode
12 serial interface 12-60 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 12.7.7 delay in receive timing 12.7.5 start bit detection and data sampling timing during uart reception the start bit is sampled synchronously with the internal brg output. if the received signal remains "l" for 8 brg output cycles after the falling edge of the start bit, the cpu recognizes that part of the received signal as the start bit and starts latching the received data another 8 cycles after that, beginning with the lsb (first bit). if some sampled part of the received signal is "h" before being determined to be the start bit, the cpu starts hunting the falling edge of the received signal again. because the start bit is sampled synchronously with the internal brg output, there is a delay equivalent to one brg output cycle at maximum. the subsequent re- ceived data is latched into the internal circuit with that delayed timing. figure 12.7.5 start bit detection and data sampling timing figure 12.7.6 example of an invalid start bit (not received) internal brg output rxd lsb data 8 cycles 8 cycles note:  this diagram does not show detailed timing information. 8 cycles 8 cycles 16 cycles 16 cycles data sampling (data for first bit) start bit determined internal brg output rxd 8 cycles note:  this diagram does not show detailed timing information. internal rxd internal brg output rxd delay equivalent to one brg output cycle at maximum 12.7 receive operation in uart mode
12 serial interface 12-61 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 12.8 fixed period clock output function when using sio0, sio1, sio4 or sio5 in uart mode, the relevant port (p84, p87, p105 or p93) can be switched for use as an sclko0, sclko1, sclko4 or sclko5 pin, respectively. that way, a brg output clock divided by 2 can be output from the sclko pin. note: ? this clock is output not just during data transfer. 12.8 fixed period clock output function figure 12.8.1 example of fixed period clock output sclko txd rxd clock output to peripheral circuits uart transmission/reception st sp data st sp data 50% 50% brg period internal brg output sclko output 1. configuration when using brg/2 clock 2. operation timing
12 serial interface 12-62 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 12.9 notes on using uart mode ? settings of sio transmit/receive mode register and sio baud rate register the sio transmit/receive mode register, sio special mode register and sio baud rate register and the transmit control register?s brg count source select bit must always be set when the serial interface is not operating. if a transmit or receive operation is in progress, wait until the transmit and receive operations are finished and then clear the transmit and receive enable bits before making changes. ? settings of sion baud rate register writes to the sio baud rate register take effect in the next cycle after the brg counter has finished counting. however, if the register is accessed for write while transmission and reception are disabled, the written value takes effect at the same time it is written. ? transmission/reception using dma to transmit/receive data in dma request mode, enable the dmac to accept transfer requests (by setting the dma mode register) before serial communication starts. ? about overrun error if all bits of the next received data have been set in the sio receive shift register before reading out the sio receive buffer register (i.e., an overrun error occurred), the received data is not stored in the receive buffer register, with the previous received data retained in it. once an overrun error occurs, although a receive operation continues, the subsequent received data is not stored in the receive buffer register. before normal receive operation can be restarted, the receive enable bit must be temporarily cleared. and this is the only way that the overrun error flag can be cleared. ? flags showing the status of uart receive operation there are following flags that indicate the status of receive operation during uart mode: ? sio receive control register receive status bit ? sio receive control register reception finished bit ? sio receive control register receive error sum bit ? sio receive control register overrun error bit ? sio receive control register parity error bit ? sio receive control register framing error bit the manner in which the reception finished bit and various error flags are cleared differs depending on whether an overrun error occurred, as described below. [when an overrun error did not occur] cleared by reading out the lower byte of the receive buffer register or by clearing the receive enable bit. [when an overrun error occurred] cleared by only clearing the receive enable bit. ? switching from general-purpose to serial interface pin when switching from general-purpose port to the serial interface pin by the port operation mode register, the terminal txdn pin outputs "h" level. 12.9 notes on using uart mode
chapter 13 can module 13.1 outline of the can module 13.2 can module related registers 13.3 can protocol 13.4 initializing the can module 13.5 transmitting data frames 13.6 receiving data frames 13.7 transmitting remote frames 13.8 receiving remote frames 13.9 notes on can module
can module 13 13-2 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.1 outline of the can module the 32192/32195/32196 contains two-channel full can modules compliant with can (controller area network) specification v2.0b active. these can modules each have 32 message slots and four mask registers, effective use of which helps to reduce the data processing load of the cpu. the can modules are outlined below. table 13.1.1 outline of the can module item description protocol can specification v2.0b active number of message slots total 32 slots (30 global slots, two local slots) polarity 0: dominant 1: recessive acceptance filter global mask: 2 (function to receive only a range local mask: 2 of ids specified by receive id filter) baud rate 1 time quantum (tq) = (brp + 1) / (cpuclk/4) (brp: baud rate prescaler set value) baud rate = 1 ..... max 1 mbps (note 1) tq period number of tq?s for one bit brp: 1?255 (0: inhibited) number of tq?s for one bit = synchronization segment + propagation segment + phase segment 1 + phase segment 2 synchronization segment: 1tq propagation segment: 1?8tq phase segment 1: 1?8tq phase segment 2: 1?8tq (ipt = 1) remote frame automatic the slot that received a remote frame responds by automatically sending a data frame. response function timestamp function this function is implemented using a 16-bit counter. the count period is derived from the can bus bit period by dividing it by 1, 2, 3 or 4. basiccan mode slot 30 and slot 31 can be alternately received as received-only. transmit abort function transmit requests can be canceled. loopback function the can module receives the data transmitted by the module itself. return bus off function error active mode is forcibly entered into after clearing the error counter. single shot function transmission is not retried even when it failed due to arbitration-lost or a transmit error. dma transfer function dma transfer request is generated when transmission failed or transmit/receive operation finished. self-diagnostic function communication module is diagnosed by communicating internally in the can module. note 1: the maximum allowable error of oscillation depends on the system configuration (e.g., bus length, clock error, can bus transceiver, sampling position and bit configuration). 13.1 outline of the can module table 13.1.2 dma transfer requests generated by can dma transfer request by can dmac input channel can0: slot 0 transmission failed or slot 31 transmit/receive operation finished dma0, dma6 can0: slot 1 transmission failed or slot 30 transmit/receive operation finished dma2, dma7 can1: slot 0 transmission failed or slot 31 transmit/receive operation finished dma5, dma8 can1: slot 1 transmission failed or slot 30 transmit/receive operation finished dma7, dma9
can module 13 13-3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 table 13.1.3 interrupt requests generated by can modules can module interrupt request source icu interrupt request source can0 transmission completed can0 transmit/receive & error interrupt, can0 transmit/receive completion interrupt can1 transmission completed can1 transmit/receive & error interrupt, can1 transmit/receive completion interrupt can0 reception completed can0 transmit/receive & error interrupt, can0 transmit/receive completion interrupt can1 reception completed can1 transmit/receive & error interrupt, can1 transmit/receive completion interrupt can0 bus error can0 transmit/receive & error interrupt, can0 error interrupt can1 bus error can1 transmit/receive & error interrupt, can1 error interrupt can0 error passive can0 transmit/receive & error interrupt, can0 error interrupt can1 error passive can1 transmit/receive & error interrupt, can1 error interrupt can0 bus off can0 transmit/receive & error interrupt, can0 error interrupt can1 bus off can1 transmit/receive & error interrupt, can1 error interrupt can0 single shot can0 transmit/receive & error interrupt, can0 single-shot interrupt can1 single shot can1 transmit/receive & error interrupt, can1 single-shot interrupt acceptance filter self- diagnosis control baud rate prescaler cpuclk/4 message slot 32 transmit/receive completed, error or single shot dma0, 6 dma2, 7 can0 internal data bus interrupt crx0 dam request can protocol controller acceptance filter self- diagnosis control baud rate prescaler cpuclk/4 message slot 32 transmit/receive completed, error or single shot can1 interrupt ctx1 crx1 can protocol controller dam request dma5, 8 dma7, 9 ctx0 figure 13.1.1 block diagram of the can modules 13.1 outline of the can module
13.2 can module related registers can module 13 13-4 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.2 can module related registers shown below is a can module related register map. can module related register map (1/19) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 052a can bus mode control register 13-23 (canbuscr) 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) (canslimk) 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) |
13.2 can module related registers can module 13 13-5 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can module related register map (2/19) address +0 address +1 address see pages b0 b7 b8 b15 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) 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) h'0080 104c (use inhibited area) h'0080 104e (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) |
13.2 can module related registers can module 13 13-6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can module related register map (3/19) address +0 address +1 address see pages b0 b7 b8 b15 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 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
13.2 can module related registers can module 13 13-7 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can module related register map (4/19) address +0 address +1 address see pages b0 b7 b8 b15 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) 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
13.2 can module related registers can module 13 13-8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can module related register map (5/19) address +0 address +1 address see pages b0 b7 b8 b15 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 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)
13.2 can module related registers can module 13 13-9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can module related register map (6/19) address +0 address +1 address see pages b0 b7 b8 b15 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 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)
13.2 can module related registers can module 13 13-10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can module related register map (7/19) address +0 address +1 address see pages b0 b7 b8 b15 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 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)
13.2 can module related registers can module 13 13-11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can module related register map (8/19) address +0 address +1 address see pages b0 b7 b8 b15 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 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) 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)
13.2 can module related registers can module 13 13-12 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can module related register map (9/19) address +0 address +1 address see pages b0 b7 b8 b15 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 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)
13.2 can module related registers can module 13 13-13 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can module related register map (10/19) address +0 address +1 address see pages b0 b7 b8 b15 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) 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) |
13.2 can module related registers can module 13 13-14 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can module related register map (11/19) address +0 address +1 address see pages b0 b7 b8 b15 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) 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) |
13.2 can module related registers can module 13 13-15 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can module related register map (12/19) address +0 address +1 address see pages b0 b7 b8 b15 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 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 |
13.2 can module related registers can module 13 13-16 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can module related register map (13/19) address +0 address +1 address see pages b0 b7 b8 b15 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) 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)
13.2 can module related registers can module 13 13-17 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can module related register map (14/19) address +0 address +1 address see pages b0 b7 b8 b15 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 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)
13.2 can module related registers can module 13 13-18 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can module related register map (15/19) address +0 address +1 address see pages b0 b7 b8 b15 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 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)
13.2 can module related registers can module 13 13-19 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can module related register map (16/19) address +0 address +1 address see pages b0 b7 b8 b15 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-112 (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-112 (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 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-112 (c1msl19dt6) (c1msl19dt7) 13-113 h'0080 163e can1 message slot 19 timestamp 13-115 (c1msl19tsp)
13.2 can module related registers can module 13 13-20 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can module related register map (17/19) address +0 address +1 address see pages b0 b7 b8 b15 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-112 (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-112 (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-112 (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 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-112 (c1msl23dt6) (c1msl23dt7) 13-113 h'0080 167e can1 message slot 23 timestamp 13-115 (c1msl23tsp)
13.2 can module related registers can module 13 13-21 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can module related register map (18/19) address +0 address +1 address see pages b0 b7 b8 b15 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-112 (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-112 (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-112 (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-112 (c1msl27dt6) (c1msl27dt7) 13-113 h'0080 16be can1 message slot 27 timestamp 13-115 (c1msl27tsp)
13.2 can module related registers can module 13 13-22 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can module related register map (19/19) address +0 address +1 address see pages b0 b7 b8 b15 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-112 (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-112 (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-112 (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-112 (c1msl31dt6) (c1msl31dt7) 13-113 h'0080 16fe can1 message slot 31 timestamp 13-115 (c1msl31tsp)
13.2 can module related registers can module 13 13-23 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.2.1 can bus mode control register can bus mode control register (canbuscr) 123456b7 b0 cbusselp 00000000 cbussel b bit name function r w 0?5 no function assigned. fix to "0." 00 6 cbusselp 0w cbussel write control bit 7 cbussel 0: can0/can1 can bus independent r w can bus mode select bit 1: can0/can1 can bus share note: ? change this register value with frst bits (inside the can control register) of both can0 & can1 set at "1." by setting the cbussel bit to "1," two can modules are internally connected, which can be used artificially as 64-slot can. ? when cbussel = 0 can0 and can1 use ctx0/crx0 and ctx1/crx1 as a pin, respectively. ? when cbussel = 1 both can0 and can1 use ctx0/crx0 as a pin. when can0 / can1 can bus share (cbussel = 1 ) are described below. ? do not select ctx1/crx1 with the port operation mode register/port peripheral function select register. ? when both cans generate a transmit request and both can0/can1 in operation, the output of can having id with higher priority corresponds to ctx0 output due to internal arbitration. also, the can lost in arbitration then operates as a receiving node, but no dominant level is output in the ack field. ? in case where both can0 and can1 are operated, the cans do not perform operation as error passive node as viewed from the outside unless the both of them are in error passive state. the cans do not perform operation as error bus off node as viewed from the outside unless the both of them are in error bus off state. therefore, consideration is required such as making both cans error states the same in software. ? do not set the transmit slot that has the same id in both can0 and can1. ? when both can0 and can1 are being operated, if there is a slot which completes one can transmission and meets the receiving conditions by the other can, "the other can" stores the received data. when set this register, procedure is described below. 1. write "1" in cbussel write control bit (cbusselp) 2. following 1. write "0" in cbussel write control bit (cbusselp), write "0" or "1" in cbussel output prohibition select bit (cbussel) note: ? if theare are writing cycles from cpu, dma, sdi (tool), nbd to any other area between 1 and 2, the continuous setting (a pair of two consecutive is 1 set for writing operation) is disabled and the writing value is not reflected. therefore, disable interrupts and dma transfers before setting. however the writing cycle from rtd and dri are not effected.
13.2 can module related registers can module 13 13-24 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 13.2.1 configuration of the can bus mode selection circuit (image) rx crx1 can1 ctx1 tx rx can bus mode selection (cbussel) crx0 can0 ctx0 tx can bus mode selection (cbussel)
13.2 can module related registers can module 13 13-25 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 13.2.2 cbussel setting procedure if a write cycle to any other area occurs during this interval, the value that was set in the cbussel bits is not reflected. (note 1) cbusselp "1" cbusselp "0" cbussel 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) cbusselp "1" write to other area (1) (2) cbusselp "1" cbusselp "1" because these two consecutive writes comprise a pair, the next set value is not reflected. cbusselp "0" cbussel set value cbusselp "0" cbussel set value 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 do not effect.
13.2 can module related registers can module 13 13-26 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.2.2 can control registers can0 control register (can0cnt) can1 control register (can1cnt) b0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 b15 fr st t sp tsr rb o bcm lbm rst 0 0 0 0 0 00 0 0 0 0 1 0 0 01 b bit name function r w 0?3 no function assigned. fix to "0." 00 4 rbo 0: enable normal operation r(note 1) return bus off bit 1: request clearing of error counter 5 tsr 0: enable count operation r(note 1) timestamp counter reset bit 1: initialize count (to h?0000) 6?7 tsp 00: select can bus bit clock r w timestamp prescaler bit 01: select can bus bit clock divided by 2 10: select can bus bit clock divided by 3 11: select can bus bit clock divided by 4 8-10 no function assigned. fix to "0." 00 11 frst 0: negate reset r w forcible reset bit 1: forcibly reset 12 bcm 0: disable basiccan mode r w basiccan mode bit 1: basiccan mode 13 no function assigned. fix to "0." 00 14 lbm 0: disable loopback function r w loopback mode bit 1: enable loopback function 15 rst 0: negate reset r w can reset bit 1: request reset note 1: only writing "1" is effective. automatically cleared to "0" in hardware.
13.2 can module related registers can module 13 13-27 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (1) rbo (return bus off) bit (bit 4) setting this bit to "1" under bus off stage clears the can receive error count register (can0rec, can1rec) and can transmit error count register (can0tec, can1tec) to h'00 and forcibly places the can module into an error active state. this bit is cleared when the can module goes to an error active state. notes: ? communication becomes possible when 11 consecutive recessive bits are detected on the can bus after clearing the error counters. ? do not set this bit to "1" under the error active state and communication enable condition in the error passive state. (2) tsr (timestamp counter reset) bit (bit 5) setting this bit to "1" clears the value of the can timestamp count register (can0tstmp, can1tstmp) to h?0000. this bit is cleared after the value of the can timestamp count register (can0tstmp, can1tstmp) is cleared to h?0000. (3) tsp (timestamp prescaler) bits (bits 6, 7) these bits select the count clock source for the timestamp counter. note: ? do not change settings of the tsp bits while can is operating (can status register crs bit = "0"). (4) frst (forcible reset) bit (bit 11) when the frst bit is set to "1," the can module is separated from the can bus and the protocol control unit is reset regardless of whether the can module currently is communicating. up to 5 bclk periods are required before the protocol control unit is reset after setting the frst bit. notes: ? in order for can communication to start, the frst and rst bits must be cleared to "0." ? if the frst bit is set to "1" during communication, the ctx pin output goes "h" (fixed) imme- diately after that. therefore, setting the frst bit to "1" while sending can frame may cause a can bus error. ? the can message slot control register?s transmit/receive requests are not cleared for rea- sons that the frst or rst bits are set. ? when the protocol control unit is reset by setting the frst bit to "1," the can timestamp count and can transmit/receive error count registers are initialized to "0." (5) bcm (basiccan mode) bit (bit 12) by setting this bit to "1," local slot 30 and 31 of the can module can be operated in basiccan mode. ? operation during basiccan mode during basiccan mode, two local slots?slots 30 and 31?are used as dual buffers, and the received frames with matching id are stored alternately in slots 30 and 31 by acceptance filtering. used for this acceptance filtering when slot 30 is active (next received frame to be stored in slot 30) are the id set in slot 30 and local mask a, and those when slot 31 is active are the id set in slot 31 and local mask b. two types of frames?data frame and remote frame?can be received in this mode. by setting the same id and the same mask register value for the two slots, the possibility of loosing messages when, for example, receiving frames which have many ids may be reduced.
13.2 can module related registers can module 13 13-28 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 ? procedure for entering basiccan mode follow the procedure below during initialization: 1) set the id for slots 30 and 31 and the local mask registers a and b. (we recommend setting the same value.) 2) set the frame types to be handled by slots 30 and 31 (standard or extended) in the can frame format select register. (we recommend setting the same type.) 3) set the message slot control registers for slots 30 and 31 for data frame reception. 4) set the bcm bit to "1." notes: ? do not change settings of the bcm bit while can is operating (can status register crs bit = "0"). ? the first slot that is active after clearing the rst bit is slot 30. ? even during basiccan mode, slots 0 to 29 can be used the same way as in normal operation. (6) lbm (loopback mode) bit (bit 14) when the lbm bit is set to "1," if a receive slot exists whose id matches that of the frame sent by the can module itself, then the frame can be received. notes: ? ack is not returned for the frame sent by itself. ? do not change settings of the lbm bit while can is operating (can status register crs bit = "0"). ? after complete sending frame correctly, tsc bit in can status register (cannstat) is "1", but rsc bit is not "1." and it is possible to symbiotic for transmit complete interrupt request and receive complete interrupt request. (7) rst (can reset) bit (bit 15) when the rst bit is cleared to "0," the can module is connected to the can bus and becomes ready to communicate after detecting 11 consecutive recessive bits. also, the can timestamp count register thereby starts counting. when the rst bit is set to "1," the bus enters an idle state after sending frames from the slots which have transmit requests set by that time. then, the protocol control unit enters a reset state and the can module is disconnected from the can bus. frames received during this time are processed normally. when setting rst bit to "1" under bus off state, it exits from bus off state after detecting 11 consecutive recessive bits on can bus 128 times, and then protocol control unit enters a reset state. notes: ? it is inhibited to set a new transmit request until the protocol control unit is reset (can status register crs bit is set to "1") after setting the rst bit to "1." ? when the protocol control unit is reset by setting the rst bit to "1," the can timestamp count and can transmit/receive error count registers are initialized to "0." ? in order for can communication to start, the frst and rst bits must be cleared to "0."
13.2 can module related registers can module 13 13-29 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.2.3 can status registers can0 status register (can0stat) can1 status register (can1stat) b0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 b15 tsc rsc tsb rsb crs lbs bcs cbs eps bos msn 0 0000 0 0100000000 b bit name function r w 0 no function assigned. fix to "0." 00 1 bos 0: not bus off r ? bus off status bit 1: bus off state 2 eps 0: not error passive r ? error passive status bit 1: error passive state 3 cbs 0: no error occurred r ? can bus error bit 1: error occurred 4 bcs 0: normal mode r ? basiccan status bit 1: basiccan mode 5 no function assigned. fix to "0." 00 6 lbs 0: normal mode r ? loopback status bit 1: loopback mode 7 crs 0: operating r ? can reset status bit 1: reset 8 rsb 0: not receiving r ? receive status bit 1: receiving 9 tsb 0: not sending r ? transmit status bit 1: sending 10 rsc 0: reception not completed r ? reception completed status bit 1: reception completed 11 tsc 0: transmission not completed r ? transmission completed status bit 1: transmission completed 12?15 msn number of the message slot which has finished r ? message slot number bit sending or receiving (note 1) 0000: slot 0 0001: slot 1 0010: slot 2 0011: slot 3 0100: slot 4 0101: slot 5 0110: slot 6 0111: slot 7 1000: slot 8 1001: slot 9 1010: slot 10 1011: slot 11 1100: slot 12 1101: slot 13 1110: slot 14 1111: slot 15 note 1: when all these slots (32 slots) are used, refer to "cann message slot number register (cannmsn)."
13.2 can module related registers can module 13 13-30 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (1) bos (bus off status) bit (bit 1) when bos bit = "1," it means that the can module is in a bus off state. [set condition] this bit is set to "1" when the transmit error count register value exceeded 255 and a bus off state is entered. [clear condition] this bit is cleared when restored from the bus off state. (2) eps (error passive status) bit (bit 2) when eps bit = "1," it means that the can module is in an error passive state. [set condition] this bit is set to "1" when the transmit or receive error count register value exceeded 127 and an error passive state is entered. [clear condition] this bit is cleared when restored from the error passive state. (3) cbs (can bus error) bit (bit 3) [set condition] this bit is set to "1" when an error is detected on the can bus. [clear condition] this bit is cleared when the can module finished sending or receiving normally. (4) bcs (basiccan status) bit (bit 4) when bcs bit = "1," it means that the can module is operating in basiccan mode. [set condition] this bit is set to "1" when the can module is operating in basiccan mode. basiccan mode is useful when the following conditions are met: ? can control register bcm bit = "1" ? slots 30 and 31 both are set for data frame reception [clear condition] this bit is cleared by clearing the bcm bit to "0." (5) lbs (loopback status) bit (bit 6) when lbs bit = "1," it means that the can module is operating in loopback mode. [set condition] this bit is set to "1" by setting the can control register lbm (loopback mode) bit to "1." [clear condition] this bit is cleared by clearing the lbm bit to "0."
13.2 can module related registers can module 13 13-31 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (6) crs (can reset status) bit (bit 7) when crs bit = "1," it means that the protocol control unit is in a reset state. [set condition] this bit is set to "1" when the can protocol control unit is in a reset state. [clear condition] this bit is cleared by clearing the can control register rst (can reset) and frst bits to "0." however, it requires one bit of set baud rate worth of time to have crs bit cleared to "0" after rst bit and frst bit are cleared to "0." (7) rsb (receive status) bit (bit 8) [set condition] this bit is set to "1" when the can module is operating as a receive node. [clear condition] this bit is cleared when the can module starts operating as a transmit node or enters a bus idle state. (8) tsb (transmit status) bit (bit 9) [set condition] this bit is set to "1" when the can module is operating as a transmit node. [clear condition] this bit is cleared when the can module starts operating as a receive node or enters a bus idle state. (9) rsc (reception completed status) bit (bit 10) [set condition] this bit is set to "1" when the can module has finished receiving normally (regardless of whether there is any slot that meets receive conditions). [clear condition] this bit is cleared when the can module has finished sending normally. (10) tsc (transmission completed status) bit (bit 11) [set condition] this bit is set to "1" when the can module has finished sending normally. [clear condition] this bit is cleared when the can module has finished receiving normally. (11) msn (message slot number) bits (bits 12?15) these bits indicate lower 4 bits of the relevant slot number when the can module has finished sending or finished storing the received data. slots 0 to 15 and 16 to 31 have the same value. when only slots 0 to 15 or slots 16 to 31 are used, these bits can be read out simultaneously with other status bits. in the case where all slots are used, refer to "cann message slot number register (cannmsn)." these bits cannot be cleared to "0" in software. note: ? when can module receives the frame that is transmitted by the can module itself during loopback mode, the msn bits indicate the transmit slot number.
13.2 can module related registers can module 13 13-32 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.2.4 can configuration registers can0 configuration register (can0conf) can1 configuration register (can1conf) b0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 b15 sam prb ph1 ph2 sjw 000000000000 0 0 0 0 b bit name function r w 0?1 sjw 00: sjw = 1tq r w resynchronization jump width setting bit 01: sjw = 2tq 10: sjw = 3tq 11: sjw = 4tq 2?4 ph2 000: phase segment2 = 1tq r w phase segment2 setting bit 001: phase segment2 = 2tq 010: phase segment2 = 3tq 011: phase segment2 = 4tq 100: phase segment2 = 5tq 101: phase segment2 = 6tq 110: phase segment2 = 7tq 111: phase segment2 = 8tq 5?7 ph1 000: phase segment1 = 1tq r w phase segment1 setting bit 001: phase segment1 = 2tq 010: phase segment1 = 3tq 011: phase segment1 = 4tq 100: phase segment1 = 5tq 101: phase segment1 = 6tq 110: phase segment1 = 7tq 111: phase segment1 = 8tq 8?10 prb 000: propagation segment = 1tq r w propagation segment setting bit 001: propagation segment = 2tq 010: propagation segment = 3tq 011: propagation segment = 4tq 100: propagation segment = 5tq 101: propagation segment = 6tq 110: propagation segment = 7tq 111: propagation segment = 8tq 11 sam 0: sampled one time r w sampling count select bit 1: sampled three times 12?15 no function assigned. fix to "0." 00 notes: ? do not change settings of the can configuration register (can0conf or can1conf) during can operation (can status register crs bit = "0"). ? bit configuration is specified by the can protocol specification in such a way that it satisfies the conditions given below: ? number of tq?s for one bit: 8?25 tq?s ? sjw min (phase segment1, phase segment2) ? phase segment2 = max (phase segment1, ipt*) where ipt = 1 for the internal can modules of the 32192/ 32195/32196 min() is the function that returns the smaller of two values; max() is the function that returns the maximum value. *ipt is an abbreviation for information processing time, which is the time immediately after the sampling point.
13.2 can module related registers can module 13 13-33 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (1) sjw bits (bits 0?1) these bits set the resynchronization jump width. (2) ph2 bits (bits 2?4) these bits set the width of phase segment2. (3) ph1 bits (bits 5?7) these bits set the width of phase segment1. (4) prb bits (bits 8?10) these bits set the width of propagation segment. (5) sam bit (bit 11) this bit sets the number of times each bit is sampled. when sam = "0," the value sampled at the end of phase segment1 is assumed to be the value of the bit. when sam = "1," the value of the bit is determined by a majority circuit from three sampled values, each sampled 2 tq?s before, 1 tq before, and at the end of phase segment1. table 13.2.1 typical settings of bit timing when f(cpuclk) = 160 mhz (note 2) baud rate brp set value tq period (ns) no. of tq?s in 1 bit prop + ph1 ph2 sampling point 1m bps 1 50 20 16 3 85% (note 1) 15 4 80% (note 1) 14 5 75% (note 1) 3 100 10 7 2 80% 6 3 70% 5 4 60% 4 125 8 6 1 88% 5275% 4 3 63% 500k bps 3 100 20 16 3 85% (note 1) 15 4 80% (note 1) 14 5 75% (note 1) 4 125 16 13 2 88% (note 1) 12 3 81% (note 1) 11 4 75% 7 200 10 8 1 90% 7 2 80% 6 3 70% 9 250 8 6 1 88% 5 2 75% 4 3 63% note 1: ph2 = max (ph1, ipt), that is specified in can protocol, cannot be met. note 2: as for can module clock, select cpuclk/4 in can clock select register. note: ? it does not mean that the communication at the above baud rate settings is guaranteed. sufficient evaluation and verification are required before use.
13.2 can module related registers can module 13 13-34 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 table 13.2.2 typical settings of bit timing when f(cpuclk) = 128 mhz (note 2) baud rate brp set value tq period (ns) no. of tq?s in 1 bit prop + ph1 ph2 sampling point 1m bps 1 62.5 16 13 2 88% (note 1) 12 3 81% (note 1) 11 4 75% 3 125 8 6 1 88% 5 2 75% 4 3 63% 500k bps 3 125 16 12 3 81% (note 1) 11 4 75% 10 5 69% 7 250 8 6 1 88% 5 2 75% 4 3 63% note 1: ph2 = max (ph1, ipt), that is specified in can protocol, cannot be met. note 2: as for can module clock, select cpuclk/4 in can clock select register. note: ? it does not mean that the communication at the above baud rate settings is guaranteed. sufficient evaluation and verification are required before use.
13.2 can module related registers can module 13 13-35 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.2.5 can timestamp count registers can0 timestamp count register (can0tstmp) can1 timestamp count register (can1tstmp) b0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 b15 cantstmp 0000000000000000 b bit name function r w 0?15 cantstmp 16-bit timestamp count value r ? the can module contains a 16-bit up-count register. the count period can be selected from the can bus bit period divided by 1, 2, 3 or 4 by setting the can control register (can0cnt, can1cnt) tsp (timestamp prescaler) bits. when the can module finishes sending or receiving, it captures the count register value and stores the value in a message slot. the counter is made to start counting by clearing the can control register (can0cnt, can1cnt) rst bit to "0." notes: ? the can protocol control unit can be reset and the counter initialized to h?0000 by setting the can control register ( can0cnt, can1cnt) rst (can reset) bit to "1." or the counter can be initialized to h?0000 while the can module remains operating by setting the tsr (timestamp counter reset) bit to "1." ? if any slot with the matching id exists during loopback mode, the can module stores the timestamp value in that slot when it finished receiving. (no timestamp values are stored this way when the can module finished sending.) ? the count period of the can timestamp count register varies with the can resynchronization function.
13.2 can module related registers can module 13 13-36 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.2.6 can error count registers can0 receive error count register (can0rec) can1 receive error count register (can1rec) 123456b7 b0 rec 00000000 b bit name function r w 0?7 rec receive error count value r ? during an error active/error passive state, a receive error count value is stored in this register. the count is decremented when frames are received normally or incremented when an error occurred. if the can module finished receiving normally when rec 128 (error passive), rec is set to 127. during a bus off state, an undefined value is stored in this register. the count is reset to h?00 upon returning to an error active state. can0 transmit error count register (can0tec) can1 transmit error count register (can1tec) 9 10 11 12 13 14 b15 b8 tec 00000000 b bit name function r w 8?15 tec transmit error count value r ? during an error active/error passive state, a transmit error count value is stored in this register. the count is decremented when frames are transmitted normally or incremented when an error occurred. during a bus off state, an undefined value is stored in this register. the count is reset to h?00 upon returning to an error active state.
13.2 can module related registers can module 13 13-37 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.2.7 can baud rate prescalers can0 baud rate prescaler (can0brp) can1 baud rate prescaler (can1brp) 123456b7 b0 brp 00000001 b bit name function r w 0?7 brp can baud rate prescaler value r w this register sets the tq period of can. the can baud rate is determined by (tq period number of tq?s in one bit). tq period = (brp set value + 1) / (cpuclk/4) can transfer baud rate = 1 tq period number of tq?s in one bit number of tq?s in one bit = synchronization segment + propagation segment + phase segment 1 + phase segment 2 notes: ? setting h?00 (divide by 1) is inhibited. ? do not change settings of the can baud rate prescaler (cannbrp) during can operation (can status register crs bit = "0"). ? as for can module clock, select cpuclk/4 in can clock select register.
13.2 can module related registers can module 13 13-38 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.2.8 can interrupt related registers the can interrupt related registers are used to control the interrupt request signals output to the interrupt con- troller by can. the can interrupt request is of 3 types as follows: ? can transmit/receive completion interrupt request ? can error interrupt request ? can single-shot interrupt request these combined interrupt requests corresponds to can transmit/receive & error interrupt request. figure 13.2.4 interrupt request status and mask registers to the interrupt controller interrupt request from each peripheral function interrupt request status data bus set  group interrupt interrupt request enable clear f/f f/f data = 0 (1) interrupt request status bit this status bit is used to determine whether an interrupt is requested. when an interrupt request occurs, this bit is set in hardware (cannot be set in software). the status bit is cleared by writing "0." writing "1" has no effect; the bit retains the status it had before the write. because this bit is unaffected by the interrupt request mask bit, it can also be used to inspect the operating status of peripheral functions. in interrupt handling, make sure that within the grouped interrupt request status, only the status bit for the interrupt request that has been serviced is cleared. if the status bit for any interrupt request that has not been serviced is cleared, the pending interrupt request is cleared simultaneously with its status bit. (2) interrupt request mask bit this bit is used to disable unnecessary interrupt requests within the grouped interrupt request. set this bit to "1" to enable interrupt requests or "0" to disable interrupt requests. figure 13.2.3 block diagram of the can interrupt requests can transmit/receive & error interrupt reques t can transmit/receive completion interrupt request can single-shot interrupt request can error interrupt request
13.2 can module related registers can module 13 13-39 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 13.2.5 example for clearing interrupt request status b4 5 b7 interrupt request status initial state event occurs on bit 6 interrupt request event occurs on bit 4 only bit 6 cleared bit 4 data retained b4 5 b7 1 1 0 1 write to the interrupt request status example for clearing interrupt request status 0 0 0 0 0 0 1 0 1 0 1 0 1 0 0 0 program example istreg = 0xfd; /* clear istat1 (0x02 bit) only */  to clear the interrupt request status register 0 (istreg) interrupt request status 1, istat1 (0x02 bit) to clear an interrupt request status, always be sure to write 1 to all other interrupt request status bits. at this time, avoid using a logic operation like the one shown below. because it requires three step-istreg read, logic operation and write, if another interrupt request occurs between the read and write, status may be inadvertently cleared. b4 5 6 b7 interrupt request status event occurs on bit 6 event occurs on bit 4 only bit 6 cleared bit 4 also cleared 0 0 1 0 1 0 1 0 0 0 0 0 read 0 0 1 0 0 0 0 0 clear bit 6 (and'ing with 1101) write 6 6 istreg &= 0xfd; /* clear istat1 (0x02 bit) only */
13.2 can module related registers can module 13 13-40 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can0 slot interrupt request status register (can0slistw) can1 slot interrupt request status register (can1slistw) b0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 b15 ssb0 ssb1 ssb2 ssb3 ssb4 ssb6 ssb7 ssb8 ssb9 ssb10 ssb11 ssb12 ssb13 ssb14 ssb15 ssb5 0000000000000000 b16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 b31 ssb16 ssb17 ssb18 ssb19 ssb20 ssb22 ssb23 ssb24 ssb25 ssb26 ssb27 ssb28 ssb29 ssb30 ssb31 ssb21 0000000000000000 b bit name function r w 0 ssb0 (slot 0 interrupt request status bit) 0: interrupt not requested r(note 1) 1 ssb1 (slot 1 interrupt request status bit) 1: interrupt requested 2 ssb2 (slot 2 interrupt request status bit) 3 ssb3 (slot 3 interrupt request status bit) 4 ssb4 (slot 4 interrupt request status bit) 5 ssb5 (slot 5 interrupt request status bit) 6 ssb6 (slot 6 interrupt request status bit) 7 ssb7 (slot 7 interrupt request status bit) 8 ssb8 (slot 8 interrupt request status bit) 9 ssb9 (slot 9 interrupt request status bit) 10 ssb10 (slot 10 interrupt request status bit) 11 ssb11 (slot 11 interrupt request status bit) 12 ssb12 (slot 12 interrupt request status bit) 13 ssb13 (slot 13 interrupt request status bit) 14 ssb14 (slot 14 interrupt request status bit) 15 ssb15 (slot 15 interrupt request status bit) 16 ssb16 (slot 16 interrupt request status bit) 17 ssb17 (slot 17 interrupt request status bit) 18 ssb18 (slot 18 interrupt request status bit) 19 ssb19 (slot 19 interrupt request status bit) 20 ssb20 (slot 20 interrupt request status bit) 21 ssb21 (slot 21 interrupt request status bit) 22 ssb22 (slot 22 interrupt request status bit) 23 ssb23 (slot 23 interrupt request status bit) 24 ssb24 (slot 24 interrupt request status bit) 25 ssb25 (slot 25 interrupt request status bit) 26 ssb26 (slot 26 interrupt request status bit) 27 ssb27 (slot 27 interrupt request status bit) 28 ssb28 (slot 28 interrupt request status bit) 29 ssb29 (slot 29 interrupt request status bit) 30 ssb30 (slot 30 interrupt request status bit) 31 ssb31 (slot 31 interrupt request status bit) note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the status it had before the write.
13.2 can module related registers can module 13 13-41 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 when using can interrupts, this register helps to know which slot requested an interrupt. ? slots set for transmission the corresponding bit is set to "1" when the can module finished sending. this bit is cleared by writing "0" in software. ? slots set for reception the corresponding bit is set to "1" when the can module finished receiving and finished storing the re- ceived message in the message slot. this bit is cleared by writing "0" in software. when writing to the can slot interrupt request status, make sure only the bits to be cleared are set to "0" and all other bits are set to "1." those bits that have been set to "1" are unaffected by writing in software and retain the value they had before the write. notes: ? if the automatic response function is enabled for remote frame receive slots, the request status is set after the can module finished receiving a remote frame and after it finished sending a data frame. ? for remote frame transmit slots, the request status is set after the can module finished send- ing a remote frame and after it finished receiving a data frame. ? if the request status is set by an interrupt request at the same time it is cleared in software, the former has priority so that the request status is set.
13.2 can module related registers can module 13 13-42 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can0 slot interrupt request mask register (can0slimkw) can1 slot interrupt request mask register (can1slimkw) b0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 b15 irb0 irb1 irb2 irb3 irb4 irb6 irb7 irb8 irb9 irb10 irb11 irb12 irb13 irb14 irb15 irb5 0000000000000000 b16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 b31 irb16 irb17 irb18 irb19 irb20 irb22 irb23 irb24 irb25 irb26 irb27 irb28 irb29 irb30 irb31 irb21 0000000000000000 b bit name function r w 0 irb0 (slot 0 interrupt request mask bit) 0: mask (disable) interrupt request r w 1 irb1 (slot 1 interrupt request mask bit) 1: enable interrupt request 2 irb2 (slot 2 interrupt request mask bit) 3 irb3 (slot 3 interrupt request mask bit) 4 irb4 (slot 4 interrupt request mask bit) 5 irb5 (slot 5 interrupt request mask bit) 6 irb6 (slot 6 interrupt request mask bit) 7 irb7 (slot 7 interrupt request mask bit) 8 irb8 (slot 8 interrupt request mask bit) 9 irb9 (slot 9 interrupt request mask bit) 10 irb10 (slot 10 interrupt request mask bit) 11 irb11 (slot 11 interrupt request mask bit) 12 irb12 (slot 12 interrupt request mask bit) 13 irb13 (slot 13 interrupt request mask bit) 14 irb14 (slot 14 interrupt request mask bit) 15 irb15 (slot 15 interrupt request mask bit) 16 irb16 (slot 16 interrupt request mask bit) 17 irb17 (slot 17 interrupt request mask bit) 18 irb18 (slot 18 interrupt request mask bit) 19 irb19 (slot 19 interrupt request mask bit) 20 irb20 (slot 20 interrupt request mask bit) 21 irb21 (slot 21 interrupt request mask bit) 22 irb22 (slot 22 interrupt request mask bit) 23 irb23 (slot 23 interrupt request mask bit) 24 irb24 (slot 24 interrupt request mask bit) 25 irb25 (slot 25 interrupt request mask bit) 26 irb26 (slot 26 interrupt request mask bit) 27 irb27 (slot 27 interrupt request mask bit) 28 irb28 (slot 28 interrupt request mask bit) 29 irb29 (slot 29 interrupt request mask bit) 30 irb30 (slot 30 interrupt request mask bit) 31 irb31 (slot 31 interrupt request mask bit) this register is used to enable or disable the interrupt requests that will be generated when data transmission or reception in each corresponding slot is completed. setting irbn (n = 0?31) to "1" enables the interrupt request to be generated when data transmission or reception in the corresponding slot is completed. the can slot interrupt request status register (can0slistw, can1slistw) helps to know which slot requested the interrupt.
13.2 can module related registers can module 13 13-43 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can0 error interrupt request status register (can0erist) can1 error interrupt request status register (can1erist) 123456b7 b0 eis pis ois 000 0 0 0 0 0 b bit name function r w 0?4 no function assigned. fix to "0." 00 5 eis 0: interrupt not requested r(note 1) can bus error interrupt request status bit 1: interrupt requested 6 pis error passive interrupt request status bit 7 ois bus off interrupt request status bit note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the status it had before the write. when using can interrupts, if the interrupt request sources are associated with errors, this register helps to know which source generated the interrupt. (1) eis (can bus error interrupt request status) bit (bit 5) the eis bit is set to "1" when a communication error is detected. this bit is cleared by writing "0" in software. (2) pis (error passive interrupt request status) bit (bit 6) the pis bit is set to "1" when the can module goes to an error passive state. this bit is cleared by writing "0" in software. (3) ois (bus off interrupt request status) bit (bit 7) the ois bit is set to "1" when the can module goes to a bus off passive state. this bit is cleared by writing "0" in software. when writing to the can error interrupt request status, make sure only the bits to be cleared are set to "0" and all other bits are set to "1." those bits that have been set to "1" are unaffected by writing in software and retain the value they had before the write.
13.2 can module related registers can module 13 13-44 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can0 error interrupt request mask register (can0erimk) can1 error interrupt request mask register (can1erimk) 9 10 11 12 13 14 b15 b8 eim pim oim 000 0 0 0 0 0 b bit name function r w 8?12 no function assigned. fix to "0." 00 13 eim 0: mask (disable) interrupt request r w can bus error interrupt request mask bit 1: enable interrupt request 14 pim error passive interrupt request mask bit 15 oim bus off interrupt request mask bit (1) eim (can bus error interrupt request mask) bit (bit 13) the eim bit enables or disables the interrupt requests to be generated when can bus errors occurred. can bus error interrupt requests are enabled by setting this bit to "1." (2) pim (error passive interrupt request mask) bit (bit 14) the pim bit enables or disables the interrupt requests to be generated when the can module entered an error passive state. error passive interrupt requests are enabled by setting this bit to "1." (3) oim (bus off interrupt request mask) bit (bit 15) the oim bit enables or disables the interrupt requests to be generated when the can module entered a bus off state. bus off interrupt requests are enabled by setting this bit to "1."
13.2 can module related registers can module 13 13-45 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can0 single-shot interrupt request status register (can0ssistw) can1 single-shot interrupt request status register (can1ssistw) b01234567891011121314b15 ssist0 ssist1 ssist2 ssist3 ssist4 ssist5 ssist6 ssist7 ssist8 ssist9 ssist10 ssist11 ssist12 ssist13 ssist14 ssist15 0000000000000000 b16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 b31 ssist16 ssist17 ssist18 ssist19 ssist20 ssist22 ssist23 ssist24 ssist25 ssist26 ssist27 ssist28 ssist29 ssist30 ssist31 ssist21 0000000000000000 b bit name function r w 0 ssist0 (slot 0 single-shot interrupt request status bit) 0: no arbitration-lost or transmit error r(note 1) 1 ssist1 (slot 1 single-shot interrupt request status bit) 1: arbitration-lost or transmit error occurred 2 ssist2 (slot 2 single-shot interrupt request status bit) 3 ssist3 (slot 3 single-shot interrupt request status bit) 4 ssist4 (slot 4 single-shot interrupt request status bit) 5 ssist5 (slot 5 single-shot interrupt request status bit) 6 ssist6 (slot 6 single-shot interrupt request status bit) 7 ssist7 (slot 7 single-shot interrupt request status bit) 8 ssist8 (slot 8 single-shot interrupt request status bit) 9 ssist9 (slot 9 single-shot interrupt request status bit) 10 ssist10 (slot 10 single-shot interrupt request status bit) 11 ssist11 (slot 11 single-shot interrupt request status bit) 12 ssist12 (slot 12 single-shot interrupt request status bit) 13 ssist13 (slot 13 single-shot interrupt request status bit) 14 ssist14 (slot 14 single-shot interrupt request status bit) 15 ssist15 (slot 15 single-shot interrupt request status bit) 16 ssist16 (slot 16 single-shot interrupt request status bit) 17 ssist17 (slot 17 single-shot interrupt request status bit) 18 ssist18 (slot 18 single-shot interrupt request status bit) 19 ssist19 (slot 19 single-shot interrupt request status bit) 20 ssist20 (slot 20 single-shot interrupt request status bit) 21 ssist21 (slot 21 single-shot interrupt request status bit) 22 ssist22 (slot 22 single-shot interrupt request status bit) 23 ssist23 (slot 23 single-shot interrupt request status bit) 24 ssist24 (slot 24 single-shot interrupt request status bit) 25 ssist25 (slot 25 single-shot interrupt request status bit) 26 ssist26 (slot 26 single-shot interrupt request status bit) 27 ssist27 (slot 27 single-shot interrupt request status bit) 28 ssist28 (slot 28 single-shot interrupt request status bit) 29 ssist29 (slot 29 single-shot interrupt request status bit) 30 ssist30 (slot 30 single-shot interrupt request status bit) 31 ssist31 (slot 31 single-shot interrupt request status bit) note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the status it had before the write.
13.2 can module related registers can module 13 13-46 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 if transmission in any slot failed for reasons of a detection of arbitration-lost or a transmit error during single- shot mode, the corresponding bit in this register is set to "1." the bit is cleared by writing "0" in software. furthermore, if the corresponding bit in the can single-shot interrupt request mask register has been set to "1," an interrupt request can be generated when transmission failed. when writing to the can single-shot interrupt request status, make sure only the bits to be cleared are set to "0" and all other bits are set to "1." those bits that have been set to "1" are unaffected by writing in software and retain the value they had before the write.
13.2 can module related registers can module 13 13-47 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can0 single-shot interrupt request mask register (can0ssimkw) can1 single-shot interrupt request mask register (can1ssimkw) b01234567891011121314b15 ssimk0 ssimk1 ssimk2 ssimk3 ssimk4 ssimk5 ssimk6 ssimk7 ssimk8 ssimk9 ssimk10 ssimk11 ssimk12 ssimk13 ssimk14 ssimk15 0000000000000000 b16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 b31 ssimk16 ssimk17 ssimk18 ssimk19 ssimk20 ssimk22 ssimk23 ssimk24 ssimk25 ssimk26 ssimk27 ssimk28 ssimk29 ssimk30 ssimk31 ssimk21 0000000000000000 b bit name function r w 0 ssimk0 (slot 0 single-shot interrupt request mask bit) 0: disable interrupt request r w 1 ssimk1 (slot 1 single-shot interrupt request mask bit) 1: enable interrupt request 2 ssimk2 (slot 2 single-shot interrupt request mask bit) 3 ssimk3 (slot 3 single-shot interrupt request mask bit) 4 ssimk4 (slot 4 single-shot interrupt request mask bit) 5 ssimk5 (slot 5 single-shot interrupt request mask bit) 6 ssimk6 (slot 6 single-shot interrupt request mask bit) 7 ssimk7 (slot 7 single-shot interrupt request mask bit) 8 ssimk8 (slot 8 single-shot interrupt request mask bit) 9 ssimk9 (slot 9 single-shot interrupt request mask bit) 10 ssimk10 (slot 10 single-shot interrupt request mask bit) 11 ssimk11 (slot 11 single-shot interrupt request mask bit) 12 ssimk12 (slot 12 single-shot interrupt request mask bit) 13 ssimk13 (slot 13 single-shot interrupt request mask bit) 14 ssimk14 (slot 14 single-shot interrupt request mask bit) 15 ssimk15 (slot 15 single-shot interrupt request mask bit) 16 ssimk16 (slot 16 single-shot interrupt request mask bit) 17 ssimk17 (slot 17 single-shot interrupt request mask bit) 18 ssimk18 (slot 18 single-shot interrupt request mask bit) 19 ssimk19 (slot 19 single-shot interrupt request mask bit) 20 ssimk20 (slot 20 single-shot interrupt request mask bit) 21 ssimk21 (slot 21 single-shot interrupt request mask bit) 22 ssimk22 (slot 22 single-shot interrupt request mask bit) 23 ssimk23 (slot 23 single-shot interrupt request mask bit) 24 ssimk24 (slot 24 single-shot interrupt request mask bit) 25 ssimk25 (slot 25 single-shot interrupt request mask bit) 26 ssimk26 (slot 26 single-shot interrupt request mask bit) 27 ssimk27 (slot 27 single-shot interrupt request mask bit) 28 ssimk28 (slot 28 single-shot interrupt request mask bit) 29 ssimk29 (slot 29 single-shot interrupt request mask bit) 30 ssimk30 (slot 30 single-shot interrupt request mask bit) 31 ssimk31 (slot 31 single-shot interrupt request mask bit)
13.2 can module related registers can module 13 13-48 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 this register is used to enable or disable the interrupt requests that will be generated when transmission in each corresponding slot has failed. setting any bit in this register to "1" enables the interrupt request to be generated when transmission in the corresponding slot (in single-shot mode only) has failed. the can single- shot interrupt request status register helps to know which slot requested the interrupt.
13.2 can module related registers can module 13 13-49 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 f/f f/f f/f f/f f/f f/f f/f f/f irb7 ssb7 irb6 ssb6 irb5 ssb5 irb4 ssb4 f/f f/f irb3 ssb3 f/f f/f irb2 ssb2 f/f f/f irb1 ssb1 f/f f/f irb0 ssb0 b7 b7 b6 b6 b5 b5 b4 b4 b3 b3 b2 b2 b1 b1 b0 b0 data bus slot 0 transmission/reception completed slot 1 transmission/reception completed slot 2 transmission/reception completed slot 3 transmission/reception completed slot 4 transmission/reception completed slot 5 transmission/reception completed slot 6 transmission/reception completed slot 7 transmission/reception completed to the remaining 24-source inputs in the succeeding pages can0 transmit/receive completion interrupt request (level) 32-source inputs can0slistw (h'0080 100c) can0slimkw (h'0080 1010) figure 13.2.6 block diagram of can0 transmit/receive completion interrupt requests (1/4)
13.2 can module related registers can module 13 13-50 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 f/f f/f f/f f/f f/f f/f f/f f/f irb15 ssb15 irb14 ssb14 irb13 ssb13 irb12 ssb12 f/f f/f irb11 ssb11 f/f f/f irb10 ssb10 f/f f/f irb9 ssb9 f/f f/f irb8 ssb8 b15 b15 b14 b14 b13 b13 b12 b12 b11 b11 b10 b10 b9 b9 b8 b8 data bus slot 8 transmission/reception completed slot 9 transmission/reception completed slot 10 transmission/reception completed slot 11 transmission/reception completed slot 12 transmission/reception completed slot 13 transmission/reception completed slot 14 transmission/reception completed slot 15 transmission/reception completed to the remaining 16-source inputs in the succeeding pages to the preceding page (level) 24-source inputs can0slistw (h'0080 100c) can0slimkw (h'0080 1010) figure 13.2.7 block diagram of can0 transmit/receive completion interrupt requests (2/4)
13.2 can module related registers can module 13 13-51 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 13.2.8 block diagram of can0 transmit/receive completion interrupt requests (3/4) f/f f/f f/f f/f f/f f/f f/f f/f irb23 ssb23 irb22 ssb22 irb21 ssb21 irb20 ssb20 f/f f/f irb19 ssb19 f/f f/f irb18 ssb18 f/f f/f irb17 ssb17 f/f f/f irb16 ssb16 b23 b23 b22 b22 b21 b21 b20 b20 b19 b19 b18 b18 b17 b17 b16 b16 data bus slot 16 transmission/reception completed slot 17 transmission/reception completed slot 18 transmission/reception completed slot 19 transmission/reception completed slot 20 transmission/reception completed slot 21 transmission/reception completed slot 22 transmission/reception completed slot 23 transmission/reception completed 16-source inputs can0slistw (h'0080 100c) can0slimkw (h'0080 1010) to the preceding page (level) to the remaining 8-source inputs in the succeeding page
13.2 can module related registers can module 13 13-52 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 f/f f/f f/f f/f f/f f/f f/f f/f irb31 ssb31 irb30 ssb30 irb29 ssb29 irb28 ssb28 f/f f/f irb27 ssb27 f/f f/f irb26 ssb26 f/f f/f irb25 ssb25 f/f f/f irb24 ssb24 b31 b31 b30 b30 b29 b29 b28 b28 b27 b27 b26 b26 b25 b25 b24 b24 data bus slot 24 transmission/reception completed slot 25 transmission/reception completed slot 26 transmission/reception completed slot 27 transmission/reception completed slot 28 transmission/reception completed slot 29 transmission/reception completed slot 30 transmission/reception completed slot 31 transmission/reception completed to the preceding page (level) 8-source inputs can0slistw (h'0080 100c) can0slimkw (h'0080 1010) figure 13.2.9 block diagram of can0 transmit/receive completion interrupt requests (4/4)
13.2 can module related registers can module 13 13-53 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 13.2.10 block diagram of can0 error interrupt requests f/f f/f oim ois f/f f/f pim pis f/f f/f eim eis b15 b7 b14 b6 b13 b5 data bus can bus error occurs go to error passive state go to bus off state can0 error interrupt request (level) 3-source inputs can0erist (h'0080 1014) can0erimk (h'0080 1015)
13.2 can module related registers can module 13 13-54 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 f/f f/f f/f f/f f/f f/f f/f f/f ssimk7 ssist7 ssimk6 ssist6 ssimk5 ssist5 ssimk4 ssist4 f/f f/f ssimk3 ssist3 f/f f/f ssimk2 ssist2 f/f f/f ssimk1 ssist1 f/f f/f ssimk0 ssist0 b7 b7 b6 b6 b5 b5 b4 b4 b3 b3 b2 b2 b1 b1 b0 b0 data bus slot 0 arbitration-lost/transmit error occurs slot 1 arbitration-lost/transmit error occurs slot 2 arbitration-lost/transmit error occurs slot 3 arbitration-lost/transmit error occurs slot 4 arbitration-lost/transmit error occurs slot 5 arbitration-lost/transmit error occurs slot 6 arbitration-lost/transmit error occurs slot 7 arbitration-lost/transmit error occurs to the remaining 24-source inputs in the succeeding pages can0 single-shot interrupt request (level) 32-source inputs can0ssistw (h'0080 1044) can0ssimkw (h'0080 1048) figure 13.2.11 block diagram of can0 single-shot interrupt requests (1/4)
13.2 can module related registers can module 13 13-55 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 13.2.12 block diagram of can0 single-shot interrupt requests (2/4) f/f f/f f/f f/f f/f f/f f/f f/f ssimk15 ssist15 ssimk14 ssist14 ssimk13 ssist13 ssimk12 ssist12 f/f f/f ssimk11 ssist11 f/f f/f ssimk10 ssist10 f/f f/f ssimk9 ssist9 f/f f/f ssimk8 ssist8 b15 b15 b14 b14 b13 b13 b12 b12 b11 b11 b10 b10 b9 b9 b8 b8 data bus slot 8 arbitration-lost/transmit error occurs slot 9 arbitration-lost/transmit error occurs slot 10 arbitration-lost/transmit error occurs slot 11 arbitration-lost/transmit error occurs slot 12 arbitration-lost/transmit error occurs slot 13 arbitration-lost/transmit error occurs slot 14 arbitration-lost/transmit error occurs slot 15 arbitration-lost/transmit error occurs to the preceding page (level) 24-source inputs can0ssistw (h'0080 1044) can0ssimkw (h'0080 1048) to the remaining 16-souce inputs in the succeeding pages
13.2 can module related registers can module 13 13-56 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 f/f f/f f/f f/f f/f f/f f/f f/f ssimk23 ssist23 ssimk22 ssist22 ssimk21 ssist21 ssimk20 ssist20 f/f f/f ssimk19 ssist19 f/f f/f ssimk18 ssist18 f/f f/f ssimk17 ssist17 f/f f/f ssimk16 ssist16 b23 b23 b22 b22 b21 b21 b20 b20 b19 b19 b18 b18 b17 b17 b16 b16 data bus slot 16 arbitration-lost/transmit error occurs slot 17 arbitration-lost/transmit error occurs slot 18 arbitration-lost/transmit error occurs slot 19 arbitration-lost/transmit error occurs slot 20 arbitration-lost/transmit error occurs slot 21 arbitration-lost/transmit error occurs slot 22 arbitration-lost/transmit error occurs slot 23 arbitration-lost/transmit error occurs to the preceding page (level) 16-souce inputs can0ssistw (h'0080 1044) can0ssimkw (h'0080 1048) to the remaining 8-source inputs in the succeeding page figure 13.2.13 block diagram of can0 single-shot interrupt requests (3/4)
13.2 can module related registers can module 13 13-57 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 13.2.14 block diagram of can0 single-shot interrupt requests (4/4) f/f f/f f/f f/f f/f f/f f/f f/f ssimk31 ssist31 ssimk30 ssist30 ssimk29 ssist29 ssimk28 ssist28 f/f f/f ssimk27 ssist27 f/f f/f ssimk26 ssist26 f/f f/f ssimk25 ssist25 f/f f/f ssimk24 ssist24 b31 b31 b30 b30 b29 b29 b28 b28 b27 b27 b26 b26 b25 b25 b24 b24 data bus slot 24 arbitration-lost/transmit error occurs slot 25 arbitration-lost/transmit error occurs slot 26 arbitration-lost/transmit error occurs slot 27 arbitration-lost/transmit error occurs slot 28 arbitration-lost/transmit error occurs slot 29 arbitration-lost/transmit error occurs slot 30 arbitration-lost/transmit error occurs slot 31 arbitration-lost/transmit error occurs to the preceding page (level) 8-source inputs can0ssistw (h'0080 1044) can0ssimkw (h'0080 1048)
13.2 can module related registers can module 13 13-58 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 13.2.15 block diagram of can1 transmit/receive completion interrupt requests (1/4) f/f f/f f/f f/f f/f f/f f/f f/f irb7 ssb7 irb6 ssb6 irb5 ssb5 irb4 ssb4 f/f f/f irb3 ssb3 f/f f/f irb2 ssb2 f/f f/f irb1 ssb1 f/f f/f irb0 ssb0 b7 b7 b6 b6 b5 b5 b4 b4 b3 b3 b2 b2 b1 b1 b0 b0 data bus slot 0 transmission/reception completed slot 1 transmission/reception completed slot 2 transmission/reception completed slot 3 transmission/reception completed slot 4 transmission/reception completed slot 5 transmission/reception completed slot 6 transmission/reception completed slot 7 transmission/reception completed to the remaining 24-source inputs in the succeeding pages can1 transmit/receive completion interrupt reques t (level) 32-source inputs can1slistw (h'0080 140c) can1slimkw (h'0080 1410)
13.2 can module related registers can module 13 13-59 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 f/f f/f f/f f/f f/f f/f f/f f/f irb15 ssb15 irb14 ssb14 irb13 ssb13 irb12 ssb12 f/f f/f irb11 ssb11 f/f f/f irb10 ssb10 f/f f/f irb9 ssb9 f/f f/f irb8 ssb8 b15 b15 b14 b14 b13 b13 b12 b12 b11 b11 b10 b10 b9 b9 b8 b8 data bus slot 8 transmission/reception completed slot 9 transmission/reception completed slot 10 transmission/reception completed slot 11 transmission/reception completed slot 12 transmission/reception completed slot 13 transmission/reception completed slot 14 transmission/reception completed slot 15 transmission/reception completed to the remaining 16-source inputs in the succeeding pages to the preceding page (level) 24-source inputs can1slistw (h'0080 140c) can1slimkw (h'0080 1410) figure 13.2.16 block diagram of can1 transmit/receive completion interrupt requests (2/4)
13.2 can module related registers can module 13 13-60 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 13.2.17 block diagram of can1 transmit/receive completion interrupt requests (3/4) f/f f/f f/f f/f f/f f/f f/f f/f irb23 ssb23 irb22 ssb22 irb21 ssb21 irb20 ssb20 f/f f/f irb19 ssb19 f/f f/f irb18 ssb18 f/f f/f irb17 ssb17 f/f f/f irb16 ssb16 b23 b23 b22 b22 b21 b21 b20 b20 b19 b19 b18 b18 b17 b17 b16 b16 data bus slot 16 transmission/reception completed slot 17 transmission/reception completed slot 18 transmission/reception completed slot 19 transmission/reception completed slot 20 transmission/reception completed slot 21 transmission/reception completed slot 22 transmission/reception completed slot 23 transmission/reception completed to the remaining 8-source inputs in the succeeding page to the preceding page (level) 16-source inputs can1slistw (h'0080 140c) can1slimkw (h'0080 1410)
13.2 can module related registers can module 13 13-61 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 f/f f/f f/f f/f f/f f/f f/f f/f irb31 ssb31 irb30 ssb30 irb29 ssb29 irb28 ssb28 f/f f/f irb27 ssb27 f/f f/f irb26 ssb26 f/f f/f irb25 ssb25 f/f f/f irb24 ssb24 b31 b31 b30 b30 b29 b29 b28 b28 b27 b27 b26 b26 b25 b25 b24 b24 data bus slot 24 transmission/reception completed slot 25 transmission/reception completed slot 26 transmission/reception completed slot 27 transmission/reception completed slot 28 transmission/reception completed slot 29 transmission/reception completed slot 30 transmission/reception completed slot 31 transmission/reception completed to the preceding page (level) 8-source inputs can1slistw (h'0080 140c) can1slimkw (h'0080 1410) figure 13.2.18 block diagram of can1 transmit/receive completion interrupt requests (4/4)
13.2 can module related registers can module 13 13-62 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 13.2.19 block diagram of can1 error interrupt requests f/f f/f oim ois f/f f/f pim pis f/f f/f eim eis b15 b7 b14 b6 b13 b5 data bus can bus error occurs go to error passive state go to bus off state can1 error interrupt request (level) 3-source inputs can1erist (h'0080 1414) can1erimk (h'0080 1415)
13.2 can module related registers can module 13 13-63 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 13.2.20 block diagram of can1 single-shot interrupt requests (1/4) f/f f/f f/f f/f f/f f/f f/f f/f ssimk7 ssist7 ssimk6 ssist6 ssimk5 ssist5 ssimk4 ssist4 f/f f/f ssimk3 ssist3 f/f f/f ssimk2 ssist2 f/f f/f ssimk1 ssist1 f/f f/f ssimk0 ssist0 b7 b7 b6 b6 b5 b5 b4 b4 b3 b3 b2 b2 b1 b1 b0 b0 data bus slot 0 arbitration-lost/transmit error occurs slot 1 arbitration-lost/transmit error occurs slot 2 arbitration-lost/transmit error occurs slot 3 arbitration-lost/transmit error occurs slot 4 arbitration-lost/transmit error occurs slot 5 arbitration-lost/transmit error occurs slot 6 arbitration-lost/transmit error occurs slot 7 arbitration-lost/transmit error occurs to the remaining 24-source inputs in the succeeding pages can1 single-shot interrupt request (level) 32-source inputs can1ssistw (h'0080 1444) can1ssimkw (h'0080 1448)
13.2 can module related registers can module 13 13-64 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 13.2.21 block diagram of can1 single-shot interrupt requests (2/4) f/f f/f f/f f/f f/f f/f f/f f/f ssimk15 ssist15 ssimk14 ssist14 ssimk13 ssist13 ssimk12 ssist12 f/f f/f ssimk11 ssist11 f/f f/f ssimk10 ssist10 f/f f/f ssimk9 ssist9 f/f f/f ssimk8 ssist8 b15 b15 b14 b14 b13 b13 b12 b12 b11 b11 b10 b10 b9 b9 b8 b8 data bus slot 8 arbitration-lost/transmit error occurs slot 9 arbitration-lost/transmit error occurs slot 10 arbitration-lost/transmit error occurs slot 11 arbitration-lost/transmit error occurs slot 12 arbitration-lost/transmit error occurs slot 13 arbitration-lost/transmit error occurs slot 14 arbitration-lost/transmit error occurs slot 15 arbitration-lost/transmit error occurs to the preceding page (level) 24-source inputs can1ssistw (h'0080 1444) can1ssimkw (h'0080 1448) to the remaining 16-source inputs in the succeeding pages
13.2 can module related registers can module 13 13-65 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 13.2.22 block diagram of can1 single-shot interrupt requests (3/4) f/f f/f f/f f/f f/f f/f f/f f/f ssimk23 ssist23 ssimk22 ssist22 ssimk21 ssist21 ssimk20 ssist20 f/f f/f ssimk19 ssist19 f/f f/f ssimk18 ssist18 f/f f/f ssimk17 ssist17 f/f f/f ssimk16 ssist16 b23 b23 b22 b22 b21 b21 b20 b20 b19 b19 b18 b18 b17 b17 b16 b16 data bus slot 16 arbitration-lost/transmit error occurs slot 17 arbitration-lost/transmit error occurs slot 18 arbitration-lost/transmit error occurs slot 19 arbitration-lost/transmit error occurs slot 20 arbitration-lost/transmit error occurs slot 21 arbitration-lost/transmit error occurs slot 22 arbitration-lost/transmit error occurs slot 23 arbitration-lost/transmit error occurs to the preceding page (level) 16-souce inputs can1ssistw (h'0080 1444) can1ssimkw (h'0080 1448) to the remaining 8-source inputs in the succeeding page
13.2 can module related registers can module 13 13-66 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 13.2.23 block diagram of can1 single-shot interrupt requests (4/4) f/f f/f f/f f/f f/f f/f f/f f/f ssimk31 ssist31 ssimk30 ssist30 ssimk29 ssist29 ssimk28 ssist28 f/f f/f ssimk27 ssist27 f/f f/f ssimk26 ssist26 f/f f/f ssimk25 ssist25 f/f f/f ssimk24 ssist24 b31 b31 b30 b30 b29 b29 b28 b28 b27 b27 b26 b26 b25 b25 b24 b24 data bus slot 24 arbitration-lost/transmit error occurs slot 25 arbitration-lost/transmit error occurs slot 26 arbitration-lost/transmit error occurs slot 27 arbitration-lost/transmit error occurs slot 28 arbitration-lost/transmit error occurs slot 29 arbitration-lost/transmit error occurs slot 30 arbitration-lost/transmit error occurs slot 31 arbitration-lost/transmit error occurs to the preceding page (level) 8-source inputs can1ssistw (h'0080 1444) can1ssimkw (h'0080 1448)
13.2 can module related registers can module 13 13-67 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.2.9 can cause of error registers can0 cause of error register (can0ef) can1 cause of error register (can1ef) 9 10 11 12 13 14 b15 b8 bite1 bite0 stfe forme crce acke 00000000 rcve tre b bit name function r w 8 tre 0: error not detected r (note 1) transmit error detection bit 1: transmit error detected 9 rcve 0: error not detected r (note 1) receive error detection bit 1: receive error detected 10 bite0 0: no bit error is detected r (note 1) "0" sending bit error detection bit 1: bit error is detected when sending a "0" 11 bite1 0: no bit error is detected r (note 1) "1" sending bit error detection bit 1: bit error is detected when sending a "1" 12 stfe 0: error not detected r (note 1) stuff error detection bit 1: stuff error detected 13 forme 0: error not detected r (note 1) form error detection bit 1: form error detected 14 crce 0: error not detected r (note 1) crc error detection bit 1: crc error detected 15 acke 0: error not detected r (note 1) ack error detection bit 1: ack error detected note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the status it had before the write. this register indicates error information when a communication error occurred. each bit in this register is set every time a communication error is detected, and is not cleared unless a program writes a "0" to the relevant bit. (1) tre (transmit error detection) bit (bit 8) this bit is set to "1" when a communication error is detected while operating as a transmit node. the bit is cleared by writing a "0" in software. (2) rcve (receive error detection) bit (bit 9) this bit is set to "1" when a communication error is detected while operating as a receive node. the bit is cleared by writing a "0" in software. (3) bite0 ("0" sending bit error detection) bit (bit 10) this bit is set to "1" when a bit error is detected while sending a "0" from ctx. the bit is cleared by writing a "0" in software. (4) bite1 ("1" sending bit error detection) bit (bit 11) this bit is set to "1" when a bit error is detected while sending a "1" from ctx. the bit is cleared by writing a "0" in software.
13.2 can module related registers can module 13 13-68 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (5) stfe (stuff error detection) bit (bit 12) this bit is set to "1" when a stuff error was detected. the bit is cleared by writing a "0" in software. (6) forme (form error detection) bit (bit 13) this bit is set to "1" when a form error was detected. the bit is cleared by writing a "0" in software. (7) crce (crc error detection) bit (bit 14) this bit is set to "1" when a crc error was detected. the bit is cleared by writing a "0" in software. (8) acke (ack error detection) bit (bit 15) this bit is set to "1" when an ack error was detected. the bit is cleared by writing a "0" in software note: ? for the bite0, bite1, stfe, forme, crce and acke bits, two or more bits may be set at the same time, depending on the error status.
13.2 can module related registers can module 13 13-69 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 crx pin ctx pin self-diagnostic mode ack signal generating circuit rx tx m32r/ecu can module 13.2.10 can mode registers can0 mode register (can0mod) can1 mode register (can1mod) 123456b7 b0 cmod 00 0 0 0 0 0 0 b bit name function r w 0?5 no function assigned. fix to "0." 00 6?7 cmod 00: normal mode r w can operation mode select bit 01: bus monitor mode 10: self-diagnostic mode 11: settings inhibited (1) cmod (can operation mode select) bits (bits 6, 7) these bits select the can operation mode. ? normal operation mode normal transmit/receive operations can be performed. ? bus monitor mode only receive operation is performed. during bus monitor mode, the ctx output is fixed "h" and neither ack nor an error frame can be returned. note: ? during bus monitor mode, issuing transmit requests is inhibited. the ack bit is handled as ?don?t care? during bus monitor mode. therefore, if all bits of data including the crc delimiter are received normally, it is assumed that data has been received normally no matter whether the ack bit is "h". ? self-diagnostic mode ctx and crx are connected together internally in the can module. when combined with loopback mode, this mode allows communication to be performed within the can module alone. during self- diagnostic mode, the ctx pin output is fixed "h" even when transmitting. figure 13.2.24 conceptual diagram of self-diagnostic mode
13.2 can module related registers can module 13 13-70 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.2.11 can dma transfer request select registers can0 dma transfer request select register (can0dmarq) can1 dma transfer request select register (can1dmarq) 9 10 11 12 13 14 b15 b8 cdmsel1 cdmsel0 00 0 0 0 0 0 0 b bit name function r w 8?13 no function assigned. fix to "0." 00 14 cdmsel1 0: slot 1 transmission failed r w can dma1 transfer request source select bit 1: slot 30 transmission/reception completed 15 cdmsel0 0: slot 0 transmission failed r w can dma0 transfer request source select bit 1: slot 31 transmission/reception completed can0 and 1 can generate dma transfer requests. this register is used to select the cause or source of that request. (1) cdmsel1 (can dma1 transfer request source select) bit (bit 14) can0 and can1 allow dma2 & dma7 and dma7 & dma9 to generate dma transfer requests, respec- tively. this bit selects one of the following two as the cause or source of a transfer request. ? slot 1 transmission failed if the cdmsel1 bit is set to "0," a transfer request is generated when transmission in slot 1 has failed for reasons of arbitration-lost or transmit error. ? slot 30 transmission/reception completed if the cdmsel1 bit is set to "1," a transfer request is generated when transmission/reception in slot 30 is completed. notes: ? if slot 30 has been set for remote frame transmission, a dma transfer request is gener- ated when remote frame transmission is completed as well as when data frame reception is completed. ? if slot 30 has been set for remote frame reception (automatic response), a dma transfer request is generated when remote frame reception is completed as well as when data frame transmission is completed. (2) cdmsel0 (can dma0 transfer request source select) bit (bit 15) can0 and can1 allow dma0 & dma6 and dma5 & dma8 to generate dma transfer requests, respec- tively. this bit selects one of the following two as the cause or source of a transfer request. ? slot 0 transmission failed if the cdmsel0 bit is set to "0," a transfer request is generated when transmission in slot 0 has failed for reasons of arbitration-lost or transmit error. ? slot 31 transmission/reception completed if the cdmsel0 bit is set to "1," a transfer request is generated when transmission/reception in slot 31 is completed. notes: ? if slot 31 has been set for remote frame transmission, a dma transfer request is gener- ated when remote frame transmission is completed as well as when data frame reception is completed. ? if slot 31 has been set for remote frame reception (automatic response), a dma transfer request is generated when remote frame reception is completed as well as when data frame transmission is completed.
13.2 can module related registers can module 13 13-71 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.2.12 can message slot number registers can0 message slot number register (can0msn) can1 message slot number register (can1msn) 123456b7 b0 exmsn 00000 0 0 0 b bit name function r w 0?2 no function assigned. fix to "0." 00 3?7 exmsn number of the message slot which has finished sending/receiving 0 ? extended message slot number bit 00000: slot 0 11111: slot 31 these bits indicate the relevant slot number when the can module has finished sending or finished storing the received data. these bits cannot be cleared to "0" in software. note:  when can module receives the frame that is transmitted by the can module itself during loopback mode, the exmsn bits indicate the transmit slot number. |
13.2 can module related registers can module 13 13-72 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.2.13 can clock select registers can0 clock select register (can0cksel) can1 clock select register (can1cksel) 9 10 11 12 13 14 b15 b8 cancksp 00 cancks 0 0 0 0 0 0 b bit name function r w 8?13 no function assigned. fix to "0." 00 14 cancksp 0w cancks write control bit 15 cancks 0: cpuclk/4 clock r w can module clock select bit 1: cpuclk/2 clock note:  use these bits when cancks = 0 (cpuclk/4 clock selection). the operation when cancks =1 (cpuclk/2 clock selection) is not guaranteed. these registers switch the clock supplied to the protocol engine block of can module. to set these registers, follow the procedure described below. 1. confirm the status can module is reset. 2. write a "1" to cancksp (cancks write control) bit. 3. subsequent to 2 above, write a "0" to cancksp (cancks write control) bit and a "set value" to cancks (can module clock select) bit. note:  if theare are writing cycles from cpu, dma, sdi (tool), nbd to any other area between 2 and 3, the continuous setting (a pair of two consecutive is 1 set for writing operation) is disabled and the writing value is not reflected. therefore, disable interrupts and dma transfers before setting. however the writing cycle from rtd and dri are not effected.
13.2 can module related registers can module 13 13-73 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 13.2.25 cancks setting procedure if a write cycle to any other area occurs during this interval, the value that was set in the cancks bits is not reflected. cancksp "1" cancksp "0" cancks 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) cancksp "1" write to other area (1) (2) cancksp "1" cancksp "1" because these two consecutive writes comprise a pair, the next set value is not reflected. (note 1) cancksp "0" cancks set value cancksp "0" cancks set value 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 do not effect. note.  set this register under the status can module is reset.
13.2 can module related registers can module 13 13-74 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.2.14 can frame format select registers can0 frame format select register (can0ffsw) can1 frame format select register (can1ffsw) b0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 b15 ide0 ide1 ide2 ide3 ide4 ide6 ide7 ide8 ide9 ide10 ide11 ide2 ide13 ide14 ide15 ide5 0000000000000000 b16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 b31 ide16 ide17 ide18 ide19 ide20 ide22 ide23 ide24 ide25 ide26 ide27 ide28 ide29 ide30 ide31 ide21 0000000000000000 b bit name function r w 0 ide0 (frame format 0 select bit) 0: standard id format r w 1 ide1 (frame format 1 select bit) 1: extended id format 2 ide2 (frame format 2 select bit) 3 ide3 (frame format 3 select bit) 4 ide4 (frame format 4 select bit) 5 ide5 (frame format 5 select bit) 6 ide6 (frame format 6 select bit) 7 ide7 (frame format 7 select bit) 8 ide8 (frame format 8 select bit) 9 ide9 (frame format 9 select bit) 10 ide10 (frame format 10 select bit) 11 ide11 (frame format 11 select bit) 12 ide12 (frame format 12 select bit) 13 ide13 (frame format 13 select bit) 14 ide14 (frame format 14 select bit) 15 ide15 (frame format 15 select bit) 16 ide16 (frame format 16 select bit) 17 ide17 (frame format 17 select bit) 18 ide18 (frame format 18 select bit) 19 ide19 (frame format 19 select bit) 20 ide20 (frame format 20 select bit) 21 ide21 (frame format 21 select bit) 22 ide22 (frame format 22 select bit) 23 ide23 (frame format 23 select bit) 24 ide24 (frame format 24 select bit) 25 ide25 (frame format 25 select bit) 26 ide26 (frame format 26 select bit) 27 ide27 (frame format 27 select bit) 28 ide28 (frame format 28 select bit) 29 ide29 (frame format 29 select bit) 30 ide30 (frame format 30 select bit) 31 ide31 (frame format 31 select bit)
13.2 can module related registers can module 13 13-75 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 select a format of the frame handled in the message slot corresponding to each bit. when "0" is set, the standard (standard id) format is selected. when "1" is set, the extented (extended id) format is selected. note:  change each bit of this register always with the transmit/receive request of the corresponding slot not issued.
13.2 can module related registers can module 13 13-76 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.2.15 can mask registers can0 global mask register a standard id0 (c0gmskas0) can0 global mask register b standard id0 (c0gmskbs0) can0 local mask register a standard id0 (c0lmskas0) can0 local mask register b standard id0 (c0lmskbs0) can1 global mask register a standard id0 (c1gmskas0) can1 global mask register b standard id0 (c1gmskbs0) can1 local mask register a standard id0 (c1lmskas0) can1 local mask register b standard id0 (c1lmskbs0) 123456b7 b0 sid0m sid1m sid2m sid3m sid4m 00000 0 0 0 b bit name function r w 0?2 no function assigned. fix to "0." 00 3?7 sid0m?sid4m 0: id not checked r w (standard mask id0?standard mask id4) 1: id checked can0 global mask register a standard id1 (c0gmskas1) can0 global mask register b standard id1 (c0gmskbs1) can0 local mask register a standard id1 (c0lmskas1) can0 local mask register b standard id1 (c0lmskbs1) can1 global mask register a standard id1 (c1gmskas1) can1 global mask register b standard id1 (c1gmskbs1) can1 local mask register a standard id1 (c1lmskas1) can1 local mask register b standard id1 (c1lmskbs1) 9 10 11 12 13 14 b15 b8 sid6m sid5m sid7m sid8m sid9m sid10m 000000 0 0 b bit name function r w 8?9 no function assigned. fix to "0." 00 10?15 sid5m?sid10m 0: id not checked r w (standard mask id5?standard mask id10) 1: id checked four mask registers are used in acceptance filtering: global mask register a, global mask register b, local mask register a and local mask register b. the global mask registers a and b are used for message slots 0-15 and 16-29, while local mask registers a and b are used for message slots 30 and 31, respectively.  if any bit in this register is set to "0," the corresponding id bit is masked (assumed to have matched) during acceptance filtering.  if any bit in this register is set to "1," the corresponding id bit is compared with the receive id during acceptance filtering and when it matches the id set in the message slot, the received data is stored in it. notes:  sid0m corresponds to the msb of the standard id.  the global mask register a can only be modified when none of slots 0-15 have receive requests set.  the global mask register b can only be modified when none of slots 16-29 have receive requests set.  the local mask register a can only be modified when slot 30 does not have a receive request set.  the local mask register b can only be modified when slot 31 does not have a receive request set.
13.2 can module related registers can module 13 13-77 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can0 global mask register a extended id0 (c0gmskae0) can0 global mask register b extended id0 (c0gmskbe0) can0 local mask register a extended id0 (c0lmskae0) can0 local mask register b extended id0 (c0lmskbe0) can1 global mask register a extended id0 (c1gmskae0) can1 global mask register b extended id0 (c1gmskbe0) can1 local mask register a extended id0 (c1lmskae0) can1 local mask register b extended id0 (c1lmskbe0) 123456b7 b0 eid1m eid0m eid2m eid3m 0000 0 0 0 0 b bit name function r w 0?3 no function assigned. fix to "0." 00 4?7 eid0m?eid3m 0: id not checked r w (extended mask id0?extended mask id3) 1: id checked can0 global mask register a extended id1 (c0gmskae1) can0 global mask register b extended id1 (c0gmskbe1) can0 local mask register a extended id1 (c0lmskae1) can0 local mask register b extended id1 (c0lmskbe1) can1 global mask register a extended id1 (c1gmskae1) can1 global mask register b extended id1 (c1gmskbe1) can1 local mask register a extended id1 (c1lmskae1) can1 local mask register b extended id1 (c1lmskbe1) 9 1011121314b15 b8 eid6m eid5m eid4m eid7m eid8m eid9m eid10m eid11m 00000000 b bit name function r w 8?15 eid4m?eid11m 0: id not checked r w (extended mask id4?extended mask id11) 1: id checked
13.2 can module related registers can module 13 13-78 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can0 global mask register a extended id2 (c0gmskae2) can0 global mask register b extended id2 (c0gmskbe2) can0 local mask register a extended id2 (c0lmskae2) can0 local mask register b extended id2 (c0lmskbe2) can1 global mask register a extended id2 (c1gmskae2) can1 global mask register b extended id2 (c1gmskbe2) can1 local mask register a extended id2 (c1lmskae2) can1 local mask register b extended id2 (c1lmskbe2) 123456b7 b0 eid12m eid13m eid14m eid15m eid16m eid17m 000000 0 0 b bit name function r w 0,1 no function assigned. fix to "0." 00 2?7 eid12m?eid17m 0: id not checked r w (extended mask id12?extended mask id17) 1: id checked four mask registers are used in acceptance filtering: global mask register a, global mask register b, local mask register a and local mask register b. the global mask registers a and b are used for message slots 0-15 and 16-29, while local mask registers a and b are used for message slots 30 and 31, respectively.  if any bit in this register is set to "0," the corresponding id bit is masked (assumed to have matched) during acceptance filtering.  if any bit in this register is set to "1," the corresponding id bit is compared with the receive id during acceptance filtering and when it matches the id set in the message slot, the received data is stored in it. notes:  eid0m corresponds to the msb of the extended id.  the global mask register a can only be modified when none of slots 0-15 have receive requests set.  the global mask register b can only be modified when none of slots 16-29 have receive requests set.  the local mask register a can only be modified when slot 30 does not have a receive request set.  the local mask register b can only be modified when slot 31 does not have a receive request set.
13.2 can module related registers can module 13 13-79 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 slot 0 slot 1 slot 2 slot 15 slot 30 slot 31 slots controlled by global mask register a slot controlled by local mask register a slot controlled by local mask register b slot 16 slot 17 slot 18 slot 29 slots controlled by global mask register b id of received frame id set in slot mask register set value 0: the received message and slot ids are not checked for matching and handled as "don't care" (masked) 1: the received message and slot ids are checked for matching mask bit value acceptance judgment signal acceptance judgment signal 0: the received message is ignored (not stored in any slot) 1: the received message is stored in the slot that has the matching id figure 13.2.26 relationship between the mask registers and the controlled slots figure 13.2.27 concept of acceptance filtering
13.2 can module related registers can module 13 13-80 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.2.16 can single-shot mode control registers can0 single-shot mode control register (can0ssmodew) can1 single-shot mode control register (can1ssmodew) b0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 b15 sscnt0 sscnt1 sscnt2 sscnt3 sscnt4 sscnt5 sscnt6 sscnt7 sscnt8 sscnt9 sscnt10 sscnt11 sscnt12 sscnt13 sscnt14 sscnt15 0000000000000000 b16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 b31 sscnt16 sscnt17 sscnt18 sscnt19 sscnt20 sscnt22 sscnt23 sscnt24 sscnt25 sscnt26 sscnt27 sscnt28 sscnt29 sscnt30 sscnt31 sscnt21 0000000000000000 b bit name function r w 0 sscnt0 (slot 0 single-shot mode bit) 0: normal mode r w 1 sscnt1 (slot 1 single-shot mode bit) 1: single-shot mode 2 sscnt2 (slot 2 single-shot mode bit) 3 sscnt3 (slot 3 single-shot mode bit) 4 sscnt4 (slot 4 single-shot mode bit) 5 sscnt5 (slot 5 single-shot mode bit) 6 sscnt6 (slot 6 single-shot mode bit) 7 sscnt7 (slot 7 single-shot mode bit) 8 sscnt8 (slot 8 single-shot mode bit) 9 sscnt9 (slot 9 single-shot mode bit) 10 sscnt10 (slot 10 single-shot mode bit) 11 sscnt11 (slot 11 single-shot mode bit) 12 sscnt12 (slot 12 single-shot mode bit) 13 sscnt13 (slot 13 single-shot mode bit) 14 sscnt14 (slot 14 single-shot mode bit) 15 sscnt15 (slot 15 single-shot mode bit) 16 sscnt16 (slot 16 single-shot mode bit) 17 sscnt17 (slot 17 single-shot mode bit) 18 sscnt18 (slot 18 single-shot mode bit) 19 sscnt19 (slot 19 single-shot mode bit) 20 sscnt20 (slot 20 single-shot mode bit) 21 sscnt21 (slot 21 single-shot mode bit) 22 sscnt22 (slot 22 single-shot mode bit) 23 sscnt23 (slot 23 single-shot mode bit) 24 sscnt24 (slot 24 single-shot mode bit) 25 sscnt25 (slot 25 single-shot mode bit) 26 sscnt26 (slot 26 single-shot mode bit) 27 sscnt27 (slot 27 single-shot mode bit) 28 sscnt28 (slot 28 single-shot mode bit) 29 sscnt29 (slot 29 single-shot mode bit) 30 sscnt30 (slot 30 single-shot mode bit) 31 sscnt31 (slot 31 single-shot mode bit)
13.2 can module related registers can module 13 13-81 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 normally in can, if transmission has failed for reasons of arbitration-lost or transmit error, the transmit opera- tion is continued until successfully transmitted. this register is used to specify for each slot whether or not to retry a transmit operation in such a case. in single-shot mode, if transmission fails for reasons of arbitration-lost or transmit error, the transmit operation is not retried. if any sscntn bit (n = 0?31) is set to "1," the corresponding slot operates in single-shot mode. note:  settings of this register can only be changed when the message slot control register for the slot whose corresponding bit is to be modified is in the h?00 state.
13.2 can module related registers can module 13 13-82 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.2.17 can message slot control registers can0 message slot 0 control register (c0msl0cnt) can0 message slot 1 control register (c0msl1cnt) can0 message slot 2 control register (c0msl2cnt) can0 message slot 3 control register (c0msl3cnt) can0 message slot 4 control register (c0msl4cnt) can0 message slot 5 control register (c0msl5cnt) can0 message slot 6 control register (c0msl6cnt) can0 message slot 7 control register (c0msl7cnt) can0 message slot 8 control register (c0msl8cnt) can0 message slot 9 control register (c0msl9cnt) can0 message slot 10 control register (c0msl10cnt) can0 message slot 11 control register (c0msl11cnt) can0 message slot 12 control register (c0msl12cnt) can0 message slot 13 control register (c0msl13cnt) can0 message slot 14 control register (c0msl14cnt) can0 message slot 15 control register (c0msl15cnt) can0 message slot 16 control register (c0msl16cnt) can0 message slot 17 control register (c0msl17cnt) can0 message slot 18 control register (c0msl18cnt) can0 message slot 19 control register (c0msl19cnt) can0 message slot 20 control register (c0msl20cnt) can0 message slot 21 control register (c0msl21cnt) can0 message slot 22 control register (c0msl22cnt) can0 message slot 23 control register (c0msl23cnt) can0 message slot 24 control register (c0msl24cnt) can0 message slot 25 control register (c0msl25cnt) can0 message slot 26 control register (c0msl26cnt) can0 message slot 27 control register (c0msl27cnt) can0 message slot 28 control register (c0msl28cnt) can0 message slot 29 control register (c0msl29cnt) can0 message slot 30 control register (c0msl30cnt) can0 message slot 31 control register (c0msl31cnt) can1 message slot 0 control register (c1msl0cnt) can1 message slot 1 control register (c1msl1cnt) can1 message slot 2 control register (c1msl2cnt) can1 message slot 3 control register (c1msl3cnt) can1 message slot 4 control register (c1msl4cnt) can1 message slot 5 control register (c1msl5cnt) can1 message slot 6 control register (c1msl6cnt) can1 message slot 7 control register (c1msl7cnt) can1 message slot 8 control register (c1msl8cnt) can1 message slot 9 control register (c1msl9cnt) can1 message slot 10 control register (c1msl10cnt) can1 message slot 11 control register (c1msl11cnt) can1 message slot 12 control register (c1msl12cnt) can1 message slot 13 control register (c1msl13cnt) can1 message slot 14 control register (c1msl14cnt) can1 message slot 15 control register (c1msl15cnt)
13.2 can module related registers can module 13 13-83 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 123456b7 (b15) (b8) b0 rm rr tr rl ra ml trstat trfin 00000000 b bit name function r w 0 (8) tr 0: do not use the message slot as transmit slot r w transmit request bit 1: use the message slot as transmit slot 1 (9) rr 0: do not use the message slot as receive slot r w receive request bit 1: use the message slot as receive slot 2 (10) rm 0: transmit/receive data frame r w remote bit 1: transmit/receive remote frame 3 (11) rl 0: enable automatic response for remote frame r w automatic response inhibit bit 1: disable automatic response for remote frame 4 (12) ra during basiccan mode r ? remote active bit 0: receive data frame (status) 1: receive remote frame (status) during normal mode 0: data frame 1: remote frame 5 (13) ml 0: no message was lost r(note 1) message lost bit 1: message was lost 6 (14) trstat during a transmit slot r ? transmit/receive status bit 0: transmission idle 1: transmit request accepted during a receive slot 0: reception idle 1: storing received data 7 (15) trfin during a transmit slot r(note 1) transmission/reception finished bit 0: not transmitted yet 1: finished transmitting during a receive slot 0: not received yet 1: finished receiving note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the status it had before the write. can1 message slot 16 control register (c1msl16cnt) can1 message slot 17 control register (c1msl17cnt) can1 message slot 18 control register (c1msl18cnt) can1 message slot 19 control register (c1msl19cnt) can1 message slot 20 control register (c1msl20cnt) can1 message slot 21 control register (c1msl21cnt) can1 message slot 22 control register (c1msl22cnt) can1 message slot 23 control register (c1msl23cnt) can1 message slot 24 control register (c1msl24cnt) can1 message slot 25 control register (c1msl25cnt) can1 message slot 26 control register (c1msl26cnt) can1 message slot 27 control register (c1msl27cnt) can1 message slot 28 control register (c1msl28cnt) can1 message slot 29 control register (c1msl29cnt) can1 message slot 30 control register (c1msl30cnt) can1 message slot 31 control register (c1msl31cnt)
13.2 can module related registers can module 13 13-84 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 notes:  if a transmit request is written to this register while the can module is reset (can0cnt/ can1cnt frst or rst bit = "1"), it starts sending upon detecting 11 consecutive recessive bits on the can bus after exiting the reset state.  if data/remote frame transmit requests are issued for two or more slots, the slot with the small- est slot number sends a frame. if data/remote frame receive requests are issued for two or more slots, the slot with the smallest slot number among the slots satisfying the receive condi- tion receives a frame.  if transmission failed when single-shot mode is selected, this register is cleared to h?00. (1) tr (transmit request) bit (bits 0, 8) to use the message slot as a transmit slot, set this bit to "1." to use the message slot as a data frame or remote frame receive slot, set this bit to "0." (2) rr (receive request) bit (bits 1, 9) to use the message slot as a receive slot, set this bit to "1." to use the message slot as a data frame or remote frame transmit slot, set this bit to "0." if tr (transmit request) bit and rr (receive request) bit both are set to "1," device operation is unde- fined. (3) rm (remote) bit (bits 2, 10) to handle remote frames in the message slot, set this bit to "1." there are following two methods of settings to handle remote frames: ? set for remote frame transmission the data set in the message slot is transmitted as a remote frame. when the can module finished sending, the slot automatically changes to a data frame receive slot. however, if a data frame is received before the can module finished sending a remote frame, the received data is stored in the message slot and the remote frame is not transmitted. ? set for remote frame reception remote frames are received. the processing to be performed after receiving a remote frame is selected by rl (automatic response inhibit) bit. (4) rl (automatic response inhibit) bit (bits 3, 11) this bit is effective when the message slot has been set as a remote frame receive slot. it selects the processing to be performed after receiving a remote frame. if this bit is set to "0," the message slot automati- cally changes to a transmit slot after receiving a remote frame and transmits the data set in it as a data frame. if this bit is set to "1," the message slot stops operating after receiving a remote frame. note:  always set this bit to "0" unless the message slot is set for remote frame reception. (5) ra (remote active) bit (bits 4, 12) this bit functions differently for slots 0-29 and slots 30 and 31. ? slots 0?29 this bit is set to "1" when the message slot is set for remote frame transmission (reception). then, when remote frame transmission (reception) is completed, the bit is cleared to "0."
13.2 can module related registers can module 13 13-85 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 ? slots 30 and 31 the function of this bit differs depending on how the can control register bcm (basiccan mode) bit is set. if bcm = "0" (normal operation), this bit is set to "1" when the message slot is set for remote frame transmission (reception). if bcm = "1" (basiccan), this bit indicates which type of frame is received. during basiccan mode, the received data is stored in slots 30 and 31 for both data and remote frames. if ra = "0," it means that the frame stored in the slot is a data frame. if ra = "1," it means that the frame stored in the slot is a remote frame. (6) ml (message lost) bit (bits 5, 13) this bit is effective for receive slots. it is set to "1" when unread received data contained in the message slot is overwritten by reception. this bit is cleared by writing "0" in software. (7) trstat (transmit/receive status) bit (bits 6, 14) this bit indicates that the can module is sending or receiving and is accessing the message slot. this bit is set to "1" when the can module is accessing, and set to "0" when not accessing. ? during a transmit slot this bit is set to "1" when a transmit request for the message slot is accepted. it is cleared to "0" when the can module lost in bus arbitration, when a can bus error occurs, or when transmission is completed. ? during a receive slot this bit is set to "1" while the can module is receiving data, with the received data being stored in the message slot. note that the value read from the message slot while the trstat bit remains set is undefined. (8) trfin (transmit/receive finished) bit (bits 7, 15) this bit indicates that the can module finished sending or receiving. ? when set for a transmit slot this bit is set to "1" when the can module finished sending the data stored in the message slot. this bit is cleared by writing "0" in software. however, it cannot be cleared when the trstat (transmit/receive status) bit = "1." ? when set for a receive slot this bit is set to "1" when the can module finished receiving normally the data to be stored in the message slot. this bit is cleared by writing "0" in software. however, it cannot be cleared when the trstat (transmit/receive status) bit = "1." notes:  before reading the received data out of the message slot, be sure to clear the trfin (transmit/receive finished) bit to "0." if the trfin (transmit/receive finished) bit hap- pens to be set to "1" after a read, it means that new received data was stored while reading and the read data contains an undefined value. in that case, discard the read data, clear the trfin bit to "0" and read out data again.  when sending/receiving remote frames, the trfin bit is automatically cleared to "0" by hardware. therefore, the trfin bit cannot be used as a transmission/reception-finished flag.
13.2 can module related registers can module 13 13-86 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.2.18 can message slots can0 message slot 0 standard id0 (c0msl0sid0) can0 message slot 1 standard id0 (c0msl1sid0) can0 message slot 2 standard id0 (c0msl2sid0) can0 message slot 3 standard id0 (c0msl3sid0) can0 message slot 4 standard id0 (c0msl4sid0) can0 message slot 5 standard id0 (c0msl5sid0) can0 message slot 6 standard id0 (c0msl6sid0) can0 message slot 7 standard id0 (c0msl7sid0) can0 message slot 8 standard id0 (c0msl8sid0) can0 message slot 9 standard id0 (c0msl9sid0) can0 message slot 10 standard id0 (c0msl10sid0) can0 message slot 11 standard id0 (c0msl11sid0) can0 message slot 12 standard id0 (c0msl12sid0) can0 message slot 13 standard id0 (c0msl13sid0) can0 message slot 14 standard id0 (c0msl14sid0) can0 message slot 15 standard id0 (c0msl15sid0) can0 message slot 16 standard id0 (c0msl16sid0) can0 message slot 17 standard id0 (c0msl17sid0) can0 message slot 18 standard id0 (c0msl18sid0) can0 message slot 19 standard id0 (c0msl19sid0) can0 message slot 20 standard id0 (c0msl20sid0) can0 message slot 21 standard id0 (c0msl21sid0) can0 message slot 22 standard id0 (c0msl22sid0) can0 message slot 23 standard id0 (c0msl23sid0) can0 message slot 24 standard id0 (c0msl24sid0) can0 message slot 25 standard id0 (c0msl25sid0) can0 message slot 26 standard id0 (c0msl26sid0) can0 message slot 27 standard id0 (c0msl27sid0) can0 message slot 28 standard id0 (c0msl28sid0) can0 message slot 29 standard id0 (c0msl29sid0) can0 message slot 30 standard id0 (c0msl30sid0) can0 message slot 31 standard id0 (c0msl31sid0) can1 message slot 0 standard id0 (c1msl0sid0) can1 message slot 1 standard id0 (c1msl1sid0) can1 message slot 2 standard id0 (c1msl2sid0) can1 message slot 3 standard id0 (c1msl3sid0) can1 message slot 4 standard id0 (c1msl4sid0) can1 message slot 5 standard id0 (c1msl5sid0) can1 message slot 6 standard id0 (c1msl6sid0) can1 message slot 7 standard id0 (c1msl7sid0) can1 message slot 8 standard id0 (c1msl8sid0) can1 message slot 9 standard id0 (c1msl9sid0) can1 message slot 10 standard id0 (c1msl10sid0) can1 message slot 11 standard id0 (c1msl11sid0) can1 message slot 12 standard id0 (c1msl12sid0) can1 message slot 13 standard id0 (c1msl13sid0) can1 message slot 14 standard id0 (c1msl14sid0) can1 message slot 15 standard id0 (c1msl15sid0)
13.2 can module related registers can module 13 13-87 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can1 message slot 16 standard id0 (c1msl16sid0) can1 message slot 17 standard id0 (c1msl17sid0) can1 message slot 18 standard id0 (c1msl18sid0) can1 message slot 19 standard id0 (c1msl19sid0) can1 message slot 20 standard id0 (c1msl20sid0) can1 message slot 21 standard id0 (c1msl21sid0) can1 message slot 22 standard id0 (c1msl22sid0) can1 message slot 23 standard id0 (c1msl23sid0) can1 message slot 24 standard id0 (c1msl24sid0) can1 message slot 25 standard id0 (c1msl25sid0) can1 message slot 26 standard id0 (c1msl26sid0) can1 message slot 27 standard id0 (c1msl27sid0) can1 message slot 28 standard id0 (c1msl28sid0) can1 message slot 29 standard id0 (c1msl29sid0) can1 message slot 30 standard id0 (c1msl30sid0) can1 message slot 31 standard id0 (c1msl31sid0) 123456b7 b0 sid1 sid0 sid2 sid3 sid4 ????? ? ? ? b bit name function r w 0?2 no function assigned. fix to "0." 00 3?7 sid0?sid4 standard id0?standard id4 r w (standard id0?standard id4) these registers are the memory space for transmit and receive frames.
13.2 can module related registers can module 13 13-88 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can0 message slot 0 standard id1 (c0msl0sid1) can0 message slot 1 standard id1 (c0msl1sid1) can0 message slot 2 standard id1 (c0msl2sid1) can0 message slot 3 standard id1 (c0msl3sid1) can0 message slot 4 standard id1 (c0msl4sid1) can0 message slot 5 standard id1 (c0msl5sid1) can0 message slot 6 standard id1 (c0msl6sid1) can0 message slot 7 standard id1 (c0msl7sid1) can0 message slot 8 standard id1 (c0msl8sid1) can0 message slot 9 standard id1 (c0msl9sid1) can0 message slot 10 standard id1 (c0msl10sid1) can0 message slot 11 standard id1 (c0msl11sid1) can0 message slot 12 standard id1 (c0msl12sid1) can0 message slot 13 standard id1 (c0msl13sid1) can0 message slot 14 standard id1 (c0msl14sid1) can0 message slot 15 standard id1 (c0msl15sid1) can0 message slot 16 standard id1 (c0msl16sid1) can0 message slot 17 standard id1 (c0msl17sid1) can0 message slot 18 standard id1 (c0msl18sid1) can0 message slot 19 standard id1 (c0msl19sid1) can0 message slot 20 standard id1 (c0msl20sid1) can0 message slot 21 standard id1 (c0msl21sid1) can0 message slot 22 standard id1 (c0msl22sid1) can0 message slot 23 standard id1 (c0msl23sid1) can0 message slot 24 standard id1 (c0msl24sid1) can0 message slot 25 standard id1 (c0msl25sid1) can0 message slot 26 standard id1 (c0msl26sid1) can0 message slot 27 standard id1 (c0msl27sid1) can0 message slot 28 standard id1 (c0msl28sid1) can0 message slot 29 standard id1 (c0msl29sid1) can0 message slot 30 standard id1 (c0msl30sid1) can0 message slot 31 standard id1 (c0msl31sid1) can1 message slot 0 standard id1 (c1msl0sid1) can1 message slot 1 standard id1 (c1msl1sid1) can1 message slot 2 standard id1 (c1msl2sid1) can1 message slot 3 standard id1 (c1msl3sid1) can1 message slot 4 standard id1 (c1msl4sid1) can1 message slot 5 standard id1 (c1msl5sid1) can1 message slot 6 standard id1 (c1msl6sid1) can1 message slot 7 standard id1 (c1msl7sid1) can1 message slot 8 standard id1 (c1msl8sid1) can1 message slot 9 standard id1 (c1msl9sid1) can1 message slot 10 standard id1 (c1msl10sid1) can1 message slot 11 standard id1 (c1msl11sid1) can1 message slot 12 standard id1 (c1msl12sid1) can1 message slot 13 standard id1 (c1msl13sid1) can1 message slot 14 standard id1 (c1msl14sid1) can1 message slot 15 standard id1 (c1msl15sid1)
13.2 can module related registers can module 13 13-89 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can1 message slot 16 standard id1 (c1msl16sid1) can1 message slot 17 standard id1 (c1msl17sid1) can1 message slot 18 standard id1 (c1msl18sid1) can1 message slot 19 standard id1 (c1msl19sid1) can1 message slot 20 standard id1 (c1msl20sid1) can1 message slot 21 standard id1 (c1msl21sid1) can1 message slot 22 standard id1 (c1msl22sid1) can1 message slot 23 standard id1 (c1msl23sid1) can1 message slot 24 standard id1 (c1msl24sid1) can1 message slot 25 standard id1 (c1msl25sid1) can1 message slot 26 standard id1 (c1msl26sid1) can1 message slot 27 standard id1 (c1msl27sid1) can1 message slot 28 standard id1 (c1msl28sid1) can1 message slot 29 standard id1 (c1msl29sid1) can1 message slot 30 standard id1 (c1msl30sid1) can1 message slot 31 standard id1 (c1msl31sid1) 9 10 11 12 13 14 b15 b8 sid7 sid6 sid5 sid8 sid9 sid10 ?????? ? ? b bit name function r w 8, 9 no function assigned. fix to "0." 00 10?15 sid5?sid10 standard id5?standard id10 r w (standard id5?standard id10) these registers are the memory space for transmit and receive frames.
13.2 can module related registers can module 13 13-90 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can0 message slot 0 extended id0 (c0msl0eid0) can0 message slot 1 extended id0 (c0msl1eid0) can0 message slot 2 extended id0 (c0msl2eid0) can0 message slot 3 extended id0 (c0msl3eid0) can0 message slot 4 extended id0 (c0msl4eid0) can0 message slot 5 extended id0 (c0msl5eid0) can0 message slot 6 extended id0 (c0msl6eid0) can0 message slot 7 extended id0 (c0msl7eid0) can0 message slot 8 extended id0 (c0msl8eid0) can0 message slot 9 extended id0 (c0msl9eid0) can0 message slot 10 extended id0 (c0msl10eid0) can0 message slot 11 extended id0 (c0msl11eid0) can0 message slot 12 extended id0 (c0msl12eid0) can0 message slot 13 extended id0 (c0msl13eid0) can0 message slot 14 extended id0 (c0msl14eid0) can0 message slot 15 extended id0 (c0msl15eid0) can0 message slot 16 extended id0 (c0msl16eid0) can0 message slot 17 extended id0 (c0msl17eid0) can0 message slot 18 extended id0 (c0msl18eid0) can0 message slot 19 extended id0 (c0msl19eid0) can0 message slot 20 extended id0 (c0msl20eid0) can0 message slot 21 extended id0 (c0msl21eid0) can0 message slot 22 extended id0 (c0msl22eid0) can0 message slot 23 extended id0 (c0msl23eid0) can0 message slot 24 extended id0 (c0msl24eid0) can0 message slot 25 extended id0 (c0msl25eid0) can0 message slot 26 extended id0 (c0msl26eid0) can0 message slot 27 extended id0 (c0msl27eid0) can0 message slot 28 extended id0 (c0msl28eid0) can0 message slot 29 extended id0 (c0msl29eid0) can0 message slot 30 extended id0 (c0msl30eid0) can0 message slot 31 extended id0 (c0msl31eid0) can1 message slot 0 extended id0 (c1msl0eid0) can1 message slot 1 extended id0 (c1msl1eid0) can1 message slot 2 extended id0 (c1msl2eid0) can1 message slot 3 extended id0 (c1msl3eid0) can1 message slot 4 extended id0 (c1msl4eid0) can1 message slot 5 extended id0 (c1msl5eid0) can1 message slot 6 extended id0 (c1msl6eid0) can1 message slot 7 extended id0 (c1msl7eid0) can1 message slot 8 extended id0 (c1msl8eid0) can1 message slot 9 extended id0 (c1msl9eid0) can1 message slot 10 extended id0 (c1msl10eid0) can1 message slot 11 extended id0 (c1msl11eid0) can1 message slot 12 extended id0 (c1msl12eid0) can1 message slot 13 extended id0 (c1msl13eid0) can1 message slot 14 extended id0 (c1msl14eid0) can1 message slot 15 extended id0 (c1msl15eid0)
13.2 can module related registers can module 13 13-91 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can1 message slot 16 extended id0 (c1msl16eid0) can1 message slot 17 extended id0 (c1msl17eid0) can1 message slot 18 extended id0 (c1msl18eid0) can1 message slot 19 extended id0 (c1msl19eid0) can1 message slot 20 extended id0 (c1msl20eid0) can1 message slot 21 extended id0 (c1msl21eid0) can1 message slot 22 extended id0 (c1msl22eid0) can1 message slot 23 extended id0 (c1msl23eid0) can1 message slot 24 extended id0 (c1msl24eid0) can1 message slot 25 extended id0 (c1msl25eid0) can1 message slot 26 extended id0 (c1msl26eid0) can1 message slot 27 extended id0 (c1msl27eid0) can1 message slot 28 extended id0 (c1msl28eid0) can1 message slot 29 extended id0 (c1msl29eid0) can1 message slot 30 extended id0 (c1msl30eid0) can1 message slot 31 extended id0 (c1msl31eid0) 123456b7 b0 eid1 eid0 eid2 eid3 ???? ? ? ? ? b bit name function r w 0?3 no function assigned. fix to "0." 00 4?7 eid0?eid3 extended id0?extended id3 r w (extended id0?extended id3) these registers are the memory space for transmit and receive frames. note:  if the message slot is set for the receive slot standard id format, an undefined value is written to the eid bits when storing received data.
13.2 can module related registers can module 13 13-92 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can0 message slot 0 extended id1 (c0msl0eid1) can0 message slot 1 extended id1 (c0msl1eid1) can0 message slot 2 extended id1 (c0msl2eid1) can0 message slot 3 extended id1 (c0msl3eid1) can0 message slot 4 extended id1 (c0msl4eid1) can0 message slot 5 extended id1 (c0msl5eid1) can0 message slot 6 extended id1 (c0msl6eid1) can0 message slot 7 extended id1 (c0msl7eid1) can0 message slot 8 extended id1 (c0msl8eid1) can0 message slot 9 extended id1 (c0msl9eid1) can0 message slot 10 extended id1 (c0msl10eid1) can0 message slot 11 extended id1 (c0msl11eid1) can0 message slot 12 extended id1 (c0msl12eid1) can0 message slot 13 extended id1 (c0msl13eid1) can0 message slot 14 extended id1 (c0msl14eid1) can0 message slot 15 extended id1 (c0msl15eid1) can0 message slot 16 extended id1 (c0msl16eid1) can0 message slot 17 extended id1 (c0msl17eid1) can0 message slot 18 extended id1 (c0msl18eid1) can0 message slot 19 extended id1 (c0msl19eid1) can0 message slot 20 extended id1 (c0msl20eid1) can0 message slot 21 extended id1 (c0msl21eid1) can0 message slot 22 extended id1 (c0msl22eid1) can0 message slot 23 extended id1 (c0msl23eid1) can0 message slot 24 extended id1 (c0msl24eid1) can0 message slot 25 extended id1 (c0msl25eid1) can0 message slot 26 extended id1 (c0msl26eid1) can0 message slot 27 extended id1 (c0msl27eid1) can0 message slot 28 extended id1 (c0msl28eid1) can0 message slot 29 extended id1 (c0msl29eid1) can0 message slot 30 extended id1 (c0msl30eid1) can0 message slot 31 extended id1 (c0msl31eid1) can1 message slot 0 extended id1 (c1msl0eid1) can1 message slot 1 extended id1 (c1msl1eid1) can1 message slot 2 extended id1 (c1msl2eid1) can1 message slot 3 extended id1 (c1msl3eid1) can1 message slot 4 extended id1 (c1msl4eid1) can1 message slot 5 extended id1 (c1msl5eid1) can1 message slot 6 extended id1 (c1msl6eid1) can1 message slot 7 extended id1 (c1msl7eid1) can1 message slot 8 extended id1 (c1msl8eid1) can1 message slot 9 extended id1 (c1msl9eid1) can1 message slot 10 extended id1 (c1msl10eid1) can1 message slot 11 extended id1 (c1msl11eid1) can1 message slot 12 extended id1 (c1msl12eid1) can1 message slot 13 extended id1 (c1msl13eid1) can1 message slot 14 extended id1 (c1msl14eid1) can1 message slot 15 extended id1 (c1msl15eid1)
13.2 can module related registers can module 13 13-93 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can1 message slot 16 extended id1 (c1msl16eid1) can1 message slot 17 extended id1 (c1msl17eid1) can1 message slot 18 extended id1 (c1msl18eid1) can1 message slot 19 extended id1 (c1msl19eid1) can1 message slot 20 extended id1 (c1msl20eid1) can1 message slot 21 extended id1 (c1msl21eid1) can1 message slot 22 extended id1 (c1msl22eid1) can1 message slot 23 extended id1 (c1msl23eid1) can1 message slot 24 extended id1 (c1msl24eid1) can1 message slot 25 extended id1 (c1msl25eid1) can1 message slot 26 extended id1 (c1msl26eid1) can1 message slot 27 extended id1 (c1msl27eid1) can1 message slot 28 extended id1 (c1msl28eid1) can1 message slot 29 extended id1 (c1msl29eid1) can1 message slot 30 extended id1 (c1msl30eid1) can1 message slot 31 extended id1 (c1msl31eid1) 9 1011121314b15 b8 eid6 eid5 eid4 eid7 eid8 eid9 eid10 eid11 ???????? b bit name function r w 8?15 eid4?eid11 extended id4?extended id11 r w (extended id4?extended id11) these registers are the memory space for transmit and receive frames. note:  if the message slot is set for the receive slot standard id format, an undefined value is written to the eid bits when storing received data.
13.2 can module related registers can module 13 13-94 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can0 message slot 0 extended id2 (c0msl0eid2) can0 message slot 1 extended id2 (c0msl1eid2) can0 message slot 2 extended id2 (c0msl2eid2) can0 message slot 3 extended id2 (c0msl3eid2) can0 message slot 4 extended id2 (c0msl4eid2) can0 message slot 5 extended id2 (c0msl5eid2) can0 message slot 6 extended id2 (c0msl6eid2) can0 message slot 7 extended id2 (c0msl7eid2) can0 message slot 8 extended id2 (c0msl8eid2) can0 message slot 9 extended id2 (c0msl9eid2) can0 message slot 10 extended id2 (c0msl10eid2) can0 message slot 11 extended id2 (c0msl11eid2) can0 message slot 12 extended id2 (c0msl12eid2) can0 message slot 13 extended id2 (c0msl13eid2) can0 message slot 14 extended id2 (c0msl14eid2) can0 message slot 15 extended id2 (c0msl15eid2) can0 message slot 16 extended id2 (c0msl16eid2) can0 message slot 17 extended id2 (c0msl17eid2) can0 message slot 18 extended id2 (c0msl18eid2) can0 message slot 19 extended id2 (c0msl19eid2) can0 message slot 20 extended id2 (c0msl20eid2) can0 message slot 21 extended id2 (c0msl21eid2) can0 message slot 22 extended id2 (c0msl22eid2) can0 message slot 23 extended id2 (c0msl23eid2) can0 message slot 24 extended id2 (c0msl24eid2) can0 message slot 25 extended id2 (c0msl25eid2) can0 message slot 26 extended id2 (c0msl26eid2) can0 message slot 27 extended id2 (c0msl27eid2) can0 message slot 28 extended id2 (c0msl28eid2) can0 message slot 29 extended id2 (c0msl29eid2) can0 message slot 30 extended id2 (c0msl30eid2) can0 message slot 31 extended id2 (c0msl31eid2) can1 message slot 0 extended id2 (c1msl0eid2) can1 message slot 1 extended id2 (c1msl1eid2) can1 message slot 2 extended id2 (c1msl2eid2) can1 message slot 3 extended id2 (c1msl3eid2) can1 message slot 4 extended id2 (c1msl4eid2) can1 message slot 5 extended id2 (c1msl5eid2) can1 message slot 6 extended id2 (c1msl6eid2) can1 message slot 7 extended id2 (c1msl7eid2) can1 message slot 8 extended id2 (c1msl8eid2) can1 message slot 9 extended id2 (c1msl9eid2) can1 message slot 10 extended id2 (c1msl10eid2) can1 message slot 11 extended id2 (c1msl11eid2) can1 message slot 12 extended id2 (c1msl12eid2) can1 message slot 13 extended id2 (c1msl13eid2) can1 message slot 14 extended id2 (c1msl14eid2) can1 message slot 15 extended id2 (c1msl15eid2)
13.2 can module related registers can module 13 13-95 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can1 message slot 16 extended id2 (c1msl16eid2) can1 message slot 17 extended id2 (c1msl17eid2) can1 message slot 18 extended id2 (c1msl18eid2) can1 message slot 19 extended id2 (c1msl19eid2) can1 message slot 20 extended id2 (c1msl20eid2) can1 message slot 21 extended id2 (c1msl21eid2) can1 message slot 22 extended id2 (c1msl22eid2) can1 message slot 23 extended id2 (c1msl23eid2) can1 message slot 24 extended id2 (c1msl24eid2) can1 message slot 25 extended id2 (c1msl25eid2) can1 message slot 26 extended id2 (c1msl26eid2) can1 message slot 27 extended id2 (c1msl27eid2) can1 message slot 28 extended id2 (c1msl28eid2) can1 message slot 29 extended id2 (c1msl29eid2) can1 message slot 30 extended id2 (c1msl30eid2) can1 message slot 31 extended id2 (c1msl31eid2) 123456b7 b0 eid15 eid14 eid13 eid12 eid16 eid17 ?????? ? ? b bit name function r w 0, 1 no function assigned. fix to "0." 00 2?7 eid12?eid17 extended id12?extended id17 r w (extended id12?extended id17) these registers are the memory space for transmit and receive frames. note:  if the message slot is set for the receive slot standard id format, an undefined value is written to the eid bits when storing received data.
13.2 can module related registers can module 13 13-96 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can0 message slot 0 data length register (c0msl0dlc) can0 message slot 1 data length register (c0msl1dlc) can0 message slot 2 data length register (c0msl2dlc) can0 message slot 3 data length register (c0msl3dlc) can0 message slot 4 data length register (c0msl4dlc) can0 message slot 5 data length register (c0msl5dlc) can0 message slot 6 data length register (c0msl6dlc) can0 message slot 7 data length register (c0msl7dlc) can0 message slot 8 data length register (c0msl8dlc) can0 message slot 9 data length register (c0msl9dlc) can0 message slot 10 data length register (c0msl10dlc) can0 message slot 11 data length register (c0msl11dlc) can0 message slot 12 data length register (c0msl12dlc) can0 message slot 13 data length register (c0msl13dlc) can0 message slot 14 data length register (c0msl14dlc) can0 message slot 15 data length register (c0msl15dlc) can0 message slot 16 data length register (c0msl16dlc) can0 message slot 17 data length register (c0msl17dlc) can0 message slot 18 data length register (c0msl18dlc) can0 message slot 19 data length register (c0msl19dlc) can0 message slot 20 data length register (c0msl20dlc) can0 message slot 21 data length register (c0msl21dlc) can0 message slot 22 data length register (c0msl22dlc) can0 message slot 23 data length register (c0msl23dlc) can0 message slot 24 data length register (c0msl24dlc) can0 message slot 25 data length register (c0msl25dlc) can0 message slot 26 data length register (c0msl26dlc) can0 message slot 27 data length register (c0msl27dlc) can0 message slot 28 data length register (c0msl28dlc) can0 message slot 29 data length register (c0msl29dlc) can0 message slot 30 data length register (c0msl30dlc) can0 message slot 31 data length register (c0msl31dlc) can1 message slot 0 data length register (c1msl0dlc) can1 message slot 1 data length register (c1msl1dlc) can1 message slot 2 data length register (c1msl2dlc) can1 message slot 3 data length register (c1msl3dlc) can1 message slot 4 data length register (c1msl4dlc) can1 message slot 5 data length register (c1msl5dlc) can1 message slot 6 data length register (c1msl6dlc) can1 message slot 7 data length register (c1msl7dlc) can1 message slot 8 data length register (c1msl8dlc) can1 message slot 9 data length register (c1msl9dlc) can1 message slot 10 data length register (c1msl10dlc) can1 message slot 11 data length register (c1msl11dlc) can1 message slot 12 data length register (c1msl12dlc) can1 message slot 13 data length register (c1msl13dlc) can1 message slot 14 data length register (c1msl14dlc) can1 message slot 15 data length register (c1msl15dlc)
13.2 can module related registers can module 13 13-97 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can1 message slot 16 data length register (c1msl16dlc) can1 message slot 17 data length register (c1msl17dlc) can1 message slot 18 data length register (c1msl18dlc) can1 message slot 19 data length register (c1msl19dlc) can1 message slot 20 data length register (c1msl20dlc) can1 message slot 21 data length register (c1msl21dlc) can1 message slot 22 data length register (c1msl22dlc) can1 message slot 23 data length register (c1msl23dlc) can1 message slot 24 data length register (c1msl24dlc) can1 message slot 25 data length register (c1msl25dlc) can1 message slot 26 data length register (c1msl26dlc) can1 message slot 27 data length register (c1msl27dlc) can1 message slot 28 data length register (c1msl28dlc) can1 message slot 29 data length register (c1msl29dlc) can1 message slot 30 data length register (c1msl30dlc) can1 message slot 31 data length register (c1msl31dlc) 9 1011121314b15 b8 dlc0 dlc1 dlc2 dlc3 ???? ? ? ? ? b bit name function r w 8?11 no function assigned. fix to "0." 00 12?15 dlc0?dlc3 0000: 0 bytes r w data length setting bit 0001: 1 bytes 0010: 2 bytes 0011: 3 bytes 0100: 4 bytes 0101: 5 bytes 0110: 6 bytes 0111: 7 bytes 1000: 8 bytes | | 1111: 8 bytes these registers are the memory space for transmit and receive frames. when sending, the register is used to set the transmit data length. when receiving, the register is used to store the receive frame dlc.
13.2 can module related registers can module 13 13-98 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can0 message slot 0 data 0 (c0msl0dt0) can0 message slot 1 data 0 (c0msl1dt0) can0 message slot 2 data 0 (c0msl2dt0) can0 message slot 3 data 0 (c0msl3dt0) can0 message slot 4 data 0 (c0msl4dt0) can0 message slot 5 data 0 (c0msl5dt0) can0 message slot 6 data 0 (c0msl6dt0) can0 message slot 7 data 0 (c0msl7dt0) can0 message slot 8 data 0 (c0msl8dt0) can0 message slot 9 data 0 (c0msl9dt0) can0 message slot 10 data 0 (c0msl10dt0) can0 message slot 11 data 0 (c0msl11dt0) can0 message slot 12 data 0 (c0msl12dt0) can0 message slot 13 data 0 (c0msl13dt0) can0 message slot 14 data 0 (c0msl14dt0) can0 message slot 15 data 0 (c0msl15dt0) can0 message slot 16 data 0 (c0msl16dt0) can0 message slot 17 data 0 (c0msl17dt0) can0 message slot 18 data 0 (c0msl18dt0) can0 message slot 19 data 0 (c0msl19dt0) can0 message slot 20 data 0 (c0msl20dt0) can0 message slot 21 data 0 (c0msl21dt0) can0 message slot 22 data 0 (c0msl22dt0) can0 message slot 23 data 0 (c0msl23dt0) can0 message slot 24 data 0 (c0msl24dt0) can0 message slot 25 data 0 (c0msl25dt0) can0 message slot 26 data 0 (c0msl26dt0) can0 message slot 27 data 0 (c0msl27dt0) can0 message slot 28 data 0 (c0msl28dt0) can0 message slot 29 data 0 (c0msl29dt0) can0 message slot 30 data 0 (c0msl30dt0) can0 message slot 31 data 0 (c0msl31dt0) can1 message slot 0 data 0 (c1msl0dt0) can1 message slot 1 data 0 (c1msl1dt0) can1 message slot 2 data 0 (c1msl2dt0) can1 message slot 3 data 0 (c1msl3dt0) can1 message slot 4 data 0 (c1msl4dt0) can1 message slot 5 data 0 (c1msl5dt0) can1 message slot 6 data 0 (c1msl6dt0) can1 message slot 7 data 0 (c1msl7dt0) can1 message slot 8 data 0 (c1msl8dt0) can1 message slot 9 data 0 (c1msl9dt0) can1 message slot 10 data 0 (c1msl10dt0) can1 message slot 11 data 0 (c1msl11dt0) can1 message slot 12 data 0 (c1msl12dt0) can1 message slot 13 data 0 (c1msl13dt0) can1 message slot 14 data 0 (c1msl14dt0) can1 message slot 15 data 0 (c1msl15dt0)
13.2 can module related registers can module 13 13-99 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can1 message slot 16 data 0 (c1msl16dt0) can1 message slot 17 data 0 (c1msl17dt0) can1 message slot 18 data 0 (c1msl18dt0) can1 message slot 19 data 0 (c1msl19dt0) can1 message slot 20 data 0 (c1msl20dt0) can1 message slot 21 data 0 (c1msl21dt0) can1 message slot 22 data 0 (c1msl22dt0) can1 message slot 23 data 0 (c1msl23dt0) can1 message slot 24 data 0 (c1msl24dt0) can1 message slot 25 data 0 (c1msl25dt0) can1 message slot 26 data 0 (c1msl26dt0) can1 message slot 27 data 0 (c1msl27dt0) can1 message slot 28 data 0 (c1msl28dt0) can1 message slot 29 data 0 (c1msl29dt0) can1 message slot 30 data 0 (c1msl30dt0) can1 message slot 31 data 0 (c1msl31dt0) 123456b7 b0 c0msl0dt0-c0msl31dt0, c1msl0dt0-c1msl31dt0 ???????? b bit name function r w 0?7 c0msl0dt0?c0msl31dt0, message slot data 0 r w c1msl0dt0?c1msl31dt0 these registers are the memory space for transmit and receive frames. notes:  during a receive slot, an undefined value is written to the register if the data length of the data frame being stored (dlc value) = "0."  the first byte of the can frame data field corresponds to message slot n data 0. data is transmitted or received beginning with the msb side of the register.
13.2 can module related registers can module 13 13-100 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can0 message slot 0 data 1 (c0msl0dt1) can0 message slot 1 data 1 (c0msl1dt1) can0 message slot 2 data 1 (c0msl2dt1) can0 message slot 3 data 1 (c0msl3dt1) can0 message slot 4 data 1 (c0msl4dt1) can0 message slot 5 data 1 (c0msl5dt1) can0 message slot 6 data 1 (c0msl6dt1) can0 message slot 7 data 1 (c0msl7dt1) can0 message slot 8 data 1 (c0msl8dt1) can0 message slot 9 data 1 (c0msl9dt1) can0 message slot 10 data 1 (c0msl10dt1) can0 message slot 11 data 1 (c0msl11dt1) can0 message slot 12 data 1 (c0msl12dt1) can0 message slot 13 data 1 (c0msl13dt1) can0 message slot 14 data 1 (c0msl14dt1) can0 message slot 15 data 1 (c0msl15dt1) can0 message slot 16 data 1 (c0msl16dt1) can0 message slot 17 data 1 (c0msl17dt1) can0 message slot 18 data 1 (c0msl18dt1) can0 message slot 19 data 1 (c0msl19dt1) can0 message slot 20 data 1 (c0msl20dt1) can0 message slot 21 data 1 (c0msl21dt1) can0 message slot 22 data 1 (c0msl22dt1) can0 message slot 23 data 1 (c0msl23dt1) can0 message slot 24 data 1 (c0msl24dt1) can0 message slot 25 data 1 (c0msl25dt1) can0 message slot 26 data 1 (c0msl26dt1) can0 message slot 27 data 1 (c0msl27dt1) can0 message slot 28 data 1 (c0msl28dt1) can0 message slot 29 data 1 (c0msl29dt1) can0 message slot 30 data 1 (c0msl30dt1) can0 message slot 31 data 1 (c0msl31dt1) can1 message slot 0 data 1 (c1msl0dt1) can1 message slot 1 data 1 (c1msl1dt1) can1 message slot 2 data 1 (c1msl2dt1) can1 message slot 3 data 1 (c1msl3dt1) can1 message slot 4 data 1 (c1msl4dt1) can1 message slot 5 data 1 (c1msl5dt1) can1 message slot 6 data 1 (c1msl6dt1) can1 message slot 7 data 1 (c1msl7dt1) can1 message slot 8 data 1 (c1msl8dt1) can1 message slot 9 data 1 (c1msl9dt1) can1 message slot 10 data 1 (c1msl10dt1) can1 message slot 11 data 1 (c1msl11dt1) can1 message slot 12 data 1 (c1msl12dt1) can1 message slot 13 data 1 (c1msl13dt1) can1 message slot 14 data 1 (c1msl14dt1) can1 message slot 15 data 1 (c1msl15dt1)
13.2 can module related registers can module 13 13-101 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can1 message slot 16 data 1 (c1msl16dt1) can1 message slot 17 data 1 (c1msl17dt1) can1 message slot 18 data 1 (c1msl18dt1) can1 message slot 19 data 1 (c1msl19dt1) can1 message slot 20 data 1 (c1msl20dt1) can1 message slot 21 data 1 (c1msl21dt1) can1 message slot 22 data 1 (c1msl22dt1) can1 message slot 23 data 1 (c1msl23dt1) can1 message slot 24 data 1 (c1msl24dt1) can1 message slot 25 data 1 (c1msl25dt1) can1 message slot 26 data 1 (c1msl26dt1) can1 message slot 27 data 1 (c1msl27dt1) can1 message slot 28 data 1 (c1msl28dt1) can1 message slot 29 data 1 (c1msl29dt1) can1 message slot 30 data 1 (c1msl30dt1) can1 message slot 31 data 1 (c1msl31dt1) 9 10 11 12 13 14 b15 b8 c0msl0dt1-c0msl31dt1, c1msl0dt1-c1msl31dt1 ???????? b bit name function r w 8?15 c0msl0dt1?c0msl31dt1, message slot data 1 r w c1msl0dt1?c1msl31dt1 these registers are the memory space for transmit and receive frames. note:  during a receive slot, an undefined value is written to the register if the data length of the data frame being stored (dlc value) is equal to or less than 1.
13.2 can module related registers can module 13 13-102 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can0 message slot 0 data 2 (c0msl0dt2) can0 message slot 1 data 2 (c0msl1dt2) can0 message slot 2 data 2 (c0msl2dt2) can0 message slot 3 data 2 (c0msl3dt2) can0 message slot 4 data 2 (c0msl4dt2) can0 message slot 5 data 2 (c0msl5dt2) can0 message slot 6 data 2 (c0msl6dt2) can0 message slot 7 data 2 (c0msl7dt2) can0 message slot 8 data 2 (c0msl8dt2) can0 message slot 9 data 2 (c0msl9dt2) can0 message slot 10 data 2 (c0msl10dt2) can0 message slot 11 data 2 (c0msl11dt2) can0 message slot 12 data 2 (c0msl12dt2) can0 message slot 13 data 2 (c0msl13dt2) can0 message slot 14 data 2 (c0msl14dt2) can0 message slot 15 data 2 (c0msl15dt2) can0 message slot 16 data 2 (c0msl16dt2) can0 message slot 17 data 2 (c0msl17dt2) can0 message slot 18 data 2 (c0msl18dt2) can0 message slot 19 data 2 (c0msl19dt2) can0 message slot 20 data 2 (c0msl20dt2) can0 message slot 21 data 2 (c0msl21dt2) can0 message slot 22 data 2 (c0msl22dt2) can0 message slot 23 data 2 (c0msl23dt2) can0 message slot 24 data 2 (c0msl24dt2) can0 message slot 25 data 2 (c0msl25dt2) can0 message slot 26 data 2 (c0msl26dt2) can0 message slot 27 data 2 (c0msl27dt2) can0 message slot 28 data 2 (c0msl28dt2) can0 message slot 29 data 2 (c0msl29dt2) can0 message slot 30 data 2 (c0msl30dt2) can0 message slot 31 data 2 (c0msl31dt2) can1 message slot 0 data 2 (c1msl0dt2) can1 message slot 1 data 2 (c1msl1dt2) can1 message slot 2 data 2 (c1msl2dt2) can1 message slot 3 data 2 (c1msl3dt2) can1 message slot 4 data 2 (c1msl4dt2) can1 message slot 5 data 2 (c1msl5dt2) can1 message slot 6 data 2 (c1msl6dt2) can1 message slot 7 data 2 (c1msl7dt2) can1 message slot 8 data 2 (c1msl8dt2) can1 message slot 9 data 2 (c1msl9dt2) can1 message slot 10 data 2 (c1msl10dt2) can1 message slot 11 data 2 (c1msl11dt2) can1 message slot 12 data 2 (c1msl12dt2) can1 message slot 13 data 2 (c1msl13dt2) can1 message slot 14 data 2 (c1msl14dt2) can1 message slot 15 data 2 (c1msl15dt2)
13.2 can module related registers can module 13 13-103 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can1 message slot 16 data 2 (c1msl16dt2) can1 message slot 17 data 2 (c1msl17dt2) can1 message slot 18 data 2 (c1msl18dt2) can1 message slot 19 data 2 (c1msl19dt2) can1 message slot 20 data 2 (c1msl20dt2) can1 message slot 21 data 2 (c1msl21dt2) can1 message slot 22 data 2 (c1msl22dt2) can1 message slot 23 data 2 (c1msl23dt2) can1 message slot 24 data 2 (c1msl24dt2) can1 message slot 25 data 2 (c1msl25dt2) can1 message slot 26 data 2 (c1msl26dt2) can1 message slot 27 data 2 (c1msl27dt2) can1 message slot 28 data 2 (c1msl28dt2) can1 message slot 29 data 2 (c1msl29dt2) can1 message slot 30 data 2 (c1msl30dt2) can1 message slot 31 data 2 (c1msl31dt2) 123456b7 b0 ???????? c0msl0dt2-c0msl31dt2, c1msl0dt2-c1msl31dt2 b bit name function r w 0?7 c0msl0dt2?c0msl31dt2, message slot data 2 r w c1msl0dt2?c1msl31dt2 these registers are the memory space for transmit and receive frames. note:  during a receive slot, an undefined value is written to the register if the data length of the data frame being stored (dlc value) is equal to or less than 2.
13.2 can module related registers can module 13 13-104 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can0 message slot 0 data 3 (c0msl0dt3) can0 message slot 1 data 3 (c0msl1dt3) can0 message slot 2 data 3 (c0msl2dt3) can0 message slot 3 data 3 (c0msl3dt3) can0 message slot 4 data 3 (c0msl4dt3) can0 message slot 5 data 3 (c0msl5dt3) can0 message slot 6 data 3 (c0msl6dt3) can0 message slot 7 data 3 (c0msl7dt3) can0 message slot 8 data 3 (c0msl8dt3) can0 message slot 9 data 3 (c0msl9dt3) can0 message slot 10 data 3 (c0msl10dt3) can0 message slot 11 data 3 (c0msl11dt3) can0 message slot 12 data 3 (c0msl12dt3) can0 message slot 13 data 3 (c0msl13dt3) can0 message slot 14 data 3 (c0msl14dt3) can0 message slot 15 data 3 (c0msl15dt3) can0 message slot 16 data 3 (c0msl16dt3) can0 message slot 17 data 3 (c0msl17dt3) can0 message slot 18 data 3 (c0msl18dt3) can0 message slot 19 data 3 (c0msl19dt3) can0 message slot 20 data 3 (c0msl20dt3) can0 message slot 21 data 3 (c0msl21dt3) can0 message slot 22 data 3 (c0msl22dt3) can0 message slot 23 data 3 (c0msl23dt3) can0 message slot 24 data 3 (c0msl24dt3) can0 message slot 25 data 3 (c0msl25dt3) can0 message slot 26 data 3 (c0msl26dt3) can0 message slot 27 data 3 (c0msl27dt3) can0 message slot 28 data 3 (c0msl28dt3) can0 message slot 29 data 3 (c0msl29dt3) can0 message slot 30 data 3 (c0msl30dt3) can0 message slot 31 data 3 (c0msl31dt3) can1 message slot 0 data 3 (c1msl0dt3) can1 message slot 1 data 3 (c1msl1dt3) can1 message slot 2 data 3 (c1msl2dt3) can1 message slot 3 data 3 (c1msl3dt3) can1 message slot 4 data 3 (c1msl4dt3) can1 message slot 5 data 3 (c1msl5dt3) can1 message slot 6 data 3 (c1msl6dt3) can1 message slot 7 data 3 (c1msl7dt3) can1 message slot 8 data 3 (c1msl8dt3) can1 message slot 9 data 3 (c1msl9dt3) can1 message slot 10 data 3 (c1msl10dt3) can1 message slot 11 data 3 (c1msl11dt3) can1 message slot 12 data 3 (c1msl12dt3) can1 message slot 13 data 3 (c1msl13dt3) can1 message slot 14 data 3 (c1msl14dt3) can1 message slot 15 data 3 (c1msl15dt3)
13.2 can module related registers can module 13 13-105 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can1 message slot 16 data 3 (c1msl16dt3) can1 message slot 17 data 3 (c1msl17dt3) can1 message slot 18 data 3 (c1msl18dt3) can1 message slot 19 data 3 (c1msl19dt3) can1 message slot 20 data 3 (c1msl20dt3) can1 message slot 21 data 3 (c1msl21dt3) can1 message slot 22 data 3 (c1msl22dt3) can1 message slot 23 data 3 (c1msl23dt3) can1 message slot 24 data 3 (c1msl24dt3) can1 message slot 25 data 3 (c1msl25dt3) can1 message slot 26 data 3 (c1msl26dt3) can1 message slot 27 data 3 (c1msl27dt3) can1 message slot 28 data 3 (c1msl28dt3) can1 message slot 29 data 3 (c1msl29dt3) can1 message slot 30 data 3 (c1msl30dt3) can1 message slot 31 data 3 (c1msl31dt3) 9 10 11 12 13 14 b15 b8 ???????? c0msl0dt3-c0msl31dt3, c1msl0dt3-c1msl31dt3 b bit name function r w 8?15 c0msl0dt3?c0msl31dt3, message slot data 3 r w c1msl0dt3?c1msl31dt3 these registers are the memory space for transmit and receive frames. note:  during a receive slot, an undefined value is written to the register if the data length of the data frame being stored (dlc value) is equal to or less than 3.
13.2 can module related registers can module 13 13-106 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can0 message slot 0 data 4 (c0msl0dt4) can0 message slot 1 data 4 (c0msl1dt4) can0 message slot 2 data 4 (c0msl2dt4) can0 message slot 3 data 4 (c0msl3dt4) can0 message slot 4 data 4 (c0msl4dt4) can0 message slot 5 data 4 (c0msl5dt4) can0 message slot 6 data 4 (c0msl6dt4) can0 message slot 7 data 4 (c0msl7dt4) can0 message slot 8 data 4 (c0msl8dt4) can0 message slot 9 data 4 (c0msl9dt4) can0 message slot 10 data 4 (c0msl10dt4) can0 message slot 11 data 4 (c0msl11dt4) can0 message slot 12 data 4 (c0msl12dt4) can0 message slot 13 data 4 (c0msl13dt4) can0 message slot 14 data 4 (c0msl14dt4) can0 message slot 15 data 4 (c0msl15dt4) can0 message slot 16 data 4 (c0msl16dt4) can0 message slot 17 data 4 (c0msl17dt4) can0 message slot 18 data 4 (c0msl18dt4) can0 message slot 19 data 4 (c0msl19dt4) can0 message slot 20 data 4 (c0msl20dt4) can0 message slot 21 data 4 (c0msl21dt4) can0 message slot 22 data 4 (c0msl22dt4) can0 message slot 23 data 4 (c0msl23dt4) can0 message slot 24 data 4 (c0msl24dt4) can0 message slot 25 data 4 (c0msl25dt4) can0 message slot 26 data 4 (c0msl26dt4) can0 message slot 27 data 4 (c0msl27dt4) can0 message slot 28 data 4 (c0msl28dt4) can0 message slot 29 data 4 (c0msl29dt4) can0 message slot 30 data 4 (c0msl30dt4) can0 message slot 31 data 4 (c0msl31dt4) can1 message slot 0 data 4 (c1msl0dt4) can1 message slot 1 data 4 (c1msl1dt4) can1 message slot 2 data 4 (c1msl2dt4) can1 message slot 3 data 4 (c1msl3dt4) can1 message slot 4 data 4 (c1msl4dt4) can1 message slot 5 data 4 (c1msl5dt4) can1 message slot 6 data 4 (c1msl6dt4) can1 message slot 7 data 4 (c1msl7dt4) can1 message slot 8 data 4 (c1msl8dt4) can1 message slot 9 data 4 (c1msl9dt4) can1 message slot 10 data 4 (c1msl10dt4) can1 message slot 11 data 4 (c1msl11dt4) can1 message slot 12 data 4 (c1msl12dt4) can1 message slot 13 data 4 (c1msl13dt4) can1 message slot 14 data 4 (c1msl14dt4) can1 message slot 15 data 4 (c1msl15dt4)
13.2 can module related registers can module 13 13-107 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can1 message slot 16 data 4 (c1msl16dt4) can1 message slot 17 data 4 (c1msl17dt4) can1 message slot 18 data 4 (c1msl18dt4) can1 message slot 19 data 4 (c1msl19dt4) can1 message slot 20 data 4 (c1msl20dt4) can1 message slot 21 data 4 (c1msl21dt4) can1 message slot 22 data 4 (c1msl22dt4) can1 message slot 23 data 4 (c1msl23dt4) can1 message slot 24 data 4 (c1msl24dt4) can1 message slot 25 data 4 (c1msl25dt4) can1 message slot 26 data 4 (c1msl26dt4) can1 message slot 27 data 4 (c1msl27dt4) can1 message slot 28 data 4 (c1msl28dt4) can1 message slot 29 data 4 (c1msl29dt4) can1 message slot 30 data 4 (c1msl30dt4) can1 message slot 31 data 4 (c1msl31dt4) 123456b7 b0 ???????? c0msl0dt4-c0msl31dt4, c1msl0dt4-c1msl31dt4 b bit name function r w 0?7 c0msl0dt4?c0msl31dt4, message slot data 4 r w c1msl0dt4?c1msl31dt4 these registers are the memory space for transmit and receive frames. note:  during a receive slot, an undefined value is written to the register if the data length of the data frame being stored (dlc value) is equal to or less than 4.
13.2 can module related registers can module 13 13-108 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can0 message slot 0 data 5 (c0msl0dt5) can0 message slot 1 data 5 (c0msl1dt5) can0 message slot 2 data 5 (c0msl2dt5) can0 message slot 3 data 5 (c0msl3dt5) can0 message slot 4 data 5 (c0msl4dt5) can0 message slot 5 data 5 (c0msl5dt5) can0 message slot 6 data 5 (c0msl6dt5) can0 message slot 7 data 5 (c0msl7dt5) can0 message slot 8 data 5 (c0msl8dt5) can0 message slot 9 data 5 (c0msl9dt5) can0 message slot 10 data 5 (c0msl10dt5) can0 message slot 11 data 5 (c0msl11dt5) can0 message slot 12 data 5 (c0msl12dt5) can0 message slot 13 data 5 (c0msl13dt5) can0 message slot 14 data 5 (c0msl14dt5) can0 message slot 15 data 5 (c0msl15dt5) can0 message slot 16 data 5 (c0msl16dt5) can0 message slot 17 data 5 (c0msl17dt5) can0 message slot 18 data 5 (c0msl18dt5) can0 message slot 19 data 5 (c0msl19dt5) can0 message slot 20 data 5 (c0msl20dt5) can0 message slot 21 data 5 (c0msl21dt5) can0 message slot 22 data 5 (c0msl22dt5) can0 message slot 23 data 5 (c0msl23dt5) can0 message slot 24 data 5 (c0msl24dt5) can0 message slot 25 data 5 (c0msl25dt5) can0 message slot 26 data 5 (c0msl26dt5) can0 message slot 27 data 5 (c0msl27dt5) can0 message slot 28 data 5 (c0msl28dt5) can0 message slot 29 data 5 (c0msl29dt5) can0 message slot 30 data 5 (c0msl30dt5) can0 message slot 31 data 5 (c0msl31dt5) can1 message slot 0 data 5 (c1msl0dt5) can1 message slot 1 data 5 (c1msl1dt5) can1 message slot 2 data 5 (c1msl2dt5) can1 message slot 3 data 5 (c1msl3dt5) can1 message slot 4 data 5 (c1msl4dt5) can1 message slot 5 data 5 (c1msl5dt5) can1 message slot 6 data 5 (c1msl6dt5) can1 message slot 7 data 5 (c1msl7dt5) can1 message slot 8 data 5 (c1msl8dt5) can1 message slot 9 data 5 (c1msl9dt5) can1 message slot 10 data 5 (c1msl10dt5) can1 message slot 11 data 5 (c1msl11dt5) can1 message slot 12 data 5 (c1msl12dt5) can1 message slot 13 data 5 (c1msl13dt5) can1 message slot 14 data 5 (c1msl14dt5) can1 message slot 15 data 5 (c1msl15dt5)
13.2 can module related registers can module 13 13-109 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can1 message slot 16 data 5 (c1msl16dt5) can1 message slot 17 data 5 (c1msl17dt5) can1 message slot 18 data 5 (c1msl18dt5) can1 message slot 19 data 5 (c1msl19dt5) can1 message slot 20 data 5 (c1msl20dt5) can1 message slot 21 data 5 (c1msl21dt5) can1 message slot 22 data 5 (c1msl22dt5) can1 message slot 23 data 5 (c1msl23dt5) can1 message slot 24 data 5 (c1msl24dt5) can1 message slot 25 data 5 (c1msl25dt5) can1 message slot 26 data 5 (c1msl26dt5) can1 message slot 27 data 5 (c1msl27dt5) can1 message slot 28 data 5 (c1msl28dt5) can1 message slot 29 data 5 (c1msl29dt5) can1 message slot 30 data 5 (c1msl30dt5) can1 message slot 31 data 5 (c1msl31dt5) 9 10 11 12 13 14 b15 b8 ???????? c0msl0dt5-c0msl31dt5, c1msl0dt5-c1msl31dt5 b bit name function r w 8?15 c0msl0dt5?c0msl31dt5, message slot data 5 r w c1msl0dt5?c1msl31dt5 these registers are the memory space for transmit and receive frames. note:  during a receive slot, an undefined value is written to the register if the data length of the data frame being stored (dlc value) is equal to or less than 5.
13.2 can module related registers can module 13 13-110 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can0 message slot 0 data 6 (c0msl0dt6) can0 message slot 1 data 6 (c0msl1dt6) can0 message slot 2 data 6 (c0msl2dt6) can0 message slot 3 data 6 (c0msl3dt6) can0 message slot 4 data 6 (c0msl4dt6) can0 message slot 5 data 6 (c0msl5dt6) can0 message slot 6 data 6 (c0msl6dt6) can0 message slot 7 data 6 (c0msl7dt6) can0 message slot 8 data 6 (c0msl8dt6) can0 message slot 9 data 6 (c0msl9dt6) can0 message slot 10 data 6 (c0msl10dt6) can0 message slot 11 data 6 (c0msl11dt6) can0 message slot 12 data 6 (c0msl12dt6) can0 message slot 13 data 6 (c0msl13dt6) can0 message slot 14 data 6 (c0msl14dt6) can0 message slot 15 data 6 (c0msl15dt6) can0 message slot 16 data 6 (c0msl16dt6) can0 message slot 17 data 6 (c0msl17dt6) can0 message slot 18 data 6 (c0msl18dt6) can0 message slot 19 data 6 (c0msl19dt6) can0 message slot 20 data 6 (c0msl20dt6) can0 message slot 21 data 6 (c0msl21dt6) can0 message slot 22 data 6 (c0msl22dt6) can0 message slot 23 data 6 (c0msl23dt6) can0 message slot 24 data 6 (c0msl24dt6) can0 message slot 25 data 6 (c0msl25dt6) can0 message slot 26 data 6 (c0msl26dt6) can0 message slot 27 data 6 (c0msl27dt6) can0 message slot 28 data 6 (c0msl28dt6) can0 message slot 29 data 6 (c0msl29dt6) can0 message slot 30 data 6 (c0msl30dt6) can0 message slot 31 data 6 (c0msl31dt6) can1 message slot 0 data 6 (c1msl0dt6) can1 message slot 1 data 6 (c1msl1dt6) can1 message slot 2 data 6 (c1msl2dt6) can1 message slot 3 data 6 (c1msl3dt6) can1 message slot 4 data 6 (c1msl4dt6) can1 message slot 5 data 6 (c1msl5dt6) can1 message slot 6 data 6 (c1msl6dt6) can1 message slot 7 data 6 (c1msl7dt6) can1 message slot 8 data 6 (c1msl8dt6) can1 message slot 9 data 6 (c1msl9dt6) can1 message slot 10 data 6 (c1msl10dt6) can1 message slot 11 data 6 (c1msl11dt6) can1 message slot 12 data 6 (c1msl12dt6) can1 message slot 13 data 6 (c1msl13dt6) can1 message slot 14 data 6 (c1msl14dt6) can1 message slot 15 data 6 (c1msl15dt6)
13.2 can module related registers can module 13 13-111 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can1 message slot 16 data 6 (c1msl16dt6) can1 message slot 17 data 6 (c1msl17dt6) can1 message slot 18 data 6 (c1msl18dt6) can1 message slot 19 data 6 (c1msl19dt6) can1 message slot 20 data 6 (c1msl20dt6) can1 message slot 21 data 6 (c1msl21dt6) can1 message slot 22 data 6 (c1msl22dt6) can1 message slot 23 data 6 (c1msl23dt6) can1 message slot 24 data 6 (c1msl24dt6) can1 message slot 25 data 6 (c1msl25dt6) can1 message slot 26 data 6 (c1msl26dt6) can1 message slot 27 data 6 (c1msl27dt6) can1 message slot 28 data 6 (c1msl28dt6) can1 message slot 29 data 6 (c1msl29dt6) can1 message slot 30 data 6 (c1msl30dt6) can1 message slot 31 data 6 (c1msl31dt6) 123456b7 b0 ???????? c0msl0dt6-c0msl31dt6, c1msl0dt6-c1msl31dt6 b bit name function r w 0?7 c0msl0dt6?c0msl31dt6, message slot data 6 r w c1msl0dt6?c1msl31dt6 these registers are the memory space for transmit and receive frames. note:  during a receive slot, an undefined value is written to the register if the data length of the data frame being stored (dlc value) is equal to or less than 6.
13.2 can module related registers can module 13 13-112 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can0 message slot 0 data 7 (c0msl0dt7) can0 message slot 1 data 7 (c0msl1dt7) can0 message slot 2 data 7 (c0msl2dt7) can0 message slot 3 data 7 (c0msl3dt7) can0 message slot 4 data 7 (c0msl4dt7) can0 message slot 5 data 7 (c0msl5dt7) can0 message slot 6 data 7 (c0msl6dt7) can0 message slot 7 data 7 (c0msl7dt7) can0 message slot 8 data 7 (c0msl8dt7) can0 message slot 9 data 7 (c0msl9dt7) can0 message slot 10 data 7 (c0msl10dt7) can0 message slot 11 data 7 (c0msl11dt7) can0 message slot 12 data 7 (c0msl12dt7) can0 message slot 13 data 7 (c0msl13dt7) can0 message slot 14 data 7 (c0msl14dt7) can0 message slot 15 data 7 (c0msl15dt7) can0 message slot 16 data 7 (c0msl16dt7) can0 message slot 17 data 7 (c0msl17dt7) can0 message slot 18 data 7 (c0msl18dt7) can0 message slot 19 data 7 (c0msl19dt7) can0 message slot 20 data 7 (c0msl20dt7) can0 message slot 21 data 7 (c0msl21dt7) can0 message slot 22 data 7 (c0msl22dt7) can0 message slot 23 data 7 (c0msl23dt7) can0 message slot 24 data 7 (c0msl24dt7) can0 message slot 25 data 7 (c0msl25dt7) can0 message slot 26 data 7 (c0msl26dt7) can0 message slot 27 data 7 (c0msl27dt7) can0 message slot 28 data 7 (c0msl28dt7) can0 message slot 29 data 7 (c0msl29dt7) can0 message slot 30 data 7 (c0msl30dt7) can0 message slot 31 data 7 (c0msl31dt7) can1 message slot 0 data 7 (c1msl0dt7) can1 message slot 1 data 7 (c1msl1dt7) can1 message slot 2 data 7 (c1msl2dt7) can1 message slot 3 data 7 (c1msl3dt7) can1 message slot 4 data 7 (c1msl4dt7) can1 message slot 5 data 7 (c1msl5dt7) can1 message slot 6 data 7 (c1msl6dt7) can1 message slot 7 data 7 (c1msl7dt7) can1 message slot 8 data 7 (c1msl8dt7) can1 message slot 9 data 7 (c1msl9dt7) can1 message slot 10 data 7 (c1msl10dt7) can1 message slot 11 data 7 (c1msl11dt7) can1 message slot 12 data 7 (c1msl12dt7) can1 message slot 13 data 7 (c1msl13dt7) can1 message slot 14 data 7 (c1msl14dt7) can1 message slot 15 data 7 (c1msl15dt7)
13.2 can module related registers can module 13 13-113 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can1 message slot 16 data 7 (c1msl16dt7) can1 message slot 17 data 7 (c1msl17dt7) can1 message slot 18 data 7 (c1msl18dt7) can1 message slot 19 data 7 (c1msl19dt7) can1 message slot 20 data 7 (c1msl20dt7) can1 message slot 21 data 7 (c1msl21dt7) can1 message slot 22 data 7 (c1msl22dt7) can1 message slot 23 data 7 (c1msl23dt7) can1 message slot 24 data 7 (c1msl24dt7) can1 message slot 25 data 7 (c1msl25dt7) can1 message slot 26 data 7 (c1msl26dt7) can1 message slot 27 data 7 (c1msl27dt7) can1 message slot 28 data 7 (c1msl28dt7) can1 message slot 29 data 7 (c1msl29dt7) can1 message slot 30 data 7 (c1msl30dt7) can1 message slot 31 data 7 (c1msl31dt7) 9 10 11 12 13 14 b15 b8 ???????? c0msl0dt7-c0msl31dt7, c1msl0dt7-c1msl31dt7 b bit name function r w 8?15 c0msl0dt7?c0msl31dt7, message slot data 7 r w c1msl0dt7?c1msl31dt7 these registers are the memory space for transmit and receive frames. note:  during a receive slot, an undefined value is written to the register if the data length of the data frame being stored (dlc value) is equal to or less than 7.
13.2 can module related registers can module 13 13-114 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can0 message slot 0 timestamp (c0msl0tsp) can0 message slot 1 timestamp (c0msl1tsp) can0 message slot 2 timestamp (c0msl2tsp) can0 message slot 3 timestamp (c0msl3tsp) can0 message slot 4 timestamp (c0msl4tsp) can0 message slot 5 timestamp (c0msl5tsp) can0 message slot 6 timestamp (c0msl6tsp) can0 message slot 7 timestamp (c0msl7tsp) can0 message slot 8 timestamp (c0msl8tsp) can0 message slot 9 timestamp (c0msl9tsp) can0 message slot 10 timestamp (c0msl10tsp) can0 message slot 11 timestamp (c0msl11tsp) can0 message slot 12 timestamp (c0msl12tsp) can0 message slot 13 timestamp (c0msl13tsp) can0 message slot 14 timestamp (c0msl14tsp) can0 message slot 15 timestamp (c0msl15tsp) can0 message slot 16 timestamp (c0msl16tsp) can0 message slot 17 timestamp (c0msl17tsp) can0 message slot 18 timestamp (c0msl18tsp) can0 message slot 19 timestamp (c0msl19tsp) can0 message slot 20 timestamp (c0msl20tsp) can0 message slot 21 timestamp (c0msl21tsp) can0 message slot 22 timestamp (c0msl22tsp) can0 message slot 23 timestamp (c0msl23tsp) can0 message slot 24 timestamp (c0msl24tsp) can0 message slot 25 timestamp (c0msl25tsp) can0 message slot 26 timestamp (c0msl26tsp) can0 message slot 27 timestamp (c0msl27tsp) can0 message slot 28 timestamp (c0msl28tsp) can0 message slot 29 timestamp (c0msl29tsp) can0 message slot 30 timestamp (c0msl30tsp) can0 message slot 31 timestamp (c0msl31tsp) can1 message slot 0 timestamp (c1msl0tsp) can1 message slot 1 timestamp (c1msl1tsp) can1 message slot 2 timestamp (c1msl2tsp) can1 message slot 3 timestamp (c1msl3tsp) can1 message slot 4 timestamp (c1msl4tsp) can1 message slot 5 timestamp (c1msl5tsp) can1 message slot 6 timestamp (c1msl6tsp) can1 message slot 7 timestamp (c1msl7tsp) can1 message slot 8 timestamp (c1msl8tsp) can1 message slot 9 timestamp (c1msl9tsp) can1 message slot 10 timestamp (c1msl10tsp) can1 message slot 11 timestamp (c1msl11tsp) can1 message slot 12 timestamp (c1msl12tsp) can1 message slot 13 timestamp (c1msl13tsp) can1 message slot 14 timestamp (c1msl14tsp) can1 message slot 15 timestamp (c1msl15tsp)
13.2 can module related registers can module 13 13-115 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 can1 message slot 16 timestamp (c1msl16tsp) can1 message slot 17 timestamp (c1msl17tsp) can1 message slot 18 timestamp (c1msl18tsp) can1 message slot 19 timestamp (c1msl19tsp) can1 message slot 20 timestamp (c1msl20tsp) can1 message slot 21 timestamp (c1msl21tsp) can1 message slot 22 timestamp (c1msl22tsp) can1 message slot 23 timestamp (c1msl23tsp) can1 message slot 24 timestamp (c1msl24tsp) can1 message slot 25 timestamp (c1msl25tsp) can1 message slot 26 timestamp (c1msl26tsp) can1 message slot 27 timestamp (c1msl27tsp) can1 message slot 28 timestamp (c1msl28tsp) can1 message slot 29 timestamp (c1msl29tsp) can1 message slot 30 timestamp (c1msl30tsp) can1 message slot 31 timestamp (c1msl31tsp) b01234567891011121314b15 c0msl0tsp-c0msl31tsp, c1msl0tsp-c1msl31tsp ???????????????? b bit name function r w 0?15 c0msl0tsp?c0msl31tsp, message slot timestamp r w c1msl0tsp?c1msl31tsp these registers are the memory space for transmit and receive frames. when transmission/reception has finished, the can timestamp count register value is written to the register.
can module 13 13-116 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 13.3.1 can protocol frames (1) 13.3 can protocol 13.3.1 can protocol frames there are four types of frames that are handled by can protocol: (1) data frame (2) remote frame (3) error frame (4) overload frame frames are separated from each other by an interframe space. 13.3 can protocol sof arbitration field control field data field crc field ack field eof 11 1 6 0?64 16 2 7 11 1 1 1 18 6 0?64 16 2 7 sof eof 11 1 6 16 2 7 11 1 1 1 18 6 16 2 7 data frame remote frame standard format standard format extended format note:  the number in each field denotes the number of bits. extended format 1 1 1 1 arbitration field control field crc field ack field
can module 13 13-117 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 13.3.2 can protocol frames (2) 13.3 can protocol error flag error delimiter interframe space or overload flag 6?12 8 overload flag overload delimiter 6?12 8 interframe space or overload flag error frame overload frame interframe space intermission bus idle sof of the next frame for the case of an error active state 3 0? suspend transmission for the case of an error passive state 3 8 0? sof of the next frame bus idle intermission note:  the number in each field denotes the number of bits. 1 1 13.3.2 data formats during can transmission/reception figure 13.3.3 shows an example of the transmit/receive transfer data format that can be used in can. data is transmitted/received sequentially beginning with the msb side of the can message slot (c0mslnsid0- c0mslndt7 and c1mslnsid0-c1mslndt7). figure 13.3.3 example of can transmit/receive transfer data format sof sid0 sid1 sid2 sid3 msb arbitration field can frame arbitration field b0 b1 b2 b3 b4 msb data field data field
can module 13 13-118 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.3.3 can controller error states the can controller assumes one of the following three error states depending on the transmit error and re- ceive error counter values. (1) error active state  this is a state where almost no errors have occurred.  when an error is detected, an active error flag is transmitted.  the can controller is in the state immediately after being initialized. (2) error passive state  this is a state where many errors have occurred.  when an error is detected, a passive error flag is transmitted. (3) bus off state  this is a state where a very large number of errors have occurred.  can communication with other nodes cannot be performed until the can module returns to an error active state. error status of the unit transmit error counter receive error counter error active state 0?127 and 0?127 error passive state 128?255 or 128 and over bus off state 256 and over ? transmit error counter > 255 transmit error counter 128 or receive error counter 128 transmit error counter < 128 and receive error counter < 128 11 consecutive recessive bits detected on can bus 128 times (note 1) error active state error passive state bus off state initial setting note 1: with rbo (return bus off) bit and frst (forcible reset) bit, it can be forcibly exited from bus off state. for detail, see can control register (canncnt). 13.3 can protocol figure 13.3.4 can controller error states
can module 13 13-119 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.4 initializing the can module 13.4 initializing the can module 13.4.1 initializing the can module before performing communication, set up the can module as described below. (1) selecting pin functions the can transmit data output pin (ctx) and can receive data input pin (crx) are shared with input/output ports. be sure to select the functions of these pins. (see chapter 8, ?input/output ports and pin functions.? (2) setting the interrupt controller (icu) to use can module interrupts, set their interrupt priority levels. (3) setting can error, can single-shot and can slot interrupt request mask registers to use can bus error, can error passive, can error bus off, can single-shot or can slot interrupts, set each corresponding bit to "1" to enable the interrupt request. (4) setting dmac to use dma transfers by can, be sure to set the dmac. (5) setting can dma transfer request select register to use dma transfers by can, set the can dma transfer request select register to choose the cause of transfer request. (6) setting can module clock set clock supplied for protocol engine block of can module. after confirmation for the status of reset can module, select cpuclk/4 in canx clock. (7) setting the bit timing and the number of times sampled using the can configuration register and can baud rate prescaler, set the bit timing and the number of times the can bus is sampled. 1) setting the bit timing determine the period tq that is the base of bit timing, the configuration of propagation segment, phase segment1 and phase segment2, and resynchronization jump width. the equation to calculate tq is given below. tq period = (brp + 1) / (cpuclk/4) the baud rate is determined by the number of tq?s that comprise one bit. the equation to calculate the baud rate is given below. baud rate (bps) = 1 tq period number of tq in one bit number of tq?s in one bit = synchronization segment + propagation segment + phase segment 1 + phase segment 2 note:  the maximum baud rate for communication depends on the system configuration (e.g., bus length, clock error, can bus transceiver, sampling position and bit configuration). consider the system configuration when setting the baud rate and number of tq.
can module 13 13-120 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 synchronization segment propagation segment phase segment1 phase segment2 (1) (2) (3) sampling point  this diagram shows the bit timing when one bit consists of 8 tq's.  if one-time sampling is selected, the value sampled at sampling point (1) is assumed to be the value of the bit.  if three-time sampling is selected, the value of the bit is determined by majority from can bus values sampled at sampling points (1), (2) and (3). 1tq 1 bit 13.4 initializing the can module figure 13.4.1 example of bit timing 2) setting the number of times sampled select the number of times the can bus is sampled from ?one time? and ?three times.?  if one-time sampling is selected, the value sampled at only the end of phase segment1 is assumed to be the value of the bit.  if three-time sampling is selected, the value of the bit is determined by majority from three sampled values, one sampled at the end of phase segment1 and the other sampled 1 tq before and 2 tq?s before that. (8) setting the id mask registers set the values of id mask registers (global mask register, local mask register a and local mask register b) that are used in acceptance filtering of received messages. (9) settings for use in basiccan mode  set the can frame format select register ide30 and ide31 bits. (we recommend setting the same value in these bits.)  set ids in message slots 30 and 31.  set the message control registers 30 and 31 for data frame reception (h?40). (10) settings for use in single-shot mode using the can mode register (can0mode, can1mode) and can control register (can0cnt, can1cnt), select can module operation mode (basiccan, loopback mode) and the clock source for the timestamp counter. (11) setting can module operation mode in the can single-shot mode control register, set the slot that is to be operated in single-shot mode. (12) releasing can module from reset when settings (1) through (11) above are finished, clear the can control register (can0cnt, can1cnt)?s forcible reset (frst) and reset (rst) bits to "0." then, after detecting 11 consecutive reces- sive bits on the can bus, the can module becomes ready to communicate.
can module 13 13-121 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 initialize can module set the input/output port operation mode register set the interrupt controller set can related interrupt request mask registers set can configuration register set the id mask register set can operation mode negate can reset can module initialization completed set interrupt priority  set the bit timing (baud rate)  set the number of times sampled set the id mask bit set basiccan mode  set the can frame format select register  set ids in message slots 30 and 31  set the message slot control register release can module from reset set can error interrupt request mask register  enable/disable can bus error interrupt request  enable/disable can error passive interrupt request  enable/disable can bus off interrupt request set can slot interrupt request mask register  enable/disable the interrupt request to be generated when transmission or reception in the relevant slot has finished set can single-shot interrupt request mask regiter  enable/disable the interrupt request to be generated when single-shot transission in the relevant slot has failed. set loopback mode  clear can control register (canncnt)'s frst and rst bits set dmac set can dma transfer request select register set dmac select dma transfer request source 13.4 initializing the can module figure 13.4.2 initializing can module
can module 13 13-122 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.5 transmitting data frames 13.5 transmitting data frames 13.5.1 data frame transmit procedure the following describes the procedure for transmitting data frames. (1) initializing can message slot control register initialize the can message slot control register for the slot to be transmitted by writing h?00 to the register. (2) confirming that transmission is idle read the can message slot control register that has been initialized and check the trstat (transmit/ receive status) bit to see that transmission/reception has stopped and remains idle. if this bit = "1," it means that the can module is accessing the message slot. therefore, wait until the bit is cleared to "0." (3) setting transmit data set the transmit id and transmit data in the message slot. (4) setting can frame format select register set the corresponding bit in can frame format select register to "0" if the data is to be transmitted as a standard frame, or "1" if the data is to be transmitted as an extended frame. (5) setting can message slot control register write h?80 (note 1) to the can message slot control register to set the tr (transmit request) bit to "1." note 1: always be sure to write h?80 when transmitting data frames.
can module 13 13-123 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.5 transmitting data frames data frame transmit procedure initialize can message slot control register set id and data in can message slot set can frame format select register set can message slot control register end of setting write h'00 select standard id or extended id write h'80 (transmit request) read can message slot control register trstat bit = 0 yes no confirm that transmission and reception are idle figure 13.5.1 data frame transmit procedure 13.5.2 data frame transmit operation the following describes data frame transmit operation. the operations described below are automatically per- formed in hardware. (1) selecting a transmit frame the can module checks slots which have transmit requests (including remote frame transmit slots) every intermission to determine the frame to transmit. if two or more transmit slots exist, frames are transmitted in order of slot numbers beginning with the smallest. (2) transmitting a data frame after determining the transmit slot, the can module sets the corresponding can message slot control register?s trstat (transmit/receive status) bit to "1" and starts transmitting. (3) if lost in can bus arbitration or a can bus error occurs if the can module lost in can bus arbitration or a can bus error occurs in the middle of transmission, the can module clears the can message slot control register?s trstat (transmit/receive status) bit to "0." if the can module requested a transmit abort, the transmit abort is accepted and the message slot is enabled for write.
can module 13 13-124 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.5 transmitting data frames (4) completion of data frame transmission when data frame transmission has finished, the can message slot control register?s trfin (transmit/ receive finished) bit and the can slot interrupt request status register are set to "1." also, a timestamp count value at which transmission has finished is written to the can message slot timestamp (c0mslntsp, c1mslntsp), and the transmit operation is thereby completed. if the can slot interrupt request has been enabled, an interrupt request is generated at completion of transmit operation. the slot which has had transmission completed goes to an inactive state and remains inactive (neither transmit nor receive) until it is newly set in software. b'1000 0010 b'0000 0001 (note 1) b'1000 0001 b'0000 0000 (note 1) b'1000 0000 write h'80 transmission aborted transmit request accepted note 1: when in this state, data can be written to the message slot. transmission aborted transmit reque st accepted transmiss ion aborted transmission completed tra nsmis sion aborted transmission completed wait for transmission b'0000 0010 lost in can bus arbitration or a can bus error occurs lost in can bus arbitration or a can bus e rror occurs 1 2 3 4 5 6 b7 (b15) (b8) b0 rm rr tr rl ra ml trstat trfin 00000000 can message slot control register bit allocation transmission completed figure 13.5.2 operation of can message slot control register during data frame transmission 13.5.3 transmit abort function the transmit abort function is used to cancel a transmit request that has once been set. this is accomplished by writing h?0f to the can message slot control register for the slot to be canceled. when transmit abort is accepted, the can module clears the can message slot control register?s trstat (transmit/receive sta- tus) bit to "0," allowing for data to be written to the message slot. the following shows the conditions under which transmit abort is accepted. [conditions]  when the target message is waiting for transmission  when a can bus error occurs during transmission  when lost in can bus arbitration
can module 13 13-125 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.6 receiving data frames 13.6 receiving data frames 13.6.1 data frame receive procedure the following describes the procedure for receiving data frames. (1) initializing can message slot control register initialize the can message slot control register for the slot to be received by writing h?00 to the register. (2) confirming that reception is idle read the can message slot control register that has been initialized and check the trstat (transmit/ receive status) bit to see that reception has stopped and remains idle. if this bit = "1," it means that the can module is accessing the message slot. therefore, wait until the bit is cleared to "0." (3) setting the receive id set the desired receive id in the message slot. (4) setting can frame format select register set the corresponding bit in can frame format select register to "0" if a standard frame is to be received, or "1" if an extended frame is to be received. (5) setting can message slot control register write h?40 to the can message slot control register to set the rr (receive request) bit to "1."
can module 13 13-126 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.6 receiving data frames data frame receive procedure initialize can message slot control register set id in can message slot set can frame format select register set can message slot control register end of setting write h'00 select standard id or extended id write h'40 (receive request) read can message slot control register trstat bit = 0 yes no confirm that t ransmission and reception are idle figure 13.6.1 data frame receive procedure 13.6.2 data frame receive operation the following describes data frame receive operation. the operations described below are automatically per- formed in hardware. (1) acceptance filtering when the can module finished receiving data, it starts searching for the slot that satisfies the conditions for receiving the received message, sequentially from slot 0 (up to slot 31). the following shows receive condi- tions for the slots that have been set for data frame reception. [conditions]  the received frame is a data frame.  the receive id and the slot id are identical, assuming the id mask register bits set to "0" are ?don?t care.?  the standard and extended frame types are the same. note:  in basiccan mode, slots 30 and 31 while being set for data frame reception can also receive remote frames.
can module 13 13-127 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b'0100 0011 b'0000 0001 b'0100 0001 b'0000 0000 b'0100 0000 clear the receive request write h'40 start storing the received data clear the receive request store the received data clear the rec eive request finished storing the received data finished storing the received data clear the receive request b'0000 0011 b'0100 0111 start storing the received data (message lost occurs) b'0100 0101 finished storing the received data b'0000 0111 b'0000 0101 start store the received data (message lost occurs) wait for the received data wait for the received data finished storing the received data clear the receive request clear the receive request clear the receive request finished storing the received data store the received data clear the rec eive request finished storing the received data clear the receive request 1 2 3 4 5 6 b7 (b15) (b8) b0 rm rr tr rl ra ml trstat trfin 00000000 can message slot control register bit allocation cpu read & trfin bit clea r cpu read & trfin bit clear b'0100 0111 figure 13.6.2 operation of can message slot control register during data frame reception 13.6 receiving data frames (2) when the receive conditions are met when the receive conditions in (1) above are met, the can module sets the can message slot control register?s trstat (transmit/receive status) bit and trfin (transmit/receive finished) bit to "1" while at the same time writing the received data to the message slot. if the trfin (transmit/receive finished) bit is already set to "1" at this time, the can module also sets the ml (message lost) bit to "1," indicating that the message slot has been overwritten. the message slot has both of its id and dlc fields entirely overwritten and has an undefined value written in its unused area (e.g., extended id field during standard frame recep- tion and an unused data field). furthermore, a timestamp count value at which the message was received is written to the can message slot timestamp (c0mslntsp, c1mslntsp) along with the received data. when the can module finished writing to the message slot, it sets the can slot interrupt request status bit to "1." if the interrupt request for the slot has been enabled, the can module generates an interrupt request and enters a wait state for the next reception. (3) when the receive conditions are not met the received frame is discarded, and the can module goes to the next transmit/receive operation without writing to the message slot.
can module 13 13-128 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.6 receiving data frames 13.6.3 reading out received data frames the following shows the procedure for reading out received data frames from the slot. (1) clearing trfin (transmit/receive finished) bit write h?4e, h?40 or h?00 to the can message slot control register (c0mslncnt, c1mslncnt) to clear the trfin bit to "0." after this write, the slot operates as follows: values written to slot operation after write c0mslncnt, c1mslncnt h?4e operates as a data frame receive slot. whether overwritten can be verified by ml bit. h?40 operates as a data frame receive slot. whether overwritten cannot be verified by ml bit. h?00 (note 1) the slot stops transmit/receive operation. note 1: when the can message slot control register (c0mslncnt, c1mslncnt) rr (recieve request) bit is cleared to "0" by writing h?00, if the receive operation has started until just before the bit is cleared, the transmit/receive control will be performed until the receive operation is finished. note :  if message-lost check by the ml bit is needed, write h?4e to clear the trfin bit. (2) reading out from the message slot read out a message from the message slot. (3) checking trfin (transmit/receive finished) bit read the can message slot control register to check the trfin (transmit/receive finished) bit. 1) if trfin (transmit/receive finished) bit = "1" it means that new data was stored in the slot while still reading out a message from it in (2) above. in this case, the data read out in (2) may contain an undefined value. therefore, reexecute the above procedure beginning with clearing of the trfin (transmit/receive finished) bit in (1). 2) if trfin (transmit/receive finished) bit = "0" it means that the can module finished reading out from the slot normally.
can module 13 13-129 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.6 receiving data frames figure 13.6.3 procedure for reading out received data reading out received data clear trfin bit to 0 read out from can message slot finished reading out received data read can message slot control register trfin bit = 0 yes no write h'4e, h'40 or h'00
can module 13 13-130 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.7 transmitting remote frames 13.7.1 remote frame transmit procedure the following describes the procedure for transmitting remote frames. (1) initializing can message slot control register initialize the can message slot control register for the slot to be transmitted by writing h?00 to the register. (2) confirming that transmission is idle read the can message slot control register that has been initialized and check the trstat (transmit/ receive status) bit to see that transmission/reception has stopped and remains idle. if this bit = "1," it means that the can module is accessing the message slot. therefore, wait until the bit is cleared to "0." (3) setting transmit id set the id to be transmitted in the message slot. (4) setting can frame format select register set the corresponding bit in can frame format select register to "0" if the data is to be transmitted as a standard frame, or "1" if the data is to be transmitted as an extended frame. (5) setting can message slot control register write h?a0 to the can message slot control register to set the tr (transmit request) bit and rm (re- mote) bit to "1." 13.7 transmitting remote frames
can module 13 13-131 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.7 transmitting remote frames remote frame transmit procedure initialize can message slot control register set id in can message slot set can frame format select register set can message slot control register end of setting write h'00 select standard id or extended id write h'a0 (transmit request, remote) read can message slot control register trstat bit = 0 yes no confirm that transmission and reception are idle figure 13.7.1 remote frame transmit procedure 13.7.2 remote frame transmit operation the following describes remote frame transmit operation. the operations described below are automatically performed in hardware. (1) setting ra (remote active) bit the ra (remote active) bit is set to "1" at the same time h?a0 (transmit request, remote) is written to the can message slot control register, indicating that the corresponding slot is to handle remote frames. (2) selecting a transmit frame the can module checks slots which have transmit requests (including data frame transmit slots) every intermission to determine the frame to transmit. if two or more transmit slots exist, frames are transmitted in order of slot numbers beginning with the smallest. (3) transmitting a remote frame after determining the transmit slot, the can module sets the corresponding can message slot control register?s trstat (transmit/receive status) bit to "1" and starts transmitting.
can module 13 13-132 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.7 transmitting remote frames (4) if lost in can bus arbitration or a can bus error occurs if the can module lost in can bus arbitration or a can bus error occurs in the middle of transmission, the can module clears the can message slot control register?s trstat (transmit/receive status) bit to "0." if the can module requested a transmit abort, the transmit abort is accepted and the message slot is enabled for write. (5) completion of remote frame transmission when remote frame transmission finishes, the timestamp count value at which transmission finished is written to the can message slot timestamp (c0mslntsp, c1mslntsp) and the can message slot control register?s ra (remote active) bit is cleared to "0." in addition, the can slot interrupt request status bit is set to "1" by completion of transmission, but the can message slot control register?s trfin (transmit/receive finished) bit is not set to "1." if the can slot interrupt request has been enabled, an interrupt request is generated when transmission has finished. (6) receiving a data frame when remote frame transmission finishes, the slot automatically starts functioning as a data frame receive slot. (7) acceptance filtering when the can module finished receiving data, it starts searching for the slot that satisfies the conditions for receiving the received message, sequentially from slot 0 (up to slot 31). the following shows receive condi- tions for the slots that have been set for data frame reception. [conditions]  the received frame is a data frame.  the receive id and the slot id are identical, assuming the id mask register bits set to "0" are ?don?t care.?  the standard and extended frame types are the same. note:  in basiccan mode, slots 30 and 31 cannot be used as a transmit slot. (8) when the receive conditions are met when the receive conditions in (7) above are met, the can module sets the can message slot control register?s trstat (transmit/receive status) bit and trfin (transmit/receive finished) bit to "1" while at the same time writing the received data to the message slot. if the trfin (transmit/receive finished) bit is already set to "1" at this time, the can module also sets the ml (message lost) bit to "1," indicating that the message slot has been overwritten. the message slot has both of its id and dlc fields entirely overwritten and has an undefined value written in its unused area (e.g., extended id field during standard frame recep- tion and an unused data field). furthermore, a timestamp count value at which the message was received is written to the can message slot timestamp (c0mslntsp, c1mslntsp) along with the received data. when the can module finished writing to the message slot, it sets the can slot interrupt request status bit to "1." if the interrupt request for the slot has been enabled, the can module generates an interrupt request and enters a wait state for the next reception. note:  if the can module receives a corresponding data frame before sending a remote frame, it stores the received data frame in the slot and does not transmit the remote frame. (9) when the receive conditions are not met the received frame is discarded, and the can module goes to the next transmit/receive operation without writing to the message slot.
can module 13 13-133 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.7 transmitting remote frames b'0000 0000 b'0000 0000 starting storing the received data lost in can bus arbitr ation or a can bus error o ccurr ed clear the transmit request b'0000 1010 b'1010 0011 start storing the received data clear the transmit request b'0000 0011 b'0000 0001 finished sending a remote frame cpu read and trfin bit clear b'1010 0101 b'1010 1000 b'1010 1010 finished storing th e receive d data clear the rece ive request store the received data clear the receive request b'1010 0001 b'1010 0111 b'0000 0111 b'0000 0101 finished storing the received data finished sending a remote frame b'1010 0000 wait for received data b'1010 1011 b'0000 1011 clear the transmit request b'0000 0001 finished storing the received data b'0000 1000 can bus error occurred finished storing the received data start storing the received data (message lost occurs) start storing the received data (message lost occurs) wait for received data finished storing the received data store the received data clear the receive request finished st oring the received da ta clear t he receive req uest finished storing the received data write h'a0 transmission aborted 1 2 3 4 5 6 b7 (b15) (b8) b0 rm rr tr rl ra ml trstat trfin 00000000 can message slot control register bit allocation finished storing the received data recieve the transmit request figure 13.7.2 operation of the can message slot control register during remote frame transmission 13.7.3 reading out received data frames when set for remote frame transmission the following shows the procedure for reading out the data frames that have been received in the slot when it is set for remote frame transmission. (1) clearing trfin (transmit/receive finished) bit write h?ae or h?00 to the can message slot control register (c0mslncnt, c1mslncnt) to clear the trfin bit to "0." after this write, the slot operates as follows: values written to slot operation after write c0mslncnt, c1mslncnt h?ae operates as a data frame receive slot. whether overwritten can be verified by ml bit. h?00 the slot stops transmit/receive operation. notes:  if message-lost check by the ml bit is needed, write h?ae to clear the trfin bit.  if the trfin bit was cleared by writing h?ae or h?00, it is possible that new data will be stored in the slot while still reading out a message from it.  the received data frame cannot be read out by writing h?a0 to the register. if the trfin bit is cleared by writing h?a0, the slot performs remote frame transmit operation.
can module 13 13-134 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 13.7.3 procedure for reading out received data when set for remote frame transmission 13.7 transmitting remote frames (2) reading out from the message slot read out a message from the message slot. (3) checking trfin (transmit/receive finished) bit read the can message slot control register to check the trfin (transmit/receive finished) bit. 1) if trfin (transmit/receive finished) bit = "1" it means that new data was stored in the slot while still reading out a message from it in (2) above. in this case, the data read out in (2) may contain an undefined value. therefore, reexecute the above procedure beginning with clearing of the trfin (transmit/receive finished) bit in (1). 2) if trfin (transmit/receive finished) bit = "0" it means that the can module finished reading out from the slot normally. reading out received data clear trfin bit to 0 read out from can message slot finished reading out received data read can message slot control register trfin bit = 0 yes no write h'ae or h'00
can module 13 13-135 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.8 receiving remote frames 13.8 receiving remote frames 13.8.1 remote frame receive procedure the following describes the procedure for receiving remote frames. (1) initializing can message slot control register initialize the can message slot control register for the slot to be received by writing h?00 to the register. (2) confirming that reception is idle read the can message slot control register that has been initialized and check the trstat (transmit/ receive status) bit to see that reception has stopped and remains idle. if this bit = "1," it means that the can module is accessing the message slot. therefore, wait until the bit is cleared to "0." (3) setting the receive id set the desired receive id in the message slot. (4) setting can frame format select register set the corresponding bit in can frame format select to "0" if a standard frame is to be received, or "1" if an extended frame is to be received. (5) setting can message slot control register 1) when automatic response (data frame transmission) for remote frame reception is desired write h?60 to the can message slot control register to set the rr (receive request) bit and rm (remote) bit to "1." 2) when automatic response (data frame transmission) for remote frame reception is to be disabled write h?70 to the can message slot control register to set the rr (receive request) bit, rm (remote) bit and rl (automatic response inhibit) bit to "1." note:  during basiccan mode, slots 30 and 31, although capable of receiving remote frames, cannot automatically respond to remote frame reception.
can module 13 13-136 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 13.8.1 remote frame receive procedure 13.8.2 remote frame receive operation the following describes remote frame receive operation. the operations described below are automatically performed in hardware. (1) setting ra (remote active) bit the ra (remote active) bit indicating that the corresponding slot is to handle remote frames is set to "1" at the same time h?60 (receive request, remote, automatic response enable) or h?70 (receive request, remote, automatic response disable) is written to the can message slot control register. (2) acceptance filtering when the can module finished receiving data, it starts searching for the slot that satisfies the conditions for receiving the received message, sequentially from slot 0 (up to slot 31). the following shows receive condi- tions for the slots that have been set for remote frame reception. [conditions]  the received frame is a remote frame.  the receive id and the slot id are identical, assuming the id mask register bits set to "0" are ?don?t care.?  the standard and extended frame types are the same. 13.8 receiving remote frames remote frame receive procedure initialize can message slot control register set id in can message slot set can frame format select register set can message slot control register end of setting write h'00 select standard id or extended id write h'60 (receive request, remote and automatic response enable) write h'70 (receive request, remote and automatic response disable) read can message slot control register trstat bit = 0 yes no confirm that transmmision and reception are idle
can module 13 13-137 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.8 receiving remote frames (3) when the receive conditions are met when the receive conditions in (2) above are met, the can module sets the can message slot control register?s trstat (transmit/receive status) bit and trfin (transmit/receive finished) bit to "1" while at the same time writing the received data to the message slot. in addition, a timestamp count value at which the message was received is written to the can message slot timestamp (c0mslntsp, c1mslntsp) along with the received data. when the can module finished writing to the message slot, it sets the can slot interrupt request status bit to "1." if the interrupt request for the slot has been enabled, the can module generates an interrupt request. notes:  the id field and dlc value are written to the message slot.  an undefined value is written to the extended id area when receiving standard format frames.  the data field is not written to.  the ra and trfin bits are cleared to "0" after writing the received remote frame data. (4) when the receive conditions are not met the received data is discarded, and the can module waits for the next receive frame. no data is written to the message slot. (5) operation after receiving a remote frame the operation performed after receiving a remote frame differs depending on how automatic response is set. 1) when automatic response is disabled the slot which has had reception completed goes to an inactive state and remains inactive (neither transmit nor receive) until it is newly set in software. 2) when automatic response is enabled after receiving a remote frame, the slot automatically changes to a data frame transmit slot and performs the transmit operation described below. in this case, the transmitted data conforms to the id and dlc of the received remote frame. ? selecting a transmit frame the can module checks slots which have transmit requests (including remote frame transmit slots) every intermission to determine the frame to transmit. if two or more transmit slots exist, frames are transmitted in order of slot numbers beginning with the smallest. ? transmitting a data frame after determining the transmit slot, the can module sets the corresponding can message slot control register?s trstat (transmit/receive status) bit to "1" and starts transmitting. ? if lost in can bus arbitration or a can bus error occurs if the can module lost in can bus arbitration or a can bus error occurs in the middle of transmission, the can module clears the can message slot control register?s trstat (transmit/receive status) bit to "0." if the can module requested a transmit abort, the transmit abort is accepted and the message slot is enabled for write. ? completion of data frame transmission when data frame transmission has finished, the can message slot control register?s trfin (transmit/receive finished) bit and the can slot interrupt request status register are set to "1." also, a timestamp count value at which transmission has finished is written to the can message slot timestamp (c0mslntsp, c1mslntsp), and the transmit operation is thereby completed. if the can slot interrupt request has been enabled, an interrupt request is generated at completion of transmit operation. the slot which has had transmission completed goes to an inactive state and remains inactive (neither transmit nor receive) until it is newly set in software.
can module 13 13-138 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 13.8.2 operation of can message slot control register during remote frame reception b'0000 0000 b'0000 0000 clear the receive request b'0000 1011 b'0110 0010 store the received data clear the receive request b'0000 0010 b'0000 0001 finished storing the received data b'0110 1000 b'0110 1011 finished storing the received data clear the receive request b'0110 0001 b'0110 0000 b'0000 1011 b'0000 0000 wait for reception send a data frame clear the receive request finished sending a data frame finished sending a data frame send a data frame finished storing the received data store the received data b'0111 1011 store the received data b'0111 0000 finished storing the received data finished storing the received d ata clear the receive request store the received data clear the receive request write h'60 (automatic response enabled) write h'70 (automatic response disabled) 1 2 3 4 5 6 b7 (b15) (b8) b0 rm rr tr rl ra ml trstat trfin 00000000 can message slot control register bit allocation b'0110 1000 b'0111 1000 wait for reception store the re ceived data clear the receive reque st finished storing the received data clear the receive request store the received data clear the receive request lost in can bus arbitration can bus error occurred 13.8 receiving remote frames
can module 13 13-139 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 13.9 notes on can module ? note for cancelation of transmit and receive can remote frame when aborting remote frame transmission or canceling remote frame receiving, make sure that the ra (re- mote active) bit is cleared to "0" after writing "h'00" or "h'0f" to the can message slot control register. (1) when aborting remote frame transmission 13.9 notes on can module figure 13.9.1 opertion flow when aborting remote frame transmission (2) when canceling remote frame receiving figure 13.9.2 opertion flow when canceling remote frame receiving ra (remote active) bit = "0" complete transmission abort note 1: h'00 or h'0f can be used. no ye s start transmission abort write h'00 or h'0f to can message slot control register (note 1) read can message slot control register complete receiving abort no ye s start receiving abort write h'00 or h'0f to can message slot control register (note 1) read can message slot control register ra (remote active) bit = "0" note 1: h'00 or h'0f can be used.
can module 13 13-140 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 this page is blank for reasons of layout. 13.9 notes on can module
chapter 14 direct ram interface (dri) 14.1 outline of the direct ram interface (dri) 14.2 dri related registers 14.3 notes on dri
direct ram interface (dri) 14 14-2 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 14.1 outline of the direct ram interface (dri) the direct ram interface (dri) is a parallel interface used to take in parallel data into the internal ram as it is input to the microcomputer synchronously with the clock. since a dedicated bus provided separately from the m32r-fpu is used to write data from the dri to the internal ram, data can be taken in without having to stop operation of the m32r-fpu. furthermore, a selective data capture function is supported that makes use of the internal event counter of the dri. table 14.1.1 outline of the direct ram interface (dri) item function transfer method clock synchronous parallel input ram access area entire area of the internal ram (32192: 176 kbytes, 32195: 32 kbytes, 32196: 64 kbytes) received data width selectable from32, 16 and 8 bits maximum transfer rate 40 mbytes/sec mimimum data capture cycle 100ns (when the special mode is not selected and input data bus width 32 bit), 87.5ns (when the special mode is not selected and input data bus width 16bit or 8bit), 50ns (when the special mode is not selected ) data capture bus width 32/16/8 bits (when the special mode is not selected), 16/8 bits (when the special mode is selected) event counter 16 bits x 5 counters (dec0?dec4) bank switch function two banks in ram specifiable as data storage destination data capture edge selectable from rising or falling edge or both edges capture timing adjust function timing from data capture edge detection to data sampling can be set selective data capture function data can be captured selectively using an internal event counter note: ? f(bclk)=40mhz (druing operation) table 14.1.2 dri interrupt request generation function dri interrupt request icu interrupt source din0 event detection dri event detection interrupt (group interrupt) din1 event detection din2 event detection din3 event detection din4 event detection din5 event detection dec0 underflow dri counter interrupt (group interrupt) dec1 underflow dec2 underflow dec3 underflow dec4 underflow dri address counter 0 transfer completed dri transfer interupt (group interrupt) dri address counter 1 transfer completed overrun error capture enable error dri transfer counter underflow 14.1 outline of the direct ram interface (dri)
direct ram interface (dri) 14 14-3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 table 14.1.3 dma transfer request generation function of the dri dma transfer request of the dri dmac input channel din0 event detection dma0 din1 event detection dma1 din2 event detection dma2 din3 event detection dma3 din4 event detection dma4 din5 event detection dma9 dec0 underflow dma5 dec1 underflow dma6 dec2 underflow dma7 dec3 underflow dma8 dec4 underflow dma9 dri address counter 0 transfer completed dma6 dri address counter 1 transfer completed dma7 dri capture event counter underflow dma8 dri transfer counter underflow dma9 14.1 outline of the direct ram interface (dri) figure 14.1.1 block diagram of the direct ram interface (dri) dd0-dd31 dri capture control circuit & dri transfer control circuit dri data capture event number setting register dri capture event counter dri transfer counter dri address counter1 dri address reload register 1 dri address counter 0 dri address reload register 0 32bit data buffer 32bit data buffer 32bit data buffer 32bit data buffer (4 stages) dec0 dec1 dec3 dec2 dec4 s s : selecter din0 din1 din2 din3 din4 din0 din1 din2 din3 din4 tio8(f/f19) top8(f/f8) tou0_7(f/f28) tou1_7(f/f36) din5 event detection circuit (din0 ? din5) dd input pin select circuit (dd input enable/ disable control) dri event counters dri event detection interrupt request (din0 ? din5 event detection) dri counter interrupt request (dec0 ? dec4 underflow) dri transfer interrupt request (dri address counter 0 transfer completed dri address counter1 transfer completed overrun error capture enable error dri transfer counter underflow) dri address bus (to the internal ram) dri data bus (to the internal ram)
direct ram interface (dri) 14 14-4 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 14.2 dri related registers the table below shows a dri related register map. dri related register map (1/2) address +0 address +1 address see pages b0 b7 b8 b15 h'0080 052a dd input pin select register 14-6 (ddsel) 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) h'0080 201c (use inhibited area) h'0080 201e (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) 14.2 dri related registers |
direct ram interface (dri) 14 14-5 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 dri related register map (2/2) address +0 address +1 address see pages b0 b7 b8 b15 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) 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) 14.2 dri related registers
direct ram interface (dri) 14 14-6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 14.2.1 dd input pin select register dd input pin select register (ddsel) 9 10 11 12 13 14 b15 b8 0 dd03sel 0 0 0 0 0 0 0 b bit name function r w 8?14 no function assigned. fix to "0." 00 15 dd03sel 0: dd0 p127/tclk3/cs3#/dd0 r w dd0?3 input pin select bit dd1 p126/tclk2/cs2#/dd1 dd2 p125/tclk1/a10/dd2 dd3 p124/tclk0/a9/dd3 1: dd0 p107/to15/rxd4/dd0 dd1 p106/to14/txd4/dd1 dd2 p105/to13/sclki4/sclko4/dd2 dd3 p104/to12/tin25/dd3 (1) dd03sel(dd0?3 input pin select) bit (bit 15) about 16 high-order bits of ddn(n= 0 to 31)which is data input to dri, pins can be selected from two groups (pin groups a or b). which pin groups (pin groups a or b) is used is selected in the ddsl (dd input 16 high- order bit pin select) bit of dri data capture control register (dridcapcnt).in this ddsel register, it selects which pin is used for dd0 to dd3 when pin group a is selected. in the ddsl bit of dridcapcnt register when pin group b is selected, setting of this ddsel register is ignored. in order to use pin function as dd input pin, port operation mode register also needs to be set up separately. pin group table is shown in table 14.2.2. 14.2 dri related registers
direct ram interface (dri) 14 14-7 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 14.2.2 dri interrupt related registers the dri interrupt related registers are used to control the interrupt request signals output to the interrupt controller from the dri. (1) interrupt request status bit this status bit is used to determine whether an interrupt is requested. when an interrupt request occurs, this bit is set in hardware (cannot be set in software). the status bit is cleared by writing "0." writing "1" has no effect; the bit retains the status it had before the write. because this bit is unaffected by the interrupt request enable bit, it can also be used to inspect the operating status of peripheral functions. in interrupt handling, make sure that within the grouped interrupt request status, only the status bit for the interrupt request that has been serviced is cleared. if the status bit for any interrupt request that has not been serviced is cleared, the pending interrupt request is cleared simultaneously with its status bit. (2) interrupt request enable bit this bit is used to disable unnecessary interrupt requests within the grouped interrupt request. set this bit to "1" to enable interrupt requests or "0" to disable interrupt requests. figure 14.2.1 interrupt request status and mask registers 14.2 dri related registers to the interrupt controller interrupt request from each peripheral function interrupt request status data bus set  group interrupt interrupt request enable clear f/f f/f data = 0
direct ram interface (dri) 14 14-8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 14.2.2 example for clearing interrupt request status 14.2 dri related registers b4 5 b7 interrupt request status initial state event occurs on bit 6 interrupt request event occurs on bit 4 only bit 6 cleared bit 4 data retained b4 5 b7 1 1 0 1 write to the interrupt request status example for clearing interrupt request status 0 0 0 0 0 0 1 0 1 0 1 0 1 0 0 0 program example istreg = 0xfd; /* clear istat1 (0x02 bit) only */  to clear the interrupt request status register 0 (istreg) interrupt request status 1, istat1 (0x02 bit) to clear an interrupt request status, always be sure to write 1 to all other interrupt request status bits. at this time, avoid using a logic operation like the one shown below. because it requires three step-istreg read, logic operation and write, if another interrupt request occurs between the read and write, status may be inadvertently cleared. b4 5 6 b7 interrupt request status event occurs on bit 6 event occurs on bit 4 only bit 6 cleared bit 4 also cleared 0 0 1 0 1 0 1 0 0 0 0 0 read 0 0 1 0 0 0 0 0 clear bit 6 (and'ing with 1101) write 6 6 istreg &= 0xfd; /* clear istat1 (0x02 bit) only */
direct ram interface (dri) 14 14-9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 din interrupt request status register (dridinist) 123456b7 b0 din0is din1is din2is din3is din4is din5is 000000 0 0 b bit name function r w 0 din0is 0: interrupt not requested r(note 1) din0 interrupt request status bit 1: interrupt requested 1 din1is din1 interrupt request status bit 2 din2is din2 interrupt request status bit 3 din3is din3 interrupt request status bit 4 din4is din4 interrupt request status bit 5 din5is din5 interrupt request status bit 6, 7 no function assigned. fix to "0." 00 note 1: only writing "0" is effective. writing "1" has no effect, so that the bit retains the previous value. if a dinn event is detected according to settings of the din input processing control register, the status bit corresponding to that dinn is set to "1" in hardware. note: ? if the status is cleared in software at the same time it is set for an interrupt request generated, the latter has priority, so that the status is set. din interrupt request enable register (dridinien) 9 10 11 12 13 14 b15 b8 din0ien din1ien din2ien din3ien din4ien din5ien 000000 0 0 b bit name function r w 8 din0ien (din0 interrupt request enable bit) 0: mask (disable) interrupt request r w 9 din1ien (din1 interrupt request enable bit) 1: enable interrupt request 10 din2ien (din2 interrupt request enable bit) 11 din3ien (din3 interrupt request enable bit) 12 din4ien (din4 interrupt request enable bit) 13 din5ien (din5 interrupt request enable bit) 14, 15 no function assigned. fix to "0." 00 this register disables or enables the interrupt requests that will be generated for dinn event detection. setting any bit in this register to "1" enables the corresponding dinn event detection interrupt request. 14.2 dri related registers
direct ram interface (dri) 14 14-10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 dec interrupt request status register (dridecist) 123456b7 b0 dec0is dec1is dec2is dec3is dec4is 00000 0 0 0 b bit name function r w 0 dec0is (dec0 interrupt request stabus bit) 0: interrupt not requested r(note 1) 1 dec1is (dec1 interrupt request stabus bit) 1: interrupt requested 2 dec2is (dec2 interrupt request stabus bit) 3 dec3is (dec3 interrupt request stabus bit) 4 dec4is (dec4 interrupt request stabus bit) 5?7 no function assigned. fix to "0." 00 note 1: only writing "0" is effective. writing "1" has no effect, so that the bit retains the previous value. if one of five event counters (dec0?dec4) included in the dri underflows upon reaching the terminal count, the corresponding status bit in this register is set to "1" in hardware. note: ? if the status is cleared in software at the same time it is set for an interrupt request generated, the latter has priority, so that the status is set. dec interrupt request enable register (dridecien) 9 10 11 12 13 14 b15 b8 dec0ien dec1ien dec2ien dec3ien dec4ien 00000 0 0 0 b bit name function r w 8 dec0ien (dec0 interrupt request enable bit) 0: mask (disable) interrupt request r w 9 dec1ien (dec1 interrupt request enable bit) 1: enable interrupt request 10 dec2ien (dec2 interrupt request enable bit) 11 dec3ien (dec3 interrupt request enable bit) 12 dec4ien (dec4 interrupt request enable bit) 13?15 no function assigned. fix to "0." 00 this register enables or disables the interrupt requests that will be generated when one of the internal event counters underflows. setting any bit in this register to "1" enables the interrupt request by the corresponding event counter under- flow. 14.2 dri related registers
direct ram interface (dri) 14 14-11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 dri transfer interrupt request status register (dritrmist) 123456b7 b0 adr0is adr1is ovreis dcpeis dtrfis 00000 0 0 0 b bit name function r w 0 adr0is 0: interrupt not requested r(note 1) dri address counter 0 interrupt request status bit 1: interrupt requested 1 adr1is dri address counter 1 interrupt request status bit 2 ovreis overrun error interrupt request status bit 3 dcpeis capture enable error interrupt request status bit 4 dtrfis dri transfer counter interrupt request status bit 5?7 no function assigned. fix to "0." 00 note 1: only writing "0" is effective. writing "1" has no effect, so that the bit retains the previous value. (1) adr0is (dri address counter 0 interrupt request status) bit (bit 0) if while dri address counter 0 (driadr0ct) is enabled as the destination of transfer for the captured data the dri transfer counter (dritrmct) underflows (h'0000 0000: count stop) upon reaching the terminal count, this bit is set to "1" in hardware. (2) adr1is (dri address counter 1 interrupt request status) bit (bit 1) if while dri address counter 1 (driadr1ct) is enabled as the destination of transfer for the captured data the dri transfer counter (dritrmct) underflows (h'0000 0000: count stop) upon reaching the terminal count, this bit is set to "1" in hardware. (3) ovreis (overrun error interrupt request status) bit (bit 2) the dri contains four 32-bit intermediate buffers to avoid losses of captured data arising from bus conten- tion for ram access with other bus masters. if a data capture event is detected while all of the buffers are full, this bit is set to "1" in hardware. in this case, the detected data capture event is ignored. (4) dcpeis (capture enable error interrupt request status) bit (bit 3) if the dcpen (capture enable) bit in the dri data capture control register (dridcapcnt) changes state from "0" to "1" or the external event is detected before the dri capture event counter (dridcapct) or the dri transfer counter (dritrmct) underflows (h'0000 0000: count stop), this bit is set to "1." [set condition] 1. if any capture enable external event is selected by dexsl (capture enable external source select) bit in the dri data capture control register (dridcapcnt); and 1) when the selected external event is detected while dcpen (captur enable) bit is enabled for data capture 2) when the selected external event is detected before the dri transfer counter (dritrmct) underflows (h'0000 0000:count stop) 2. if dcpen (capture enable) bit is set to "1" from "0" in software before the dri transfer counter underflows (h'0000 0000: count stop) notes: ? in case of 1, the capture enable event is ignored. ? in case of 2, the dri control unit should be initialized by clearing the dri transfer control register(dritrmcnt) and dri data capture control register(dridcapcnt) to "0." 14.2 dri related registers
direct ram interface (dri) 14 14-12 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (5) dtrfis (dri transfer counter interrupt request status) bit (bit 4) this bit is set when the dri transfer counter (dritrmct) underflows (h'0000 0000: count stop) upon reaching the terminal count. note: ? if the status is cleared in software at the same time it is set for an interrupt request generated, the latter has priority, so that the status is set. dri transfer interrupt request enable register ( dritrmien) 9 10 11 12 13 14 b15 b8 adr0ien adr1ien ovreien dcpeien dtrfien 00000 0 0 0 b bit name function r w 8 adr0ien 0: mask (disable) interrupt request r w dri address counter 0 interrupt request enable bit 1: enable interrupt request 9 adr1ien dri address counter 1 interrupt request enable bit 10 ovreien overrun error interrupt request enable bit 11 dcpeien capture enable error interrupt request enable bit 12 dtrfien dri transfer counter interrupt request enable bit 13?15 no function assigned. fix to "0." 00 this register disables or enables dri transfer related interrupt requests. setting any bit in this register to "1" enables the corresponding interrupt request. 14.2 dri related registers
direct ram interface (dri) 14 14-13 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 14.2.3 dri transfer control register dri transfer control register (dritrmcnt) 123456b7 b0 drst dbst adst admd adev 000000 0 adsl 0 b bit name function r w 0 drst 0: reset dri r w dri reset bit 1: enable operation 1 dbst 0: no data exists that has not been dri transferred yet r ? dri buffer status bit 1: data exists that has not been dri transferred yet 2 adst 0: dri address counter 0 is active r ? address counter status bit 1: dri address counter 1 is active 3 admd 0: continuous mode r w address counter operation mode select bit 1: reload mode 4, 5 adsl 00: select dri address counter 0 r w address counter select bit 01: select dri address counter 1 10: toggle between dri address counters 0 and 1 11: settings inhibited 6 no function assigned. fix to "0." 00 7 adev 0: dri transfer counter underflow r w address counter switchover select bit 1: dec4 underflow (1) drst (dri reset) bit (bit 0) this is a software reset bit of the dri control unit. no data captures nor dri transfers are performed while this bit = "0." this bit should be set to "1" to enable operation of the dri. if this bit is cleared to "0" while the dri is operating, the dri capture control unit and the dri transfer control unit both are initialized. therefore, if any data exists in the dri that has not been dri transferred yet, all transfers for that data are canceled, and data captures are not performed either. the following lists the registers and bits that are affected by this bit: 1) adst (address counter status) bit if the drst bit is cleared to "0" while adsl (address counter select) bits = "10" (dri address counters 0/1 toggled), the dri address counter 0 (driadr0ct) is activated and adst bit is cleared to "0." 2) drst (dri buffer status) bit if the drst bit is cleared to "0," this status bit is initialized to "0." 3) dri transfer counter (dritrmct) if the drst bit is cleared to "0," the dri transfer counter (dritrmct) is initialized to "0." notes: ? din input processing control and dec0?4 operations are not affected by setting or clear- ing the drst bit. ? if the drst bit changes state from "0" to "1" or vice versa, a finite time of 4 bclks is required before the new state takes effect. changing the drst bit again during that time is prohibited. ? if the drst bit is set or cleared, a finite time of 1 bclk is required before adst bit and dbst bit are initialized. ? changing any of admd (address counter operation mode select) bit, adsl (address counter select) bit or adven (address counter switchover select) bit while the drst bit = "1" is prohibited. 14.2 dri related registers
direct ram interface (dri) 14 14-14 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (2) dbst (dri buffer status) bit (bit 1) this bit indicates whether the internal dri buffer contains any data that has not been dri transferred yet. in order to avoid the data loss of data transfer, middle buffer for 32 bits 4 row is embedded in the inside of dri. if the data is in this middle buffer, dbst bit shows ?1.? if it is not dbst bit shows ?0? also, when drst bit is ?0? cleared dbst bit is cleared as well. (3) adst (address counter status) bit (bit 2) this bit indicates which dri address counter, 0 or 1, is currently selected to specify the destination address of dri transfer. (4) admd (address counter operation mode select) bit (bit 3) this bit selects operation modes of dri address counters 0 (driadr0ct) and dri address counter 1 (driadr1ct). both dri address counters operate in the same mode. ? when continuous mode is selected the active dri address counter is incremented by 4 each time a dri transfer is completed after dri transfer is enabled. in continuous mode, no dri address reload register values are used. ? when reload mode is selected when the dcpen (capture enable) bit in the dri data capture control register (dridcapcnt) changes state from "0" to "1" (= enabled) after dri transfer is enabled, the dri address counter is reloaded with a count value from the corresponding dri address reload register. thereafter, the active dri address counter is incremented by 4 each time a dri transfer is completed. note: ? if the bus width for the input data from external devices is chosen to be 8 bits, a dri transfer is executed every four data capture events detected. similarly, a dri transfer is executed every two data capture events detected if the selected bus width is 16 bits or every data capture event detected if the selected bus width is 32 bits. (5) adsl (address counter select) bits (bits 4, 5) the dri contains two address counters to specify the internal ram address to which data is transferred. these bits are used to select one of the two address counters. 1) when dri address counter 0 selected data is transferred to the internal ram address specified by dri address counter 0 (driadr0ct). 2) when dri address counter 1 selected data is transferred to the internal ram address specified by dri address counter 1 (driadr1ct). 3) when dri address counters 0 and 1 toggled the dri address counters are switched over in hardware by an event selected by the adev (address counter switchover select) bit. after a mycrocomputer reset, dri address conter 0 (driadr0ct) is active. when the drst (dri reset) bit is cleared to "0," the active dri address counter is initialized to dri address counter 0 (driadr0ct). (6) adev (address counter switchover select) bit (bit 7) this bit is effective only when the adsl (address counter select) bits are set to "10" (dri address counters 0/1 toggled). this bit selects an event that causes the dri address counter 0 (driadr0ct) and 1 (driadr1ct) that specify the destination address on the internal ram of transfer to switch over. note: ? if a dec4 underflow is selected as the address counter switchover event, it is prohibited to select din4 event detection/capture event as the dec4 count event. 14.2 dri related registers
direct ram interface (dri) 14 14-15 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 14.2.4 dri special mode control register selecting the special mode allows the dri to be interfaced with esternal devices at still higher speed. the width of input data bus during special mode is 8 or 16 bits. and data capturing timing (shown in figure 14.2.6) can be selected when default timing. di3 can only be selected for data synchronous signal. also, the event detection unit and data capture unit of the dri are clocked by a signal whose transfer rate has been halved as shown in figure 14.2.5. dri special mode register (drispmod) 9 10 11 12 13 14 b15 b8 spssl spisl spmen 000 0 0 0 0 0 b bit name function r w 8 spssl 0: rising edge r w din3 sampling edge select bit 1: falling edge 9 no function assigned. fix to "0." 00 10 spisl 0: "l" level r w special mode control unit initialization din1 level select bit 1: "h" level 11 spmen 0: special mode off r w special mode enable bit 1: special mode on 12?15 no function assigned. fix to "0." 00 (1) spssl (din3 sampling edge select) bit (bit 8) select the falling edge as the sampling edge for the transfer method shown in figure 14.2.4, or the rising edge for the transfer method shown in figure 14.2.3. this bit can only be changed while the drst (dri reset) bit in dri transfer control register (dritrmcnt) is "0." note that the data synchronous clock signal during special mode is fixed to din3, and cannot be changed. in special mode, furthermore, the signal controlled by din3ed (din3 event detection control) bit in the din input processing control register (dincnt) is the ?output signal to the event detection unit? shown in figure 14.2.5, and not the input signal from the din3 pin. (2) spisl (special mode control unit initialization din1 level select) bit (bit 10) the special mode control circuit block can be initialized using the input signal supplied from din1. this bit selects the active level of the din1 signal by which said circuit is initialized. when din1 is driven to the initialization level, the output signals to the event detection unit and data capture unit all go "l," causing data sampling to stop. conversely, when din1 is not at the initialization level, data sampling is performed at given internals and the signal shown in figure 14.2.5 is passed to the event detection unit/data capture unit. note that initialization function of the special mode control circuit block by din1 is not affected by setting of the din1ed bit in the din input processing register (dincnt). note also that this bit can only be changed when the drst (dri reset) bit in the dri transfer control register (dritrmcnt) = "0." note: ? if din1 changes to the initialization level while the dcpen (capture enable) bit in the dri data capture control register (dridcapcnt) = "1," the following problems may occur: 1) erroneous data is taken in by the dri. 2) eight data prior to a change to the reset state are not taken in. 14.2 dri related registers
direct ram interface (dri) 14 14-16 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (3) spmen (special mode enable) bit (bit 11) this bit selects whether to operate in special mode. if operation is special mode is selected, the following limitations apply. a) dri data capture control register (dridcapcnt) 1) dwdsl (input data bus width select) bit the data width that can be handled in special mode is limited to 8 or 16 bits. according to the handled data width, set the dwdsl bits as follows: ? if the input data is 8 bits wide, set the dwdsl bits to "01" (= 16 bits). ? if the input data is 16 bits wide, set the dwdsl bits to "10" (= 32 bits). 2) dcpsl (capture event select) bit select din3. 3) dtmsl (capture timing select) bit select the default timing. b) din input processing control register (dincnt) 1) din3ed (din3 event detection control) bit select falling detection. note: ? this register can only be set while the drst (dri reset) bit in the dri transfer control regis- ter (dritrmcnt) = "0," i.e., while the dri is reset. 14.2 dri related registers
direct ram interface (dri) 14 14-17 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 14.2.3 data transfer method 1 data data synchronous signal figure 14.2.4 data transfer method 2 data data synchronous signal figure 14.2.5 timing chart when special mode is on (din3 sampling edge: rise) output signal to the data capture unit output signal to the event detection unit (note 2) data synchronous signal (din3) data data0 data1 data2 data3 data4 data5 data6 din1 (note 1) data0, data1 data2, data3 data4, ... note 1: when "l" level is selected in spisl bit of dri special mode register (drispmod) note 2: select falling detection to din3ed (din3 event detection control) bit of din input processing control register (dincnt). 14.2 dri related registers
direct ram interface (dri) 14 14-18 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 14.2.5 dri data capture control register dri data capture control register (dridcapcnt) b01234567891011121314b15 dcpsl 0000000000000000 ddsl dcpen dexsl dwdsl ddssl dtmsl dwrpr b bit name function r w 0 dcpen 0: disable capturing data r w capture enable bit 1: enable capturing data 1?3 dexsl 0xx: no external source selected r w capture enable external source select bit 100: din0 event detection 101: din1 event detection 110: din2 event detection 111: dec0 underflow 4, 5 ddssl 00: no disable source selected r w capture external control disable souce select bit 01: dri capture event counter underflow 10: dec3 underflow 11: dec4 underflow 6, 7 dwdsl 00: 8 bits r w input data bus width select bit 01: 16 bits 10: 32 bits 11: settings inhibited 8, 9 dcpsl 00: din2 event detection r w capture event select bit 01: din3 event detection 10: din4 event detection 11: din5 event detection 10 ddsl 0: select pin group a r w dd input 16-high order bit pin select bit 1: select pin group b 11 dwrpr 0: enable wr 0 w capture control wr protect bit 1: disable wr 12?15 dtmsl 0000: default r w capture timing select bit 0001: 1 bclk later 0010: 2 bclk later 0011: 3 bclk later 0100: 4 bclk later 0101: 5 bclk later 0110: 6 bclk later 0111: 7 bclk later 1000: 8 bclk later 1001: 9 bclk later 1010: 10 bclk later 1011: 11 bclk later 1100: 12 bclk later 1101: 13 bclk later 1110: 14 bclk later 1111: 15 bclk later note: ? this register must always be accessed halfword (in 16 bits) units from the halfword boundary. this register is used to make settings necessary to capture the input data that is fed in synchronously with an external clock signal. before setting up this register, make sure the drst (dri reset) bit in the dri transfer control register (dritrmcnt) is set to "1." also, if the drst bit is cleared to "0," be sure to clear this register to "0." 14.2 dri related registers
direct ram interface (dri) 14 14-19 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (1) dcpen (capture enable) bit (bit 0) when dcpen = "1," the dri is enabled for ?capturing? data (i.e., taking in data into the internal ram). [set condition] ? when explicitly set by writing "1" in software ? when the event selected by the dexsl (capture enable external source select) bit is detected [clear condition] ? when explicitly cleared by writing "0" in software ? when the dri capture event counter (dridcapct) underflows (h'0000 0000: stop counting) upon reaching the terminal count notes: ? if an external source is selected by the dexsl (capture enable external source select) bit, the bitcannot be set by writing "1" in software. ? before setting the bit by writing "1" in software, always be sure to check the dri transfer counter to see that the counter is in an underflow state. (2) dexsl (capture enable external source select) bits (bits 1?3) these bits select an external source that causes dcpen (capture enable) bit to be enabled for data cap- ture. when the event selected here is detected, the capture enable bit is set to "1." if no external sources are selected, in no case will the capture enable bit be set by any external source. the external source or event selected by these bits can be cleared to "0" by using the ddssl (capture external control disable source select) bit. (3) ddssl (capture external control disable source select) bits (bits 4, 5) these bits select the external source or event to clear the capture enable external source select bits to "0." (4) dwdsl (input data bus width select) bits (bits 6, 7) these bits select the bus width of the input data supplied from external devices. if the bus width is chosen to be 8 bits, a dri transfer is executed every four data capture events detected. similarly, a dri transfer is executed every two data capture events detected if the selected bus width is 16 bits or every data capture event detected if the selected bus width is 32 bits. table 14.2.1 shows the relationship between each selected bus width and the data bits that are taken in. note: ? when special mode is selected, the input data bus width select bits are subject to setting limitations. for details, refer to section 14.2.4, ?dri special mode control register (drispmod).? (5) dcpsl (capture event select) bits (bits 8, 9) these bits select an event at which data is taken in. in cases where the drts (dri reset) bit in dri transfer control register (dritrmcnt) is enabled for operation, the capture enable bit is enabled for data capture and the interleaving control is in use, data is taken in when the selected event is detected while capture event detection conditions are met. if a data capture event is detected at the same time the dcpen (capture enable) bit is set, data is taken in. note: ? when special mode is selected, be sure to select din3 event detection. (6) ddsl (dd input 16 high-order bit pin select) bit (bit 10) of the data inputs to the dri, ddn (n = 0?31), pins for the 16 high-order bits (dd0-dd15) can be selected from two pin groups. this bit selects the pin group(the pin group a, b) to be used. however, for the other inputs dd16?dd31 are fixed. table 14.2.2 lists pins in each pin group. if pin group a is selected, the dd input pin select register (ddsel) should be set to specify which pins in dd0-dd3 to be used. note: ? port operation mode must be set separately from this register. 14.2 dri related registers
direct ram interface (dri) 14 14-20 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (7) dwrpr (capture control wr protect) bit (bit 11) this bit controls writing to dcpen (capture enable) bit and dexsl (capture enable external source select) bit by enalbing or disabling the access for write. if this bit is "0" when the register is accessed for write, the bits are write-enabled. if this bit is "1," the bits are write-protected. (8) dtmsl (data capture timing select) bit (bits 12?15) these bits select the timing with which data is taken in after a data capture event is detected. the dri detects an event on each falling edge of bclk. when the default timing is selected, data is taken in synchronously with the falling edge of the same bclk cycle in which an event is detected. with this as the starting point, data capture can be chosen to occur 1 bclk to 15 bclks later. figure 14.2.6 shows a data capture timing chart. note: ? when special mode is selected, be sure to select the default timing. table 14.2.1 capture data positions dd0?7 dd8?15 dd16?23 dd24?31 when 8 bits wide captured data don't care when 16 bits wide captured data don't care when 32 bits wide captured data notes: ? when operating in special mode, the relationship between the actual data bus width and the register value set by the input data bus width select bits varies. for details, refer to ? 14.2.4 dri special mode control register.? ? dd0 is the msb, and dd31 is the lsb. table 14.2.2 pins in each pin group function pin group a pin group b dd03sel="0" dd03sel="1" dd0 p127/tclk3/cs3#/dd0 p107/to15/rxd4/dd0 p00/db0/to21/dd0 dd1 p126/tclk2/cs2#/dd1 p106/to14/txd4/dd1 p01/db1/to22/dd1 dd2 p125/tclk1/a10/dd2 p105/to13/sclki4/sclko4/dd2 p02/db2/to23/dd2 dd3 p124/tclk0/a9/dd3 p104/to12/tin25/dd3 p03/db3/to24/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 notes: ? which pin groups (pin groups a or b) is used is selected in the ddsl bit. ? when pin group a is selected which pin is used for dd0 to dd3 is selected in dd03sel of ddsel register. 14.2 dri related registers
direct ram interface (dri) 14 14-21 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 2 bclk later 14 bclk later 15 bclk later 1 bclk later default capture timing bclk event detection point figure 14.2.6 data capture timing 14.2 dri related registers
direct ram interface (dri) 14 14-22 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 14.2.6 dri data interleave control register dri data interleave control register (dridselcnt) 123456b7 b0 dsd0 dsd1 dsd2 dsd3 dsd4 00000 0 0 0 b bit name function r w 0 dsd0 0: not interleaved r w dec0 data interleave control bit 1: interleaved by dec0ct 1 dsd1 0: not interleaved r w dec1 data interleave control bit 1: interleaved by dec1ct 2 dsd2 0: not interleaved r w dec2 data interleave control bit 1: interleaved by dec2ct 3 dsd3 0: not interleaved r w dec3 data interleave control bit 1: interleaved by dec3ct 4 dsd4 0: not interleaved r w dec4 data interleave control bit 1: interleaved by dec4ct 5?7 no function assigned. fix to "0." 00 the five event counters included in the dri may be used to have the input data interleaved or ?thinned out? in hardware before being taken in. use this register to make interleave control related settings. if the decn data interleave control bit (n = 0?4) is set to "0," the input data is not interleaved using the corre- sponding decn counter. if the decn data interleave control bit is set to "1," the input data is interleaved or ?thinned out? because data is not taken in unless the corresponding decn counter is in an underflow state (count value = h'ffff). if multiple event counters are selected for interleaving control data by this register, data is taken in for only a capture event that is input while all of the decn counters with their interleave control bits set to "1" are in an underflow state. note: ? the next event occurring after a counter underflow and those that follow are effective as the capture event. 14.2.7 din input event select register din input event select register (dinsel) 9 10 11 12 13 14 b15 b8 din5sl 00 0 0 0 0 0 0 b bit name function r w 8?13 no function assigned. fix to "0." 00 14, 15 din5sl 00: f/f19 (tio8) r w din5 input event select bit 01: f/f8 (top8) 10: f/f28 (tou0_7) 11: f/f36 (tou1_7) the value of flip-flop, which is selected by the din5sl bit, is fed as an input signal to the din5 input processing circuit. 14.2 dri related registers
direct ram interface (dri) 14 14-23 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 14.2.8 dd input enable registers dd input enable register 0 (dridden0) 12345 6b7 b0 dd0en dd1en dd2en dd3en dd4en 00000000 dd5en dd6en dd7en b bit name function r w 0 dd0en (dd0 input enable bit) 0: disable input r w 1 dd1en (dd1 input enable bit) 1: enable input 2 dd2en (dd2 input enable bit) 3 dd3en (dd3 input enable bit) 4 dd4en (dd4 input enable bit) 5 dd5en (dd5 input enable bit) 6 dd6en (dd6 input enable bit) 7 dd7en (dd7 input enable bit) dd input enable register 1 (dridden1) 9 10 11 12 13 14 b15 b8 dd8en dd9en dd10en dd11en dd12en 00000000 dd13en dd14en dd15en b bit name function r w 8 dd8en (dd8 input enable bit) 0: disable input r w 9 dd9en (dd9 input enable bit) 1: enable input 10 dd10en (dd10 input enable bit) 11 dd11en (dd11 input enable bit) 12 dd12en (dd12 input enable bit) 13 dd13en (dd13 input enable bit) 14 dd14en (dd14 input enable bit) 15 dd15en (dd15 input enable bit) dd input enable register 2 (dridden2) 12345 6b7 b0 dd16en dd17en dd18en dd19en dd20en 00000000 dd21en dd22en dd23en b bit name function r w 0 dd16en (dd16 input enable bit) 0: disable input r w 1 dd17en (dd17 input enable bit) 1: enable input 2 dd18en (dd18 input enable bit) 3 dd19en (dd19 input enable bit) 4 dd20en (dd20 input enable bit) 5 dd21en (dd21 input enable bit) 6 dd22en (dd22 input enable bit) 7 dd23en (dd23 input enable bit) 14.2 dri related registers
direct ram interface (dri) 14 14-24 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 dd input enable register 3 (dridden3) 9 10 11 12 13 14 b15 b8 dd24en dd25en dd26en dd27en dd28en 00000000 dd29en dd30en dd31en b bit name function r w 8 dd24en (dd24 input enable bit) 0: disable input r w 9 dd25en (dd25 input enable bit) 1: enable input 10 dd26en (dd26 input enable bit) 11 dd27en (dd27 input enable bit) 12 dd28en (dd28 input enable bit) 13 dd29en (dd29 input enable bit) 14 dd30en (dd30 input enable bit) 15 dd31en (dd31 input enable bit) the dd input enable register "n" (n = 0?3) controls data input to the dri by disabling or enabling the data input. if the ddn input enable bit is set to "0," input to the dri is always fixed to "0" irrespective of the corre- sponding pin input level. if the ddn input enable bit is set to "1," data input to the dri is taken in according to the corresponding pin input level. figure 14.2.7 schematically shows a dd input block diagram. figure 14.2.7 block diagram of dd input 14.2 dri related registers ddnen(ddn input enable ) bit ddn ddsl bit ddsl bit ddj_b ddjen(ddj input enable ) bit ddj_a0 ddj_a1 ddk_b ddken(ddk input enable ) bit ddk_a s s s notes: j=0~3, k=4~15, n=16-31 s :selecter dd4-15 (to the data capture unit) dd16-31 (to the data capture unit) dd0-3 (to the data capture unit) ddm ddj_a0 ddj_a1 dd0-3 input pin select bit
direct ram interface (dri) 14 14-25 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 14.2.9 dri data capture event count setting register dri data capture event count setting register (dridcapnum) b0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 b15 dcapnum 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 b16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 b31 dcapnum 0000000000000000 b bit name function r w 0?13 no function assigned. fix to "0." 00 14?31 dcapnum rw transfer event count note: ? this register must always be accessed in halfword or word units beginning with even addresses. this register is used to set the number of events, at occurrence of which data is taken in. the value set in this register is used as the reload value for the dri capture event counter (dridcapct) and the dri transfer counter (dritrmct). since the dri performs data transfers in 32-bit units, make sure the value set in this register satisfies the requirement given below depending on how dwdsl (input data bus width select) bits in the dri data capture control register are set: ? when selected to be 8 bits, a multiple of 4 (equal to or greater than 4) ? when selected to be 16 bits, a multiple of 2 (equal to or greater than 2) ? when selected to be 32 bits, any value (equal to or greater than 1) also be careful that the total amount of captured data will not exceed the ram area supported by the dri. note: ? this register can only be rewritten when dcpen (capture enable) bit in the dri data capture control register = "0." 14.2 dri related registers
direct ram interface (dri) 14 14-26 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 14.2.10 dri capture event counter dri capture event counter (dridcapct) b0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 b15 dcapct 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 b16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 b31 dcapct 0000000000000000 b bit name function r w 0?13 no function assigned. fix to "0." 00 14?31 dcapct r? capture event counter note: ? this register must always be accessed in word (32 bit) units from the halfword boundaries (the lower address b'00). the dri capture event counter is an 18-bit counter to count data capture events. when dcpen (capture enable) bit in the dri data capture control register (dridcapcnt) changes state from data capture dis- abled to enabled, this counter is reloaded with the value of the dri data capture event count setting register (dridcapnum). thereafter, the counter is decremented by one each time data is taken in. then, when the dri capture event counter is decremented to h?0000 0000, it stops counting. 14.2 dri related registers
direct ram interface (dri) 14 14-27 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 14.2.11 dri transfer counter dri transfer counter (dritrmct) b0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 b15 drict 00 b16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 b31 drict 0000000000000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 b bit name function r w 0?13 no function assigned. fix to "0." 00 14?31 drict r? dri transfer counter note: ? this register must always be accessed wordwise (32 bits) beginning with the address of the dri transfer counter (upper) . the dri transfer counter is an 18-bit counter to count dri transfers. when dcpen (capture enable) bit in the dri data capture control register (dridcapcnt) changes state from data capture disabled to enabled, this counter is reloaded with one of the values shown below, depending on how the dri data capture event count setting register (dridcapnum) and dwdsl (input data bus width select) bits are set. ? when selected to be 8 bits, the value set in the dri data capture event count setting register (dridcapnum) divided by 4 ? when selected to be 16 bits, the value set in the dri data capture event count setting register (dridcapnum) divided by 2 ? when selected to be 32 bits, the value set in the dri data capture event count setting register (dridcapnum) if the bus width for the input data from external devices is chosen to be 8 bits, a dri transfer is executed every four data capture events detected. similarly, a dri transfer is executed every two data capture events de- tected if the selected bus width is 16 bits or every data capture event detected if the selected bus width is 32 bits. the counter is decremented by one each time a dri transfer finishes. then, when the counter underflows (h'0000 0000), it stops counting. and underflow of dri transfer counter indicates h'0000 0000 (counter stop). 14.2 dri related registers
direct ram interface (dri) 14 14-28 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 14.2.12 dri address counters dri address counter 0 (driadr0ct) dri address counter 1 (driadr1ct) b0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 b15 driadn 00 b16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 b31 driadn 0000000000000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 b bit name function r w 0?13 no function assigned. fix to "0." 00 14?29 driadn rw destination address a14?a29 30, 31 00 destination address a30, a31 (must always be fixed to "0") note: ? this register must always be accessed wordwise (32 bits) beginning with the word boundary (the lower address b'00). dri address counters 0 and 1 are used to specify the destination address a14?a29 in the internal ram to which data is dri transferred. the address a30?a31 are fixed to "0." the counter is incremented by 4 each time a dri transfer finishes. dri address counters have two operation modes to choose from. for details, refer to ?14.2.3 dri transfer control register.? notes ? if the dri address counter value is outside the mapped area of the internal ram, the captured data is not written to any location although the dri behaves as if a dri transfer had terminated normally. ? the address counter that is incremented by 4 when a dri transfer has finished is dri address counter 0 or 1 whichever is active as set by adsl (address counter select) bit in the dri transfercontrol register (dritrmcnt). ? these registers can only be rewritten when the dri transfer counter (dritrmct) is in an underflow state (h'0000 0000 counter: counter stop). 14.2 dri related registers
direct ram interface (dri) 14 14-29 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 14.2.13 dri address reload registers dri address reload register 0 (driadr0rld) dri address reload register 1 (driadr1rld) b0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 b15 driadnrld 00 b16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 b31 driadnrld 0000000000000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 b bit name function r w 0?13 no function assigned. fix to "0." 00 14?29 driadnrld rw a14-a29 reload value 30, 31 00 a30, a31 reload value (must always be fixed to "0") note: ? these registers must always be accessed in halfword or word units beginning with even addresses. these registers are used to store the values to be reloaded into dri address counters 0 and 1. if reload mode is selected by admd (address counter operation mode select) bit in the dri transfer control register (dritrmcnt), the value set in either reload register is reloaded into the corresponding dri address counter when dcpen (capture enable) bit in the dri data capture control register (dridcapcnt) changes from "0" to "1." note: ? these registers can only be rewritten when dcpen (capture enable) bit in the dri data capture control register (dridcapcnt) is "0." 14.2 dri related registers
direct ram interface (dri) 14 14-30 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 14.2.14 din input processing control register din input processing control register (dincnt) b0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 b15 din3ed 000000000000 0 0 0 0 din0ed din1ed din2ed din4ed din5ed b bit name function r w 0, 1 din0ed 00: input has no effect r w din0 event detection control bit 01: detect on rising edge 2, 3 din1ed 10: detect on falling edge din1 event detection control bit 11: detect on both edges 4, 5 din2ed din2 event detection control bit 6, 7 din3ed din3 event detection control bit 8, 9 din4ed din4 event detection control bit 10, 11 din5ed din5 event detection control bit 12?15 no function assigned. fix to "0." 00 note: ? this register must always be accessed in halfword (16 bit) units from the halfword boundaries. these bits specify the event detection of the input signal as it is fed in from devices external to the dri. the event detection can be selected from three choices: rising edge, falling edge or both edges. the value "00" (input has no effect) is selected, no events are detected. table 14.2.3 shows the relationship between each dinn event detection circuit and the input signals fed in from devices external to the dri. note: ? for the din3 event detection circuit, the input event signal varies depending on whether dri special mode is on or off. table 14.2.3 relationship between event detection and pins special mode off special mode on din0 event detection circuit p130/tin16/pwmoff0/din0 din1 event detection circuit p131/tin17/pwmoff1/din1 din2 event detection circuit p132/tin18/din2 din3 event detection circuit p133/tin19/din3 output din3 divide by 2 din4 event detection circuit p134/tin20/txd3/din4 din5 event detection circuit selected by din input event select register 14.2 dri related registers
direct ram interface (dri) 14 14-31 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 14.2.15 dri event counter (dec) control registers dec0 control register (dec0cnt) 123456b7 b0 dec0en dec0ext dec0mod 000000 0 dec0cs 0 b bit name function r w 0 dec0en 0: disable count r w dec0 count enable bit 1: enable count 1?3 dec0ext 0xx: disable external source r w dec0 count enable source select bit 100: din0 event detection 101: din1 event detection 110: din2 event detection 111: capture enable 4, 5 dec0cs 00: din0 event detection r w dec0 count event select bit 01: din1 event detection 10: din2 event detection 11: dri capture event counter underflow 6 no function assigned. fix to "0." 00 7 dec0mod 0: single-shot mode r w dec0 operation mode select bit 1: continuous operation mode dec1 control register (dec1cnt) 123456b7 b0 dec1en dec1ext dec1mod 000000 0 dec1cs 0 b bit name function r w 0 dec1en 0: disable count r w dec1 count enable bit 1: enable count 1?3 dec1ext 0xx: disable external source r w dec1 count enable source select bit 100: din0 event detection 101: din1 event detection 110: dec0 underflow 111: capture enable 4, 5 dec1cs 00: din1 event detection r w dec1 count event select bit 01: din2 event detection 10: din3 event detection 11: dec0 underflow 6 no function assigned. fix to "0." 00 7 dec1mod 0: single-shot mode r w dec1 operation mode select bit 1: continuous operation mode 14.2 dri related registers
direct ram interface (dri) 14 14-32 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 dec2 control register (dec2cnt) 123456b7 b0 dec2en dec2ext dec2mod 000000 0 dec2cs 0 b bit name function r w 0 dec2en 0: disable count r w dec2 count enable bit 1: enable count 1?3 dec2ext 0xx: disable external source r w dec2 count enable source select bit 100: din0 event detection 101: din1 event detection 110: din2 event detection 111: capture enable 4, 5 dec2cs 00: din1 event detection r w dec2 count event select bit 01: din2 event detection 10: din3 event detection 11: capture event 6 no function assigned. fix to "0." 00 7 dec2mod 0: single-shot mode r w dec2 operation mode select bit 1: continuous operation mode dec3 control register (dec3cnt) 123456b7 b0 dec3en dec3ext dec3mod 000000 0 dec3cs 0 b bit name function r w 0 dec3en 0: disable count r w dec3 count enable bit 1: enable count 1?3 dec3ext 0xx: disable external source r w dec3 count enable source select bit 100: din0 event detection 101: din1 event detection 110: dec2 underflow 111: capture enable 4, 5 dec3cs 00: din2 event detection r w dec3 count event select bit 01: din3 event detection 10: din4 event detection 11: din5 event detection 6 no function assigned. fix to "0." 00 7 dec3mod 0: single-shot mode r w dec3 operation mode select bit 1: continuous operation mode 14.2 dri related registers
direct ram interface (dri) 14 14-33 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 dec4 control register (dec4cnt) 123456b7 b0 dec4en dec4ext dec4mod 000000 0 dec4cs 0 b bit name function r w 0 dec4en 0: disable count r w dec4 count enable bit 1: enable count 1?3 dec4ext 0xx: disable external source r w dec4 count enable source select bit 100: din0 event detection 101: din1 event detection 110: dec3 underflow 111: capture enable 4, 5 dec4cs 00: din4 event detection r w dec4 count event select bit 01: capture event 10: one dri transfer completed 11: dri transfer counter underflow 6 no function assigned. fix to "0." 00 7 dec4mod 0: single-shot mode r w dec4 operation mode select bit 1: continuous operation mode these registers are used to control the internal event counters decn of the dri. (1) decnen (decn count enable) bit (bit 0) this bit controls decn count operation by enabling or disabling the count operation. this bit can be set to "1" by an external event. furthermore, if single-shot operation mode is selected, this bit is cleared to "0" in hardware by a decn counter underflow. [set condition to "1"] ? when explicitly set by writing "1" in software ? when the event selected by decnext (decn count enable source select) bit occurs [clear condition to "0"] ? when explicitly cleared by writing "0" in software ? when decn counter underflows while operating in single-shot mode note: ? if an external source is selected by decnext (decn count enable source select) bit, this bit cannot be set by writing "1" in software. (2) decnext (decn count enable source select) bits (bits 1?3) if decn counter (decnct) needs to be enabled for counting by an external event, use these bits to select the count enable source. when an event is detected by the selected source, decnen (decn count enable) bit is set to "1." (3) decncs (decn count event select) bits (bits 4, 5) these bits select the event that causes decn counter (decnct) to count. when the event selected from factor that decnen (decn count enable) bit = "1" is detected, the count value of decn counter (decnct) is decremented by one. (4) decnmod (decn operation mode select) bit (bit 7) this bit selects operation mode of decn counter (decnct). 14.2 dri related registers
direct ram interface (dri) 14 14-34 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 14.2.8 example dec count operation in single-shot mode ? single-shot mode when decnen (decn count enable) bit changes from "disabled" to "enabled," the decn counter (decnct) is loaded with the content of the decn reload register (decnrld). thereafter, the counter counts down each time the event selected by the decncs (decn count event select) bit occurs. when event occurrences equal to the decn reload register (decnrld) set value + 1 have been counted, the counter underflows (count value = h?ffff) and stops counting, at which time decnen (decn count en- able) bit is cleared to "0." notes: ? the reload value loaded into the counter cannot be read out while count is enabled. if the counter is accessed for read, the count value before being reloaded is read out. ? if the count is enabled by an external event at the same time the count source occurs, the count enable bit is set to "1" by the external event, but the counter does not count. ? if the counter stops counting upon underflowing at the same time count is enabled by an external event, the former has priority so that the counter stops. ? if the count is enabled by external event at the same time the count enable bit is disabled by writing 0 in software, the latter has priority so the count is disabled. event count value = 6 5 reload note 1: the reload value loaded into the counter cannot be read out while count is enabled. if the counter is accessed for read, the count value before being reloaded is read out. note: this diagram does not show detailed timing information. (5) 4 3 2 1 0 h'ffff (note 1) count source count enable counter reload underflow signal 14.2 dri related registers
direct ram interface (dri) 14 14-35 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 2 reload reload 3 2 1 0 h'ffff 1 0 h'ffff 1 (note 1) (note 1) event count value = 4 event count value = 3 note 1: the reload value loaded into the counter cannot be read out while reload is generated. if the counter is accessed for read, h'ffff (underflow value) is read out. note: this diagram does not show detailed timing information. count source count enable counter reload underflow signal figure 14.2.9 example dec count operation in continuous mode 14.2 dri related registers ? continuous operation mode when decnen (decn count enable) bit is enabled, the counter starts counting down from the decn counter (decnct) set value each time the event selected by the decncs (decn count event select) bit occurs. then, when the decn counter (decnct) underflows (counter value = h'ffff), the counter is reloaded with the value of the decn reload register (decnrdl). thereafter, this operation is repeated each time the decn counter (decnct) underflows. notes: ? when a reload occurs, the value reloaded into the counter cannot be read out. if the counter is accessed for read, h'ffff (underflow value) is read out. ? if the count is enabled by an external event at the same time the count source occurs, the count enable bit is set to "1" by the external event, but the counter does not count. ? if the count is enabled by external event at the same time decnen (count enable) bit is disabled by writing 0 in software, the latter has priority so the count is disabled. ? when reload and writing to counter are occured at same time, writing to counter has priority. interrupt by decn counter underflow is not occured at that time. ? when count source and writing to counter are occured at same time, writing to counter has priority. count source is ignored at that time.
direct ram interface (dri) 14 14-36 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 14.2.16 dri event counters (dec counters) dec0 counter (dec0ct) dec1 counter (dec1ct) dec2 counter (dec2ct) dec3 counter (dec3ct) dec4 counter (dec4ct) b01234567891011121314b15 decnct 0000000000000000 b bit name function r w 0?15 decnct rw decn counter note: ? this register must always be accessed in halfword (16 bits) units from the halfword boundaries. the decn counter, which is a 16-bit down counter, starts counting synchronously with event detection after count is enabled. when decn counter is used in one-shot mode, do not write to the decn counter while count is enabled. 14.2.17 dri event counter (dec) reload registers dec0 reload register (dec0rld) dec1 reload register (dec1rld) dec2 reload register (dec2rld) dec3 reload register (dec3rld) dec4 reload register (dec4rld) b01234567891011121314b15 decnrl 0000000000000000 b bit name function r w 0?15 decnrl rw decn reload value note: ? this register must always be accessed in halfword (16 bits) units from the halfword boundaries. the decn reload register is used to reload the decn counter with data. the counter is reloaded with the content of the reload register in the following cases: ? when count is enabled while being disabled in single-shot mode ? when the decn counter underflows while operating in continuous operation mode 14.2 dri related registers
direct ram interface (dri) 14 14-37 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 14.3 notes on dri 14.3 notes on dri precautions about the dri is shown below. ? in order that the data writing from dri and rtd to internal ram use the exclusive bus prepared apart from m32 r-fpu, do not usually generate the competition with access from other bus masters (cpu, dma, nbd, sdi). however dri transfer, rtd transfer and the access (read-out/writing) from other bus master occur at the same time for areas of the 16-k byte unit of internal ram, access competition occurs. when access competition occurs, mediation is operated according to the following priority. nbd/sdi > dma > cpu > dri > rtd
direct ram interface (dri) 14 14-38 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 14.3 notes on dri this page is blank for reasons of layout.
chapter 15 real time debugger (rtd) 15.1 outline of the real-time debugger (rtd) 15.2 pin functions of the rtd 15.3 rtd related register 15.4 functional description of the rtd 15.5 typical connection with the host
real time debugger (rtd) 15 15-2 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 15.1 outline of the real-time debugger (rtd) the real-time debugger (rtd) is a serial interface through which to read or write to any location in the entire area of the internal ram by using commands from outside the microcomputer. because data transfers between the rtd and internal ram are performed via a dedicated internal bus independently of the m32r-fpu, rtd operation can be controlled without the need to stop the m32r-fpu. table 15.1.1 outline of the real-time debugger (rtd) item description transfer method clock-synchronous serial interface generation of transfer clock generated by external host ram access area entire area of the internal ram (controlled by a14?a29) transmit/receive data length 32 bits (fixed) bit transfer sequence lsb first maximum transfer rate 2 mbits/second input/output pins 4 pins (rtdtxd, rtdrxd, rtdack, rtdclk) number of commands following five functions ? monitor continuously ? output real-time ram content ? forcibly rewrite ram content (with verify) ? recover from runaway condition ? request rtd interrupt figure 15.1.1 block diagram of the real-time debugger (rtd) 15.1 outline of the real-time debugger (rtd) control circuit commands data data address address data rtd control circuit entire area of internal ram m32r-fpu core address data bus switching circuit rtdclkrtdclk rtdack rtdtxd rtdrxd
real time debugger (rtd) 15 15-3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 15.2 pin functions of the rtd pin functions of the rtd are shown below. table 15.2.1 pin functions of the rtd pin name type function rtdtxd output rtd serial data output rtdrxd input rtd serial data input rtdack output output a "l" level pulse synchronously with the beginning clock edge of the output data word. the width of this pulse indicates the type of instruction or data the rtd has received. 1 clock period : ver (continuous monitor) command 1 clock period : vei (rtd interrupt request) command 2 clock periods : rdr (real-time ram content output) command 3 clock periods : wrr (ram content forcible rewrite) command or the data to rewrite 4 clock periods or more : rcv (recover from runaway) command rtdclk input rtd transfer clock input 15.3 rtd related register the table below shows an rtd related register map. rtd related register map address +0 address +1 address see b0 b7 b8 b15 page h'0080 077a (use inhibited area) rtd write function disable register 15-3 (wrrdis) 15.3.1 rtd write function disable register rtd write function disable register (wrrdis) 9 10 11 12 13 14 b15 b8 rtdwr dis 0 0 0 0 0 0 0 0 b bit name function r w 8?14 no function assigned. fix to "0." 00 15 rtdwrdis 0: enable rtd ram write function r w rtd ram write function disable bit 1: disable rtd ram write function this register selects whether to enable or disable the rtd function for writing to ram. setting the rtdwrdis bit to "1" disables the rtd function for writing to ram, so that even when the rtd receives a command for write to ram, the command is ignored and no data is written to ram. note: ? settings of this register cannot be altered while the rtd is in use. 15.2 pin functions of the rtd
real time debugger (rtd) 15 15-4 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 15.4 functional description of the rtd 15.4.1 outline of the rtd operation operation of the rtd is specified by a command entered from devices external to the chip. a command is indicated by bits 16?19 (note 1) of the rtd received data. table 15.4.1 rtd commands rtd received data command b19 b18 b17 b16 mnemonic rtd function 0000 ver (verify) continuous monitor 0100 0101 0110vei (verify interrupt request) rtd interrupt request 0010 rdr (read ram) real-time ram content output 0011 wrr (write ram) ram content forcible rewrite (with verify) 1111 rcv (recover) recover from runaway condition (note 2), (note 3) 0001 system reserved (use inhibited) (note 1) note 1: the rtd received data bit 19 actually is not stored in the command register, and except for the rcv command, handled as a ?don?t care? bit. (bits 16?18 are effective for the command specified.) note 2: the rcv command must always be transmitted twice in succession. note 3: for the rcv command, all bits, not just 16?19, (i.e., bits 0?15 and bits 20?31) must be set to "1." 15.4.2 operation of rdr (real-time ram content output) when the rdr (real-time ram content output) command is issued, the rtd is enabled to transfer the contents of the internal ram to external devices without causing the cpu?s internal bus to stop. because the rtd reads data from the internal ram while there are no transfers performed between the cpu and internal ram, no extra cpu load is incurred. only the 32-bit word-aligned addresses (low-order address b'00) can be specified for read from the internal ram. (the two low-order address bits specified by a command are ignored.) data are read out and transferred from the internal ram in 32-bit units. figure 15.4.1 rdr command data format 31 x 0 0 1 0 19 18 17 16 a15 15 a14 14 13 12 1 a16 0 x 20 a17 a28 a29 command (rdr) specified address note: ? x = don't care. (however, if issued immediately after the rcv command, bits 20-31 must all be set to "1.") rtdrxd (msb side) (lsb side) 15.4 functional description of the rtd
real time debugger (rtd) 15 15-5 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 32 c l oc k periods rdr (a1) rdr (a2) rdr (a3) d (a1) d (a2) rtdclk rtdrxd rtdtxd rtdack 32 clock periods 32 clock periods 32 clock periods 2 clock periods notes:  (an) = specified address  d(an) = data at specified address (an) figure 15.4.2 operation of the rdr command figure 15.4.3 read data transfer format 31 b31 1 b0 0 b30 30 b1 read data rtdtxd note:  the read data is transferred lsb-first. (msb side) (lsb side) 15.4 functional description of the rtd
real time debugger (rtd) 15 15-6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 32 clock periods 32 clock periods wrr(a1) (a1) write data 3 clock periods rtdclk rtdrxd rtdtxd rtdack wrr(a2) (a2) write data d (a1) read value before writing d (a1) verify value after writing note:  (an) = specified address d ( an ) = data at s p ecified address ( an ) 32 clock periods 32 clock periods figure 15.4.5 operation of the wrr command 15.4.3 operation of the wrr (ram content forcible rewrite) when the wrr (ram content forcible rewrite) command is issued, the rtd forcibly rewrites the contents of the internal ram without causing the cpu?s internal bus to stop. because the rtd writes data to the internal ram while there are no transfers performed between the cpu and internal ram, no extra cpu load is incurred. only the 32-bit word-aligned addresses (low-order address b'00) can be specified for read from the internal ram. (the two low-order address bits specified by a command are ignored.) data are written to the internal ram in 32-bit units. the external host should transmit the command and address in the first frame and then the write data in the second frame. the rtd writes to the internal ram in the third frame after receiving the write data. figure 15.4.4 wrr command data format the rtd reads out data from the specified address before writing to the internal ram and again reads out data from the same address immediately after writing to the internal ram (this helps to verify the data written to the internal ram). the read data is output at the timing shown below. 31 x0011 19 18 17 16 a15 15 a14 14 13 12 1 a16 0 x 20 a17 a28 a29 command (wrr) specified address notes:  x = don't care. (however, if issued immediately after the rcv command, bits 20-31 must all be set to "1.")  the specified address and write data are transferred lsb-first. 31 b31 1 b0 0 b30 30 b1 write data rtdrxd (msb side) (msb side) (lsb side) (lsb side) rtdrxd a) first frame b) second frame 15.4 functional description of the rtd
real time debugger (rtd) 15 15-7 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 15.4.4 operation of ver (continuous monitor) when the ver (continuous monitor) command is issued, the rtd outputs the data from the address that has been accessed by an instruction (either read or write) immediately before receiving the ver command. figure 15.4.6 ver (continuous monitor) command data format 32 clock periods rdr(a1) ver 2 clock periods rtdclk rtdrxd rtdtxd rtdack d (a1) read value d (a1) latest read value (note 1) ver note 1: wrr command can also be used. note:  (an) = specified address d(an) = data at specified address (an) 32 clock periods 32 clock periods 32 clock periods figure 15.4.7 operation of the ver (continuous monitor) command 15.4.5 operation of vei (interrupt request) when the vei (interrupt request) command is issued, the rtd generates an interrupt request. furthermore, the rtd outputs the data from the address that has been accessed by an instruction (either read or write) immediately before receiving the vei command. 31 x000 0 19 18 17 16 xx 15 14 0 x 20 command (ver) note:  x = don't care. (however, if issued immediately after the rcv command, bits 20-31 must all be set to "1.") rtdrxd x (msb side) (lsb side) figure 15.4.8 vei (interrupt request) command data format 31 x 011 0 19 18 17 16 xx 15 14 0 x 20 vei (interrupt request generation) command rtdrxd x note:  x = don't care. (however, if issued immediately after the rvc command, bits 20-31 must all be set to "1.") (msb side) (lsb side) 15.4 functional description of the rtd
real time debugger (rtd) 15 15-8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 15.4.10 rcv command data format 31 1 1111 19 18 17 16 1 15 0 1 20 command (rcv) rtdrxd 1 notes:  all of 32 data bits are "1."  the rcv command must always be issued twice in succession. (msb side) (lsb side) 32 clock periods rdr(a1) vei 2 clock periods rtdclk rtdrxd rtdtxd rtdack rtd interrupt request rtd interrupt d (a1) read value note 1: wrr command can also be used. note:  (an) = specified address d(an) = data at specified address (an) 32 clock periods 32 clock periods 32 clock periods (note 1) d (a1) read valu e figure 15.4.9 operation of the vei (interrupt request) command 15.4.6 operation of rcv (recover from runaway) if the rtd runs out of control, the rcv (recover from runaway) command may be issued to recover from the runaway condition without the need to reset the system. the rcv command must always be issued twice in succession. also, any command issued immediately following the rcv command must have all of its bits 20? 31 set to "1." 15.4 functional description of the rtd
real time debugger (rtd) 15 15-9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 rcv rcv command stored rtdclk rtdrxd rtdtxd rtdack rcv bits 20-31 d(a1) indeterminate data during runaway condition indeterminate value during runaway condition note:  the next command following the rcv command must have all of its bits 20-31 set to "1." next command following rcv command 2 clock periods 1    1 rdr(a1) 32 clock periods 32 clock periods 32 clock periods 32 clock periods 2 clock periods figure 15.4.11 operation of the rcv command 15.4.7 method for setting a specified address when using the rtd in the real-time debugger (rtd), the low-order 18-bit addresses of the internal ram(h'0 0000 to h'3 ffff) can be specified. however, it is inhibited to access any location other than the area in which the ram is located (for 32192: h'0080 4000 to h'0082 ffff, for 32195: h'0080 4000 to h'0080 bfff, for 32196: h'0080 4000 to h'0081 3fff). note also that two least significant address bits, a31 and a30, are always "0" because data are read and written to and from the internal ram in a fixed length of 32 bits. x x a29 ~ a16 a15 a14 (note 1) ... sfr 16kb h'0080 0000 h'0080 4000 memory map ram area can only be specified ram area (note 2) note 1: because the address bits a29-a16 and the address bits a15 and a14 are not contiguously located, care must be taken when setting the ram addresses. note 2: for 32192: h'0080 4000 to h'0082 ffff, for 32195: h'0080 4000 to h'0080 bfff, for 32196: h'0080 4000 to h'0081 3fff figure 15.4.12 setting addresses in the real-time debugger 15.4 functional description of the rtd
real time debugger (rtd) 15 15-10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 15.4.8 resetting the rtd the rtd is reset by applying a system reset (i.e., reset# signal input). the status of the rtd related output pins upon exiting system reset are shown below. table 15.4.2 rtd pin status upon exiting system reset pin name status rtdack "h" level output rtdtxd "h" level output the first command transfer to the rtd after being reset is initiated by transferring data to the rtdrxd pin synchronously with the falling edge of rtdclk. 32 clock periods don't care rdr(a1) rtdclk rtdrxd rtdtxd rtdack reset# system reset "h" rdr(a2) ffff ffff ffff ffff d(a2) note:  (an) = specified address d(an) = data at specified address (an) "h" d(a1) 32 clock periods 32 clock periods 32 clock periods figure 15.4.13 command transfer to the rtd after system reset 15.4 functional description of the rtd
real time debugger (rtd) 15 15-11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (8 bits) check that the rtdack signal is "l." rtdclk rtdrxd rtdtxd rtdack transfer of one frame (32 bits) 12 transfer of the next frame (8 bits) (8 bits) figure 15.5.2 example of communication with the host (when using ver command) 15.5 typical connection with the host 15.5 typical connection with the host the host uses a serial synchronous interface to transfer data. the clock for synchronous communication should be generated by the host. an example for connecting the rtd and host is shown below. figure 15.5.1 connecting the rtd and host the rtd communication is performed in a fixed length of 32 bits per frame. because serial interfaces generally handle data in 8-bit units, data is transferred separately in four operations, 8 bits at a time. the rtdack signal is used to verify that communication is performed normally. the rtdack signal goes "l" after a command is sent, providing a means of verifying the communication status. when issuing the ver command, the rtdack signal is pulled "l" for only one clock period. therefore, after sending 32 bits in one frame via a serial interface, turn off rtdclk output and check that rtdack is "l." that way, it is possible to know whether the rtd is communicating normally. if it is desirable to identify the type of transmitted command by the width of rtdack, use the microcomputer?s internal measurement timer (to count rtdclk pulses while rtdack is "l"), or design a dedicated circuit. rtdrxd rtdtxd rtdclk rtdack m32r/ecu host microprocessor rxd txd sclk port (note 1) note 1: this applies to the case where the rtdack level is checked between transfer frames.
real time debugger (rtd) 15 15-12 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 15.5 typical connection with the host this page is blank for reasons of layout.
chapter 16 non-break debug (nbd) 16.1 outline of the non-break debug (nbd) 16.2 pin functions of nbd 16.3 nbd related registers 16.4 communication protocol 16.5 ram monitor function 16.6 event detection function
non-break debug (nbd) 16 16-2 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 16.1 outline of the non-break debug (nbd) 16.1 outline of the non-break debug (nbd) non-break debug (nbd) has the ram monitor and event output functions. a dedicated dma is incorporated in nbd, so that accesses to the internal ram, etc. are accomplished using this dma. (1) ram monitor function this function is provided for reading and writing to and from all resources connected to the internal/external buses mapped in the address space. it allows the ram data, etc. to be referenced and altered. further- more, accesses to the address space used exclusively for nbd (i.e., nbd space) are accomplished using this function. (2) event output function upon detecting access to a preset address, this function outputs a "l" level signal from the nbdevnt# pin. a specific address and read/write access can be specified as the event occurrence condition. table 16.1.1 outline of the non-break debug (nbd) item content transfer method clock-synchronous parallel interface (4 bits) transfer clock generation generated by external host access area all areas in the address map and nbd space access size 8, 16 or 32 bits (for nbd space, fixed to 8 bits) maximum transfer rate 12.5mhz input/output pins 7 pins (nbdd3?nbdd0, nbdclk, nbdsync#, nbdevnt#) functions ? ram monitor function (note 1) ? event output function number of events set 1 event note 1: accessible to all resources connected to the internal/external buses as well as ram.
non-break debug (nbd) 16 16-3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 16.1.1 block diagram of the non-break debug (nbd) dma for nbd event detection block nbd register internal 32-bit bus internal flash memory nbd internal 16-bit bus m32r-fpu core internal bus interface internal ram external bus sfr area nbdd3(p77/rxdclk/crx1) nbdclk(jtclk) nbdsync#(jtdi) nbdevnt#(jtdo) nbdd0(p74/rtdtxd/txd3) nbdd1(p75/rtdrxd/rxd3) nbdd2(p76/rtdack/ctx1) 16.1 outline of the non-break debug (nbd)
non-break debug (nbd) 16 16-4 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 16.2 pin functions of nbd the following describes pin functions of nbd. table 16.2.1 nbd pin functions pin name type function nbdd3?nbdd0 input/output command and address/data input/output nbdclk input synchronous clock input nbdsync# input top of data position recognition signal input nbdevnt# output event otuput (asserted "l" for 2bclks when an event occurs) note: ? the nbd pins are shared with rtd, jtag and other function. before nbd can be used, the functions of the nbd pins must be set using the nbd pin control register (nbdcnt). 16.2.1 nbd pin control register nbd pin control register (nbdcnt) 123456b7 b0 nbdsetp nbdset 00 0 0 0 0 0 0 b bit name function r w 0?5 no function assigned. fix to "0." 00 6 nbdsetp nbdset write control bit 0 w 7 nbdset 0: set nbd-related pins for other than the nbd function r w nbd-related pins select bit 1: set nbd-related pins for the nbd function note: ? the nbd function cannot be used while the system is reset (because nbdset = 0). for the nbd function to be used, the jtrst (jtag reset) pin should be pulled "l." the nbdset bit selects the functions of the nbd-related pins. to use the nbd function, set this bit to "1," so that the nbd-related pins will be set for the nbd pin functions shown in table 16.2.1. to set the register, follow the procedure described below. 1. write a "1" to nbdsetp bit. 2. subsequent to 1 above, write a "0" to nbdsetp bit and a "0" or "1" to nbdset bit. notes: ? if theare are writing cycles from cpu, dma, sdi (tool), nbd to any other area between 1 and 2, the continuous setting ( a pair of two consecutive is 1 set for writing operation) is disabled and the writing value is not reflected. therefore, disable interrupts and dma transfers before setting. however the writ- ing cycle from rtd and dri are not effected. ? in nbdcnt register, indefined value is outputted until evtu_a register and evtu_c register are set after exiting reset, when set nbd related pin to nbd function. 16.2 pin functions of nbd
non-break debug (nbd) 16 16-5 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 16.2.1 nbdset bit setting procedure 16.2 pin functions of nbd if a write cycle to any other area occurs during this interval, the value that was set in the nbdset bit is not reflected. (note 1) nbdsetp "1" nbdsetp "0" nbdset 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) nbdsetp "1" write to other area (1) (2) because these two consecutive writes comprise a pair, the next set value is not reflected. nbdsetp "1" nbdsetp "1" nbdsetp "0" nbdset set value nbdsetp "0" nbdset set value 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 do not effect.
non-break debug (nbd) 16 16-6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 16.3 nbd related registers the following shows an nbd related register map. some nbd-related registers are located in the address map (cpu space), and others are located in another area that is used exclusively for nbd (i.e., nbd space). the nbd space is addressed by 12 bits, and is accessed in a fixed size of 8 bits. furthermore, the nbd space is constructed to be accessible from only the dedicated nbd interface, and cannot be accessed from the cpu. table 16.3.1 nbd related register map space address register name r/w upon exiting reset cpu h'e000 0000 nbd enable register (nbdenb) r/w h'00 h'e000 0004 nbd pin control register (nbdcnt) r/w h'00 h'e000 0008 event generation register (nevntgen) w undefined nbd h'800 event address setting register (evtu_a) r/w undefined h'801 h'802 h'803 h'820 event condition setting register (evtu_c) r/w undefined 16.3.1 nbd enable register nbd enable register (nbdenb) 123456b7 b0 nbdenp nbden 00 0 0 0 0 0 0 b bit name function r w 0?5 no function assigned. fix to "0." 00 6 nbdenp 0w nbden write control bit 7 nbden 0: disable nbd operation r w nbd operation enable bit 1: enable nbd operation notes: ? allow for an interval time of 20 cpuclk cycles or more before altering the value of the nbden bit. ? if the nbden bit is reenabled after being disabled, a finite time of 20 cpuclk cycles is required before the nbd becomes operational. ? the value of the nbden bit can only be altered when the nbdset bit in the nbd pin control register = "0" (nbd-related pins set for other than the nbd function). the nbden bit selects to enable or disable the nbd functions. when nbden = "0," the nbd is in a reset state, so that the content of each register is reset to the initial value. to use the nbd functions, this bit should be set to "1" before setting other nbd registers. when the nbden bit = "0," accessing not just the nbdenb register, but any other nbd registers (in either the cpu or the nbd space) is prohibited. to set the register, follow the procedure described below. 1. write a "1" to nbdenp bit. 2. subsequent to 1 above, write a "0" to nbdenp bit and a "0" or "1" to nbden bit. notes: ? if theare are writing cycles from cpu, dma, sdi (tool), nbd to any other area between 1 and 2, the continuous setting (a pair of two consecutive is 1 set for writing operation) is disabled and the writing value is not reflected. therefore, disable interrupts and dma transfers before setting. however the writing cycle from rtd and dri are not effected. ? the setting procedure of nbden bit is same as that of nbdset bit shown in figure 16.2.1. 16.3 nbd related registers
non-break debug (nbd) 16 16-7 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 16.4.1 nbdd3?nbdd0 input format nbdclk nbdsync# write field (only when writing) n = 7,15 or 31 extension field control field address field command packet nbdd3 nbdd0 hi-z 0000 siz1, siz0, r/w, i/t a28 a31 a0 a3 dn-3 dn d0 d3 note: :sampling point hi- z 16.4 communication protocol when nbdsync# is asserted, the nbd starts latching nbdd3?nbdd0 into the internal circuit synchronously with nbdclk. make sure nbdd3?nbdd0 are input in the format shown below. when data input from nbdd3?nbdd0 shown in figure 16.4.1 finishes, the data bus is temporarily placed in the high-impedance (hi-z) state for 1 nbdclk cycle and then data is output from nbdd3?nbdd0 synchronously with nbdclk in the format shown in figure 16.4.2. figure 16.4.2 nbdd3?nbdd0 output format 16.4 communication protocol flag sense read data packet (only when reading) n = 7,15 or 31 nbdsync# nbdd3 nbdd0 d0 d3 nbdclk note: :sampling point not ready ready ready ready hi-z d0 d3 hi-z 0000 0001 0001 0001
non-break debug (nbd) 16 16-8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 output input nbdclk nbdsync# 0001 ready nbdd3 nbdd0 not ready ready ready note 1: when input adress from nbdd0 - nbdd3 is completed, plug sence packet is outputted though high impedance period of 1nbdc lk. note 2: after "h" level detection by rising nbdclk, read out data (read data packet)is outputted from next nbdclk rising. note: :sampling point 0000 siz1, siz0, r/w, i/t a0 a3 hi-z d28 d31 d0 d3 a28 a31 hi-z hi-z 0000 0001 0001 (note 1) (note 2) figure 16.5.2 example of write operation (for 32-bit write to the cpu space) 16.5 ram monitor function 16.5.1 description of nbd operation figure 16.5.1 shows an example of read operation of the nbd. figure 16.5.2 shows an example of write operation of the nbd. when input to the nbdsync# pin is pulled "l," the nbd starts taking in a command packet from nbdd3?nbdd0 in the format shown in figure 16.4.1. when the command packet input finishes, the nbd starts reading/writing to or from the address specified in the address field. when the nbd finishes receiving a command packet, it starts outputting data from nbdd3?nbdd0 in the format shown in figure 16.4.2 after the data bus is temporarily placed in the high-impedance (hi-z) state for 1 nbdclk cycle. while input to the nbdsync# pin is held "l," nbdd3?nbdd0 are in a flag sense state, in which they output not ready (0000) during a read/write operation or ready (0001) when the operation has finished. during a read, when input to the nbdsync# pin is released back "h" after detecting ready, the read data (read data packet) is output (figure 16.5.1). before a next command packet can be transmitted, input to the nbdsync# pin must be held "h" for at least 2 nbdclk cycles. output input nbdclk nbdsync# nbdd3 nbdd0 0001 ready not ready ready ready (note 2) (note 1) hi-z 0000 siz1, siz0, r/w, i/t hi-z a28 a31 a0 a3 hi-z 0000 0001 d4 d7 d0 d3 0001 note 1: when input adress from nbdd0 - nbdd3 is completed, plug sence packet is outputted though high impedance period of 1nbdc lk. note 2: after "h" level detection by rising nbdclk, read out data (read data packet)is outputted from next nbdclk rising. note: :sampling point figure 16.5.1 example of read operation (for 8-bit read from the cpu space) 16.5 ram monitor function
non-break debug (nbd) 16 16-9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 extension field aux3 aux2 aux1 aux0 ????? control field siz1 siz0 r/w i/t ????? a28 a29 a30 a31 ????? a24 a25 a26 a27 ????? a20 a21 a22 a23 ????? a16 a17 a18 a19 ????? a12 a13 a14 a15 ????? a8 a9 a10 a11 ????? a4 a5 a6 a7 ????? a0 a1 a2 a3 ????? d28 d29 d30 d31 ????? d24 d25 d26 d27 ????? d20 d21 d22 d23 ????? d16 d17 d18 d19 ????? d12 d13 d14 d15 ????? d8 d9 d10 d11 ????? d4 d5 d6 d7 ???? d0 d1 d2 d3 ???? during read during 8-bit write during 16-bit write during 32-bit write address field write data field input order field name first last bit arrangement when accessing nbd space when accessing cpu space : necessary, -: unnecessary nbdd3 nbdd2 nbdd1 nbdd0 during read during write 16.5.2 nbdd data format the following describes the content of each packet/field which are input to or output from the nbdd3?nbdd0 pins. (1) command packet (input) table 16.5.1 bit assignments of a command packet 1) extension field bit name function content aux3 reserved for future extension set to "0" aux2 reserved for future extension set to "0" aux1 reserved for future extension set to "0" aux0 reserved for future extension set to "0" note 1: if these bits are set otherwise, device operation cannot be guaranteed. 2) control field bit name function content siz1, siz0 specify access size siz1 siz0 0 0 8-bit (note 1) 0 1 16-bit 1 0 32-bit 1 1 settings inhibited r/w specify read/write 0: read 1: write i/t specify access space 0: access nbd space 1: access cpu space note 1: when the nbd space access is selected (i/t = "0"), only 8-bit access is accepted. if these bits are set otherwise, devi ce operation cannot be guaranteed. 16.5 ram monitor function
non-break debug (nbd) 16 16-10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 3) address field bit name function content a0?a31 specify address a0?a31 should be specified in big endian format (a0 = msb). when accessing nbd space: specify with 12 bits of a0?a11 when accessing cpu space: specify with 32 bits of a0?a31 4) write data field bit name function content d0?d31 specify write data d0?d31 should be specified in big endian format (d0 = msb). the necessary number of bits varies depending on how the r/w bit and siz1?siz0 bits in the control field are set. (see table 16.5.1 bit assignments of a command packet) (2) flag sense packet (output) table 16.5.2 bit assignments of a flag sense packet bit name function content rflg indicates that the internal operation of 0: not ready nbd is completed 1: ready (3) read data packet (output) table 16.5.3 bit assignments of a read data packet first d28d29d30d31 - - - - - d24d25d26d27 - - - - - d20d21d22d23 - - - - - d16d17d18d19 - - - - - d12d13d14d15 - - - ? - d8 d9 d10 d11 - - - ? - d4 d5 d6 d7 - ?? - last d0 d1 d2 d3 - ?? - during 32-bit write nbdd2 during write during 8-bit write during 16-bit write during writ e output order nbdd1 nbdd0 during read (note 1) bit arrangement when accessing nbd space when accessing cpu space : necessary, -: unnecessary nbdd3 16.5 ram monitor function nbdd3 nbdd2 nbdd1 nbdd0 000rflg bit arrangement note 1: when the nbd space access is selected, only 8-bit access is accepted. bit name function content d0?d31 output read data d0?d31 should be specified in big endian format (d0 = msb). the number of bits to be output varies depending on how the r/w bit and siz1?siz0 bits in the control field are set.(see table 16.5.3 bit assignments of a read data packet)
non-break debug (nbd) 16 16-11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 evtu_a, evtu_c information address bus, r/w signal information output "l" when a match is detected nbdevnt# pin also output "l" by writing any data nevntgen register comparate circuit output "l" for 2bcl k figure 16.6.1 nbdevnt# pin configuration 16.6 event detection function the nbd has the function to output an event occurrence when there is a matching address accessed for read/write in the cpu space. the event output is active "l," and is asserted synchronously with bclk for a period of 2 bclk cycles. the nbdevnt# pin also can output a "l" level signal for 2 bclk cycles when the nevntgen register located in the cpu space is accessed for write. output from the nbdevnt# pin is generated by matching the above- mentioned address or a write access to the nevntgen register figure 16.6.1 shows the structure of the nbdevnt# pin. 16.6.1 event address setting register event address setting register (evtu_a) b0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 b15 evtu_a ???????????????? b16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 b31 evtu_a ?????????????? 0 0 b bit name function r w 0?29 evtu_a specify the target address a0?a29 for event detection r w 30, 31 no function assigned. fix to "0." 00 16.6 event detection function notes: ? in the nbden bit of nbd enable register (nbdenb), avtu_a bit value becomes indefinite after setting from "0" (disable nbd operation) to "1"(enable nbd operation). ? after enabling nbd operation(after setting "1"in nbden bit of nbdenb register), an indefinite value is outputted from nbdevent# pin in nbd pin control register(nbdcnt) during the period of time from setting nbd-related pins to nbd function to setting value of evtu_a and evtu_c are effective(period of time from ready status to after 3nbdclk). ? during event detection function is used, when the setting value of evtu_a register or evtu_c register is changed, the event detection result by the changed setting conditions becomes effective after 3nbdclk from setting evtu_a register or evtu_c register (at the time of being ready state in flag sense period).
non-break debug (nbd) 16 16-12 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 16.6.2 event condition setting register event condition setting register (evtu_c) 123456b7 b0 acc0 acc1 ?? 0 0 0 0 0 0 b bit name function r w 0?4 no function assigned. fix to "0." 00 5, 6 acc1, acc0 specify r/w condition for event detection r w acc1 acc0 event generation condition 0 0 read access 0 1 write access 1 0 read or write access 1 1 settings inhibited no function assigned. fix to "0." 00 notes: ? in the nbden bit of nbd enable register (nbdenb), avtu_a bit value becomes indefinite after setting from "0" (disable nbd operation) to "1" (enable nbd operation). ? after e bling nbd operation(after setting "1" in nbden bit of nbdenb register), an indefinite value is outputted from nbdevent# pin in nbd pin control register(nbdcnt) during the period of time from setting nbd-related pins to nbd function to setting value of evtu_a and evtu_c are effective(period of time from ready status to after 3nbdclk). ? during event detection function is used, when the setting value of evtu_a register or evtu_c register is changed, the event detection result by the changed setting conditions becomes effective after 3nbdclk from setting evtu_a register or evtu_c register (at the time of being ready state in flag sense period). for executed-pc event detection can be implemented using the event address set registter ( evtu_a) and the event condition set registter ( evtu_c), it is necessary that the target pc address be set in the evtu_a register and that the acc1 and acc0 bits of the evtu_c register be set to "h'00" (read access). once these settings are made, when the evtu_a register address is accessed for instruction read (instruction prefetch) by the cpu, event output can be generated upon detecting this cpu access. in this case, event can also be generated for an operand access to the evtu_a register address by the cpu. note that since this facility is designed to detect an event occurrence for instruction read access (instruction prefetch), events may be generated for instructions that actually are not executed. 16.6.3 event generation register event generation register (nevntgen) 123456b7 b0 nevntgen ???????? b bit name function r w 0?7 nevntgen when any data is written to this register, a "l" level signal is ? w output from the nbdevnt# pin for 2 bclk cycles. when this register is accessed for read, indeterminate data is read out. note: ? if multiple events occur in close proximity in time, the "l" level signal output from the nbdevnt# pin may only be asse rted "l" for 2 bclk cycles (i.e., for one event). conversely, depending on event occurrence conditions, two or more 2-bclk "l" level signals may be output in succession. figure 16.6.2 relationship between nbd event detection and nbdevent# pin operation 16.6 event detection function bclk nbd event detection nbdevnt# output for one event detected, asserted "l" for 2 bclk cycles (for one event) for two events detected, asserted "l" for 2 bclk cycles (for one event) asserted "l" consecutively for 4 bclk cycles
chapter 17 external bus interface 17.1 outline of the external bus interface 17.2 external bus interface related registers 17.3 read/write operations 17.4 bus arbitration 17.5 typical connection of external extension memory 17.6 example of bus voltage settings using vcc-bus
17 external bus interface 17-2 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 17.1 outline of the external bus interface 17.1.1 external bus interface related signals the 32192/32195/32196 has the external bus interface related signals described below. these signals can be used in external extension and processor modes. furthermore, a dedicated power supply for the bus control pins (bus power supply: vcc-bus) is included. when used separately from other power supplies, it allows external devices operating with other than the main power supply voltage to be connected. the symbol ?#? suffixed to the signal names (or pin names) means that the signals (or pins) are active "l." (1) address the 32192/32195/32196 outputs a 22-bit address (a9?a30) for addressing any location in a 8-mbyte space. the least significant a31 is not output. note: ? during external extension mode, these pins are switched for port upon exiting reset. their pin func- tions must be set for address output using the corresponding port operation mode register as necessary. (2) chip select (cs0#?cs3#) the cs0#?cs3# signals are output for external extension areas divided in 8-mbyte units. the cs0# signal points to a 8-mbyte area during processor mode or a 7-mbyte area during external extension mode. (for details, see chapter 3, ?address space.?) note: ? during external extension mode, these pins are switched for port upon exiting reset. their pin functions must be set for chip select using the corresponding port operation mode register as necessary. (3) read strobe (rd#) output during an external read cycle, this signal indicates the timing at which to read data from the bus. this signal is driven "h" when writing to the bus or accessing the internal area. (4) byte high write/byte high enable (bhw#/bhe#) the pin function changes depending on the bus mode control register (busmodc). when busmod = "0" and this signal is byte high write (bhw#), during external write access it indicates that the upper byte (db0?db7) of the data bus is the valid data transferred. during external read and when accessing the internal area it outputs a "h." when busmod = "1" and this signal is byte high enable (bhe#), during external access (for read or write) it indicates that the upper byte (db0?db7) of the data bus is the valid data transferred. when accessing the internal area it outputs a "h." (5) byte low write/byte low enable (blw#/ble#) the pin function changes depending on the bus mode control register (busmodc). when busmod = "0" and this signal is byte low write (blw#), during external write access it indicates that the lower byte (db8?db15) of the data bus is the valid data transferred. during external read and when accessing the internal area it outputs a "h." when busmod = "1" and this signal is byte low enable (ble#), during external access (for read or write) it indicates that the lower byte (db8?db15) of the data bus is the valid data transferred. when accessing the internal area it outputs a "h." 17.1 outline of the external bus interface
17 external bus interface 17-3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (6) data bus (db0?db15) this is the 16-bit bus used to access external devices. during external read access, data is latched from the bus synchronously with the rising edge of the read strobe. even during 8-bit read, 16-bit data is always read in, but data only on the valid byte position is transferred into the internal circuit. during external write access, data is output from the bus. during 8-bit write, the valid byte position to write is indicated by the output signal bhw# or blw#. when accessing the internal area, the bus functions as an input bus. note: ? during external extension mode, these pins are switched for port upon exiting reset. their pin functions must be set for data bus using the corresponding port operation mode register as necessary. (7) system clock/write (clkout/wr#) the pin function changes depending on the bus mode control register (busmodc). when busmod = "0" and this signal is system clock (clkout), the system clock necessary to synchro- nize operations in external systems is output from the pin. if the cpu clock is 160 mhz, and the clkosel (clkout select) bit in the clkout select register is set to ?0,? a 20 mhz clock is output; if the clkosel bit is set to ?1,? a 40 mhz clock is output. furthermore, if the clkout/wr# function is unused, and p70md in the p7 operation mode register is cleared to ?0,? the pin can be used as p70; if p150md in the p15 operation mode register is cleared to ?0,? the pin can be used as p150. when busmod = "1" and this signal is write (wr#), during external write access it indicates the valid data transferred on the data bus. during external read cycle and when accessing the internal area it outputs a "h." note: ? during external extension mode, this pin is switched for port upon exiting reset. its pin function must be set for system clock/write using the corresponding port operation mode register as necessary. (8) wait (wait#) when the 32192 started an external bus cycle, it automatically inserts wait states while the wait# input signal is asserted. for details, see chapter 18, ?wait controller.? if the wait function is unused, and p71md in the p7 operation mode register is cleared to ?0,? the pin can be used as p71; if p153md in the p15 operation mode register is cleared to ?0,? the pin can be used as p153. note: ? during external extension mode, this pin is switched for port upon exiting reset. its pin function must be set for wait using the corresponding port operation mode register as necessary. (9) hold control (hreq#, hack#) the hold state means internal bus and external bus stop accessing the bus and the bus interface related pins are tristated (high impedance). while the microcomputer is in a hold state, any bus master external to the chip can use the system bus to transfer data. even during hold status the command in which command que is done though, if the command with access to bus is done, the command performance operation is stopped at that time. an "l" signal input on the hreq# pin places the microcomputer into a hold state. while the microcomputer remains in a hold state after accepting the hold request and during a transition to the hold state, the hack# pin outputs a "l" level signal. to exit the hold state and return to normal operating state, release the hreq# signal back "h." note: ? during external extension mode, these pins are switched for port upon exiting reset. their pin functions must be set for hold control using the corresponding port operation mode register as necessary. 17.1 outline of the external bus interface
17 external bus interface 17-4 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (10) peripheral clock (bclk) the peripheral clock is output from the pin. if the cpu clock is 160 mhz, a 40 mhz clock is output. further- more, if the bclk output function is unused, and p70md in the p7 operation mode register is cleared to ?0,? the pin can be used as p70. note: ? during external extension mode, this pin is switched for port upon exiting reset. its pin function must be set for peripheral clock using the corresponding port operation mode register and port periph- eral function select register as necessary. the status of each pin during hold are shown below. table 17.1.1 pin state during hold period pin name pin state or operation a9?a30, db0?db15, cs0#?cs3#, rd#, bhw#, blw#, bhe#, ble#, wr# high impedance hack# output a "l" other pins (e.g., ports and timer output) normal operation (11) bus power supply (vcc-bus) this pin supplies power to the bus control pins. a voltage different from that of the main power supply can be applied, which is convenient when external devices are connected to the system. 17.1 outline of the external bus interface
17 external bus interface 17-5 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 17.2 external bus interface related registers the following describes the external bus interface related registers. 17.2.1 port operation mode and port peripheral function select registers ports p0?p4 (except p41?p43), p124, p125, p224 and p225 are switched for external access signal pins during external extension mode when so set by the corresponding operation mode register. during processor mode, these ports always function as external access signal pins. during external extension mode, these pins are switched for port upon exiting reset. therefore, by switching the pin functions for only those pins that are needed for external access, the remaining pins can be used as port. ports p70?p73, p126, p127, p150, p153, p220 and p221 can be switched for external access signal pins at any time irrespective of the cpu operation mode. ports p41?p43 always function as external access signal pins during external extension and processor modes. p0 operation mode register (p0mod) b bit name function r w 0 p00md 0: p00/dd0 (note 1) r w port p00 operation mode bit 1: db0/to21 (note 2) 1 p01md 0: p01/dd1 (note 1) r w port p01 operation mode bit 1: db1/to22 (note 2) 2 p02md 0: p02/dd2 (note 1) r w port p02 operation mode bit 1: db2/to23 (note 2) 3 p03md 0: p03/dd3 (note 1) r w port p03 operation mode bit 1: db3/to24 (note 2) 4 p04md 0: p04/dd4 (note 1) r w port p04 operation mode bit 1: db4/to25 (note 2) 5 p05md 0: p05/dd5 (note 1) r w port p05 operation mode bit 1: db5/to26 (note 2) 6 p06md 0: p06/dd6 (note 1) r w port p06 operation mode bit 1: db6/to27 (note 2) 7 p07md 0: p07/dd7 (note 1) r w port p07 operation mode bit 1: db7/to28 (note 2) note 1: the port and dd input functions both are effective. to use the port as dd input pin, set the port direction for input. note 2: which function of the pin is used depends on how the p0 peripheral function select register is set. note: ? during processor mode, settings of this register have no effect, and the ports function as external bus interface signal pins ( db0-db7). 17.2 external bus interface related registers b0123456b7 p00md p01md p02md p03md p04md p05md p06md p07md 00000000
17 external bus interface 17-6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 17.2 external bus interface related registers b0123456b7 p00smd p01smd p02smd p03smd p04smd p05smd p06smd p07smd 00000000 p0 peripheral function select register (p0smod) b bit name function r w 0 p00smd 0: db0 r w port p00 peripheral function select bit 1: to21 1 p01smd 0: db1 r w port p01 peripheral function select bit 1: to22 2 p02smd 0: db2 r w port p02 peripheral function select bit 1: to23 3 p03smd 0: db3 r w port p03 peripheral function select bit 1: to24 4 p04smd 0: db4 r w port p04 peripheral function select bit 1: to25 5 p05smd 0: db5 r w port p05 peripheral function select bit 1: to26 6 p06smd 0: db6 r w port p06 peripheral function select bit 1: to27 7 p07smd 0: db7 r w port p07 peripheral function select bit 1: to28 notes: ? during processor mode, settings of this register have no effect, and the ports function as external bus interface signal pins ( db0-db7). ? the value of this register can only be modified when the corresponding p0 operation mode register bit = 0 (set for port). then set the corresponging p0 operation mode register bit to "1." ? during single-chip mode, selecting the external bus interface function is prohibited.
17 external bus interface 17-7 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 17.2 external bus interface related registers p1 operation mode register (p1mod) b bit name function r w 8 p10md 0: p10/dd8 (note 1) r w port p10 operation mode bit 1: db8/to29 (note 2) 9 p11md 0: p11/dd9 (note 1) r w port p11 operation mode bit 1: db9/to30 (note 2) 10 p12md 0: p12/dd10 (note 1) r w port p12 operation mode bit 1: db10/to31 (note 2) 11 p13md 0: p13/dd11 (note 1) r w port p13 operation mode bit 1: db11/to32 (note 2) 12 p14md 0: p14/dd12 (note 1) r w port p14 operation mode bit 1: db12/to33 (note 2) 13 p15md 0: p15/d13 (note 1) r w port p15 operation mode bit 1: db13/to34 (note 2) 14 p16md 0: p16/dd14 (note 1) r w port p16 operation mode bit 1: db14/to35 (note 2) 15 p17md 0: p17/dd15 (note 1) r w port p17 operation mode bit 1: db15/to36 (note 2) note 1: the port and dd input functions both are effective. to use the port as dd input pin, set the port direction for input. note 2: which function of the pin is used depends on how the p1 peripheral function select register is set. note: ? during processor mode, settings of this register have no effect, and the ports function as external bus interface signal pins ( db8-db15). b8 9 1011121314b15 p10md p11md p12md p13md p14md p15md p16md p17md 00000000 p1 peripheral function select register (p1smod) b bit name function r w 8 p10smd 0: db8 r w port p10 peripheral function select bit 1: to29 9 p11smd 0: db9 r w port p11 peripheral function select bit 1: to30 10 p12smd 0: db10 r w port p12 peripheral function select bit 1: to31 11 p13smd 0: db11 r w port p13 peripheral function select bit 1: to32 12 p14smd 0: db12 r w port p14 peripheral function select bit 1: to33 13 p15smd 0: db13 r w port p15 peripheral function select bit 1: to34 14 p16smd 0: db14 r w port p16 peripheral function select bit 1: to35 15 p17smd 0: db15 r w port p17 peripheral function select bit 1: to36 notes: ? during processor mode, settings of this register have no effect, and the ports function as external bus interface signal pins ( db8-db15). ? the value of this register can only be modified when the corresponding p1 operation mode register bit = 0 (set for port). then set the corresponging p1 operation mode register bit to "1." ? during single-chip mode, selecting the external bus interface function is prohibited. b8 9 1011121314b15 p10smd p11smd p12smd p13smd p14smd p15smd p16smd p17smd 00000000
17 external bus interface 17-8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 17.2 external bus interface related registers b0123456b7 p20md p21md p22md p23md p24md p25md p26md p27md 00000000 p2 operation mode register (p2mod) b bit name function r w 0 p20md 0: p20/dd24 (note 1) r w port p20 operation mode bit 1: a23 1 p21md 0: p21/dd25 (note 1) r w port p21 operation mode bit 1: a24 2 p22md 0: p22/dd26 (note 1) r w port p22 operation mode bit 1: a25 3 p23md 0: p23/dd27 (note 1) r w port p23 operation mode bit 1: a26 4 p24md 0: p24/dd28 (note 1) r w port p24 operation mode bit 1: a27 5 p25md 0: p25/dd29 (note 1) r w port p25 operation mode bit 1: a28 6 p26md 0: p26/dd30 (note 1) r w port p26 operation mode bit 1: a29 7 p27md 0: p27/dd31 (note 1) r w port p27 operation mode bit 1: a30 note 1: the port and dd input functions both are effective. to use the port as dd input pin, set the port direction for input. notes: ? during single-chip mode, settings of this register have no effect, and the port functions as port input/output or dd input pin. ? during processor mode, settings of this register have no effect, and the ports function as external bus interface signal pins (a23-a30).
17 external bus interface 17-9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 17.2 external bus interface related registers p3 operation mode register (p3mod) b bit name function r w 8 p30md 0: p30/dd16 (note 1) r w port p30 operation mode bit 1: a15/tin4 (note 2) 9 p31md 0: p31/dd17 (note 1) r w port p31 operation mode bit 1: a16/tin5 (note 2) 10 p32md 0: p32/dd18 (note 1) r w port p32 operation mode bit 1: a17/tin6 (note 2) 11 p33md 0: p33/dd19 (note 1) r w port p33 operation mode bit 1:a18/tin17 (note 2) 12 p34md 0: p34/dd20 (note 1) r w port p34 operation mode bit 1:a19/tin30 (note 2) 13 p35md 0: p35/dd21 (note 1) r w port p35 operation mode bit 1:a20/tin31 (note 2) 14 p36md 0: p36/dd22 (note 1) r w port p36 operation mode bit 1: a21/tin32 (note 2) 15 p37md 0: p37/dd23 (note 1) r w port p37 operation mode bit 1: a22/tin33 (note 2) note 1: the port and dd input functions both are effective. to use the port as dd input pin, set the port direction for input. note 2: which function of the pin is used depends on how the p3 peripheral function select register is set. note: ? during processor mode, settings of this register have no effect, and the ports function as external bus interface signal pins ( a15-a22). b8 9 1011121314b15 p30md p31md p32md p33md p34md p35md p36md p37md 00000000 p3 peripheral function select register (p3smod) b bit name function r w 8 p30smd 0: a15 r w port p30 peripheral function select bit 1: tin4 9 p31smd 0: a16 r w port p31 peripheral function select bit 1: tin5 10 p32smd 0: a17 r w port p32 peripheral function select bit 1: tin6 11 p33smd 0: a18 r w port p33 peripheral function select bit 1: tin7 12 p34smd 0: a19 r w port p34 peripheral function select bit 1: tin30 13 p35smd 0: a20 r w port p35 peripheral function select bit 1: tin31 14 p36smd 0: a21 r w port p36 peripheral function select bit 1: tin32 15 p37smd 0: a22 r w port p37 peripheral function select bit 1: tin33 notes: ? during processor mode, settings of this bit have no effect and the ports function as external bus interface signal pins (a15-a2 2). ? the value of this register can only be modified when the corresponding p3 operation mode register bit = 0 (set for port). then set the corresponging p3 operation mode register bit to "1." ? during single-chip mode, selecting the external bus interface function is prohibited. b8 9 1011121314b15 p30smd p31smd p32smd p33smd p34smd p35smd p36smd p37smd 00000000
17 external bus interface 17-10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 p4 operation mode register (p4mod) b bit name function r w 0?3 no function assigned. fix to "0." 00 4 p44md 0: p44 r w port p44 operation mode bit 1: cs0#/tin8 (note 1) 5 p45md 0: p45 r w port p45 operation mode bit 1: cs1#/tin9 (note 1) 6 p46md 0: p46 r w port p46 operation mode bit 1: a13/tin10 (note 1) 7 p47md 0: p47 r w port p47 operation mode bit 1: a14/tin11 (note 1) note 1: which function of the pin is used depends on how the p4 peripheral function select register is set. note: ? during processor mode, settings of this register have no effect, and the ports function as external bus interface signa l pins (cs0#, cs1#, a13 and a14). p4 peripheral function select register (p4smod) b bit name function r w 0?3 no function assigned. fix to "0." 00 4 p44smd 0: cs0# r w port p44 peripheral function select bit 1: tin8 5 p45smd 0: cs1# r w port p45 peripheral function select bit 1: tin9 6 p46smd 0: a13 r w port p46 peripheral function select bit 1: tin10 7 p47smd 0: a14 r w port p47 peripheral function select bit 1: tin11 notes: ? during processor mode, settings of this register have no effect, and the ports function as external bus interface sig nal pins (cs0#, cs1#, a13 and a14). ? the value of this register can only be modified when the corresponding p4 operation mode register bit = 0 (set for port). then set the corresponging p4 operation mode register bit to "1." ? during single-chip mode, selecting the external bus interface function is prohibited. b0123456b7 p44smd p45smd p46smd p47smd 00000000 17.2 external bus interface related registers b0123456b7 p44md p45md p46md p47md 00000000
17 external bus interface 17-11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 p7 operation mode register (p7mod) b bit name function r w 8 p70md 0: p70 r w port p70 operation mode bit 1: clkout/wr#/bclk (note 1) 9 p71md 0: p71 r w port p71 operation mode bit 1: wait# (note 2) 10 p72md 0: p72 r w port p72 operation mode bit 1: hreq#/tin27 (note 3) 11 p73md 0: p73 r w port p73 operation mode bit 1: hack#/tin26 (note 3) 12 p74md 0: p74 r w port p74 operation mode bit (note 4) 1: rtdtxd/txd3 (note 3) 13 p75md 0: p75 r w port p75 operation mode bit (note 4) 1: rtdrxd/rxd3 (note 3) 14 p76md 0: p76 r w port p76 operation mode bit (note 4) 1: rtdack/ctx1 (note 3) 15 p77md 0: p77 r w port p77 operation mode bit (note 4) 1: rtdclk/crx1 (note 3) note 1: these functions are selected using the p7 peripheral function select register and bus mode control register. note 2: during single-chip mode, settings of this register have no effect, and the port functions as port input/output pin. note 3: these functions are selected using the p7 peripheral function select register. note 4: if the nbd function is selected by the nbd pin control register, the port functions as nbd pin no matter how this register is set. b8 9 1011121314b15 p70md p71md p72md p73md p74md p75md p76md p77md 00000000 p7 peripheral function select register (p7smod) b bit name function r w 8 p70smd 0: clkout/wr# (note 1) r w port p70 peripheral function select bit 1: bclk 9 no function assigned. fix to "0." 00 10 p72smd 0: hreq# r w port p72 peripheral function select bit 1: tin27 11 p73smd 0: hack# r w port p73 peripheral function select bit 1: tin26 12 p74smd (note 2) 0: rtdtxd r w port p74 peripheral function select bit 1: txd3 13 p75smd (note 2) 0: rtdrxd r w port p75 peripheral function select bit 1: rxd3 14 p76smd (note 2) 0: rtdack r w port p76 peripheral function select bit 1: ctx1 15 p77smd (note 2) 0: rtdclk r w port p77 peripheral function select bit 1: crx1 note 1: which function of the pin is used depends on how the bus mode control register is set. note 2: if the nbd function is selected by the nbd pin control register, the port functions as nbd pin no matter how this register is set. note: ? the value of this register can only be modified when the corresponding p7 operation mode register bit = 0 (set for port ). then set the corresponging p7 operation mode register bit to "1." 17.2 external bus interface related registers b8 9 1011121314b15 p70smd p72smd p73smd p74smd p75smd p76smd p77smd 00000000
17 external bus interface 17-12 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 p12 operation mode register (p12mod) b bit name function r w 0?3 no function assigned. fix to "0." 00 4 p124md 0: p124/dd3 (note 1) r w port p124 operation mode bit (note 3) 1: tclk0/a9 (note 2) 5 p125md 0: p125/dd2 (note 1) r w port p125 operation mode bit (note 3) 1: tclk1/a10 (note 2) 6 p126md 0: p126/dd1 (note 1) r w port p126 operation mode bit 1: tclk2/cs2# (note 2) 7 p127md 0: p127/dd0 (note 1) r w port p127 operation mode bit 1: tclk3/cs3# (note 2) note 1: the dd input functions are effective depending on the settings of dd input pin select register (ddsel). (for details, r efer to the chapter 14, "direct ram interface"). to use the port as dd input pin, set the port direction for input. note 2: which function of the pin is used depends on how the p12 peripheral function select register is set. note 3: during processor mode, settings of this bit have no effect and the port functions as external bus interface signal pin (a9 or a 10). b0123456b7 p124md p125md p126md p127md 00000000 p12 peripheral function select register (p12smod) b bit name function r w 0?3 no function assigned. fix to "0." 00 4 p124smd 0: tclk0 r w port p124 peripheral function select bit (note 1) 1: a9 5 p125smd 0: tclk1 r w port p125 peripheral function select bit (note 1) 1: a10 6 p126smd 0: tclk2 r w port p126 peripheral function select bit 1: cs2# 7 p127smd 0: tclk3 r w port p127 peripheral function select bit 1: cs3# note 1: during processor mode, settings of this bit have no effect and the port functions as external bus interface signal pin (a9 or a 10). note: ? the value of this register can only be modified when the corresponding p12 operation mode register bit = "0" (set for p ort). then set the corresponging p12 operation mode register bit to "1." b0123456b7 p124smd p125smd p126smd p127smd 00000000 17.2 external bus interface related registers
17 external bus interface 17-13 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 p15 peripheral function select register (p15smod) b bit name function r w 8 p150smd 0: tin0 r w port p150 peripheral function select bit 1: clkout/wr# (note 1) 9, 10 no function assigned. fix to "0." 00 11 p153smd 0: tin3 r w port p153 peripheral function select bit (note 2) 1: wait# 12?15 no function assigned. fix to "0." 00 note 1: which function of the pin is used depends on how the bus mode control register is set. note 2: during single-chip mode, selecting the external bus interface signal function is prohibited. note: ? the value of this register can only be modified when the corresponding p15 operation mode register bit = "0" (set for p ort). then set the corresponging p15 operation mode register bit to "1." p15 operation mode register (p15mod) b bit name function r w 8 p150md 0: p150 r w port p150 operation mode bit 1: tin0/clkout/wr# (note 1) 9, 10 no function assigned. fix to "0." 00 11 p153md 0: p153 r w port p153 operation mode bit 1: tin3/wait# (note 2) 12?15 no function assigned. fix to "0." 00 note 1: which function of the pin is used depends on how the p15 peripheral function select register and bus mode control register are set. note 2: which function of the pin is used depends on how the p15 peripheral function select register is set. b8 9 1011121314b15 p150md p153md 00000000 17.2 external bus interface related registers b8 9 1011121314b15 p150smd p153smd 00000000
17 external bus interface 17-14 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 p22 peripheral function select register (p22smod) b bit name function r w 0 p220smd 0: ctx0 r w port p220 peripheral function select bit 1: hack# 1 p221smd 0: crx0 r w port p221 peripheral function select bit 1: hreq# 2, 3 no function assigned. fix to "0." 00 4 p224smd 0: a11 r w port p224 peripheral function select bit (note 1) 1: cs2# 5 p225smd 0: a12 r w port p225 peripheral function select bit (note 1) 1: cs3# 6, 7 no function assigned. fix to "0." 00 note 1: during single-chip mode, selecting the external bus interface signal function is prohibited. note: ? the value of this register can only be modified when the corresponding p22 operation mode register bit = "0" (set for p ort). then set the corresponging p22 operation mode register bit to "1." p22 operation mode register (p22mod) b bit name function r w 0 p220md 0: p220 r w port p220 operation mode bit 1: ctx0/hack# (note 1) 1 p221md 0: p221 r w port p221 operation mode bit 1: crx0/hreq# (note 1) 2, 3 no function assigned. fix to "0." 00 4 p224md 0: p224 r w port p224 operation mode bit (note 2) 1: a11/cs2# (note 1) 5 p225md 0: p225 r w port p225 operation mode bit (note 2) 1: a12/cs3# (note 1) 6, 7 no function assigned. fix to "0." 00 note 1: which function of the pin is used depends on how the p22 peripheral function select register is set. note 2: during processor mode, settings of this bit have no effect and the port functions as external bus interface signal pin (a11 /cs2# or a12/ cs3#). 17.2 external bus interface related registers b0123456b7 p220smd p221smd p224smd p225smd 00000000 b0123456b7 p220md p221md p224md p225md 00000000
17 external bus interface 17-15 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 17.2.2 bus mode control register bus mode control register (busmodc) 9 1011121314b15 b8 busmod 0 0 0 0 0 0 0 0 b bit name function r w 8?14 no function assigned. fix to "0." 00 15 busmod 0: wr signal separate mode r w bus mode control bit 1: byte enable separate mode this register is used to facilitate memory connections during processor mode and external extension mode. when the bus mode control bit (busmod) = "0," the wr# signal is output separately for each byte area. signals rd#, bhw#, blw#, clkout, wait# and bclk can be used. when the bus mode control bit (busmod) = "1," the byte enable signal is output separately for each byte area. signals rd#, bhe#, ble#, wr#, wait# and bclk can be used. in a wait control circuit configuration, because clkout output is not available, timing must be controlled by bclk or external to the chip. for memory connection in boot mode, the bus mode control register has no effect, and the microcomputer operates in the same way as when the bus mode control bit (busmod) is cleared to "0." figure 17.2.1 pin functions when external bus modes are changed cs0#?cs3# db0?db15 bclk rd# bhw# blw# a9?a30 cs0#?cs3# db0?db15 bclk rd# wr# bhe# ble# a9?a30 clkout busmod bit = 0 busmod bit = 1 17.2 external bus interface related registers
17 external bus interface 17-16 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 17.2 external bus interface related registers 17.2.3 clkout select register clkout select register (clkoutsel) 123456b7 b0 clkosel 00 c lk os el p 0 0 0 0 0 0 b bit name function r w 0?5 no function assigned. fix to"0." 00 6 clkoselp 0w clkosel write control bit 7 clkosel 0: bclk divided by 2 r w clkout select bit 1: bclk notes: ? at the timing for clkout changes from divided-by-2 bclk to straight bclk or vice versa, there will be some indefinite output. ? when bclk is selected as a clkout terminal output, regardless of cs0-cs3 is used or not, it is prohibition that selecting 0 wait in wait (the number selection of internal wait) bit of a csn area wait control register. (1) clkoselp (clkosel write control) bit (bit 6) this bit controls write to the clkout select bit. (2) clkout (clkosel) select bit (bit 7) this bit selects straight bclk or divided-by-2 bclk as outputting of clkout (external bus synchronous clock) pin. if the cpu clock is 160 mhz, bclk is 40 mhz. if clkosel is cleared to "0," clkout or the external bus reference clock is 20 mhz; if clkosel is set to "1," clkout is 40 mhz. the number of wait states set by the csn area wait control register, as well as csn wait, strobe wait, recovery cycles and idle cycles after read all are synchronized to clkout. however when "1" is selected in clkosel bit (bclk is selected as a clkout terminal output), regardless of cs0-cs3 is used or not, it is prohibition that selecting 0 wait in wait (the number selection of internal wait) bit of a csn area wait control register. the following describes how to set the clkosel (clkout select) bit 1. the program in the internal rom or the internal ram should be used to set the bits. 2. write "1" to the clkosel write control bit (clkoselp). 3. subsequent to 2 above, write "0" to the clkosel write control bit (clkoselp) and then "0" or "1" whichever desired to the clkout select bit (clkosel). 4. after writing to the above bits, access any sfr area for read twice.
17 external bus interface 17-17 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 17.2 external bus interface related registers figure 17.2.2 setting procedure of clkout select (clkosel) bit if a write cycle to any other area occurs during this interval, the value that was set in the clkosel bit is not reflected. (note 1) clkoselp "1" clkoselp "0" clkosel 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) clkoselp "1" write to other area (1) (2) because these two consecutive writes comprise a pair, the next set value is not reflected. clkoselp "1" clkoselp "1" clkoselp "0" clkosel set value clkoselp "0" clkosel set value 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 do not effect. note:  operate this setup on internal rom or in the program on internal ram.
17 external bus interface 17-18 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 17.2 external bus interface related registers 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 17.2.3 block diagram of the clock configuration the output pins for the peripheral clock bclk and the external bus clock bclkout are listed in table 17.2.1. a clkout and bclk select structure is shown in figure 17.2.4. table 17.2.1 output pins for clkout and bclk pin no. pin name function set value 78 p70/clkout/wr#/bclk p70 p70md=0 clkout p70md=1, p70smd=0, busmod=0 wr# p70md=1, p70smd=0, busmod=1 bclk p70md=1, p70smd=1 133 p150/tin0/clkout/wr# p150 p150md=0 tin0 p150md=1, p150smd=0 clkout p150md=1, p150smd=1, busmod=0 wr# p150md=1, p150smd=1, busmod=1 figure 17.2.4 a clkout and bclk select structure sel pin no. 133 output p150 p150md sel tin0 p150smd sel pin no. 78 output p70 p70md sel bclk p70smd sel clkout busmod wr# figure 17.2.3 shows the clock configuration of cpuclk, bclk and clkout.
17 external bus interface 17-19 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 17.3 read/write operations (1) when the bus mode control register = "0" external read/write operations are performed using the address bus, data bus and the signals cs0#?cs3#, rd#, bhw#, blw#, wait#, clkout and bclk. in the external read cycle, the rd# signal is "l" while bhw# and blw# both are "h," with data read in from only the necessary byte position. in the external write cycle, the bhw# or blw# signal output for the byte position to which to write is asserted "l" as data is written to the bus. when an external bus cycle starts, wait states are inserted as long as the wait# signal is "l," unless necessary, the wait# signal must always be held "h." if the wait function is unused, and p71md in the p7 operation mode register or p153md in the p15 operation mode register is cleared to ?0?, the pin can be used as port. figure 17.3.1 internal bus access during bus free state 17.3 read/write operations bus-free state internal bus access "h" clkout a9?a30 cs0#?cs3# bhw#, blw# db0?db15 wait# rd# "h" hi-z note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." note:  hi-z denotes a high-impedance state. (don't care) bus mode control register (note 1) busmod bit = 0 (wr signal separated)
17 external bus interface 17-20 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 17.3.2 read/write timing (for zero wait access) read write clkout a9?a30 cs0#?cs3# bhw#, blw# rd# "h" note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." note 2: for details about the cs area wait control register, see section 18.2.1, "cs area wait control registers." note:  when zero wait state is selected, assertion of wait# is not accepted. db0?db15 wait# read (1 cycle) (don't care) clkout a9?a30 cs0#?cs3# bhw#, blw# rd# "h" db0?db15 wait# write (1 cycle) (don't care) bus mode control register (note 1) busmod bit = 0 (wr signal separated) cs area wait control register (note 2) wait bit = 0000 (zero wait) cwait bit = 0 (without cs wait) swait bit = 0 (without strobe wait) recov bit = 0 (without recovery cycle) idle bit = 0 (without idle cycle) 17.3 read/write operations
17 external bus interface 17-21 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 17.3.3 read/write timing (for access with internal 2 and external 1 wait states) read write read (4 cycles) clkout a9?a30 cs0#?cs3# bhw#, blw# db0?db15 wait# rd# "h" note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." note 2: for details about the cs area wait control register, see section 18.2.1, "cs area wait control registers." note:  circles in the above diagram denote the sampling timing. "l" internal 2 wait states external 1 wait state (don't care) "h" (don't care) write (4 cycles) clkout a9?a30 cs0#?cs3# bhw#, blw# db0?db15 wait# rd# "h" "l" (don't care) "h" (don't care) bus mode control register (note 1) busmod bit = 0 (wr signal separated) cs area wait control register (note 2) wait bit = 0010 (2 wait) cwait bit = 0 (without cs wait) swait bit = 0 (without strobe wait) recov bit = 0 (without recovery cycle) idle bit = 0 (without idle cycle) internal 2 wait states external 1 wait state 17.3 read/write operations
17 external bus interface 17-22 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (2) when the bus mode control register is set to "1" external read/write operations are performed using the address bus, data bus and the signals cs0#?cs3#, rd#, bhe#, ble#, wait#, wr# and bclk. in the external read cycle, the rd# signal is "l" and the bhe# or ble# signal output for the byte position from which to read is asserted "l," with data read in from only the necessary byte position of the bus. in the external write cycle, the wr# signal goes "l" and the bhe# or ble# signal output for the byte position to which to write is asserted "l," with data written to the necessary byte position. when an external bus cycle starts, wait states are inserted as long as the wait# signal is "l." unless necessary, the wait# signal must always be held "h." figure 17.3.4 internal bus access during bus free state "h" wr# bus-free state internal bus access "h" clkout a9?a30 cs0#?cs3# bhe#, ble# db0?db15 wait# rd# "h" hi-z (don't care) note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." notes:  hi-z denotes a high-impedance state.  clkout is not output. bus mode control register (note 1) busmod bit = 1 (byte enable separated) 17.3 read/write operations
17 external bus interface 17-23 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 17.3.5 read/write timing (for zero wait access) read write clkout a9?a30 cs0#?cs3# bhe#, ble# db0?db15 wait# rd# "h" note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." note 2: for details about the cs area wait control register, see section 18.2.1, "cs area wait control registers." notes:  when zero wait state is selected, assertion of wait# is not accepted.  clkout is not output. read (1 cycle) wr# (don't care) clkout a9?a30 cs0#?cs3# bhe#, ble# db0?db15 wait# rd# "h" write (1 cycle) wr# (don't care) bus mode control register (note 1) busmod bit = 1 (byte enable separated) cs area wait control register (note 2) wait bit = 0000 (zero wait) cwait bit = 0 (without cs wait) swait bit = 0 (without strobe wait) recov bit = 0 (without recovery cycle) idle bit = 0 (without idle cycle) 17.3 read/write operations
17 external bus interface 17-24 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 17.3.6 read/write timing (for access with internal 2 and external 1 wait states) read write read (4 cycles) clkout a9?a30 cs0#?cs3# bhw#, blw# db0?db15 wait# rd# "h" note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." note 2: for details about the cs area wait control register, see section 18.2.1, "cs area wait control registers." notes:  circles in the above diagram denote the sampling timing.  clkout is not output. "h" internal 2 wait states external 1 wait state wr# "l" (don't care) write (4 cycles) clkout a9?a30 cs0#?cs3# bhw#, blw# db0?db15 wait# rd# "h" "h" wr# "l" (don't care) (don't care) (don't care) bus mode control register (note 1) busmod bit = 1 (byte enable separated) cs area wait control register (note 2) wait bit = 0010 (2 wait) cwait bit = 0 (without cs wait) swait bit = 0 (without strobe wait) recov bit = 0 (without recovery cycle) idle bit = 0 (without idle cycle) internal 2 wait states external 1 wait state 17.3 read/write operations
17 external bus interface 17-25 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 17.4 bus arbitration 17.4 bus arbitration (1) when the bus mode control register = "0" when the input signal on the hreq# pin is pulled "l" and the hold request is accepted, the microcomputer goes to a hold state and outputs a "l" from the hack# pin. during hold state, all bus related pins are placed in the high-impedance state, allowing data to be transferred on the system bus. to exit the hold state and return to normal operating state, release the hreq# signal back "h." figure 17.4.1 bus arbitration timing db0?db15 clkout bus cycle idle go to hold state hold state return next bus cycle hreq# hack# a9?a30 cs0#?cs3# rd# bhw#, blw# wait# hi-z (don't care) hi-z hi-z hi-z hi-z bus mode control register (note 1) busmod bit = 0 (wr signal separated) note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." notes:  circles in the above diagram denote the sampling timing.  hi-z denotes a high-impedance state.  idle cycles are inserted only when a hold state is entered immediately following an external read access. a recovery cycle is inserted in place of the idle cycle when setting recov=1 and idle=0 by the wait controller.  the number of cycles before a state transition to idle (recovery) of hold state occurs after input to the hreq# pin is pulled "l" differs depending on the status of the bus access being executed then.
17 external bus interface 17-26 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (2) when the bus mode control register = "1" when the input signal on the hreq# pin is pulled "l" and the hold request is accepted, the microcomputer goes to a hold state and outputs a "l" from the hack# pin. during hold state, all bus related pins are placed in the high-impedance state, allowing data to be transferred on the system bus. to exit the hold state and return to normal operating state, release the hreq# signal back "h." figure 17.4.2 bus arbitration timing db0?db15 clkout hreq# hack# a9?a30 cs0#?cs3# rd# bhe#, ble# wait# hi-z (don't care) hi-z hi-z hi-z hi-z hi-z wr# bus mode control register (note 1) busmod bit = 1 (byte enable separated) bus cycle idle go to hold state hold state return next bus cycle note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." notes:  circles in the above diagram denote the sampling timing.  hi-z denotes a high-impedance state.  idle cycles are inserted only when a hold state is entered immediately following an external read access. a recovery cycle is inserted in place of the idle cycle when setting recov=1 and idle=0 by the wait controller.  the number of cycles before a state transition to idle (recovery) of hold state occurs after input to the hreq# pin is pulled "l" differs depending on the status of the bus access being executed then. 17.4 bus arbitration
17 external bus interface 17-27 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 17.5 typical connection of external extension memory 17.5 typical connection of external extension memory (1) when the bus mode control register = "0" a typical memory connection when using external extension memory is shown in figure 17.5.1. (external extension memory can only be used in external extension mode and processor mode.) figure 17.5.1 typical connection of external extension memory (when busmod bit = "0") notes: ? address pin 0 is the msb, and pin 31 is the lsb. (pins 9-30 are output). ? data pin 0 is the msb, and pin 15 is the lsb. ? if external extension memory is connected to the system, the msb and the lsb sides (endian format) should be taken into consideration when connecting each pin. memory mapping internal rom area (1mb) external memory area (7mb) number of bus wait states can be set to 0-15 normally used as port. wait is used only when more than 15 wait states are needed. h'0000 0000 h'017f ffff h'0100 0000 h'000f ffff h'0010 0000 external memory area (8mb) 7m-cs0 area 8m-cs1 are sram flash memory d15 d0 rd# cs# max7mb a21 a0 d15 d0 rd# cs# uwr#(d15-d8) lwr#(d7-d0) max4mb x 2 (total 8mb) m32196f8 m32195f4 m32192f8 a9 a30 db0 db15 rd# cs0# cs1# blw# bhw# wait# cs2# cs3# h'007f ffff a21 a0
17 external bus interface 17-28 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 17.5 typical connection of external extension memory (2) when the bus mode control register = "1" a typical memory connection when using external extension memory is shown in figure 17.5.2. (external extension memory can only be used in external extension mode and processor mode.) figure 17.5.2 typical connection of external extension memory (when busmod bit = "1") notes: ? address pin 0 is the msb, and pin 31 is the lsb. (pins 9-30 are output). ? data pin 0 is the msb, and pin 15 is the lsb. ? if external extension memory is connected to the system, the msb and the lsb sides (endian format) should be taken into consideration when connecting each pin. sram a9 memory mapping internal rom area (1mb) a30 db0 db15 rd# cs0# cs1# cs2# cs3# ble# bhe# number of bus wait states can be set to 0-15 wait# normally used as port. wait is used only when more than 15 wait states are needed. h'0000 0000 h'017f ffff h'0100 0000 h'000f ffff h'0010 0000 external memory area (8mb) 7m-cs0 area 8m-cs1 area flash memory a21 a0 d15 d0 rd# cs# max7mb a21 a0 d15 d0 rd# cs# bhe#(d15-d8) ble#(d7-d0) max8mb wr# wr# external memory area (7mb) h'007f ffff m32196f8 m32195f4 m32192f8
17 external bus interface 17-29 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (3) when the bus mode control register = "1" using a combination of 8/16-bit data bus memories the diagram below shows a typical connection of external extension memory, with an 8-bit data bus memory located in the cs0 area, and a 16-bit data bus memory located in the cs1 area. (external exten- sion memory can only be used in external extension mode and processor mode.) 17.5 typical connection of external extension memory memory mapping internal rom area (1mb) external memory area (7mb) when cl = 50 pf, memory can be connected with only 2 ns of data delay. normally used as port. wait is used only when more than 15 wait states are needed. h'0000 0000 h'017f ffff h'0100 0000 h'000f ffff h'0010 0000 external memory area (8mb) 7m-cs0 area 8m-cs1 area sram 8-bit memory a21 a1 d7 d0 rd# cs# max7mb a21 a0 d15 d0 bhe#(d15-d8) cs# wr# rd# max8mb a9 a30 db0 db15 rd# cs0# cs1# cs2# cs3# bhe# wr# wait# qs32x2245 db7 db8 a b oe ble#(d7-d0) ble# a0 8-bit bus area 16-bit bus area note:  the qs32x2245 is a product made by the idt company. a b number of bus wait states can be set to 0-15 wr# h'007f ffff m32196f8 m32195f4 m32192f8 figure 17.5.3 typical connection of external extension memory (when busmod bit = "1" using a combina- tion of 8/16-bit memories) notes: ? address pin 0 is the msb, and pin 31 is the lsb. (pins 9-30 are output). ? data pin 0 is the msb, and pin 15 is the lsb. ? if external extension memory is connected to the system, the msb and the lsb sides (endian format) should be taken into consideration when connecting each pin.
17 external bus interface 17-30 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 17.6 example of bus voltage settings using vcc-bus 17.6 example of bus voltage settings using vcc-bus (1) when both port and memory are connected at 5 v ports and memory can be connected with external circuits via 5 v interfaces. vcce vdde vcc-bus bus connected at 5 v 5v 5v memory 5v vcc m32r/ecu port figure 17.6.1 when both port and memory are connected at 5 v (2) when ports and memory are connected at 3.3 v and 5 v, respectively ports and memory can be connected with external circuits via a 3.3 v interface directly as is and a 5 v interface, respectively. figure 17.6.2 when port and memory are connected at 3.3 v and 5 v, respectively vcce vdde vcc-bus port bus connected at 3.3 v 3.3v 5v 5v m32r/ecu memory 5v vcc
17 external bus interface 17-31 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 17.6.4 when both port and memory are connected at 3.3 v 17.6 example of bus voltage settings using vcc-bus (3) when ports and memory are connected at 5 v and 3.3 v, respectively ports and memory can be connected with external circuits via a 5 v interface directly as is and a 3.3 v interface, respectively. figure 17.6.3 when port and memory are connected at 5 v and 3.3 v, respectively (4) when both port and memory are connected at 3.3 v ports and memory can be connected with external circuits via 3.3 v interfaces. vcce vdde vcc-bus port bus connected at 5 v 5v 3.3v 3.3v m32r/ecu memory 3.3v vcc vcce vdde vcc-bus port bus connected at 3.3v 3.3v 3.3v m32r/ecu memory 3.3v vcc
17 external bus interface 17-32 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 this page is blank for reasons of layout. 17.6 example of bus voltage settings using vcc-bus
chapter 18 wait controller 18.1 outline of the wait controller 18.2 wait controller related registers 18.3 typical operation of the wait controller
wait controller 18 18-2 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 18.1 outline of the wait controller the wait controller controls the number of wait states inserted in bus cycles when accessing an external exten- sion area. the wait controller is outlined in the table below. table 18.1.1 outline of the wait controller item description target space control is applied to the following address spaces depending on operation mode: single-chip mode: no target space (settings of the wait controller have no effect) external extension mode : cs0 area (7 mbytes), cs1 area (8 mbytes), cs2 area (8 mbytes), cs3 area (8 mbytes) processor mode: cs0 area (8 mbytes), cs1 area (8 mbytes), cs2 area (8 mbytes), cs3 area (8 mbytes) number of wait states 0?15 wait states set by software + any number of wait states set from the wait# pin that can be inserted during external extension and processor modes, four chip select signals (cs0# to cs3#) are output, each corre- sponding to one of the four external extension areas referred to as cs0 through cs3. 18.1 outline of the wait controller h'0000 0000 h'0010 0000 h'000f ffff h'0100 0000 h'007f ffff h'0200 0000 h'017f ffff h'0300 0000 h'027f ffff h'037f ffff h'0080 0000 h'00ff ffff h'0180 0000 h'01ff ffff h'0280 0000 h'02ff ffff h'03ff ffff h'0380 0000 note 1: non-cs0 area note: ? ghost area should not be used intentionally during programing. internal rom area (note 1) cs0 area (7mb) cs1 area (8mb) cs2 area (8mb) cs3 area (8mb) cs0 area (8mb) cs1 area (8mb) cs2 area (8mb) cs3 area (8mb) non-cs0 area (internal rom access area) extended external area extended external area ghost area (8mb) ghost area (8mb) ghost area (8mb) ghost area (8mb) ghost area (8mb) ghost area (8mb) figure 18.1.1 cs0?cs3 area address map
wait controller 18 18-3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 18.1 outline of the wait controller when accessing the external extension area, the wait controller controls the number of wait states inserted in bus cycles based on the number of wait states set by software and the input signal entered from the wait# pin. the number of wait states that can be controlled in software is 0 to 15. when the input signal on the wait# pin is sampled "l" in the last cycle of internal wait state, the wait state is extended as long as the wait# input signal is held "l." then when the wait# input signal is released back "h." the wait state is terminated and the next new bus cycle is entered into. table 18.1.2 number of wait states that can be set by the wait controller external extension area address number of wait states inserted cs0 area h?0010 0000 to h?007f ffff zero to 15 wait states set by software (external extension mode) + any number of wait states entered from the wait# pin h?0000 0000 to h?007f ffff (however, software settings have priority.) (processor mode) cs1 area h?0100 0000 to h?017f ffff zero to 15 wait states set by software (external extension and + any number of wait states entered from the wait# pin (note 1) processor modes) (however, software settings have priority.) cs2 area h?0200 0000 to h?027f ffff zero to 15 wait states set by software (external extension and + any number of wait states entered from the wait# pin (note 2) processor modes) (however, software settings have priority.) cs3 area h?0300 0000 to h?037f ffff zero to 15 wait states set by software (external extension and + any number of wait states entered from the wait# pin (note 3) processor modes) (however, software settings have priority.) note 1: a ghost (8 mbytes) of the cs1 area will appear in the h'0180 0000 to h'01ff ffff area. note 2: a ghost (8 mbytes) of the cs2 area will appear in the h'0280 0000 to h'02ff ffff area. note 3: a ghost (8 mbytes) of the cs3 area will appear in the h'0380 0000 to h'03ff ffff area.
wait controller 18 18-4 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 18.2 wait controller related registers shown below is a wait controller related register map. wait controller related register map address +0 address +1 address see b0 b7 b8 b15 pages 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) h'0080 01a2 flash e/w wait select register (use inhibited area) 18-6 (fwait) 18.2.1 cs area wait control registers cs0 area wait control register (cs0wtcr) cs1 area wait control register (cs1wtcr) cs2 area wait control register (cs2wtcr) cs3 area wait control register (cs3wtcr) 123456 b7(b15) b0(b8) idlen 11111111 recovn swaitn cwaitn waitn b bit name function r w 0?3 wait 0000: 0 wait state (note 1) r w (8?11) internal wait states select bit 0001: 1 wait state | | 1111: 15 wait state 4 cwait 0: no cs wait r w (12) cs signal wait bit 1: cs wait added 5 swait 0: no strobe wait r w (13) strobe signal wait bit 1: strobe wait added 6 recov 0: no recovery cycle r w (14) recovery cycle addition bit 1: recovery cycle added 7 idle 0: no post-read idle cycle r w (15) post-read idle cycle addition bit 1: post-read idle cycle added note 1: when zero wait state is selected, wait states inserted by external wait# input are not accepted. also, when the clkout select register (clkoutsel) clkosel bit is set to "1" (i.e., bclk is selected as clkout output), selecting 0 wait sate is prohibited whether use cs0 to cs3 or not. 18.2 wait controller related registers |
wait controller 18 18-5 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 18.2 wait controller related registers the operation is not guaranteed if the settings listed in the table 18.2.1 are selected. table 18.2.1 list of prohibited settings clkosel wait cwait swait recov idle 0 0000 1 ? ? ? 0 0000 ? 1 ? ? 0 0000 ? ? 1 ? 0 0000 ? ? ? 1 0 0001 1 1 ? ? 1 0000 ? ? ? ? 1 0001 1 ? ? ? 1 0001 ? 1 ? ? note: ? " ? " = don't care if a read cycle is followed immediately by a write cycle, one idle cycle is inserted unless recov bit = 1 and idle bit = 0. table 18.2.2 shows the relationship between recov bit and idle bit settings and the number of idle cycles inserted after the bus cycle. table 18.2.2 recov bit and idle bit settings and the number of idle cycles inserted after bus cycle recov idle read (followed by write) read (followed by read) write 0 0 1 0 (note 1) 0 01 1 1 0 10 0 0 0 11 1 1 0 note 1: the number of cycles inserted when instruction fetch access occurs back-to-back, or operand access is performed successively by a word (32-bit) access. in other cases (if operand access is performed successively, instruction fetch access is followed by operand access or operand access is followed by instruction fetch access), a 1-cycle idle cycle is inserted. note: ? under each of the above conditions, no recovery cycle is inserted when recov bit = 0, and one recovery cycle is inserted when recov bit = 1.
wait controller 18 18-6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 18.2 wait controller related registers 18.2.2 flash e/w wait select register flash e/w wait select register (fwait) 123456b7 b0 fewwait 0 0 0 0 0 0 0 0 b bit name function r w 0?6 no function assigned. fix to "0." 00 7 fewwait 0: 9wait r 0 flash e/w internal wait states select bit 1: 4wait (1) fewwait (flash e/w internal wait states select) bit (bits 7) this bit selects the number of wait states to be inserted in internal cycles during flash e/w access. always be sure to set this bit to "0" before executing flash e/w operation.
wait controller 18 18-7 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 18.3.1 internal bus access during bus free state 18.3 typical operation of the wait controller the following shows a typical operation of the wait controller. the wait controller can control bus access in zero to 15 cycles. if more access cycles than that are needed, use the wait function in combination with the wait controller. (1) when the bus mode control register = 0 external read/write operations are performed using the address bus, data bus and the signals cs0#?cs3#, rd#, bhw#, blw#, wait#, clkout and bclk. 18.3 typical operation of the wait controller bus free state internal bus access "h" clkout a9?a30 cs0#?cs3# bhw#, blw# db0?db15 wait# rd# "h" hi-z note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." note:  hi-z denotes a high-impedance state. (don't care) bus mode control register (note 1) busmod bit = 0 (wr signal separated)
wait controller 18 18-8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 18.3.2 read/write timing (for zero wait access) read clkout a9?a30 cs0#?cs3# bhw#, blw# rd# "h" note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." note 2: for details about the cs area wait control register, see section 18.2.1, "cs area wait control registers." note:  when zero wait state is selected, wait states inserted by wait# are not accepted. db0?db15 wait# read (1 cycle) (don't care) clkout a9?a30 cs0#?cs3# bhw#, blw# rd# "h" db0?db15 wait# write (1 cycle) (don't care) write bus mode control register (note 1) busmod bit = 0 (wr signal separated) cs area wait control register (note 2) wait bit = 0000 (zero wait) cwait bit = 0 (without cs wait) swait bit = 0 (without strobe wait) recov bit = 0 (without recovery cycle) idle bit = 0 (without idle cycle) 18.3 typical operation of the wait controller
wait controller 18 18-9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 18.3.3 read/write timing (for access with internal 1 wait state) read read (2 cycles) clkout a9?a30 cs0#?cs3# bhw#, blw# db0?db15 wait# rd# "h" note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." note 2: for details about the cs area wait control register, see section 18.2.1, "cs area wait control registers." note:  circles in the above diagram indicate the sampling timing. internal 1 wait state (don't care) "h" (don't care) write write (2 cycles) clkout a9?a30 cs0#?cs3# bhw#, blw# db0?db15 wait# rd# "h" internal 1 wait state (don't care) "h" (don't care) bus mode control register (note 1) busmod bit = 0 (wr signal separated) cs area wait control register (note 2) wait bit = 0001 (1 wait) cwait bit = 0 (without cs wait) swait bit = 0 (without strobe wait) recov bit = 0 (without recovery cycle) idle bit = 0 (without idle cycle) 18.3 typical operation of the wait controller
wait controller 18 18-10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 18.3.4 read/write timing (for access with internal 7 wait states) read read (8 cycles) clkout a9?a30 cs0#?cs3# bhw#, blw# db0?db15 wait# rd# "h" note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." note 2: for details about the cs area wait control register, see section 18.2.1, "cs area wait control registers." note:  circles in the above diagram indicate the sampling timing. internal 7 wait states (don't care) "h" (don't care) write write (8 cycles) clkout a9?a30 cs0#?cs3# bhw#, blw# db0?db15 wait# rd# "h" internal 7 wait states (don't care) "h" (don't care) bus mode control register (note 1) busmod bit = 0 (wr signal separated) cs area wait control register (note 2) wait bit = 0111 (7 wait) cwait bit = 0 (without cs wait) swait bit = 0 (without strobe wait) recov bit = 0 (without recovery cycle) idle bit = 0 (without idle cycle) 18.3 typical operation of the wait controller
wait controller 18 18-11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 read write read (4 cycles) clkout a9?a30 cs0#?cs3# bhw#, blw# db0?db15 wait# rd# "h" note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." note 2: for details about the cs area wait control register, see section 18.2.1, "cs area wait control registers." note:  circles in the above diagram indicate the sampling timing. "l" internal 2 wait states external 1 wait state (don't care) "h" (don't care) write (4 cycles) clkout a9?a30 cs0#?cs3# bhw#, blw# db0?db15 wait# rd# "h" "l" internal 2 wait states external 1 wait state (don't care) "h" (don't care) bus mode control register (note 1) busmod bit = 0 (wr signal separated) cs area wait control register (note 2) wait bit = 0010 (2 wait) cwait bit = 0 (without cs wait) swait bit = 0 (without strobe wait) recov bit = 0 (without recovery cycle) idle bit = 0 (without idle cycle) figure 18.3.5 read/write timing (for access with internal 2 and external 1 wait states) 18.3 typical operation of the wait controller
wait controller 18 18-12 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 18.3.6 read/write timing (for access with internal 2 and external n wait states) read read (3 + n cycles) clkout a9?a30 cs0#?cs3# bhw#, blw# db0?db15 wait# rd# "h" note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." note 2: for details about the cs area wait control register, see section 18.2.1, "cs area wait control registers." note:  circles in the above diagram indicate the sampling timing. "l" internal 2 wait states external n wait states (don't care) "h" (don't care) write write (3 + n cycles) clkout a9?a30 cs0#?cs3# bhw#, blw# db0?db15 wait# rd# "h" "l" internal 2 wait states external n wait states (don't care) "h" (don't care) "l" "l" "l" "l" bus mode control register (note 1) busmod bit = 0 (wr signal separated) cs area wait control register (note 2) wait bit = 0010 (2 wait) cwait bit = 0 (without cs wait) swait bit = 0 (without strobe wait) recov bit = 0 (without recovery cycle) idle bit = 0 (without idle cycle) 18.3 typical operation of the wait controller
wait controller 18 18-13 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 18.3.7 read/write timing (for access with internal 2 wait state + cs wait) read read (3 cycles) clkout a9?a30 cs0#?cs3# bhw#, blw# db0?db15 wait# rd# "h" internal 2 wait state (don't care) "h" (don't care) write write (3 cycles) clkout a9?a30 cs0#?cs3# bhw#, blw# db0?db15 wait# rd# "h" internal 2 wait state bus mode control register (note 1) busmod bit = 0 (wr signal separated) cs area wait control register (note 2) wait bit = 0010 (2 wait) cwait bit = 1 (with cs wait) swait bit = 0 (without strobe wait) recov bit = 0 (without recovery cycle) idle bit = 0 (without idle cycle) "h" (don't care) (don't care) note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." note 2: for details about the cs area wait control register, see section 18.2.1, "cs area wait control registers." note:  circles in the above diagram indicate the sampling timing. 18.3 typical operation of the wait controller
wait controller 18 18-14 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 18.3.8 read/write timing (for access with internal 2 wait state + strobe wait) read read (3 cycles) clkout a9?a30 cs0#?cs3# bhw#, blw# db0?db15 wait# rd# "h" note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." note 2: for details about the cs area wait control register, see section 18.2.1, "cs area wait control registers." note:  circles in the above diagram indicate the sampling timing. internal 2 wait state (don't care) "h" (don't care) write write (3 cycles) clkout a9?a30 cs0#?cs3# bhw#, blw# db0?db15 wait# rd# "h" internal 2 wait state bus mode control register (note 1) busmod bit = 0 (wr signal separated) cs area wait control register (note 2) wait bit = 0010 (2 wait) cwait bit = 0 (without cs wait) swait bit = 1 (with strobe wait) recov bit = 0 (without recovery cycle) idle bit = 0 (without idle cycle) "h" (don't care) (don't care) 18.3 typical operation of the wait controller
wait controller 18 18-15 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 18.3.9 read/write timing (for access with internal 2 wait states + cs/strobe wait) read read (3 cycles) clkout a9?a30 cs0#?cs3# bhw#, blw# db0?db15 wait# rd# "h" note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." note 2: for details about the cs area wait control register, see section 18.2.1, "cs area wait control registers." note:  circles in the above diagram indicate the sampling timing. internal 2 wait states (don't care) "h" (don't care) write write (3 cycles) clkout a9?a30 cs0#?cs3# bhw#, blw# db0?db15 wait# rd# "h" internal 2 wait states bus mode control register (note 1) busmod bit = 0 (wr signal separated) cs area wait control register (note 2) wait bit = 0010 (2 wait) cwait bit = 1 (with cs wait) swait bit = 1 (with strobe wait) recov bit = 0 (without recovery cycle) idle bit = 0 (without idle cycle) "h" (don't care) (don't care) 18.3 typical operation of the wait controller
wait controller 18 18-16 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 18.3.10 read/write timing (internal 1 wait state + recovery cycle added) read read (3 cycles) clkout a9?a30 cs0#?cs3# bhw#, blw# db0?db15 wait# rd# "h" note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." note 2: for details about the cs area wait control register, see section 18.2.1, "cs area wait control registers." note:  circles in the above diagram indicate the sampling timing. internal 1 wait state recovery cycle (don't care) "h" (don't care) write write (3 cycles) clkout a9?a30 cs0#?cs3# bhw#, blw# db0?db15 wait# rd# "h" internal 1 wait state recovery cycle (don't care) "h" (don't care) bus mode control register (note 1) busmod bit = 0 (wr signal separated) cs area wait control register (note 2) wait bit = 0001 (1 wait) cwait bit = 0 (without cs wait) swait bit = 0 (without strobe wait) recov bit = 1 (with recovery cycle) idle bit = 0 (without idle cycle) 18.3 typical operation of the wait controller
wait controller 18 18-17 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 18.3.11 read/write timing (internal 1 wait state + idle cycle added) read read (3 cycles) clkout a9?a30 cs0#?cs3# bhw#, blw# db0?db15 wait# rd# "h" note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." note 2: for details about the cs area wait control register, see section 18.2.1, "cs area wait control registers." notes:  circles in the above diagram indicate the sampling timing.  no idle cycles are added after the write cycle. internal 1 wait state idle cycle (don't care) "h" (don't care) write write (2 cycles) clkout a9?a30 cs0#?cs3# bhw#, blw# db0?db15 wait# rd# "h" internal 1 wait state (don't care) "h" (don't care) bus mode control register (note 1) busmod bit = 0 (wr signal separated) cs area wait control register (note 2) wait bit = 0001 (1 wait) cwait bit = 0 (without cs wait) swait bit = 0 (without strobe wait) recov bit = 0 (without recovery cycle) idle bit = 1 (with idle cycle) 18.3 typical operation of the wait controller
wait controller 18 18-18 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 18.3.12 read/write timing (internal 1 wait state + recovery and idle cycles added) read read (4 cycles) clkout a9?a30 cs0#?cs3# bhw#, blw# db0?db15 wait# rd# "h" note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." note 2: for details about the cs area wait control register, see section 18.2.1, "cs area wait control registers." notes:  circles in the above diagram indicate the sampling timing.  no idle cycles are added after the write cycle. internal 1 wait state recovery cycle (don't care) "h" (don't care) write write (3 cycles) clkout a9?a30 cs0#?cs3# bhw#, blw# db0?db15 wait# rd# "h" internal 1 wait state (don't care) "h" (don't care) idle cycle recovery cycle bus mode control register (note 1) busmod bit = 0 (wr signal separated) cs area wait control register (note 2) wait bit = 0001 (1 wait) cwait bit = 0 (without cs wait) swait bit = 0 (without strobe wait) recov bit = 1 (with recovery cycle) idle bit = 1 (with idle cycle) 18.3 typical operation of the wait controller
wait controller 18 18-19 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (2) when the bus mode control register = 1 external read/write operations are performed using the address bus, data bus and the signals cs0#?cs3#, rd#, bhe#, ble#, wait#, wr# and bclk. figure 18.3.13 internal bus access during bus free state "h" wr# bus free state internal bus access "h" clkout a9?a30 cs0#?cs3# bhe#, ble# db0?db15 wait# rd# "h" hi-z (don't care) note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." notes:  hi-z denotes a high-impedance state.  clkout is not output. bus mode control register (note 1) busmod bit = 1 (byte enable separated) 18.3 typical operation of the wait controller
wait controller 18 18-20 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 18.3.14 read/write timing (for zero wait access) read read (1 cycle) clkout a9?a30 cs0#?cs3# wr# db0?db15 wait# rd# "h" note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." note 2: for details about the cs area wait control register, see section 18.2.1, "cs area wait control registers." notes:  circles in the above diagram indicate the sampling timing.  when zero wait state is selected, wait states inserted by wait# are not accepted.  clkout is not output. (don't care) bhe#, ble# write write (1 cycle) clkout a9?a30 cs0#?cs3# wr# db0?db15 wait# rd# "h" (don't care) bhe#, ble# bus mode control register (note 1) busmod bit = 1 (byte enable separated) cs area wait control register (note 2) wait bit = 0000 (zero wait) cwait bit = 0 (without cs wait) swait bit = 0 (without strobe wait) recov bit = 0 (without recovery cycle) idle bit = 0 (without idle cycle) 18.3 typical operation of the wait controller
wait controller 18 18-21 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 18.3.15 read/write timing (for access with internal 1 wait state) read read (2 cycles) clkout a9?a30 cs0#?cs3# wr# db0?db15 wait# rd# "h" note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." note 2: for details about the cs area wait control register, see section 18.2.1, "cs area wait control registers." notes:  circles in the above diagram indicate the sampling timing.  clkout is not output. (don't care) bhe#, ble# internal 1 wait state (don't care) write write (2 cycles) clkout a9?a30 cs0#?cs3# wr# db0?db15 wait# rd# "h" (don't care) bhe#, ble# internal 1 wait state (don't care) "h" "h" bus mode control register (note 1) busmod bit = 1 (byte enable separated) cs area wait control register (note 2) wait bit = 0001 (1 wait) cwait bit = 0 (without cs wait) swait bit = 0 (without strobe wait) recov bit = 0 (without recovery cycle) idle bit = 0 (without idle cycle) 18.3 typical operation of the wait controller
wait controller 18 18-22 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 18.3.16 read/write timing (for access with internal 7 wait states) read read (8 cycles) clkout a9?a30 cs0#?cs3# bhe#, ble# db0?db15 wait# rd# "h" note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." note 2: for details about the cs area wait control register, see section 18.2.1, "cs area wait control registers." notes:  circles in the above diagram indicate the sampling timing.  clkout is not output. internal 7 wait states (don't care) "h" (don't care) wr# write write (8 cycles) clkout a9?a30 cs0#?cs3# bhe#, ble# db0?db15 wait# rd# "h" internal 7 wait states (don't care) "h" (don't care) wr# bus mode control register (note 1) busmod bit = 1 (byte enable separated) cs area wait control register (note 2) wait bit = 0111 (7 wait) cwait bit = 0 (without cs wait) swait bit = 0 (without strobe wait) recov bit = 0 (without recovery cycle) idle bit = 0 (without idle cycle) 18.3 typical operation of the wait controller
wait controller 18 18-23 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 18.3.17 read/write timing (for access with internal 2 and external 1 wait states) read read (4 cycles) clkout a9?a30 cs0#?cs3# wr# db0?db15 wait# rd# "h" note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." note 2: for details about the cs area wait control register, see section 18.2.1, "cs area wait control registers." notes:  circles in the above diagram indicate the sampling timing.  clkout is not output. (don't care) bhe#, ble# internal 2 wait states (don't care) "h" external 1 wait state "l" write write (4 cycles) clkout a9?a30 cs0#?cs3# wr# db0?db15 wait# rd# "h" (don't care) bhe#, ble# internal 2 wait states (don't care) "h" external 1 wait state "l" bus mode control register (note 1) busmod bit = 1 (byte enable separated) cs area wait control register (note 2) wait bit = 0010 (2 wait) cwait bit = 0 (without cs wait) swait bit = 0 (without strobe wait) recov bit = 0 (without recovery cycle) idle bit = 0 (without idle cycle) 18.3 typical operation of the wait controller
wait controller 18 18-24 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 18.3.18 read/write timing (for access with internal 2 and external n wait states) read read (3 + n cycles) clkout a9?a30 cs0#?cs3# bhe#, ble# db0?db15 wait# rd# "h" note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." note 2: for details about the cs area wait control register, see section 18.2.1, "cs area wait control registers." notes:  circles in the above diagram indicate the sampling timing.  clkout is not output. "l" internal 2 wait states external n wait states (don't care) "h" (don't care) write write (3 + n cycles) clkout a9?a30 cs0#?cs3# bhe#, ble# db0?db15 wait# rd# "h" "l" internal 2 wait states external n wait states (don't care) "h" (don't care) "l" "l" "l" "l" wr# wr# bus mode control register (note 1) busmod bit = 1 (byte enable separated) cs area wait control register (note 2) wait bit = 0010 (2 wait) cwait bit = 0 (without cs wait) swait bit = 0 (without strobe wait) recov bit = 0 (without recovery cycle) idle bit = 0 (without idle cycle) 18.3 typical operation of the wait controller
wait controller 18 18-25 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 18.3.19 read/write timing (for access with internal 2 wait state + cs wait) read read (3 cycles) clkout a9?a30 cs0#?cs3# wr# db0?db15 wait# rd# "h" note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." note 2: for details about the cs area wait control register, see section 18.2.1, "cs area wait control registers." notes:  circles in the above diagram indicate the sampling timing.  clkout is not output. internal 2 wait state (don't care) "h" (don't care) write write (3 cycles) clkout a9?a30 cs0#?cs3# wr# db0?db15 wait# rd# "h" internal 2 wait state bus mode control register (note 1) busmod bit = 1 (byte enable separated) cs area wait control register (note 2) wait bit = 0010 (2 wait) cwait bit = 1 (with cs wait) swait bit = 0 (without strobe wait) recov bit = 0 (without recovery cycle) idle bit = 0 (without idle cycle) "h" (don't care) (don't care) bhe#, ble# bhe#, ble# 18.3 typical operation of the wait controller
wait controller 18 18-26 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 18.3.20 read/write timing (for access with internal 2 wait state + strobe wait) read read (3 cycles) clkout a9?a30 cs0#?cs3# wr# db0?db15 wait# rd# "h" note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." note 2: for details about the cs area wait control register, see section 18.2.1, "cs area wait control registers." notes:  circles in the above diagram indicate the sampling timing.  clkout is not output. internal 2 wait state (don't care) "h" (don't care) write write (3 cycles) clkout a9?a30 bhe#, ble# wr# db0?db15 wait# rd# "h" internal 2 wait state bus mode control register (note 1) busmod bit = 1 (byte enable separated) cs area wait control register (note 2) wait bit = 0010 (2 wait) cwait bit = 0 (without cs wait) swait bit = 1 (with strobe wait) recov bit = 0 (without recovery cycle) idle bit = 0 (without idle cycle) "h" (don't care) (don't care) bhe#, ble# cs0#?cs3# 18.3 typical operation of the wait controller
wait controller 18 18-27 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 18.3.21 read/write timing (for access with internal 2 wait states + cs/strobe wait) read read (3 cycles) clkout a9?a30 cs0#?cs3# wr# db0?db15 wait# rd# "h" note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." note 2: for details about the cs area wait control register, see section 18.2.1, "cs area wait control registers." notes:  circles in the above diagram indicate the sampling timing.  clkout is not output. (don't care) bhe#, ble# internal 2 wait state (don't care) "h" write write (3 cycles) clkout a9?a30 cs0#?cs3# wr# db0?db15 wait# rd# "h" bhe#, ble# internal 2 wait state bus mode control register (note 1) busmod bit = 1 (byte enable separated) cs area wait control register (note 2) wait bit = 0010 (2 wait) cwait bit = 1 (with cs wait) swait bit = 1 (with strobe wait) recov bit = 0 (without recovery cycle) idle bit = 0 (without idle cycle) (don't care) (don't care) "h" 18.3 typical operation of the wait controller
wait controller 18 18-28 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 18.3.22 read/write timing (internal 1 wait state + recovery cycle added) read read (3 cycles) clkout a9?a30 cs0#?cs3# wr# db0?db15 wait# rd# "h" note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." note 2: for details about the cs area wait control register, see section 18.2.1, "cs area wait control registers." notes:  circles in the above diagram indicate the sampling timing.  clkout is not output. (don't care) bhe#, ble# internal 1 wait state (don't care) "h" recovery cycle write write (3 cycles) clkout a9?a30 cs0#?cs3# wr# db0?db15 wait# rd# "h" (don't care) bhe#, ble# internal 1 wait state (don't care) "h" recovery cycle bus mode control register (note 1) busmod bit = 1 (byte enable separated) cs area wait control register (note 2) wait bit = 0001 (1 wait) cwait bit = 0 (without cs wait) swait bit = 0 (without strobe wait) recov bit = 1 (with recovery cycle) idle bit = 0 (without idle cycle) 18.3 typical operation of the wait controller
wait controller 18 18-29 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 18.3.23 read/write timing (internal 1 wait state + idle cycle added) read read (3 cycles) clkout a9?a30 cs0#?cs3# wr# db0?db15 wait# rd# "h" note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." note 2: for details about the cs area wait control register, see section 18.2.1, "cs area wait control registers. " notes:  circles in the above diagram indicate the sampling timing.  clkout is not output.  no idle cycles are added after the write cycle. (don't care) bhe#, ble# internal 1 wait state (don't care) "h" idle cycle write write (2 cycles) clkout a9?a30 cs0#?cs3# wr# db0?db15 wait# rd# "h" (don't care) bhe#, ble# internal 1 wait state (don't care) "h" bus mode control register (note 1) busmod bit = 1 (byte enable separated) cs area wait control register (note 2) wait bit = 0001 (1 wait) cwait bit = 0 (without cs wait) swait bit = 0 (without strobe wait) recov bit = 0 (without recovery cycle) idle bit = 1 (with idle cycle) 18.3 typical operation of the wait controller
wait controller 18 18-30 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 18.3.24 read/write timing (internal 1 wait state + recovery and idle cycles added) read read (4 cycles) clkout a9?a30 cs0#?cs3# wr# db0?db15 wait# rd# "h" note 1: for details about the bus mode control register, see section 17.2.2, "bus mode control register." note 2: for details about the cs area wait control register, see section 18.2.1, "cs area wait control registers." notes:  circles in the above diagram indicate the sampling timing.  clkout is not output.  no idle cycles are added after the write cycle. (don't care) bhe#, ble# internal 1 wait state (don't care) "h" recovery cycle write write (3 cycles) clkout a9?a30 cs0#?cs3# wr# db0?db15 wait# rd# "h" (don't care) bhe#, ble# internal 1 wait state (don't care) "h" recovery cycle idle cycle bus mode control register (note 1) busmod bit = 1 (byte enable separated) cs area wait control register (note 2) wait bit = 0001 (1 wait) cwait bit = 0 (without cs wait) swait bit = 0 (without strobe wait) recov bit = 1 (with recovery cycle) idle bit = 1 (with idle cycle) 18.3 typical operation of the wait controller
chapter 19 ram backup mode 19.1 outline of ram backup mode 19.2 example of ram backup when power is off 19.3 example of ram backup for saving power consumption 19.4 exiting ram backup mode (wakeup)
19 ram backup mode 19-2 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 19.1 outline of ram backup mode 19.1 outline of ram backup mode in ram backup mode, parts of the internal ram are retained while the power is turned off. ram backup mode is used for the following two purposes. ram backup area for the 32192 is from h'0080 4000 to h'0081 3fff (64kb). ram backup area for the 32195/32196 is from h'0080 4000 to h'0080 7fff (16kb). ? backup parts of the internal ram data when the power is forcibly turned off from the outside (ram backup when the power is off) ? for the m32r/ecu to turn off the power to the cpu at any time as needed to reduce the system?s power con- sumption while retaining parts of the internal ram data . (ram backup for saving the power consumption) the m32r/ecu is placed in ram backup mode by applying a voltage of 3.3 v or 5.0 v to the vdde pin (provided for ram backup) and 0 v to all other pins. however, when started by boot mode, internal ram value is indefinite after started by boot mode in order to "flash writing/ erase program" is transferred to internal ram. during ram backup mode, parts of the contents of the internal ram are retained, while the cpu and internal peripheral i/o remain idle. because all pins except vdde are held "l" during ram backup mode, the power consumption in the system can effectively be reduced. h'0080 4000 h'0081 3fff h'0081 4000 h'0082 ffff ram backup area ( 64kb) 32192 internal ram (176kb) h'0080 4000 h'0080 7fff h'0080 8000 h'0080 bfff ram backup area (16kb) 32195 internal ram (32kb) non-ram backup area h'0080 4000 h'0080 7fff h'0080 8000 h'0081 3fff ram backup area ( 16kb) 32196 internal ram (64kb) non-ram backup area non-ram backup area figure 19.1.1 ram backup area
19 ram backup mode 19-3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 19.2.1 normal operating state figure 19.2.2 shows the normal operating state of the m32r/ecu. during normal operation, input on the sbi# pin or ad0ini (i = 0?15) pin which is used to detect a ram backup signal remains "h." figure 19.2.2 normal operating state backup power supply for power outage reference voltage for power outage detection power outage detection signal "h" 3.3v or 5v vref0 sbi# ad0ini m32r/ecu c vcc vdd vbb vref dc in (5v or 3.3v) vdde avcc0 out vcce, vccer excvcc excvdd vcc- bus 3.3v or 5v (note 2) note 1: power outage is detected by the dc in (regulator input) voltage. note 2: these pins are used to detect a ram backup signal. note 3: this pin outputs a "h" when the power is on and outputs a "l" when the power is down. regulator (note 3) input output (note 1) backup battery power supply monitor ic 19.2 example of ram backup when power is off figure 19.2.1 typical circuit for ram backup at power outage vref0 sbi# ad0ini m32r/ecu (note 2) c backup battery vcc vdd vbb vref reference voltage for power outage detection power outage detection signal backup power supply for power outage output power supply monitor ic note 1: power outage is detected by the dc in (regulator input) voltage. note 2: these pins are used to detect a ram backup signal. note 3: this pin outputs a "h" when the power is on and outputs a "l" when the power is off. dc in input regulator (5v or 3.3v) vdde a vcc0 out vcce, vccer excvcc excvdd vcc- bus (note 3) (note 1) 19.2 example of ram backup when power is off a typical circuit for ram backup at power outage is shown in figure 19.2.1. the following explains how the ram can be backed up by using this circuit as an example.
19 ram backup mode 19-4 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (a) (b) (c) "l" 0v vref0 sbi# ad0ini m32r/ecu c vcc vdd vbb vref dc in (5v or 3.3v) vdde avcc0 out vcce, vccer excvcc excvdd vcc- bus (note 2) backup battery reference voltage for power outage detection power outage detection signal backup power supply for power outage power supply monitor ic note 1: power outage is detected by the dc in (regulator input) voltage. note 2: these pins are used to detect a ram backup signal. note 3: this pin outputs a "h" when the power is on and outputs a "l" when the power is off . note 4: determined by the input level on sbi# pin or ad0ini pin. note 5: the time needed for processing in (b) is secured by adjusting the capacitance. input output regulator (note 3) (note 1) (note 5) 3.3v or 5.0v example of ram backup processing power goes off (note 4) create data for backup ram check ram backup mode 19.2 example of ram backup when power is off 19.2.2 ram backup state figure 19.2.3 shows the power outage ram backup state of the m32r/ecu. when the power supply goes off, the power supply monitor ic starts feeding current from the backup battery to the m32r/ecu. also, the power supply monitor ic?s power outage detection pin outputs a "l," causing the sbi# pin or ad0ini pin to go "l," which generates a ram backup signal ((a) in figure 19.2.3). determination of whether the power is off must be made with respect to the dc in (regulator input) voltage in order to allow for a software processing time at power outage. to enable ram backup mode, make the following setting: (1) create data for ram check to verify whether the ram data has been retained normally after returning from ram backup mode to normal mode ((b) in figure 19.2.3). if the power supply to vcce goes off after making above setting, the vdde pin voltage goes to 3.0?3.3 v and all other pin voltages drop to 0 v, and the m32r/ecu is thereby placed in ram backup mode ((c) in figure 19.2.3). figure 19.2.3 power outage ram backup state
19 ram backup mode 19-5 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 portn ib dc in output output vref0 sbi# ad0ini m32r/ecu vdde avcc0 vcce, vccer excvcc excvdd vcc- bus (5v or 3.3v) (5v or 3.3v) ram backup signal external circuit (note 1) (note 3) ram backup power supply regulator input regulator (note 2) note 1: this circuit outputs a "l" during ram backup. note 2: this port outputs a "h" when the power is on, and is set for input mode when in ram backup mode. note 3: these pins are used to detect a ram backup signal. figure 19.3.1 typical ram backup circuit for saving power consumption 19.3 example of ram backup for saving power consumption a typical ram backup circuit for saving the microcomputer?s power consumption is shown in figure 19.3.1. the following explains how the ram is backed up for the purpose of low-power operation by using this circuit as an example. 19.3 example of ram backup for saving power consumption
19 ram backup mode 19-6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 19.3.1 normal operating state figure 19.3.2 shows the normal operating state of the m32r/ecu. during normal operation, the ram backup signal output by the external circuit is "h." also, input on the sbi# pin or ad0ini (i = 0?15) pin which is used to detect a ram backup signal remains "h." portn, which connects to the transistor?s base, should output a "h." this causes the transistor?s base voltage, ib, to go "h" so that current is fed from the power supply to the vcce pin via the transistor. figure 19.3.2 normal operating state "h" "h" "h" ib dc in vref0 sbi# ad0ini m32r/ecu vdde avcc0 vcce, vccer excvcc excvdd vcc- bus 3.3v or 5v (5v or 3.3v) (5v or 3.3v) 3.3v or 5v ram backup signal (note 1) external circuit portn (note 3) ram backup power supply regulator input output regulator (note 2) output note 1: this circuit outputs a "l" during ram backup. note 2: this port outputs a "h" when the power is on, and is set for input mode when in ram backup mode (one of the port pins selected). note 3: these pins are used to detect a ram backup signal. 19.3 example of ram backup for saving power consumption
19 ram backup mode 19-7 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 19.3 example of ram backup for saving power consumption 19.3.2 ram backup state figure 19.3.3 shows the ram backup state of the m32r/ecu. figure 19.3.4 shows a ram backup sequence. when the external circuit outputs a "l," input on the sbi# or ad0ini pin is pulled "l." an "l" on these input pins generates a ram backup signal (a and (a) in figure 19.3.3). to enable ram backup mode, make the following settings: (1) create data for ram check to verify after returning from ram backup mode to normal mode whether the ram data has been retained normally ((b) in figure 19.3.3). (2) to materialize low-power operation, set all programmable input/output pins except portn for input mode (or for output mode, with the output level fixed "l") ((c) in figure 19.3.3). (3) set portn for input mode (b and (d) in figure 19.3.3). this causes the transistor?s base voltage, ib, to go "l," so that the power to all power supply pins except vdde is shut off (c and d in figure 19.3.3). by settings in (1) to (3), the vdde pin voltage goes to 3.0?5.5 v and all other pin voltages drop to 0 v, and the m32r/ecu is thereby placed in ram backup mode ((d) in figure 19.3.3). figure 19.3.3 ram backup state for low power operation "l" b c (a) (b) (c) (d) "l" "l" "l" "l" ib 0v a d dc in vref0 sbi# ad0ini m32r/ecu vdde avcc0 vcce, vccer excvcc excvdd vcc- bus 3.3v or 5v (5v or 3.3v) (5v or 3.3v) example of ram backup processing ram backup signal external circuit portn (note 1) (note 3) ram backup power supply regulator input output regulator (note 2) output note 1: this circuit outputs a "l" during ram backup. note 2: this port outputs a "h" when the power is on, and is set for input mode when in ram backup mode (one of the port pins selected). note 3: these pins are used to detect a ram backup signal. note 4: determined by the input level on sbi# pin or ad0ini pin. note 5: base voltage ib = 0 causes the power to all power supply pins except vdde to stop. see a to d in the above explanation. generate a ram backup signal (note 4) create data for backup ram check set the pin connecting to the transistor's base (portn) for input mode (note 5) ram backup mode
19 ram backup mode 19-8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 19.3 example of ram backup for saving power consumption reset# sbi# ad0ini vdde f(xin) vcce, vccer, vcc-bus, vref0, avcc0 0v oscillation stabilization time external input signal goes "l" ram backup period power on port output setting ("h" level) portn port input mode 5.0v or 3.3v port output setting ("h" level) oscillation stabilization time external input signal goes "h" figure 19.3.4 example of a ram backup sequence for low power operation 19.3.3 precautions to be observed at power-on when changing portn from input mode to output mode after power-on, pay attention to the following. if port n is set for output mode while no data is set in the portn data register, the port?s initial output level is instable. therefore, before changing portn for output mode, make sure the portn data register is set to output a "h." unless this precaution is followed, port output may go "l" at the same time the port is set for output after the oscillation has stabilized, causing the microcomputer to enter ram backup mode. 19.3.4 power-on limitation when powering on, make sure to meet the limitation vdde vccer. if vdde is 3.0 v or more, there will be no problem even when the limitation vdde vccer cannot be met. when the above power-on limitation cannot be met, sufficient evaluation must be made during system design in order to ensure that no power will be applied to the microcomputer with a potential difference of 1 v or more. for potential differences 0 v to 0.6 v, there is almost no in-flow current. the amount of in-flow current begins to increase when the potential difference exceeds 0.6 v.
19 ram backup mode 19-9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 19.4 exiting ram backup mode (wakeup) 19.4 exiting ram backup mode (wakeup) the processing to place the m32r/ecu out of ram backup mode and return it to normal operation mode is referred to as ?wakeup? processing. figure 19.4.1 shows an example of wakeup processing. wakeup processing is initiated by applying a reset. the following shows how to execute wakeup processing. (1) reset the microcomputer ((a) in figure 19.4.1). (2) set portn for output mode and output a "h" from the port ((b) in figure 19.4.1) (note 1) (3) compare the ram content against the ram check data created before entering ram backup mode ((c) in figure 19.4.1). (4) if the comparison in (3) did not match, initialize the ram ((d) in figure 19.4.1). if the comparison in (3) matched, use the retained data in the program. (5) initialize each internal circuit ((e) in figure 19.4.1) before returning to the main routine ((f) in figure 19.4.1). note 1: for wakeup from power outage ram backup mode, portn settings are unnecessary. figure 19.4.1 wakeup processing ok error compare ram content against backup ram check data initialize the ram example of wakeup processing reset set the transistor's base connecting pin (portn) for "h" level output mode (note 1) initialize each circuit to the main routine (a) (b) (c) (d) (e) (f) note 1: for wakeu p from p ower outa g e ram backu p mode, p ortn settin g s are unnecessar y .
19 ram backup mode 19-10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 this page is blank for reasons of layout. 19.4 exiting ram backup mode (wakeup)
chapter 20 oscillator circuit 20.1 oscillator circuit 20.2 clock generator circuit
20 oscillator circuit 20-2 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 20.1 oscillator circuit the m32r/ecu contains an oscillator circuit that supplies operating clocks for the m32r-fpu core, internal peripheral i/o and internal memory. the frequency supplied to the clock input pin (xin) is multiplied by 8 by an internal pll circuit to produce the cpu clock, which is the operating clock for the m32r-fpu core and internal memory. the frequency of this clock is divided by 4 in the subsequent circuit to produce the peripheral clock, which is the operating clock for the internal peripheral i/o and external data bus. 20.1.1 example of an oscillator circuit an oscillator circuit can be configured by connecting a ceramic (or crystal) resonator between the xin and xout pins external to the chip. figure 20.1.1 shows an example of a system clock generating circuit using a resonator connected external to the chip. for the constants rf, cin, cout and rd, the resonator manufacturer should be consulted to determine the appropriate values. to use an externally sourced clock signal without using an internal oscillator circuit, connect the external clock signal to the xin pin and leave the xout pin open. 20.1 oscillator circuit figure 20.1.1 example of an oscillator circuit m32r/ecu vcce xin xout vss rf rd cin cout bclk c 1/4 1/2 clkout sel oscillator circuit to the peripheral clock pll circuit oscillator module to the cpu clock xin oscillation stoppage detection circuit
20 oscillator circuit 20-3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 20.1 oscillator circuit 20.1.2 xin oscillation stoppage detection circuit the m32r/ecu contains a detection circuit to find whether oscillation input to the pll circuit has stopped. the pll circuit oscillates with the frequency of its normal mode of vibration in the absence of the reference oscillation input. the xin oscillation input is sampled at the peripheral clock and when the xin oscillation is found to be at the same level, the xstat bit is set. because the cpu continues operating with the pll circuit?s natural fre- quency even when the xin oscillation has stopped, error handling for the stoppage of xin oscillation can be accomplished by inspecting xstat bit in software. for details about the value of xin oscillation stoppage detection,see chapter 23, "electrical characteristics." figure 20.1.2 block diagram of the xin oscillation stoppage detection circuit port input special function control register (picnt) 9 1011121314b15 b8 pien0 pisel x s ta t 0 00 0 0 0 0 0 b bit name function r w 8?10 no function assigned. fix to "0." 0 0 11 xstat 0: xin oscillating r (note1) xin oscillation status bit 1: xin inactive 12, 13 no function assigned. fix to "0." 0 0 14 pisel 0: content of port output latch r w port input data select bit 1: port pin level 15 pien0 0: disable input r w port input enable bit 1: enable input note 1: only writing "0" is effective. writing "1" has no effect; the bit retains the value it had before the write. for details about the function of the port input data select bit (pisel) and port input enable bit (pien0), see chapter 8, "input/output ports and pin functions.? counter xstat flag xin oscillation stoppage detection circuit xin clock reset xout oscillator circuit pll circuit edge detection 1/4
20 oscillator circuit 20-4 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 20.1 oscillator circuit (1) xstat (xin oscillation status) bit ? conditions under which xstat bit is set to "1" xstat bit is set to "1" upon detecting that xin oscillation has stopped. when xin remains at the same level on the basis of threshold value for xin oscillation stoppage detection (3 bclk periods up to 4 bclk periods), xin oscillation is assumed to have stopped. when operating normally, xin changes state ("h" or "l") once every bclk period. ? conditions under which xstat bit is cleared to "0" xstat bit is cleared to "0" by a system reset or by writing "0." if xstat bit is cleared at the same time it is set in 1) above, the former has priority so that xstat bit is cleared. writing "1" to xstat bit is ignored. ? method for using xstat bit to detect xin oscillation stoppage because internally contains a pll, the internal clock remains active even when xin oscillation has stopped. by reading xstat bit without clearing it after exiting the reset state, it is possible to know whether xin has ever stopped since the reset signal was deasserted. similarly, by reading xstat bit after clearing it by writing 0, it is possible to know the current oscillating status of xin. (however, there must be an interval of at least 5 bclk periods (20 cpu clock periods) between read and write.) about possess when xsat bit is set "1," clear xstat bit once (etc) pay extra attention before use. figure 20.1.3 procedure for setting xstat bit 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 bi t note: ? about possess when xstat is set "1," clear xstat bit once and pay extra attention before use.
20 oscillator circuit 20-5 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 20.1 oscillator circuit 20.1.3 oscillation drive capability select function the microcomputer incorporates a four-stage drive capability select function. once the oscillation of the oscillator circuit has stabilized, the xin-xout drive capability can be lowered. the lower the drive capability, the smaller the amount of power consumption. clock control register (clkcr) 123456b7 b0 xdrvp xdrv 011 0 0 0 0 0 b bit name function r w 0?4 no function assigned. fix to "0." 00 5 xdrvp 0w xdrv write control bit 6, 7 xdrv xin-xout drive capability (performance ratio) r w xin-xout drive capability select bit 00: low 0.25 01: 0.50 10: 0.75 11: high 1.00 (1) xdrvp (xdrv write control) bit (bit 5) this bit controls writing to the xin-xout drive capability select bits. (2) xdrv (xin-xout drive capability select) bits (bits 6, 7) the following shows the procedure for writing to these bits. 1. set the write control bit (xdrvp) to "1." 2. immediately following the above, reset the write control bit (xdrvp) to "0" and write the appropriate value to the xin-xout drive capability select bits. notes: ? if theare are writing cycles from cpu, dma, sdi (tool), nbd to any other area between 1 and 2, the continuous setting ( a pair of two consecutive is 1 set for writing operation) is disabled and the writing value is not reflected. therefore, disable interrupts and dma transfers before setting. however the writing cycle from rtd and dri are not effected. ? when you input external clocks other than resonator or oscillator, make xout pin open and xin-xout drive capability high(maximum) is selected in xdrv bit.
20 oscillator circuit 20-6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 if a write cycle to other area exists in this interval, settings of xdrv bits are not reflected. (note 1) xdrvp "1" xdrvp "0" xdrv set value  example of correct setting  settings that do not have effect because a write cycle to other area exists, the set value is not reflected. (note 1) xdrvp "1" write to other area (1) (2) because these two consecutive writes comprise a pair, the next set value is not reflected. xdrvp "1" xdrvp "1" xdrvp "0" xdrv set value xdrvp "0" xdrv set value 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 do not effect. figure 20.1.4 procedure for setting the oscillation drive capability 20.1 oscillator circuit
20 oscillator circuit 20-7 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 20.1.4 system clock output function a clock twice the frequency of the input clock, i.e., a peripheral clock, can be output from the bclk pin. this peripheral clock, either directly or after being divided by 2, can be output as an external bus clock from the clkout pin. this bclk pin is shared with port p70. the clkout pin is shared with port p70 or port p150. the output pins for the peripheral clock bclk and the external bus clock clkout are listed in table 20.1.1. a clkout and bclk select structure is shown in figure 20.1.5. table 20.1.1 output pins for clkout and bclk pin no. pin name function set value 78 p70/clkout/wr#/bclk p70 p70md=0 clkout p70md=1, p70smd=0, busmod=0 wr# p70md=1, p70smd=0, busmod=1 bclk p70md=1, p70smd=1 133 p150/tin0/clkout/wr# p150 p150md=0 tin0 p150md=1, p150smd=0 clkout p150md=1, p150smd=1, busmod=0 wr# p150md=1, p150smd=1, busmod=1 20.1 oscillator circuit figure 20.1.5 a clkout and bclk select structure sel pin no. 133 output p150 p150md sel tin0 p150smd sel pin no. 78 output p70 p70md sel bclk p70smd sel clkout busmod wr#
20 oscillator circuit 20-8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 the external bus clock can be selected from bclk and bclk divided by two by using clkout select register. clkout select register (clkoutsel) 123456b7 b0 clkosel 00 c lk os el p 0 0 0 0 0 0 b bit name function r w 0?5 no function assigned. fix to"0." 00 6 clkoselp 0w clkosel write control bit 7 clkosel 0: bclk divided by 2 r w clkout select bit 1: bclk notes: ? at the timing for clkout changes from divided-by-2 bclk to straight bclk or vice versa, there will be some indefinite output. ? when bclk is selected as a clkout terminal output, regardless of cs0-cs3 is used or not, it is prohibition that selecting 0 wait in wait (the number selection of internal wait) bit of a csn area wait control register. (1) clkoselp (clkosel write control) bit (bit 6) this bit controls write to the clkout select bit. (2) clkosel (clkout select) bit (bit 7) this bit selects straight bclk or divided-by-2 bclk as outputting of clkout (external bus synchronous clock) pin. if the cpu clock is 160 mhz, bclk is 40 mhz. if clkosel is cleared to "0," clkout or the external bus reference clock is 20 mhz; if clkosel is set to "1," clkout is 40 mhz. the number of wait states set by the csn area control register, as well as cs wait, strobe wait, recovery cycles and idle cycles after read all are synchronized to clkout. however when "1" is selected in clkosel bit (bclk is selected as a clkout terminal output), regardless of cs0~cs3 is used or not, it is prohibition that selecting 0 wait in wait (the number selection of internal wait) bit of a csn area wait control register. the following describes how to set the clkosel (clkout select ) bit (see figure 17.2.2.) 1. the program in the internal rom or the internal ram should be used to set the bits. 2. write "1" to the clkosel write control bit (clkoselp). 3. subsequent to 2 above, write "0" to the clkosel write control bit (clkoselp) and then "0" or "1" whichever desired to the clkout select bit (clkosel). 4. after writing to the above bits, access any sfr area for read twice. 20.1 oscillator circuit
20 oscillator circuit 20-9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 the following shows configurations for p7 operation mode register, p7 peripheral function select register, p15 operation mode register and p15 peripheral function select register. p7 operation mode register (p7mod) b bit name function r w 8 p70md 0: p70 r w port p70 operation mode bit 1: clkout/wr#/bclk (note 1) 9 p71md 0: p71 r w port p71 operation mode bit 1: wait# (note 2) 10 p72md 0: p72 r w port p72 operation mode bit 1: hreq#/tin27 (note 3) 11 p73md 0: p73 r w port p73 operation mode bit 1: hack#/tin26 (note 3) 12 p74md 0: p74 r w port p74 operation mode bit (note 4) 1: rtdtxd/txd3 (note 3) 13 p75md 0: p75 r w port p75 operation mode bit (note 4) 1: rtdrxd/rxd3 (note 3) 14 p76md 0: p76 r w port p76 operation mode bit (note 4) 1: rtdack/ctx1 (note 3) 15 p77md 0: p77 r w port p77 operation mode bit (note 4) 1: rtdclk/crx1 (note 3) note 1: these functions are selected using the p7 peripheral function select register and bus mode control register. note 2: during single-chip mode, settings of this register have no effect, and the port functions as port input/output pin. note 3: these functions are selected using the p7 peripheral function select register. note 4: if the nbd function is selected by the nbd pin control register, the port functions as nbd pin no matter how this register is set. b8 9 1011121314b15 p70md p71md p72md p73md p74md p75md p76md p77md 00000000 p7 peripheral function select register (p7smod) b bit name function r w 8 p70smd 0: clkout/wr# (note 1) r w port p70 peripheral function select bit 1: bclk 9 no function assigned. fix to "0." 00 10 p72smd 0: hreq# r w port p72 peripheral function select bit 1: tin27 11 p73smd 0: hack# r w port p73 peripheral function select bit 1: tin26 12 p74smd (note 2) 0: rtdtxd r w port p74 peripheral function select bit 1: txd3 13 p75smd (note 2) 0: rtdrxd r w port p75 peripheral function select bit 1: rxd3 14 p76smd (note 2) 0: rtdack r w port p76 peripheral function select bit 1: ctx1 15 p77smd (note 2) 0: rtdclk r w port p77 peripheral function select bit 1: crx1 note 1: which function of the pin is used depends on how the bus mode control register is set. note 2: if the nbd function is selected by the nbd pin control register, the port functions as nbd pin no matter how this register is set. note: ? the value of this register can only be modified when the corresponding p7 operation mode register bit = 0 (set for port ). then set the corresponging p7 operation mode register bit to "1." 20.1 oscillator circuit b8 9 1011121314b15 p70smd p72smd p73smd p74smd p75smd p76smd p77smd 00000000
20 oscillator circuit 20-10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 p15 peripheral function select register (p15smod) b bit name function r w 8 p150smd 0: tin0 r w port p150 peripheral function select bit 1: clkout/wr# (note 1) 9, 10 no function assigned. fix to "0." 00 11 p153smd 0: tin3 r w port p153 peripheral function select bit (note 2) 1: wait# 12?15 no function assigned. fix to "0." 00 note 1: which function of the pin is used depends on how the bus mode control register is set. note 2: during single-chip mode, selecting the external bus interface signal function is prohibited. note: ? the value of this register can only be modified when the corresponding p15 operation mode register bit = 0 (set for por t). then set the corresponging p15 operation mode register bit to "1." p15 operation mode register (p15mod) b bit name function r w 8 p150md 0: p150 r w port p150 operation mode bit 1: tin0/clkout/wr# (note 1) 9, 10 no function assigned. fix to "0." 00 11 p153md 0: p153 r w port p153 operation mode bit 1: tin3/wait# (note 2) 12?15 no function assigned. fix to "0." 00 note 1: which function of the pin is used depends on how the p15 peripheral function select register and bus mode control register are set. note 2: which function of the pin is used depends on how the p15 peripheral function select register is set. b8 9 1011121314b15 p150md p153md 00000000 20.1 oscillator circuit b8 9 1011121314b15 p150smd p153smd 00000000
20 oscillator circuit 20-11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 20.1.5 oscillation stabilization time at power-on the oscillator circuit comprised of a ceramic (or crystal) resonator requires a finite time before its oscillation stabilizes after being powered on. therefore, there must be a certain amount of oscillation stabilization time that suits the oscillator circuit used. figure 20.1.6 shows an oscillation stabilization time required at power-on. figure 20.1.6 oscillation stabilization time at power-on reset# xin oscillation stabilization time vcc-bus 20.1 oscillator circuit
20 oscillator circuit 20-12 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 20.2 clock generator circuit 20.2 clock generator circuit supply independent clocks to the cpu and the internal peripheral circuit. xin pin (16mhz?20mhz) bclk (peripheral clock) (32mhz?40mhz) cpuclk (cpu clock) (128mhz?160mhz) x8 1/4 pll 1/2 clko sel clkout (external bus clock ) (32mhz?40mhz or 16mhz?20mhz) figure 20.2.1 conceptual diagram of clock generation
chapter 21 jtag 21.1 outline of jtag 21.2 configuration of jtag circuit 21.3 jtag registers 21.4 basic operation of jtag 21.5 boundary scan description language 21.6 notes on board design when connecting jtag 21.7 processing pins when not using jtag
jtag 21 21-2 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 21.1 outline of jtag 21.1 outline of jtag the m32r/ecu contains a jtag (joint test action group) interface compliant with ieee standard test access port and boundary-scan architecture (ieee std. 1149.1a-1993). this jtag interface can be used as an input/ output path for boundary-scan test (boundary-scan path). for details about ieee 1149.1 jtag test access ports, see ieee std. 1149.1a-1993 documentation. note: ? the jtag interface in the m32r/ecu is used to connect a jtag emulator during debugging as well. in this chapter, the jtag interface is explained assuming its use as an input/output path for bound- ary-scan test. functions of the jtag interface-related pins mounted on the m32r/ecu are shown below. table 21.1.1 jtag pin functions type pin name signal name i/o function tap jtck test clock input clock input to the test circuit. (note 1) jtdi test data input input synchronous serial data input pin used to supply the test instruction code and test data. this input is sampled on the rising edge of jtck. jtdo test data output output synchronous serial data output pin used to output the test instruction code and test data. this signal changes state on the falling edge of jtck, and is output in only the shift-ir or shift-dr state. otherwise, it goes to a high-impedance state. jtms test mode select input test mode select input to control the test circuit?s state transition. this input is sampled on the rising edge of jtck. jtrst test reset input active "l" test reset input to initialize the test circuit asynchronously. to ensure that the test circuit is reset without fail, jtms input signal must be held high while this signal changes state from "l" to "h". note: tap stands for test access port (jtag interface specified in ieee 1149.1).
jtag 21 21-3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 21.2.1 configuration of the jtag circuit 21.2 configuration of jtag circuit the jtag circuit consists of the following circuit blocks. ? instruction register to hold the instruction code that is fetched through the boundary-scan path ? a set of registers which are accessed through the boundary-scan path ? test access port (abbreviated tap) controller to control the jtag unit?s state transition ? control logic to select input, output, etc. the figure below shows the configuration of the jtag circuit. 21.2 configuration of jtag circuit jtck jtms jtrst tap controller instruction register (6-bit) (jtagir) decoder jtdo id code register (jtagidr) bypass register (jtagbpr) boundary scan register (jtagbsr) jtdi data register set buff er output selection output select ion m32r/ecu
jtag 21 21-4 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 21.3 jtag registers 21.3 jtag registers 21.3.1 instruction register (jtagir) the instruction register is a 6-bit register to hold instruction code. this register is set in the ir path sequence. the instructions set in this register determine the data register to be selected in the subsequent dr path sequence. the initial value of this register after test is reset (to initialize the test circuit) is b?000010 (idcode instruction). after a test reset, the id code register is selected as the data register until instruction code is set by an external device. in the capture-ir state, this register always has b?110001 (fixed value) loaded into it. there- fore, when in the shift-ir state, no matter what value was set in this register, the value b?110001 is always output from the jtdo pin (sequentially beginning with the lsb). however, this value normally is not handled as instruction code. shown below is outside the scope of guaranteed operations. if this operation is attempted, the microcomputer may handle b?110001 as instruction code, which makes the microcomputer unable to operate normally. capture-ir exit1-ir update-ir following instructions are supported for the jtag interface of the m32r/ecu: ? three instructions specified as essential in ieee 1149.1 (extest, sample/preload, bypass) ? device identification register access instruction (idcode) table 21.3.1 jtag instruction list instruction code abbreviation operation b'000000 extest test the circuit/board-level connections external to the chip. b'000001 sample/preload sample the operating status of the circuit and output the sampled status from the jtdo pin, while at the same time supplying the data used for boundary-scan test from the jtdi pin and preset it in the boundary scan register. b'000010 idcode select the id code register to output the device and manufacturer identification data from the jtdo pin. b'111111 bypass select the bypass register to inspect or set data. notes: ? do not set any other instruction code. ? for details about the ir path sequence, dr path sequence, test reset, capture-ir state, shift-ir state, exit1-ir state and update-ir state, see section 21.4, ?basic operation of jtag.?
jtag 21 21-5 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 21.3 jtag registers 21.3.2 data register (1) boundary scan register (jtagbsr) the boundary scan register is a 294-bit register used to perform boundary-scan test. the bits in this register are assigned to each pin on the microcomputer. connected between the jtdi and jtdo pins, this register is selected when issuing extest or sample/ preload instruction. in the capture-dr state, this register captures the status of input pins or internal logic outputs. in the shift-dr state, while outputting the sampled value, this register receives the input data for boundary-scan test to set pin functions (direction of input/output and tristate output pins) and output values. (2) bypass register (jtagbpr) the bypass register is a 1-bit register used to bypass the boundary-scan path when the microcomputer is not the target of boundary-scan test. connected between the jtdi and jtdo pins, this register is selected when issuing bypass instruction. this register is loaded with b?0 (fixed value) in the capture-dr state. (3) id code register (jtagidr) the id code register is a 32-bit register used to identify the device and manufacturer. it holds the following information: ? version information (4 bits) : b?0000 ? part number (16 bits) : b?0011 0010 0010 0101 (32192) : b?0011 0010 0010 0111 (32195) : b?0011 0010 0010 0110 (32196) ? manufacturer id (11 bits) : b?010 0010 0011 this register is connected between the jtdi and jtdo pins, and is selected when issuing idcode instruc- tion. this register is loaded with said idcode data in the capture-dr state, and outputs it from the jtdo pin in the shift-dr state. the id code register is a read-only register. because the data written from the jtdi pin during dr path sequence is ignored, make sure jtdi input = "l" while in the shift-dr state. note: ? for details about the capture-dr and shift-dr states, see section 21.4, ?basic operation of jtag.? 3 0 4 19 20 31 30 1 manufacturer id part number version 4 bits 16 bits 11 bits
jtag 21 21-6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 21.4 basic operation of jtag 21.4.1 outline of jtag operation the instruction and data registers basically are accessed in conjunction with the following three operations, which are performed based on the tap controller?s state transition. the tap controller changes state accord- ing to jtms input, and generates control signals required for operation in each state. ? capture operation the result of boundary-scan test or the fixed data defined for each register is sampled. as a register opera- tion, data input is latched into the shift register stage. ? shift operation the register is accessed from outside through the boundary-scan path. the sample value is output to the outside at the same time data is set from the outside. as a register operation, the bits are shifted right between each shift register stage. ? update operation the data set from the outside during shifting is driven. as a register operation, the value set in the shift register stage is transferred to the parallel output stage. the jtag interface undergoes transition of the internal state depending on jtms input and on such state transition, it performs the following two operations. in either case, the operation basically is performed in order of capture shift update. ? ir path sequence instruction code is set in the instruction register to select the data register to be operated on in the subse- quent dr path sequence. ? dr path sequence data inspection or setting is performed for the selected data register. 21.4 basic operation of jtag
jtag 21 21-7 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 select-dr-scan test-logic-reset run-test/idle 0 1 0 capture-dr 0 shift-dr 0 exit1-dr 1 pause-dr 0 exit2-dr 1 update-dr 1 0 0 1 0 1 1 0 select-ir-scan capture-ir 0 shift-ir 0 exit1-ir 1 pause-ir 0 exit2-ir 1 update-ir 1 0 0 1 0 1 1 0 1 1 note: ? the values (0 or 1) in this diagram denote the state of jtms input signal. 1 figure 21.4.1 tap controller state transition the state transition of the tap controller and the basic configuration of the jtag related registers are shown below. data input g 0 1 d t q d t q shift-dr or shift-ir clock-dr or clock-ir update-dr or update-ir from the preceding cell to the next cell data output parallel output stage shift register stage input multiplexer note:  this diagram only shows the basic configuration; not all dr and ir are configured the same way as shown here. figure 21.4.2 basic configuration of the jtag related registers 21.4 basic operation of jtag
jtag 21 21-8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 jtck select-dr-s can select-ir-s can capture-ir shift-ir exit1-ir update-ir run-test/id le run-test/id le don't care don't care instruction code (6 bits) 1 0 0 0 1 1 lsb value msb value jtms tap states jtdi jtdo high impedance high impedance shift output from the instruction register is fixed to b'110001. finished storing instruction code in the instruction register's shift register stage. instruction code is set in the parallel output stage at fall of jtck in the update-ir state. jtdi input is sampled at rise of jtck in the shift-ir state. jtdo is output at fall of jtck in the shift-ir state. figure 21.4.3 ir path sequence 21.4 basic operation of jtag 21.4.2 ir path sequence instruction code is set in the instruction register (jtagir) to select the data register to be accessed in the subsequent dr path sequence. the ir path sequence is performed following the procedure described below. (1) from the run-test/idle state, apply jtms = "h" for a period of 2 jtck cycles to enter the select-ir- scan state. (2) apply jtms = "l" to enter the capture-ir state. at this time, b?110001 (fixed value) is set in the instruc- tion register?s shift register stage. (3) proceed and apply jtms = "l" to enter the shift-ir state. in the shift-ir state, the value of the shift register stage is shifted right one bit every cycle, and the data b?110001 (fixed value) that was set in (2) is serially output from the jtdo pin. at the same time, instruction code is set in the shift register stage bit by bit as it is serially fed from the jtdi pin. because the instruction code is set in the instruction register that consists of 6 bits, the shift-ir state must be continued for a period of 6 jtck cycles. to stop the shift operation in the middle of the execution, enter the pause-ir state via the exit1-ir state (by setting jtms input from "h" to "l"). to return from the pause-ir state, enter the shift-ir state via the exit2-ir state (by setting jtms input from "h" to "l"). (4) apply jtms = "h" to move from the shift-ir state to the exit1-ir state. this completes the shift operation. (5) proceed and apply jtms = "h" to enter the update-ir state. in the update-ir state, the instruction code that was set in the instruction register?s shift register stage is transferred to the instruction register?s parallel output stage, and decoding of jtag instruction is thereby started. (6) proceed and apply jtms = "h" to enter the select-dr-scan state or jtms = "l" to enter the run-test/ idle state.
jtag 21 21-9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 21.4.3 dr path sequence data inspection or setting is performed for the data register selected in the ir path sequence prior to the dr path sequence. the dr path sequence is performed following the procedure described below. (1) from the run-test/idle state, apply jtms = "h" for a period of 1 jtck cycle to enter the select-dr-scan state. which data register will be selected at this time depends on the instruction that was set during the ir path sequence performed prior to the dr path sequence. (2) apply jtms = "l" to enter the capture-dr state. at this time, the result of boundary-scan test or the fixed data defined for each register is set in the data register?s shift register stage. (3) proceed and apply jtms = "l" to enter the shift-dr state. in the shift-dr state, the dr value is shifted right one bit every cycle, and the data that was set in (2) is serially output from the jtdo pin. at the same time, setup data is set in the data register?s shift register stage bit by bit as it is serially fed from the jtdi pin. by continuing the shift-ir state as long as the number of bits that comprise the selected data register (by applying jtms = "l"), all bits of data can be set in and read out from the shift register stage. to stop the shift operation in the middle of the execution, enter the pause-dr state via the exit1-dr state (by setting jtms input from "h" to "l"). to return from the pause-dr state, enter the shift-dr state via the exit2-dr state (by setting jtms input from "h" to "l"). (4) apply jtms = "h" to move from the shift-dr state to the exit1-dr state. this completes the shift operation. (5) proceed and apply jtms = "h" to enter the update-dr state. in the update-dr state, the data that was set in the data register?s shift register stage is transferred to the parallel output stage, and the setup data is thereby made ready for use. (6) proceed and apply jtms = "h" to enter the select-dr-scan state or jtms = "l" to enter the run-test/idle state. 21.4 basic operation of jtag figure 21.4.4 dr path sequence jtck select-dr-s can capture-dr shift-dr exit1-dr update-dr run-test/id le run-test/id le don't care don't care lsb value msb value jtms tap states jtdi jtdo high impedance high impedance note:  because all bits in the data register's shift register stage also are shifted right, data is output from jtdo beginning with the lsb. similarly, data is supplied to jtdi beginning with the lsb. finished storing setup data in the selected data register's shift register stage. setup data is set in the parallel output stage at fall of jtck in the update-dr state. jtdi input is sampled at rise of jtck in the shift-dr state. jtdo is output at fall of jtck in the shift-dr state.
jtag 21 21-10 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 note 1: the setup value for each register must be supplied to the jtdi pin beginning with the lsb. note 2: the value in each register is output to the jtdo pin beginning with the lsb. it is only in the shift-ir state of ir pat h sequence and the shift-dr state of dr path sequence that valid data is output from the jtdo pin. in all other state s, the jtdo pin goes to a high-impedance state. note 3: this shows readout from the data register selected by the instruction that was set in the immediately preceding ir path sequence. the value sampled during capture-dr state is output at the shift register stage of the selected data regi ster. test-logic- reset state run-test /idle state ir path sequence dr path sequence run-test /idle state ir path sequence dr path sequence tap states instruction code #0 setup data #0 #1 setup data #1 jtdi fixed value b'110001 (note 3) b'110001 jtdo setup data is serially fed from jtdi. reference data is serially output from jtdo. (1) basic access test-logic- reset state run-test /idle state ir path sequence dr path sequence #0 #0 #1 #2 jtdi b'110001 (note 3) jtdo the same data register can be successively operated on to set or inspect. (2) successive accesses to the same data register run-test /idle state (note 3) (note 3) specify the data register to inspect or set. (note 1) (note 2) (note 1) (note 2) dr path sequence dr path sequence setup data setup data (note 3) fixed value fixed value specify the data register to inspect or set. tap states instruction code instruction code setup data figure 21.4.5 successive jtag access 21.4.4 inspecting and setting data registers to inspect or set the data register, follow the procedure described below. (1) to access the test access port (jtag) for the first time, apply a test reset (to initialize the test circuit). one of the following two methods may be used to apply a test reset: ? pull the jtrst pin "l". ? drive the jtms pin "h" to apply 5 or more jtck cycles (2) apply jtms = "l" to enter the run-test/idle state. to continue the idle state, hold jtms input "l". (3) apply jtms = "h" to exit the run-test/idle state and perform ir path sequence. in the ir path se- quence, specify the data register to inspect or set. (4) proceed to perform dr path sequence. feed setup data from the jtdi pin into the data register speci- fied in the ir path sequence, and read out reference data from the jtdo pin. (5) to proceed to perform ir path or dr path sequence after the dr path sequence is completed, apply jtms = "h" to return to the select-dr-scan state. to wait for the next processing after a series of ir and dr sequence processing is completed, apply jtms = "l" to enter the run-test/idle state and keep that state. 21.4 basic operation of jtag
jtag 21 21-11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 21.5 boundary scan description language the boundary scan description language (abbreviated bsdl) is described in the supplements to the stan- dard test access port and boundary-scan architecture of ieee 1149.1-1990 and ieee 1149.1a-1993. bsdl is a subset of ieee 1076-1993 standard vhsic hardware description language (vhdl). bsdl allows to precisely describe the functions of conforming components to be tested. for package connection test, this language is used by automated test pattern generation tools, and for synthesized test logic and verification, this language is used by electronic design automation tools. bsdl provides powerful extended functions usable in internal test generation and necessary to write hardware debug and diagnostics software. the primary section of bsdl has statements of logical port description, physical pin map, instruction set and boundary register description. ? logical port description the logical port description assigns meaningful symbol names to each pin on the chip. the logic type of each pin, whether input, output, input/output, buffer or link, that defines the logical direction of signal flow is determined here. ? physical pin map the physical pin map correlates the chip?s logical ports to the physical pins on each package. by using separate names for each map, it is possible to define two or more physical pin maps in one bsdl descrip- tion. ? instruction set statement the instruction set statement writes bit patterns to be shifted in into the chip?s instruction register. this bit pattern is necessary to place the chip into each test mode defined in standards. instructions exclusive to the chip can also be written. ? boundary register description the boundary register description is a list of boundary register cells or shift stages. each cell is assigned a separate number. the cell with number 0 is located nearest to the test data output (jtdo) pin, and the cell with the largest number is located nearest to the test data input (jtdi) pin. cells also contain related other information which includes cell type, logical port corresponding to the cell, logical function of the cell, safety value, control cell number, disable value and result value. note: ? boundary scan description language (bsdl) can be downloaded from renesas technology website after mass production. 21.5 boundary scan description language
jtag 21 21-12 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 21.6 notes on board design when connecting jtag 21.6 notes on board design when connecting jtag to materialize fast and highly reliable communication with jtag tools, make sure wiring lengths of jtag pins are matched during board design. m32r/ecu jtdi jtms jtck jtrst user board jtag tool make sure wiring lengths are the same, and avoid bending wires as much as possible. be careful not to use through-holes within the wiring. jtdo 33 ? 33 ? vcce(5v) 33 ? 33 ? 2k ? 10k ? 10k ? 0.1f sdi connector (jtag connector) power tdi tms tck trst tdo gnd note 1: the reset# related circuit and resistance-capacitance values must be determined depending on the user board's system design conditions and the microcomputer's operating conditions. note 2: n-channel open-drain output is recommended for the reset output of jtag tools. for details, see jtag tool specification s. notes:  only if the jtrst pin is firmly tied to ground, the jtdo, jtdi, jtms and jtclk pins can be processed by either pullup or pulldown.  each of these pins must always be processed even when not using jtag tools. the same pullup/pulldown resistance values as when using jtag tools may be used. reset# (note 1) reset (note 2) 33 ? 10k ? vss 33 ? 10k ? 10k ? figure 21.6.1 notes on board design when connecting jtag tools
jtag 21 21-13 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 21.7 processing pins when not using jtag m32r/ecu jtdi jtms jtck jtrst user board jtdo vcce(5v) 0?100k ? 0?100k ? 0?100k ? 0?100k ? 0?100k ? note:  only if the jtrst pin is firmly tied to ground, the jtdo, jtdi, jtms and jtclk pins can be processed by either pullup or pulldown. 21.7 processing pins when not using jtag the following shows how the pins on the chip should be processed when not using jtag tools. figure 21.7.1 processing pins when not using jtag
jtag 21 21-14 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 this page is blank for reasons of layout. 21.7 processing pins when not using jtag
chapter 22 power supply circuit 22.1 configuration of the power supply circuit 22.2 power-on sequence 22.3 power-off sequence
22 power supply circuit 22-2 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 22.1 configuration of the power supply circuit the 32192/32195/32196 operates with a single 5 v 0.5 v or 3.3 v 0.3 v power supply. unless otherwise noted, 5 v 0.5 v and 3.3 v 0.3 v in this chapter are referred to simply by 5 v and 3.3 v, respectively. table 22.1.1 power supply functions power supply type pin name function 5.0v or 3.3v vcce main power supply avcc0 power supply for the a/d converter vref0 reference voltage for the a/d converter vdde power supply for the internal ram backup vcc-bus power supply for the external bus excvcc external capacitor connection pin excvdd external capacitor connection pin vccer (note 1) power supply for the internal voltage generator circuit (use 3.3v power supply for the sake of low power consumption) note 1: the specification of power supply voltage differs depending on products. for details, see table 1.1.1 product list. figure 22.1.1 configuration of the power supply circuit (vcce = 5.0 v or 3.3 v) 22.1 configuration of the power supply circuit i/o control circuit cpu peripheral circuit internal flash memory a/d converter circuit internal ram internal voltage generator circuit main vdc backup voltage generator circuit sub-vdc oscillator circuit external bus pll excvcc excvdd vdde vcce avcc0 vcc-bus control signal vccer (65pin) (note 1) (note 1) note 1: do not apply power voltage to the excvdd and excvcc pins. refer to chapter 23, "electrical characteristics" for external capacitance of power suppy.
22 power supply circuit 22-3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 22.2 power-on sequence 22.2 power-on sequence 22.2.1 power-on sequence when not using ram backup the diagram below shows a turn-on sequence of the power supply (5.0 v or 3.3 v) when not using ram backup. note 1: after turning on all power supplies and holding the reset# pin "l" for an oscillation stabilization time, release the reset# pin back "h" (to exit the reset state). notes: ? power-on limitation vdde>=vccer in addtion, when vdde is more than 3.0v, it is not problem even if it cannot fulfill a restrictions (vdde>=vccer).  however, if it cannot fulfill a restrictions (vdde>=vccer) when power-on, sufficient evaluation must be made during system design in order to ensure that no power will be applied to the microcomputer with a potential differ ence of 1 v or more. for potential differences 0 v to 0.6 v, there is almost no in-flow current. the amount of in-flow current begins to increase when the potential difference exceeds 0.6 v. (note 1) 0v 0v 0v 0v vcce, vccer, vcc-bus, vdde avcc0 vref0 reset# figure 22.2.1 power-on sequence when not using ram backup
22 power supply circuit 22-4 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (note 2) (note 1) note 1: after turning on all power supplies and holding the reset# pin "l" for an oscillation stabilization time, release the reset# pin back "h" (to exit the reset state). note 2: because of ram backup, it is assumed that vdde is 3.0 v or more. the diagram here is shown for the vcce = 5 v or 3.3 v case. notes:  power-on limitation vdde>=vccer in addtion, when vdde is more than 3.0v, it is not problem even if it cannot fulfill a restrictions (vdde>=vccer).  however, if it cannot fulfill a restrictions (vdde>=vccer) when power-on, sufficient evaluation must be made during system design in order to ensure that no power will be applied to the microcomputer with a potential differ ence of 1 v or more. for potential differences 0 v to 0.6 v, there is almost no in-flow current. the amount of in-flow current begins to increase when the potential difference exceeds 0.6 v. 3.0v vcce, vccer, vcc-bus avcc0 vref0 reset# vdde 0v 0v 0v 0v 0v figure 22.2.2 power-on sequence when using ram backup 22.2.2 power-on sequence when using ram backup the diagram below shows a turn-on sequence of the power supply (5.0 v or 3.3 v) when using ram backup. 22.2 power-on sequence
22 power supply circuit 22-5 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 22.3 power-off sequence 22.3 power-off sequence 22.3.1 power-off sequence when not using ram backup the diagram below shows a turn-off sequence of the power supply (5.0 v or 3.3 v) when not using ram backup. (note 1) note 1: wait until the reset# pin goes "l" before turning the power supply off. notes:  power-off limitation vdde>=vccer in addtion, when vdde is more than 3.0v, it is not problem even if it cannot fulfill a restrictions (vdde>=vccer).  however, if it cannot fulfill a restrictions (vdde>=vccer) when power-on, sufficient evaluation must be made during system design in order to ensure that no power will be applied to the microcomputer with a potential differ ence of 1 v or more. for potential differences 0 v to 0.6 v, there is almost no in-flow current. the amount of in-flow current begins to increase when the potential difference exceeds 0.6 v. avcc0 vref0 reset# vdde 0v 0v 0v 0v 0v vcce, vccer, vcc-bus figure 22.3.1 power-off sequence when not using ram backup
22 power supply circuit 22-6 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 22.3 power-off sequence 22.3.2 power-off sequence when using ram backup the diagram below shows a turn-off sequence of the power supply (vcce = vdde = 5.0 v or 3.3 v) when using ram backup with hreq function. (note 1) (note 2) (note 3) (note 4) note 1: pull the hreq# input pin "l" to halt the cpu at the end of the bus cycle. or disable ram access in software. p72 can be used as hreq# irrespective of the operation mode. however, hreq# must be selected with the port operation mode register for p72. note 2: pull the reset# input pin "l" while the cpu is halted or ram access is disabled. note 3: wait until the reset# pin goes "l" before turning the power supply off. note 4: lower the vdde voltage to 3.0 v as necessary. notes:  power-off limitation vdde>=vccer in addtion, when vdde is more than 3.0v, it is not problem even if it cannot fulfill a restrictions (vdde>=vccer) .  however, if it cannot fulfill a restrictions (vdde>=vccer) when power-on, sufficient evaluation must be made during system design in order to ensure that no power will be applied to the microcomputer with a potential differ ence of 1 v or more. for potential differences 0 v to 0.6 v, there is almost no in-flow current. the amount of in-flow current begins to increase when the potential difference exceeds 0.6 v. avcc0 vref0 reset# vdde p72/hreq# 3v 0v 0v 0v 0v 0v vcce, vccer, vcc-bus figure 22.3.2 power-off sequence when using ram backup (vcce = vdde = 5.0 v or 3.3 v)
22 power supply circuit 22-7 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (note 1) (note 2) (note 3) (note 4) note 1: pull the hreq# input pin "l" to halt the cpu at the end of the bus cycle. or disable ram access in software. p72 can be used as hreq# irrespective of the operation mode. however, hreq# must be selected with the port operation mode register for p72. note 2: pull the reset# input pin "l" while the cpu is halted or ram access is disabled. note 3: wait until the reset# pin goes "l" before turning the power supply off. note 4: lower the vdde voltage from 5.0 v to 3.0 v as necessary. notes:  power-off limitation vdde>=vccer in addtion, when vdde is more than 3.0v, it is not problem even if it cannot fulfill a restrictions (vdde>=vccer).  however, if it cannot fulfill a restrictions (vdde>=vccer) when power-on, sufficient evaluation must be made during system design in order to ensure that no power will be applied to the microcomputer with a potential differ ence of 1 v or more. for potential differences 0 v to 0.6 v, there is almost no in-flow current. the amount of in-flow current begins to increase when the potential difference exceeds 0.6 v. avcc0 vref0 reset# vdde p72/hreq# 3v 0v 0v 0v 0v 0v vcce, vccer, vcc-bus figure 22.3.3 power-off sequence when using ram backup (vcce = 5.0v, vdde = 3.3 v) 22.3 power-off sequence power-off sequence of the power supply (vcce=5.0v, vdde=3.3v) when ram backup is used with operat- ing the hreq function is shown below.
22 power supply circuit 22-8 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 22.3 power-off sequence figure 22.3.4 microcomputer ready to operate state (vcce = 5.0 v or 3.3 v) 0v 0v 0v 0v 3.0 ? 5.5v (note 1) (note 2) (note 2) i/o control circuit cpu peripheral circuit internal flash memory a/d converter circuit internal ram internal voltage generator circuit main vdc backup voltage generator circuit sub-vdc oscillator circuit external bus pll excvcc excvdd vdde vcce avcc0 vcc-bus control signal vccer (65pin) note 1: during ram backup mode, it automatically changes to the sub vdc, allowing to save on power consumption in the chip. note 2: do not apply power supply voltage to excvdd pin and excvcc pin. refer to chapter 23, "electrical characteristics" for external capacitance of power supply. figure 22.3.5 ram data backup state (vcce = 5.0 v or 3.3 v) 5v or 3.3v 5v or 3.3v 5v or 3.3v 5v or 3.3v 5v or 3.3v (note 1) note 1: when the microcomputer is ready to operate, it automatically changes to the main vdc. note 2: do not apply power supply voltage to excvdd pin and excvcc pin. refer to chapter 23, "electrical characteristics" for external capacitance of power supply. i/o control circuit cpu peripheral circuit internal flash memory a/d converter circuit internal ram internal voltage generator circuit main vdc backup voltage generator circuit sub-vdc oscillator circuit external bus pll excvcc excvdd vdde vcce avcc0 vcc-bus control signal vccer (65pin) (note 2) (note 2)
chapter 23 electrical characteristics 23.1 adapted table 23.2 absolute maximum ratings 23.3 electrical characteristics when vcce = 5 v, f(xin) = 20 mhz 23.4 electrical characteristics when vcce = 5 v, f(xin) = 16 mhz 23.5 electrical characteristics when vcce = 3.3 v, f(xin) = 20 mhz 23.6 electrical characteristics when vcce = 3.3 v, f(xin) = 16 mhz 23.7 flash memory related characteristics 23.8 external capacitance for power supply 23.9 a.c. characteristics (when vcce = 5 v) 23.10 a.c. characteristics (when vcce = 3.3 v)
23-2 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 23.1 adapted table 23.1 adapted table note 1: if not specified, vcce=vcc-bus=vdde=vccer note 2: if not specified, vcce=vcc-bus=vdde 5.0v0.5v 23.2 23.3 23.7 23.8 23.9 5.0v0.5v 5.0v0.5v 5.0v0.5v 3.3v0.3v 3.3v0.3v 20mhz 5.0v0.5v 3.3v0.3v 3.3v0.3v 3.3v0.3v 16mhz 5.0v0.5v 3.3v0.3v 23.2 23.5 23.7 23.8 23.10 (note 1) 23.2 23.5 23.7 23.8 23.10 (note 1) 23.2 23.4 23.7 23.8 23.9 (note 1) 23.2 23.6 23.7 23.8 23.10 (note 2) 23.2 23.6 23.7 23.8 23.10 (note 1) 23.2 23.6 23.7 23.8 23.10 (note 1) 23.2 23.6 23.7 23.8 23.10 (note 1) (note 1) 23.2 23.3 23.7 23.8 23.9 (note 2) 23.2 23.3 23.7 23.8 23.9 (note 2) 23.2 23.5 23.7 23.8 23.10 (note 2) 23.2 23.4 23.7 23.8 23.9 (note 2) 23.2 23.4 23.7 23.8 23.9 (note 2) 23.2 23.4 23.7 23.8 23.9 (note 2) conditions adapted section number note xin vcce vccer absolute maximum ratings recommended operating conditions, d.c. characteristics, a/d conversion characteristics flash memory related characteristics external capacitance for power supply a.c. characteristics ambient temperature (ta) -40c to 85c -40c to 85c -40c to 105c -40c to 85c -40c to 105c -40c to 85c -40c to 85c -40c to 85c -40c to 105c -40c to 125c -40c to 85c -40c to 85c -40c to 105c -40c to 125c 23.2 absolute maximum ratings absolute maximum ratings symbol parameter test condition rated value unit vcce main power supply -0.3 to 6.5 v vccer power supply for the internal -0.3 to 6.5 v voltage generator circuit vcc-bus bus power supply -0.3 to 6.5 v vdde ram power supply -0.3 to 6.5 v avcc analog power supply vcce avcc vref -0.3 to 6.5 v vref reference voltage input vcce avcc vref -0.3 to 6.5 v vi xin -0.3 to vcc-bus+0.3 v other (note 2) -0.3 to vcce (vcc-bus)+0.3 v vo xout -0.3 to vcc-bus+0.3 v other (note 2) -0.3 to vcce (vcc-bus)+0.3 v pd power dissipation ta=-40 to 85c 1200 mw ta=-40 to 105c 800 mw ta=-40 to 125c 650 mw topr operating ambient -40 to 125 c temperature (note 1 ) tstg storage temperature -65 to 150 c note 1: this does not guarantee that the microcomputer can operate continuously at 85c-plus. consult renesas if the microcomputer is going to be used for 85c-plus applications. note 2: the following ports below operate not with vcce power supply but with vcc-bus power supply, so that a regulation value serves as vcc-bus standard. p00?p07, p10?p17, p20?p27, p30?p37, p41?p47, p150, p153, p220, p221, p224, p225, xin, xout
23 electrical characteristics 23-3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 symbol parameter rated value unit min typ max vcce main power supply (note 1) 4.5 5.0 5.5 v vccer power supply for the internal voltage generator circuit 3.0 3.3 3.6 v (note 1)(note 2) 4.5 5.0 5.5 v vcc-bus bus power supply (note 1) 4.5 5.0 5.5 v vdde ram power supply (note 1) 4.5 5.0 5.5 v avcc analog power supply (note 1) 4.5 5.0 5.5 v vref reference voltage input (note 1) 4.5 5.0 5.5 v vih input "h" threshold when threshold selection 0.45vcce vcce v voltage switching cmos input : 0.35vcce (note 3) function is selected threshold selection 0.6vcce vcce v (multipurpose : 0.5vcce port function threshold selection 0.8vcce vcce v pin) : 0.7vcce when vt+/vt- 0.6vcce vcce v schmitt input : 0.5vcce/0.35vcce is selected vt+/vt- 0.8vcce vcce v : 0.7vcce/0.35vcce vt+/vt- 0.8vcce vcce v : 0.7vcce/0.5vcce fp, mod0, mod1, jtms, jtrst, jtck/ nbdclk, jtdi/nbdsync#, reset# 0.8vcce vcce v standard input for the following pins: rtdclk, rtdrxd, sclki0, sclki1, sclki4, sclki5, rxd0? 0.8vcce vcce v rxd5, tclk0?tclk3, tin0, tin3, tin16?tin26, crx0, crx1, nbdd0?nbdd3 standard input for the following pins: db0?b15, wait# 0.43vcce vcce v tin4?tin11, tin30?tin33 standard input for the following pins: sbi#, hreq#, tin27 0.6vcce vcce v xin threshold oscillation abort dection (note 6) 0.65vcc-bus vcc-bus v 23.3 electrical characteristics when vcce = 5 v, f(xin) = 20 mhz 23.3.1 recommended operating conditions (when vcce = 5 v 0.5 v, f(xin) = 20 mhz) recommended operating conditions (in case if vcce,vccer,vcc-bus,vdde,ta are not specified referenced to "23.1 adapted table.") 23.3 electrical characteristics when vcce = 5 v, f(xin) = 20 mhz
23-4 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 symbol parameter rated value unit min typ max vil input low threshold when threshold selection 0 0.25vcce v voltage switching cmos input : 0.35vcce (note 3) function is selected threshold selection 0 0.4vcce v (multipurpose : 0.5vcce port function threshold selection 0 0.6vcce v pin) : 0.7vcce when vt+/vt- 0 0.25vcce v schmitt input : 0.5vcce/0.35vcce is selected vt+/vt- 0 0.25vcce v : 0.7vcce/0.35vcce vt+/vt- 0 0.4vcce v : 0.7vcce/0.5vcce fp, mod0, mod1, jtms, jtrst, jtck/nbdclk, jtdi/ nbdsync#, reset# 0 0.2vcce v standard input for the following pins: rtdclk, rtdrxd, sclki0, sclki1, sclki4, sclki5, rxd0? 0 0.25vcce v rxd5, tclk0?tclk3, tin0, tin3, tin16?tin26, crx0, crx1, nbdd0?nbdd3 standard input for the following pins: db0?db15, wait# 0 0.16vcce v tin4?tin11, tin30?tin33 standard input for the followingpins: sbi#, hreq#, tin27 0 0.25vcce v xin threshold oscillation abort dection (note 6) 0 0.35vcc-bus v ioh(peak) "h" state peak output current p0?p22 (note 4) -10 ma ioh(avg) "h" state average output current p0?p22 (note 5) -5 ma iol(peak) "l" state peak output current p0?p22 (note 4) 10 ma iol(avg) "l" state average output current p0?p22 (note 5) 5 ma cl output load nbdd0?nbdd3 (output), nbdevnt# 100 pf capacitance jtdo 80 pf other than above 15 50 pf f(xin) external clock input frequency 15 20 mhz note 1: subject to conditions vcce avcc vref note 2: when ta = -40c?85, vccer = 5v 0.5v note 3: the ports listed below operate with the vcc-bus power supply, and not with the vcce power supply. therefore, the reference voltage for these ports is the vcc-bus input voltage. p00?07, p10?17, p20?27, p30?37, p41?47, p150, p153, p220, p221, p224, p225, xin, xout note 4: make sure the total output current (peak) of ports is | ports p0 + p1 + p2 | 80 ma | ports p3 + p4 + p13 + p15 + p22 | 80 ma | ports p6 + p7 + p8 + p9 + p17 | 80 ma | ports p10 + p11 + p12 | 80 ma note 5: the average output current is a value averaged during a 100 ms period. note 6: prescribe a voltage level in order xin oscillation stop detection circuit can judge changing xin level.for that it is necessary to remain the voltage in vih/vil standard more than 5ns. 23.3 electrical characteristics when vcce = 5 v, f(xin) = 20 mhz
23 electrical characteristics 23-5 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 symbol parameter test condition rated value unit min typ max icce vcce power supply current when operating f(xin)=20.0mhz 20 ma iccer vccer power supply current when operating f(xin)=20.0mhz 190 ma idde vdde power supply current when operating f(xin)=20.0mhz 1 ma icc-bus vcc-bus power supply current when operating f(xin)=20.0mhz 20 ma iavcc avcc power supply current when operating f(xin)=20.0mhz 3 ma ivref vref power supply current when operating f(xin)=20.0mhz 1 ma symbol parameter test condition rated value unit min typ max voh output "h" voltage ioh -5ma vcce+0.165 vcce v ioh (ma) vol output "l" voltage iol 5ma 0 0.15 iol v (ma) vdde ram retention power supply voltage when operating 4.5 5.5 v during backup 3.0 5.5 v iih "h" state input current vi=vcce -5 5 a iil "l" state input current vi=0v -5 5 a icc total power supply current (note 1) during reset 90 ma when operating 150 210 ram retention ta=25c 60 800 power supply current (32192) ta=105c 300 3000 iddehold ram retention ta=25c 24 320 a power supply current (32195) ta=105c 150 1500 ram retention ta=25c 24 320 power supply current (32196) ta=105c 150 1500 vt+- fp, mod0, mod1, jtms, jtrst, jtdi/nbdsync#, reset# 1.0 v vt- standard input for the following pins: rtdclk, rtdrxd, sclki0, sclki1, sclki4, sclki5, 1.0 rxd0?rxd5, tclk0?tclk3, tin0, tin3, tin16?tin26, crx0, crx1, nbdd0?nbdd3 standard input for the following pins: 0.3 sbi#, hreq#, tin27 when threshold 0.7vcce/0.35vcce 1.0 switching function 0.7vcce/0.5vcce 0.3 is used (vt+ / vt?) 0.5vcce/0.35vcce 0.3 note 1: total amount of current when single-chip mode 23.3.2 d.c. characteristics (when vcce = 5 v 0.5 v, f(xin) = 20 mhz) electrical characteristics (in case if vcce,vccer,vcc-bus,vdde,ta are not specified referenced to "23.1 adapted table.") 23.3 electrical characteristics when vcce = 5 v, f(xin) = 20 mhz electrical characteristics of each power supply pin
23-6 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 symbol parameter test condition rated value unit min typ max ? resolution vref=vcce=avcc 10 bits ? absolute invalid s&h slow mode normal speed 2 lsb accuracy double speed 2 (note 1) fast mode normal speed 3 double speed 3 valid normal slow mode normal speed 2 s&h, invalid double speed 2 synchronous fast mode normal speed 3 s&h double speed 3 valid fast slow mode normal speed 3 s&h, invalid double speed 3 synchronous fast mode normal speed 3 s&h double speed 8 valid normal slow mode normal speed 3 s&h, valid double speed 3 synchronous fast mode normal speed 3 s&h double speed 3 valid fast slow mode normal speed 3 s&h and double speed 3 synchronous fast mode normal speed 3 s&h double speed 8 tconv conversion invalid s&h slow mode normal speed 14.95 s time or valid double speed 8.65 normal s&h fast mode normal speed 6.55 double speed 4.45 valid fast slow mode normal speed 9.55 s&h double speed 5.05 fast mode normal speed 4.75 double speed 2.65 iian analog input leakage current (note 2) avss adiinn avcc -5 5 a note 1: absolute accuracy refers to the accuracy of output code relative to the analog input including all error sources (including quantization error) in an a/d converter, and is calculated using the equation below. absolute accuracy = output code - (analog input voltage adiinn / 1 lsb) when avcc = avref = 5.12 v, 1 lsb = 5 mv. note 2: this refers to the input leakage current on adiinn while the a/d converter remains idle. notes: ? s&h stands for sample and hold ? it is a/d conversion characteristics when in 2bclk mode and vcce=vcc-bus=vdde=5.12v, vccer=5.12v or 3.072v. 23.3.3 a/d conversion characteristics (when vcce = 5 v 0.5 v, f(xin) = 20 mhz) a/d conversion characteristics (in case if vcce,vccer,vcc-bus,vdde,ta are not specified refer- enced to "23.1 adapted table.") 23.3 electrical characteristics when vcce = 5 v, f(xin) = 20 mhz
23 electrical characteristics 23-7 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 symbol parameter rated value unit min typ max vcce main power supply (note 1) 4.5 5.0 5.5 v vccer power supply for the internal voltage generator circuit 3.0 3.3 3.6 v (note 1)(note 2) 4.5 5.0 5.5 v vcc-bus bus power supply (note 1) 4.5 5.0 5.5 v vdde ram power supply (note 1) 4.5 5.0 5.5 v avcc analog power supply (note 1) 4.5 5.0 5.5 v vref reference voltage input (note 1) 4.5 5.0 5.5 v vih input "h" threshold when threshold selection 0.45vcce vcce v voltage switching cmos input : 0.35vcce (note 3) function is selected threshold selection 0.6vcce vcce v (multipurpose : 0.5vcce port function threshold selection 0.8vcce vcce v pin) : 0.7vcce when vt+/vt- 0.6vcce vcce v schmitt input : 0.5vcce/0.35vcce is selected vt+/vt- 0.8vcce vcce v : 0.7vcce/0.35vcce vt+/vt- 0.8vcce vcce v : 0.7vcce/0.5vcce fp, mod0, mod1, jtms, jtrst, jtck/nbdclk, jtdi/nbdsync#, reset# 0.8vcce vcce v standard input for the following pins: rtdclk, rtdrxd, sclki0, sclki1, sclki4, sclki5, rxd0? 0.8vcce vcce v rxd5, tclk0?tclk3, tin0, tin3, tin16?tin26, crx0, crx1, nbdd0?nbdd3 standard input for the following pins: db0?db15, wait# 0.43vcce vcce v tin4?tin11, tin30?tin33 standard input for the following pins: sbi#, hreq#, tin27 0.6vcce vcce v xin threshold oscillation abort dection (note 6) 0.65vcc-bus vcc-bus v 23.4 electrical characteristics when vcce = 5 v, f(xin) = 16 mhz 23.4 electrical characteristics when vcce = 5 v, f(xin) = 16 mhz 23.4.1 recommended operating conditions (when vcce = 5 v 0.5 v, f(xin) = 16 mhz) recommended operating conditions (in case if vcce,vccer,vcc-bus,vdde,ta are not specified ref- erenced to "23.1 adapted table.")
23-8 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 symbol parameter rated value unit min typ max vil input "l" threshold when threshold selection 0 0.25vcce v voltage switching cmos input : 0.35vcce (note 3) function is selected threshold selection 0 0.4vcce v (multipurpose : 0.5vcce port function threshold selection 0 0.6vcce v pin) : 0.7vcce when vt+/vt- 0 0.25vcce v schmitt input : 0.5vcce/0.35vcce is selected vt+/vt- 0 0.25vcce v : 0.7vcce/0.35vcce vt+/vt- 0 0.4vcce v : 0.7vcce/0.5vcce fp, mod0, mod1, jtms, jtrst, jtck/nbdclk, jtdi/ nbdsync#, reset# 0 0.2vcce v standard input for the following pins: rtdclk, 0 0.25vcce v rtdrxd, sclki0, sclki1, sclki4, sclki5, rxd0? rxd5, tclk0?tclk3, tin0, tin3, tin16?tin26, crx0, crx1, nbdd0?nbdd3 standard input for the following pins: db0?db15, wait# 0 0.16vcce v tin4?tin11, tin30?tin33 standard input for the followingpins: sbi#, hreq#, tin27 0 0.25vcce v xin threshold oscillation abort dection (note 6) 0 0.35vcc-bus v ioh(peak) "h" state peak output current p0?p22 (note 4) -10 ma ioh(avg) "h" state average output current p0?p22 (note 5) -5 ma iol(peak) "l" state peak output current p0?p22 (note 4) 10 ma iol(avg) "l" state average output current p0?p22 (note 5) 5 ma cl output load nbdd0?nbdd3 (output), nbdevnt# 100 pf capacitance jtdo 80 pf other than above 15 50 pf f(xin) external clock input frequency 15 16 mhz note 1: subject to conditions vcce avcc vref note 2: when ta = -40c?85, vccer = 5v 0.5v note 3: the ports listed below operate with the vcc-bus power supply, and not with the vcce power supply. therefore, the reference voltage for these ports is the vcc-bus input voltage. p00?07, p10?17, p20?27, p30?37, p41?47, p150, p153, p220, p221, p224, p225, xin, xout note 4: make sure the total output current (peak) of ports is | ports p0 + p1 + p2 | 80 ma | ports p3 + p4 + p13 + p15 + p22 | 80 ma | ports p6 + p7 + p8 + p9 + p17 | 80 ma | ports p10 + p11 + p12 | 80 ma note 5: the average output current is a value averaged during a 100 ms period. note 6: prescribe a voltage level in order xin oscillation stop detection circuit can judge changing xin level.for that it is necessary to remain the voltage in vih/vil standard more than 5ns. 23.4 electrical characteristics when vcce = 5 v, f(xin) = 16 mhz
23 electrical characteristics 23-9 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 symbol parameter test condition rated value unit min typ max icce vcce power supply current when operating f(xin)=16.0mhz 20 ma iccer vccer power supply current when operating f(xin)=16.0mhz 170 ma idde vdde power supply current when operating f(xin)=16.0mhz 1 ma icc-bus vcc-bus power supply current when operating f(xin)=16.0mhz 20 ma iavcc avcc power supply current when operating f(xin)=16.0mhz 3 ma ivref vref power supply current when operating f(xin)=16.0mhz 1 ma symbol parameter test condition rated value unit min typ max voh output "h" voltage ioh -5ma vcce+0.165 vcce v ioh (ma) vol output "l" voltage iol 5ma 0 0.15 iol v (ma) vdde ram retention power supply voltage when operating 4.5 5.5 v during backup 3.0 5.5 v iih "h" state input current vi=vcce -5 5 a iil "l" state input current vi=0v -5 5 a icc total power supply current (note 1) during reset 80 ma when operating 130 190 ram retention ta=25c 60 800 power supply current (32192) ta=125c 500 5000 iddehold ram retention ta=25c 24 320 a power supply current (32195) ta=125c 200 2000 ram retention ta=25c 24 320 power supply current (32196) ta=125c 200 2000 vt+- fp, mod0, mod1, jtms, jtrst, jtdi/nbdsync#, reset# 1.0 v vt- standard input for the following pins: rtdclk, rtdrxd, sclki0, sclki1, sclki4, sclki5, 1.0 rxd0?rxd5, tclk0?tclk3, tin0, tin3, tin16?tin26, crx0, crx1, nbdd0?nbdd3 standard input for the following pins: 0.3 sbi#, hreq#, tin27 when threshold 0.7vcce/0.35vcce 1.0 switching function 0.7vcce/0.5vcce 0.3 is used (vt+ / vt?) 0.5vcce/0.35vcce 0.3 note 1: total amount of current when single-chip mode 23.4.2 d.c. characteristics (when vcce = 5 v 0.5 v, f(xin) = 16 mhz) electrical characteristics (in case if vcce,vccer,vcc-bus,vdde,ta are not specified referenced to "23.1 adapted table.") electrical characteristics of each power supply pin 23.4 electrical characteristics when vcce = 5 v, f(xin) = 16 mhz
23-10 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 symbol parameter test condition rated value unit min typ max ? resolution vref=vcce=avcc 10 bits ? absolute invalid s&h slow mode normal speed 2 lsb accuracy double speed 2 (note 1) fast mode normal speed 3 double speed 3 valid normal slow mode normal speed 2 s&h, invalid double speed 2 synchronous fast mode normal speed 3 s&h double speed 3 valid fast slow mode normal speed 3 s&h, invalid double speed 3 synchronous fast mode normal speed 3 s&h double speed 8 valid normal slow mode normal speed 3 s&h, valid double speed 3 synchronous fast mode normal speed 3 s&h double speed 3 valid fast slow mode normal speed 3 s&h and double speed 3 synchronous fast mode normal speed 3 s&h double speed 8 tconv conversion invalid s&h slow mode normal speed 18.6875 s time or valid double speed 10.8125 normal s&h fast mode normal speed 8.1875 double speed 5.5625 valid fast slow mode normal speed 11.9375 s&h double speed 6.3125 fast mode normal speed 5.9375 double speed 3.3125 iian analog input leakage current (note 2) avss adiinn avcc -5 5 a note 1: absolute accuracy refers to the accuracy of output code relative to the analog input including all error sources (including quantization error) in an a/d converter, and is calculated using the equation below. absolute accuracy = output code - (analog input voltage adiinn / 1 lsb) when avcc = avref = 5.12 v, 1 lsb = 5 mv. note 2: this refers to the input leakage current on adiinn while the a/d converter remains idle. notes: ? s&h stands for sample and hold ? it is a/d conversion characteristics when in 2bclk mode and vcce=vcc-bus=vdde=5.12v, vccer=5.12v or 3.072v. 23.4.3 a/d conversion characteristics (when vcce = 5 v 0.5 v, f(xin) = 16 mhz) a/d conversion characteristics (in case if vcce,vccer,vcc-bus,vdde, ta are not specified refer- enced to "23.1 adapted table.") 23.4 electrical characteristics when vcce = 5 v, f(xin) = 16 mhz
23 electrical characteristics 23-11 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 symbol parameter rated value unit min typ max vcce main power supply (note 1) 3.0 3.3 3.6 v vccer power supply for the internal voltage generator circuit 3.0 3.3 3.6 v (note 1)(note 2) 4.5 5.0 5.5 v vcc-bus bus power supply (note 1) 3.0 vcce 3.6 v vdde ram power supply (note 1) 3.0 vcce 3.6 v avcc analog power supply (note 1) 3.0 vcce 3.6 v vref reference voltage input (note 1) 3.0 vcce 3.6 v vih input "h" threshold when threshold selection 0.5vcce vcce v voltage switching cmos input : 0.35vcce (note 3) function is selected threshold selection 0.65vcce vcce v (multipurpose : 0.5vcce port function threshold selection 0.8vcce vcce v pin) : 0.7vcce when vt+/vt- 0.65vcce vcce v schmitt input : 0.5vcce/0.35vcce is selected vt+/vt- 0.8vcce vcce v : 0.7vcce/0.35vcce vt+/vt- 0.8vcce vcce v : 0.7vcce/0.5vcce fp, mod0, mod1, jtms, jtrst, jtck/ nbdclk, jtdi/nbdsync#, reset# 0.8vcce vcce v standard input for the following pins: rtdclk, rtdrxd, sclki0, sclki1, sclki4, sclki5, rxd0? 0.8vcce vcce v rxd5, tclk0?tclk3, tin0, tin3, tin16?tin26, crx0, crx1, nbdd0?nbdd3 standard input for the following pins: db0?b15, wait# 0.5vcce vcce v tin4?tin11, tin30?tin33 standard input for the following pins: sbi#, hreq#, tin27 0.65vcce vcce v xin threshold oscillation abort dection (note 6) 0.65vcc-bus vcc-bus v 23.5 electrical characteristics when vcce = 3.3 v, f(xin) = 20 mhz 23.5 electrical characteristics when vcce = 3.3 v, f(xin) = 20 mhz 23.5.1 recommended operating conditions (when vcce = 3.3 v 0.3 v, f(xin) = 20 mhz) recommended operating conditions (in case if vcce,vccer,vcc-bus,vdde,ta are not specified ref- erenced to "23.1 adapted table.")
23-12 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 symbol parameter rated value unit min typ max vil input "l" threshold when threshold selection 0 0.2vcce v voltage switching cmos input : 0.35vcce (note 3) function is selected threshold selection 0 0.35vcce v (multipurpose : 0.5vcce port function threshold selection 0 0.5vcce v pin) : 0.7vcce when vt+/vt- 0 0.2vcce v schmitt input : 0.5vcce/0.35vcce is selected vt+/vt- 0 0.2vcce v : 0.7vcce/0.35vcce vt+/vt- 0 0.35vcce v : 0.7vcce/0.5vcce fp, mod0, mod1, jtms, jtrst, jtck/nbdclk, jtdi/nbdsync#, reset# 0 0.2vcce v standard input for the following pins: rtdclk, rtdrxd, sclki0, sclki1, sclki4, sclki5, rxd0? 0 0.2vcce v rxd5, tclk0?tclk3, tin0, tin3, tin16?tin26, crx0, crx1, nbdd0?nbdd3 standard input for the following pins: db0?db15, wait# 0 0.2vcce v tin4?tin11, tin30?tin33 standard input for the followingpins: sbi#, hreq#, tin27 0 0.2vcce v xin threshold oscillation abort dection (note 6) 0 0.35vcc-bus v ioh(peak) "h" state peak output current p0?p22 (note 4) -10 ma ioh(avg) "h" state average output current p0?p22 (note 5) -5 ma iol(peak) "l" state peak output current p0?p22 (note 4) 10 ma iol(avg) "l" state average output current p0?p22 (note 5) 5 ma cl output load nbdd0?nbdd3 (output), nbdevnt# 100 pf capacitance jtdo 80 pf other than above 15 50 pf f(xin) external clock input frequency 15 20 mhz note 1: subject to conditions vcce avcc vref note 2: when ta = -40c?85, vccer = 5v 0.5v note 3: the ports listed below operate with the vcc-bus power supply, and not with the vcce power supply. therefore, the reference voltage for these ports is the vcc-bus input voltage. p00?07, p10?17, p20?27, p30?37, p41?47, p150, p153, p220, p221, p224, p225, xin, xout note 4: make sure the total output current (peak) of ports is | ports p0 + p1 + p2 | 80 ma | ports p3 + p4 + p13 + p15 + p22 | 80 ma | ports p6 + p7 + p8 + p9 + p17 | 80 ma | ports p10 + p11 + p12 | 80 ma note 5: the average output current is a value averaged during a 100 ms period. note 6: prescribe a voltage level in order xin oscillation stop detection circuit can judge changing xin level.for that it is necessary to remain the voltage in vih/vil standard more than 5ns. 23.5 electrical characteristics when vcce = 3.3 v, f(xin) = 20 mhz
23 electrical characteristics 23-13 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 symbol parameter test condition rated value unit min typ max icce vcce power supply current when operating f(xin)=20.0mhz 14 ma iccer vccer power supply current when operating f(xin)=20.0mhz 190 ma idde vdde power supply current when operating f(xin)=20.0mhz 1 ma icc-bus vcc-bus power supply current when operating f(xin)=20.0mhz 14 ma iavcc avcc power supply current when operating f(xin)=20.0mhz 2 ma ivref vref power supply current when operating f(xin)=20.0mhz 1 ma symbol parameter test condition rated value unit min typ max voh output "h" voltage ioh -2ma vcce+0.5 vcce v ioh (ma) vol output "l" voltage iol 2ma 0 0.225 iol v (ma) vdde ram retention power supply voltage when operating 3.0 3.6 v during backup 3.0 3.6 v iih "h" state input current vi=vcce -5 5 a iil "l" state input current vi=0v -5 5 a icc total power supply current (note 1) during reset 90 ma when operating 150 210 ram retention ta=25c 60 800 power supply current (32192) ta=105c 300 3000 iddehold ram retention ta=25c 24 320 a power supply current (32195) ta=105c 150 1500 ram retention ta=25c 24 320 power supply current (32196) ta=105c 150 1500 vt+- fp, mod0, mod1, jtms, jtrst, jtdi/nbdsync#, reset# 0.65 v vt- standard input for the following pins: rtdclk, rtdrxd, sclki0, sclki1, sclki4, sclki5, 0.5 rxd0?rxd5, tclk0?tclk3, tin0, tin3, tin16?tin26, crx0, crx1, nbdd0?nbdd3 standard input for the following pins: 0.2 sbi#, hreq#, tin27 when threshold 0.7vcce/0.35vcce 0.5 switching function 0.7vcce/0.5vcce 0.2 is used (vt+ / vt?) 0.5vcce/0.35vcce 0.2 note 1: total amount of current when single-chip mode 23.5.2 d.c. characteristics (when vcce = 3.3 v 0.3 v, f(xin) = 20 mhz) electrical characteristics (in case if vcce,vccer,vcc-bus,vdde,ta are not specified referenced to "23.1 adapted table.") 23.5 electrical characteristics when vcce = 3.3 v, f(xin) = 20 mhz electrical characteristics of each power supply pin
23-14 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 symbol parameter test condition rated value unit min typ max ? resolution vref=vcce=avcc 10 bits ? absolute invalid s&h slow mode normal speed 4 lsb accuracy double speed 4 (note 1) fast mode normal speed 6 double speed 16 valid normal slow mode normal speed 4 s&h, invalid double speed 4 synchronous fast mode normal speed 6 s&h double speed 16 valid fast slow mode normal speed 4 s&h, invalid double speed 16 synchronous fast mode normal speed 16 s&h double speed 48 valid normal slow mode normal speed 4 s&h, valid double speed 4 synchronous fast mode normal speed 6 s&h double speed 16 valid fast slow mode normal speed 4 s&h and double speed 16 synchronous fast mode normal speed 16 s&h double speed 48 tconv conversion invalid s&h slow mode normal speed 14.95 s time or valid double speed 8.65 normal s&h fast mode normal speed 6.55 double speed 4.45 valid fast slow mode normal speed 9.55 s&h double speed 5.05 fast mode normal speed 4.75 double speed 2.65 iian analog input leakage current (note 2) avss adiinn avcc -5 5 a note 1: absolute accuracy refers to the accuracy of output code relative to the analog input including all error sources (including quantization error) in an a/d converter, and is calculated using the equation below. absolute accuracy = output code - (analog input voltage adiinn / 1 lsb) when avcc = avref = 3.072 v, 1 lsb = 3 mv. note 2: this refers to the input leakage current on adiinn while the a/d converter remains idle. notes: ? s&h stands for sample and hold ? it is a/d conversion characteristics when in 2bclk mode and vcce=vcc-bus=vdde=3.072v, vccer=5.12v or 3.072v. 23.5.3 a/d conversion characteristics (when vcce = 3.3 v 0.3 v, f(xin) = 20 mhz) a/d conversion characteristics (in case if vcce,vccer,vcc-bus,vdde,ta are not specified refer- enced to "23.1 adapted table.") 23.5 electrical characteristics when vcce = 3.3 v, f(xin) = 20 mhz
23 electrical characteristics 23-15 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 symbol parameter rated value unit min typ max vcce main power supply (note 1) 3.0 3.3 3.6 v vccer power supply for the internal voltage generator circuit 3.0 3.3 3.6 v (note 1)(note 2) 4.5 5.0 5.5 v vcc-bus bus power supply (note 1) 3.0 vcce 3.6 v vdde ram power supply (note 1) 3.0 vcce 3.6 v avcc analog power supply (note 1) 3.0 vcce 3.6 v vref reference voltage input (note 1) 3.0 vcce 3.6 v vih input "h" threshold when threshold selection 0.5vcce vcce v voltage switching cmos input : 0.35vcce (note 3) function is selected threshold selection 0.65vcce vcce v (multipurpose : 0.5vcce port function threshold selection 0.8vcce vcce v pin) : 0.7vcce when vt+/vt- 0.65vcce vcce v schmitt input : 0.5vcce/0.35vcce is selected vt+/vt- 0.8vcce vcce v : 0.7vcce/0.35vcce vt+/vt- 0.8vcce vcce v : 0.7vcce/0.5vcce fp, mod0, mod1, jtms, jtrst, jtck/nbdclk, jtdi/nbdsync#, reset# 0.8vcce vcce v standard input for the following pins: rtdclk, rtdrxd, sclki0, sclki1, sclki4, sclki5, rxd0? 0.8vcce vcce v rxd5, tclk0?tclk3, tin0, tin3, tin16?tin26, crx0, crx1, nbdd0?nbdd3 standard input for the following pins: db0?b15, wait# 0.5vcce vcce v tin4?tin11, tin30?tin33 standard input for the following pins: sbi#, hreq#, tin27 0.65vcce vcce v xin threshold oscillation abort dection (note 6) 0.65vcc-bus vcc-bus v 23.6 electrical characteristics when vcce = 3.3 v, f(xin) = 16 mhz 23.6 electrical characteristics when vcce = 3.3 v, f(xin) = 16 mhz 23.6.1 recommended operating conditions (when vcce = 3.3 v 0.3 v, f(xin) = 16 mhz) recommended operating conditions (in case if vcce,vccer,vcc-bus,vdde,ta are not specified ref- erenced to "23.1 adapted table.")
23-16 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 symbol parameter rated value unit min typ max vil input "l" threshold when threshold selection 0 0.2vcce v voltage switching cmos input : 0.35vcce (note 3) function is selected threshold selection 0 0.35vcce v (multipurpose : 0.5vcce port function threshold selection 0 0.5vcce v pin) : 0.7vcce when vt+/vt- 0 0.2vcce v schmitt input : 0.5vcce/0.35vcce is selected vt+/vt- 0 0.2vcce v : 0.7vcce/0.35vcce vt+/vt- 0 0.35vcce v : 0.7vcce/0.5vcce fp, mod0, mod1, jtms, jtrst, jtck/nbdclk, jtdi/nbdsync#, reset# 0 0.2vcce v standard input for the following pins: rtdclk, rtdrxd, sclki0, sclki1, sclki4, sclki5, rxd0? 0 0.2vcce v rxd5, tclk0?tclk3, tin0, tin3, tin16?tin26, crx0, crx1, nbdd0?nbdd3 standard input for the following pins: db0?db15, wait# 0 0.2vcce v tin4?tin11, tin30?tin33 standard input for the followingpins: sbi#, hreq#, tin27 0 0.2vcce v xin threshold oscillation abort dection (note 6) 0 0.35vcc-bus v ioh(peak) "h" state peak output current p0?p22 (note 4) -10 ma ioh(avg) "h" state average output current p0?p22 (note 5) -5 ma iol(peak) "l" state peak output current p0?p22 (note 4) 10 ma iol(avg) "l" state average output current p0?p22 (note 5) 5 ma cl output load nbdd0?nbdd3 (output), nbdevnt# 100 pf capacitance jtdo 80 pf other than above 15 50 pf f(xin) external clock input frequency 15 16 mhz note 1: subject to conditions vcce avcc vref note 2: when ta = -40c?85, vccer = 5v 0.5v note 3: the ports listed below operate with the vcc-bus power supply, and not with the vcce power supply. therefore, the reference voltage for these ports is the vcc-bus input voltage. p00?07, p10?17, p20?27, p30?37, p41?47, p150, p153, p220, p221, p224, p225, xin, xout note 4: make sure the total output current (peak) of ports is | ports p0 + p1 + p2 | 80 ma | ports p3 + p4 + p13 + p15 + p22 | 80 ma | ports p6 + p7 + p8 + p9 + p17 | 80 ma | ports p10 + p11 + p12 | 80 ma note 5: the average output current is a value averaged during a 100 ms period. note 6: prescribe a voltage level in order xin oscillation stop detection circuit can judge changing xin level.for that it is necessary to remain the voltage in vih/vil standard more than 5ns. 23.6 electrical characteristics when vcce = 3.3 v, f(xin) = 16 mhz
23 electrical characteristics 23-17 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 symbol parameter test condition rated value unit min typ max icce vcce power supply current when operating f(xin)=16.0mhz 14 ma iccer vccer power supply current when operating f(xin)=16.0mhz 170 ma idde vdde power supply current when operating f(xin)=16.0mhz 1 ma icc-bus vcc-bus power supply current when operating f(xin)=16.0mhz 14 ma iavcc avcc power supply current when operating f(xin)=16.0mhz 2 ma ivref vref power supply current when operating f(xin)=16.0mhz 1 ma symbol parameter test condition rated value unit min typ max voh output "h" voltage ioh -2ma vcce+0.5 vcce v ioh (ma) vol output "l" voltage iol 2ma 0 0.225 iol v (ma) vdde ram retention power supply voltage when operating 3.0 3.6 v during backup 3.0 3.6 v iih "h" state input current vi=vcce -5 5 a iil "l" state input current vi=0v -5 5 a icc total power supply current (note 1) during reset 80 ma when operating 130 190 ram retention ta=25c 60 800 power supply current (32192) ta=125c 500 5000 iddehold ram retention ta=25c 24 320 a power supply current (32195) ta=125c 200 2000 ram retention ta=25c 24 320 power supply current (32196) ta=125c 200 2000 vt+- fp, mod0, mod1, jtms, jtrst, jtdi/nbdsync#, reset# 0.65 v vt- standard input for the following pins: rtdclk, rtdrxd, sclki0, sclki1, sclki4, sclki5, 0.5 rxd0?rxd5, tclk0?tclk3, tin0, tin3, tin16?tin26, crx0, crx1, nbdd0?nbdd3 standard input for the following pins: 0.2 sbi#, hreq#, tin27 when threshold 0.7vcce/0.35vcce 0.5 switching function 0.7vcce/0.5vcce 0.2 is used (vt+ / vt?) 0.5vcce/0.35vcce 0.2 note 1: total amount of current when single-chip mode 23.6.2 d.c. characteristics (when vcce = 3.3 v 0.3 v, f(xin) = 16 mhz) electrical characteristics (in case if vcce,vccer,vcc-bus,vdde,ta are not specified referenced to "23.1 adapted table.") 23.6 electrical characteristics when vcce = 3.3 v, f(xin) = 16 mhz electrical characteristics of each power supply pin
23-18 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 23.6.3 a/d conversion characteristics (when vcce = 3.3 v 0.3 v, f(xin) = 8 mhz) a/d conversion characteristics (in case if vcce,vccer,vcc-bus,vdde,ta are not specified refer- enced to "23.1 adapted table.") symbol parameter test condition rated value unit min typ max ? resolution vref=vcce=avcc 10 bits ? absolute invalid s&h slow mode normal speed 4 lsb accuracy double speed 4 (note 1) fast mode normal speed 6 double speed 16 valid normal slow mode normal speed 4 s&h, invalid double speed 4 synchronous fast mode normal speed 6 s&h double speed 16 valid fast slow mode normal speed 4 s&h, invalid double speed 16 synchronous fast mode normal speed 16 s&h double speed 48 valid normal slow mode normal speed 4 s&h, valid double speed 4 synchronous fast mode normal speed 6 s&h double speed 16 valid fast slow mode normal speed 4 s&h and double speed 16 synchronous fast mode normal speed 16 s&h double speed 48 tconv conversion invalid s&h slow mode normal speed 18.6875 s time or valid double speed 10.8125 normal s&h fast mode normal speed 8.1875 double speed 5.5625 valid fast slow mode normal speed 11.9375 s&h double speed 6.3125 fast mode normal speed 5.9375 double speed 3.3125 iian analog input leakage current (note 2) avss adiinn avcc -5 5 a note 1: absolute accuracy refers to the accuracy of output code relative to the analog input including all error sources (including quantization error) in an a/d converter, and is calculated using the equation below. absolute accuracy = output code - (analog input voltage adiinn / 1 lsb) when avcc = avref = 3.072 v, 1 lsb = 3 mv. note 2: this refers to the input leakage current on adiinn while the a/d converter remains idle. notes: ? s&h stands for sample and hold ? it is a/d conversion characteristics when in 2bclk mode and vcce=vcc-bus=vdde=3.072v, vccer=5.12v or 3.072v. 23.6 electrical characteristics when vcce = 3.3 v, f(xin) = 16 mhz
23 electrical characteristics 23-19 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 23.7 flash memory related characteristics 23.7 flash memory related characteristics symbol parameter test condition rated value unit min typ max topr m3219xf8vfp, m32195f4vfp -40 125 c for flash rewriting m3219xf8ufp, m32195f4ufp -40 105 m3219xf8tfp, m32195f4tfp -40 85 cycle number of times for standard goods 100 times flash rewriting(note1) (note 2) note 1: writing time for every 4 half word. 23.8 external capacitance for power supply note 1: definition of the number of times for flash rewriting the number of times for flash rewriting is the number of times for erase for each blocks. when the number of times is 100, it can be erase 100 times for each blocks. however, for ine erase it can not be writed in the same adress two or more times(forbiddance of overwriting). note 2: it is the minimum number of times which guarantees all the characteristics after program/erase (guarantee is the range from "1" to "minimum" value. (1)standard goods (the number of times for flash rewriting is 100) symbol parameter test condition rated value unit min typ max tprg program time (note 1) 4 kbyte block till 100 times 200 1600 s other than 4 kbyte block till 100 times 100 800 s 4 kbyte block till 100 times 0.3 6 s 8 kbyte block till 100 times 0.3 6 s tbers block erase time 16 kbyte block till 100 times 0.5 6 s 32 kbyte block till 100 times 0.7 6 s 64 kbyte block till 100 times 1.2 6 s symbol parameter rated value unit min typ max excvcc external capacity connestion pins 1 10 f excvdd external capacity connestion pins 110f for inside internal ram power supply
23-20 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 23.9 a.c. characteristics (when vcce = 5 v) ? the timing conditions are referenced to vcce, vccer, vcc-bus, vdde = 5 v 0.5 v, ta = ?40c to 125c unless otherwise noted. ? the rated values below are guaranteed for the case where the output load capacitance of the measured pins are 15 pf to 50 pf (guaranteed value during centralizedcapacitance for jtag related values is 80 pf and for nbd related is 100 pf). ? the terms w, c, s, r and id in the rated values shown below have the following meaning. for details about cs area wait control regiser, see section 18.2.1, "cs area wait control registers." w: number of wait states (selected by the cs area wait control register wait bit) c: "1" when the cs area wait control register cwait bit = 1, or "0" when cwait bit = 0 s: "1" when the cs area wait control register swait bit = 1, or "0" when swait bit = 0 r: "1" when the cs area wait control register recov bit = 1, or "0" when recov bit = 0 id: number of idle cycles inserted at the end of the bus cycle. idle cycles may be inserted as specified by the cs area wait control register idle bit, or inserted by default when a write operation is executed immediately after a read (id = 0 or 1). ? characteristics of synchronous timing to the external bus clock are values only relative to clkout (none relative to bclk). ? the clkout/wr# functions are assigned to two separate pins, p70/clkout/wr#/bclk pins (pin no.78) and p150/tin0/clkout/wr# pins (pin no.133). unless otherwise noted, characteristics for clkout pin/wr# pin are values of pin no.133. ? the output drive capability is a value under the following conditions. for output drive capability setting, see section 8.5, "port output drive capability setting function." ? clkout pin/wr# pin (pin no.133): high drive power selected ? the rest of the output pins: low drive power (the value upon exiting reset) selected (1) output switching characteristics measurement circuit 23.9 a.c. characteristics (when vcce = 5 v) measured pin cmos output cl : jtdo pin = 80pf : nbdd0 ? nbdd3 (output), nbdevnt# = 100pf : other than those above = 15 ? 50pf figure 23.9.1 output switching characteristics measurement circuit timing requirements (2) input and output transition time symbol parameter rated value unit see fig min max 23.9.2 tr high-going nbdclk, nbdd0-nbdd3 pins (input), 8ns [115] (input) transitiontime of nbdsync# pin input jtck, jtdi, jtms 10 ns jtrst pin 2 ms tf low-ging nbdclk, nbdd0-nbdd3 pins (input), 8ns [116] (input) transition time of nbdsync# pin input jtck, jtdi, jtms 10 ns jtrst pin 2 ms
23 electrical characteristics 23-21 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 23.9 a.c. characteristics (when vcce = 5 v) figure 23.9.2 input/output transition time input pin (relative to vcc-bus) [115] tr(input) [116] tf(input) 0.43vcc-bus 0.16vcc-bus 0.43vcc-bus 0.16vcc-bus input pin (relative to vcce) [115] tr(input) [116] tf(input) 0.8vcce 0.2vcce 0.8vcce 0.2vcce timing requirements figure 23.9.3 clock and reset timing xin (input) (when using oscillation circuit) 0.5vcc-bus reset# (input) 0.2vcce 0.2vcce [119] tc(xin) [124] tw(reset) xin (input) (when using external clock input) (note 1) 0.8vcc-bus [120] tw(xinh) [121] tw(xinl) 0.8vcc-bus 0.2vcc-bus [122] tr(xinh) [123] tr(xinl) 0.5vcc-bus 0.2vcc-bus 0.2vcc-bus note 1: make xout pin open and set parasitic capacity as 10pf or less. the xdrv bit of clock control register (clkcr) should be choosen b'11 (maximum). (3) clock and reset timing symbol parameter rated value unit see fig min max 23.9.3 tc(xin) clock input cycle time 50 66.7 ns [119] tw(xinh) external clock input "h" pulse width 20 ns [120] tw(xinl) external clock input "l" pulse width 20 ns [121] tr(xinh) external clock input hign-going time 5 ns [122] tr(xinl) external clock input low-going time 5 ns [123] tw(reset) reset input "l" pulse width 300 ns [124]
23-22 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (4) input/output ports symbol parameter rated value unit see fig. min max 23.9.4 timing tsu(p-e) port input setup time 100 ns [1] requirements th(e-p) port input hold time 0 ns [2] switching td(e-p) port data output delay time 100 ns [3] characteristics 23.9 a.c. characteristics (when vcce = 5 v) figure 23.9.4 input/output port timing port (output) [3] td(e-p) 0.8vcce 0.2vcce bclk 0.8vcce 0.2vcce 0.8vcce 0.2vcce port (input) 0.8vcce [1] tsu(p-e) [2] th(e-p) note:  the ports listed below operate with the vcc-bus power supply, and not with the vcce power supply. therefore, the reference voltage for these ports is the vcc-bus input voltage. p00?p07, p10?p17, p20?p27, p30?p37, p41?p47, p70?p73, p224, p225
23 electrical characteristics 23-23 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 23.9 a.c. characteristics (when vcce = 5 v) sclko txd rxd [6] td(clk-d) [4] tsu(d-clk) [5] th(clk-d) a) csio mode, with internal clock selected 0.8vcce 0.2vcce 0.2vcce 0.8vcce 0.2vcce 0.8vcce b) csio mode, with external clock selected sclki txd rxd [12] td(clk-d) [10] tsu(d-clk) [11] th(clk-d) 0.8vcce 0.2vcce 0.2vcce 0.8vcce 0.2vcce 0.8vcce 0.2vcce 0.8vcce [7] tc(clk) [8] tw(clkh) [9] tw(clkl) 0.2vcce 0.8vcce [98] th(clk-d) symbol parameter rated value unit see fig. min max 23.9.5 timing tsu(d-clk) rxd input setup time when 3 point sampling is invalid 80 ns [4] when 3 point sampling is valid 80+tc(bclk) ns requirements th(clk-d) rxd input hold time 15+tc(bclk) ns [5] switching td(clk-d) txd output delay time 50 ns [6] characteristics th(clk-d) txd hold time 0 ns [98] figure 23.9.5 serial interface timing symbol parameter rated value unit see fig. min max 23.9.5 tc(clk) clk input cycle time 16 x tc(bclk) ns [7] timing tw(clkh) clk input "h" pulse width 5 x tc(bclk) ns [8] requirements tw(clkl) clk input "l" pulse width 5 x tc(bclk) ns [9] tsu(d-clk) rxd input setup time 50 ns [10] th(clk-d) rxd input hold time 55+tc(bclk) ns [11] switching td(clk-d) txd output delay time when 3 point sampling is invalid 85+2tc(bclk) ns [12] characteristics when 3 point sampling is valid 85+3tc(bclk) (5) serial interface a) csio mode, with internal clock selected b) csio mode, with external clock selected
23-24 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 symbol parameter rated value unit see fig. min max 23.9.7 timing tw(tin) tin input pulse width when bclk/4 is selected (note 1) 7 tc(bclk) ns [14] requirements when bclk/4 is not selected (note 1) 7 ns note 1: tin24, 25, pwmoff0 are selected in tou0 control register 1 (tou0cr1) prs3cks bit, tin26, 27, pwmoff1 are selected in tou1 control register 1 (tou1cr1) prs4cks bit, other tin are selected in common count clock select register (cntcksel) prs012cks bit. (6) sbi 23.9 a.c. characteristics (when vcce = 5 v) sbi# [13] tw(sbil) 0.2vcce 0.2vcce figure 23.9.6 sbi timing figure 23.9.7 tin timing tin 0.8vcce 0.2vcce 0.8vcce 0.2vcce [14] tw(tin) (7) tin symbol parameter rated value unit see fig. min max 23.9.6 timing tw(sbil) sbi# input pulse width 5 ns [13] requirements tc(bclk) 2 tc(bclk) 2
23 electrical characteristics 23-25 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 23.9 a.c. characteristics (when vcce = 5 v) figure 23.9.8 to timing bclk to [15] td(clkout-to) 0.8vcce 0.2vcce 0.2vcc-bus symbol parameter rated value unit see fig. min max 23.9.8 switching td(bclk-to) to output delay time 100 ns [15] characteristics (8)to figure 23.9.9 tclk timing tclk 0.2vcce [100] tw(tclkl) [99] tw(tclkh) 0.8vcce (9) tclk note 1: selected in common count clock select register (cntcksel) prs012cks bit. symbol parameter rated value unit see fig. min max 23.9.9 tw(tclkh) tclk input "h" when bclk/4 is selected (note 1) 7 tc(bclk) ns [99] timing pulse width when bclk/2 is selected (note 1) 7 ns requirements tw(tclkl) tclk input "l" when bclk/4 is selected (note 1) 7 tc(bclk) ns [100] pulse width when bclk/2 is selected (note 1) 7 ns tc(bclk) 2 tc(bclk) 2
23-26 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 23.9 a.c. characteristics (when vcce = 5 v) (10) read and write timing (1/4) symbol parameter rated value unit see figs. min max 23.9.10 23.9.11 tsu(d-clkouth) data input setup time before clkout 26 ns [31] th(clkouth-d) data input hold time after clkout 0 ns [32] tsu(waitl-clkouth) wait# input setup time before clkout 26 ns [33] th(clkouth-waitl) wait# input hold time after clkout 0 ns [34] tsu(waith-clkouth) wait# input setup time before clkout 26 ns [78] th(clkouth-waith) wait# input hold time after clkout 0 ns [79] tv(clkouth-blwl) write valid time after clkout -5 ns [90] tv(clkouth-bhwl) (with zero wait state) td(clkouth-rdl) read delay time after clkout 12 ns [92] (when either swait or cwait = 1) td(clkouth-blwl) write delay time after clkout 13 ns [112] td(clkouth-bhwl) (byte write mode) (when either swait or cwait = 1) td(clkoutl-blwh) write delay time after clkout 14 ns [97] td(clkoutl-bhwh) tc(clkout) clkout output cycle time ns [16] tw(clkouth) clkout output "h" pulse width - 5 ns [17] tw(clkoutl) clkout output "l" pulse width - 5 ns [18] td(clkouth-a) address delay time after clkout 24 ns [19] td(clkouth-cs) chip select delay time after clkout 24 ns [20] (when cwait=0) td(clkoutl-csl) chip select delay time after clkout 24 ns [113] (when cwait=1) tv(clkouth-a) address valid time after clkout -5 ns [21] tv(clkouth-cs) chip select valid time after clkout -5 ns [22] td(clkoutl-rdl) read delay time after clkout 10 ns [23] (when both swait and cwait=0 or both swait and cwait=1) tv(clkouth-rdl) read valid time after clkout -5 ns [24] td(clkoutl-blwl) write delay time after clkout 11 ns [25] td(clkoutl-bhwl) (when both swait and cwait=0 or both swait and cwait=1) tv(clkoutl-blwl) write valid time after clkout -5 ns [26] tv(clkoutl-bhwl) td(clkoutl-d) data output delay time after clkout 0 wait state:11 ns [27] 1-plus wait states:18 tv(clkouth-d) data output valid time after clkout 0 wait state: -4 ns [28] 1-plus wait states: -10 tpzx(clkoutl-dz) data output enable time after clkout -10 ns [29] tpxz(clkouth-dz) data output disable time after clkout 5 ns [30] tw(csh) chip select "h" pulse width c=0: ns [114] (tc(clkout)xid)-15id c=1: tc(clkout) ( + id)-15 timing requirements switching characteristics tc(xin) 2 tc(clkout) 2 tc(clkout) 2 1 2
23 electrical characteristics 23-27 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 notes:  for signal-to-signal timing, see figure 23.9.12, "read timing (relative to read pulse)," and figure 23.9.13, "write timing (relative to write pulse)."  when using the threshold switching function, the data input and wait# voltage levels are determined with respect to the rated minimum and maximum values for vih and vil. clkout [16] tc(clkout) data output (db0?db15) address (a9?a30) blw# bhw# cs# (access area) wait# 0.43vcc-bus 0.16vcc-bus [19] td(clkouth-a) 0.43vcc-bus [17] tw(clkouth) [21] tv(clkouth-a) [18] tw(clkoutl) [20] td(clkouth-cs) [22] tv(clkouth-cs) [22] tv(clkouth-cs) [24] tv(clkouth-rdl) [92] td(clkouth-rdl) 0.16vcc-bus 0.43vcc-bus 0.16vcc-bus [23] td(clkoutl-rdl) [20] td(clkouth-cs) 0.43vcc-bus 0.16vcc-bus [32] th(clkouth-d) [31] tsu(d-clkouth) [26] tv(clkoutl-blwl) tv(clkoutl-bhwl) [28] tv(clkouth-d) [30] tpxz(clkouth-dz) [29] tpzx(clkoutl-dz) [27] td(clkoutl-d) [33] tsu(waitl-clkouth) [34] th(clkouth-waitl) [79] th(clkouth-waith) [78] tsu(waith-clkouth) [25] td(clkoutl-blwl) td(clkoutl-bhwl) 0.16vcc-bus 0.43vcc-bus 0.16vcc-bus 0.43vcc-bus 0.16vcc-bus 0.16vcc-bus 0.43vcc-bus cs# (non-access area) rd# data input (db0?db15) [97] td(clkoutl-blwh) td(clkoutl-bhwh) [113] td(clkoutl-csl) [114] tw(csh) [112] td(clkouth-blwl) td(clkouth-bhwl) figure 23.9.10 read and write timing (relative to clkout) with 1 or more wait states 23.9 a.c. characteristics (when vcce = 5 v)
23-28 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 clkout [16] tc(clkout) data output (db0?db15) address (a9?a30) cs0#, cs1#, cs2#, cs3# blw# bhw# 0.43vcc-bus 0.16vcc-bus 0.43vcc-bus [17] tw(clkouth) [18] tw(clkoutl) [24] tv(clkouth-rdl) 0.16vcc-bus [23] td(clkoutl-rdl) 0.16vcc-bus [32] th(clkouth-d) [31] tsu(d-clkouth) [90] tv(clkouth-blwl) tv(clkouth-bhwl) [28] tv(clkouth-d) [30] tpxz(clkouth-dz) [29] tpzx(clkoutl-dz) [27] td(clkoutl-d) [25] td(clkoutl-blwl) td(clkoutl-bhwl) 0.16vcc-bus 0.43vcc-bus 0.16vcc-bus 0.43vcc-bus 0.16vcc-bus rd# data input (db0?db15) [20] td(clkouth-cs) [19] td(clkouth-a) [22] tv(clkouth-cs) [21] tv(clkouth-a) note:  when using the threshold switching function, the voltage levels of data input and wait# are determined with respect to the rated minimum and maximum values for vih and vil. 23.9 a.c. characteristics (when vcce = 5 v) figure 23.9.11 read and write timing (relative to clkout) with zero wait state
23 electrical characteristics 23-29 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 23.9 a.c. characteristics (when vcce = 5 v) (11) read and write timing (2/4) symbol parameter rated value unit see figs. min max 23.9.12 23.9.13 tsu(d-rdh) data input setup time before read 30 ns [44] th(rdh-d) data input hold time after read 0 ns [45] tsu(waith-rdl) wait input setup time before read tc(clkout)+21 ns [132] tsu(waitl-rdl) tw(waith) wait "h" pulse width (note 1) 26 ns [133] tw(waitl) wait "l" pulse width (note 1) 26 ns [134] tsu(waith-blwl) tsu(waith-bhwl) wait input setup time before write +21 ns [135] tsu(waitl-blwl) (byte write mode) tsu(waitl-bhwl) tw(rdh) read "h" pulse width (1+c+s) - 5 ns [55] tw(rdl) read "l" pulse width (1+2w-c-s)-20 ns [43] tw(blwl) write "l" pulse width 0 wait state: ns [51] tw(bhwl) (byte write mode) - 8 1-plus wait states: (2w-c-s) -20 td(rdh-blwl) write delay time after read tc(clkout)( +r+id)-10 ns [56] td(rdh-bhwl) td(blwh-rdl) read delay time after write 0 wait state: ns [57] td(bhwh-rdl) - 10 1-plus wait states: tc(clkout)(1+r+ )-10 td(csl-rdl) chip select delay time before read (1+s) -16 ns [93] td(csl-blwl) chip select delay time before write (1+s) -15 ns [95] td(csl-bhwl) td(a-rdl) address delay time before read (1+c+s)-15 ns [39] td(cs-rdl) chip select delay time before read (1+s) - 15 ns [40] tv(rdh-a) address valid time after read tc(clkout)(r+id) ns [41] tv(rdh-cs) chip select valid time after read tc(clkout) r ns [42] tpzx(rdh-dz) data output enable time after read tc(clkout)( +r+id) ns [46] td(a-blwl) address delay time before write (1+c+s)-15 ns [47] td(a-bhwl) (byte write mode) td(cs-blwl) chip select delay time before write (1+s)-15 ns [48] td(cs-bhwl) (byte write mode) tv(blwh-a) address valid time after write 0 wait state: -5 ns [49] tv(bhwh-a) (byte write mode) 1-plus wait states: tc(clkout)( +r)-5 tv(blwh-cs) chip select valid time after write 0 wait state: -5 ns [50] tv(bhwh-cs) (byte write mode) 1-plus wait states: tc(clkout)( +r)-5 td(blwl-d) data output delay time after write 0 wait state: 5 ns [52] td(bhwl-d) (byte write mode) 1-plus wait states: 15 - (s+c) switching characteristics tc(clkout) 2 tc(clkout) 2 tc(clkout) 2 c+s 2 tc(clkout) 2 tc(clkout) 2 tc(clkout) 2 tc(clkout) 2 tc(clkout) 2 tc(clkout) 2 1 2 1 2 tc(clkout) 2 1+c+s 2 1 2 timing requirements tc(clkout) 2 tc(clkout) 2 tc(clkout) 2 note 1: hold a level during tw(waith), tw(waitl) from the position of the minimum value of tsu(waith-rdl), tsu(waitl- rdl), tsu(waith-blwl), tsu(waith-bhwl), tsu(waitl-blwl), and tsu(waitl-bhwl).
23-30 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 23.9.12 read timing (relative to read pulse) [55] tw(rdh) blw# bhw# 0.43vcc-bus 0.16vcc-bus 0.43vcc-bus [43] tw(rdl) [39] td(a-rdl) [41] tv(rdh-a) [42] tv(rdh-cs) [42] tv(rdh-cs) 0.16vcc-bus 0.43vcc-bus 0.16vcc-bus [40] td(cs-rdl) 0.16vcc-bus [45] th(rdh-d) [44] tsu(d-rdh) 0.16vcc-bus 0.43vcc-bus rd# [57] td(blwh-rdl) td(bhwh-rdl) [56] td(rdh-blwl) td(rdh-bhwl) [93] td(csl-rdl) [46] tpzx(rdh-dz) 0.43vcc-bus 0.43vcc-bus 0.16vcc-bus wait# [132] tsu(waith-rdl) [133] tw(waith) data output (db0?db15) address (a9?a30) cs# (access area) cs# (non-access area) data input (db0?db15) note:  when using the threshold switching function, the voltage levels of data input and wait# are determined with respect to the rated minimum and maximum values for vih and vil. symbol parameter rated value unit see figs. min max 23.9.12 23.9.13 tv(blwh-d) data output valid time after write 0 wait state: -7 ns [53] tv(bhwh-d) (byte write mode) 1-plus wait states: tc(clkout)( +r) -13 tpzx(blwl-dz) data output enable time after write 0 wait state: -20 ns [126] tpzx(bhwl-dz) (byte write mode) 1-plus wait states: -22- (s+c) tpxz(blwh-dz) data output disable time after write 0 wait state: 5 ns [54] tpxz(bhwh-dz) (byte write mode) 1-plus wait states: tc(clkout)( +r) + 5 1 2 23.9 a.c. characteristics (when vcce = 5 v) switching characteristics tc(clkout) 2 1 2
23 electrical characteristics 23-31 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 23.9.13 write timing (relative to write pulse) blw# bhw# 0.43vcc-bus 0.16vcc-bus 0.43vcc-bus 0.16vcc-bus 0.43vcc-bus 0.16vcc-bus 0.16vcc-bus 0.16vcc-bus 0.43vcc-bus rd# [56] td(rdh-blwl) td(rdh-bhwl) [57] td(blwh-rdl) td(bhwh-rdl) [51] tw(blwl) tw(bhwl) 0.43vcc-bus [47] td(a-blwl) td(a-bhwl) [49] tv(blwh-a) tv(bhwh-a) [50] tv(blwh-cs) tv(bhwh-cs) [95] td(csl-blwl) td(csl-bhwl) [48] td(cs-blwl) td(cs-bhwl) [50] tv(blwh-cs) tv(bhwh-cs) [52] td(blwl-d) td(bhwl-d) [53] tv(blwh-d) tv(bhwh-d) [54] tpxz(blwh-dz) tpxz(bhwh-dz) [126] tpzx(blwl-dz) tpzx(bhwl-dz) tsu(waitl-bhwl) tsu(waith-blwl) tsu(waitl-blwl) [134] tw(waitl) [133] tw(waith) 0.16vcc-bus wait# [135] tsu(waith-bhwl) address (a9?a30) cs# (access area) cs# (non-access area) data output (db0?db15) 23.9 a.c. characteristics (when vcce = 5 v)
23-32 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (12) read and write timing (3/4) symbol parameter rated value unit see figs. min max 23.9.14 tsu(d-rdh) data input setup time before read 30 ns [44] th(rdh-d) data input hold time after read 0 ns [45] td(a-rdl) address delay time before read (1+c+s)-15 ns [39] td(cs-rdl) chip select delay time before read (1+s)-15 ns [40] tv(rdh-a) address valid time after read tc(clkout) x (r+id) ns [41] tv(rdh-cs) chip select valid time after read tc(clkout) x r ns [42] tw(rdl) read "l" pulse width (1+2w-c-s)-20 ns [43] tpzx(rdh-dz) data output enable time after read tc(clkout)( +r+id) ns [46] td(rdh-wrl) write dalay time after read tc(clkout)( +r+id)-10 ns [80] (byte write mode) td(wrh-rdl) read dalay time after write during 0 wait: (byte write mode) -20 during 1 wait: tc(clkout)(1+r+ ) -20 ns [81] td(csl-rdl) chip select dalay time before read (1+s)-16 ns [93] td(blel-rdl) byte enable delay time before read x (1+s)-20 ns [136] td(bhel-rdl) (byte write mode) tv(rdh-blel) valid time after read tc(clkout) x r-5 ns [137] tv(rdh-bhel) (byte write mode) 23.9 a.c. characteristics (when vcce = 5 v) switching characteristics tc(clkout) 2 tc(clkout) 2 tc(clkout) 2 tc(clkout) 2 tc(clkout) 2 c+s 2 1 2 1+c+s 2 tc(clkout) 2 timing requirements
23 electrical characteristics 23-33 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 23.9.14 read timing (byte enable mode) 23.9 a.c. characteristics (when vcce = 5 v) address (a12?a30) rd# cs# (access area) 0.43vcce 0.16vcce 0.43vcce 0.16vcce 0.43vcce 0.16vcce 0.16vcce cs# (non-access area) wr# [80] td(rdh-wrl) 0.43vcce [43] tw(rdl) ble# bhe# 0.16vcce [136] td(blel-rdl) td(bhel-rdl) [137] tv(rdh-blel) tv(rdh-bhel) [41] tv(rdh-a) [81] td(wrh-rdl) [39] td(a-rdl) [93] td(csl-rdl) [42] tv(rdh-cs) [42] tv(rdh-cs) [40] td(cs-rdl) [45] th(rdh-d) [44] tsu(d-rdh) 0.16vcce 0.43vcce [46] tpzx(rdh-dz) 0.43vcce 0.16vcce data inpit (db0?db15) data inpit (db0?db15)
23-34 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (13) read and write timing (4/4) symbol parameter rated value unit see fig. min max 23.9.15 tw(wrl) write "l" pulse width 0 wait state: ns [68] (byte enable mode) - 6 1-plus wait states: (2w-c-s)-20 td(rdh-wrl) write delay time after read tc(clkout)( +r+id)-10 ns [80] (byte enable mode) td(wrh-rdl) read delay time after write 0 wait state: ns [81] (byte enable mode) - 20 1-plus wait states: tc(clkout)(1+r+ )-20 td(csl- wrl) chip select delay time before write (1+s) - 15 ns [96] (byte enable mode) td(a-wrl) address delay time before write (1+c+s)-15 ns [69] (byte enable mode) td(cs-wrl) chip select delay time before write (1+s) - 15 ns [70] (byte enable mode) tv(wrh-a) address valid time after write 0 wait state: -5 ns [71] (byte enable mode) 1-plus wait states: tc(clkout)( +r) - 5 tv(wrh-cs) chip select valid time after write 0 wait state: -5 ns [72] (byte enable mode) 1-plus wait states: tc(clkout)( +r) - 5 td(blel-wrl) byte enable delay time before write (1+s) - 15 ns [73] td(bhel-wrl) (byte enable mode) tv(wrh-blel) byte enable valid time after write 0 wait state: -5 ns [74] tv(wrh-bhel) (byte enable mode) 1-plus wait states: tc(clkout)( +r) - 5 td(wrl-d) data output delay time after write 0 wait state: 7 ns [75] (byte enable mode) 1-plus wait states: 15 - (s+c) tv(wrh-d) data output valid time after write 0 wait state : -7 ns [76] (byte enable mode) 1-plus wait states: tc(clkout)( +r)-13 tpzx(wrh-dz) data output enable time after write 0 wait state:-20 ns [127] (byte enable mode) 1-plus wait states: -22- (s+c) tpxz(wrh-dz) data output disable time after write 0 wait state: 5 ns [77] (byte enable mode) 1-plus wait states: tc(clkout)( +r) + 5 23.9 a.c. characteristics (when vcce = 5 v) switching characteristics tc(clkout) 2 1 2 tc(clkout) 2 tc(clkout) 2 tc(clkout) 2 tc(clkout) 2 tc(clkout) 2 tc(clkout) 2 c+s 2 1 2 1 2 1 2 1 2 1+c+s 2 tc(clkout) 2 tc(clkout) 2
23 electrical characteristics 23-35 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 23.9.15 write timing (byte enable mode) 23.9 a.c. characteristics (when vcce = 5 v) wr# 0.43vcc-bus 0.16vcc-bus 0.43vcc-bus 0.16vcc-bus 0.43vcc-bus 0.16vcc-bus 0.16vcc-bus 0.16vcc-bus 0.43vcc-bus [81] td(wrh-rdl) 0.43vcc-bus [68] tw(wrl) [77] tpxz(wrh-dz) 0.16vcc-bus [73] td(blel-wrl) td(bhel-wrl) [74] tv(wrh-blel) tv(wrh-bhel) [71] tv(wrh-a) [80] td(rdh-wrl) [69] td(a-wrl) [96] td(csl-wrl) [72] tv(wrh-cs) [72] tv(wrh-cs) [70] td(cs-wrl) [75] td(wrl-d) [76] tv(wrh-d) 0.16vcc-bus [127] tpzx(wrl-dz) address (a9?a30) cs# (access area) cs# (non-access area) rd# data output (db0?db15) ble# bhe#
23-36 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (14) bus arbitration timing figure 23.9.16 bus arbitration timing clkout hack# [36] th(clkouth-hreql) [37] td(clkoutl-hackl) [38] tv(clkoutl-hackl) hreq# 0.16vcc-bus 0.43vcc-bus 0.16vcc-bus 0.16vcc-bus 0.16vcc-bus [35] tsu(hreql-clkouth) 0.16vcc-bus symbol parameter rated value unit see fig. min max 23.9.16 timing tsu(hreql-clkouth) hreq# input setup time before clkout 27 ns [35] requirements th(clkouth-hreql) hreq# input hold time after clkout 0 ns [36] switching td(clkoutl-hackl) hack# delay time after clkout 29 ns [37] characteristics tv(clkoutl-hackl) hack# valid time after clkout -11 ns [38] 23.9 a.c. characteristics (when vcce = 5 v)
23 electrical characteristics 23-37 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 23.9 a.c. characteristics (when vcce = 5 v) figure 23.9.17 jtag interface timing jtck 0.5vcce [60] tc(jtck) [67] tw(jtrst) data input (jtdi) jtms data output (jtdo) jtrst 0.8vcce 0.2vcce 0.8vcce 0.2vcce 0.8vcce 0.2vcce 0.2vcce 0.2vcce 0.8vcce 0.2vcce [61] tw(jtckh) [62] tw(jtckl) [63] tsu(jtdi-jtck) [64] th(jtck-jtdi) [65] td(jtck-jtdo) 0.8vcce 0.2vcce [129] tv(jtck-jtdo) [66] tpxz(jtck-jtdoz) [128] tpzx(jtck-jtdoz) 0.8vcce 0.2vcce (15) jtag interface timing symbol parameter measurement rated value unit see fig. condition min max 23.9.17 tc(jtck) jtck input cycle time 100 ns [60] tw(jtckh) jtck input "h" pulse width 40 ns [61] tw(jtckl) jtck input "l" pulse width 40 ns [62] tsu(jtdi-jtck) jtdi, jtms input setup time 15 ns [63] th(jtck-jtdi) jtdi, jtms input hold time 20 ns [64] tw(jtrst) jtrst input "l" pulse width tc(jtck) ns [67] td(jtck-jtdo) jtdo output delay time after jtck cl=80pf 40 ns [65] tpzx(jtck-jtdoz) jtdo output enable time after jtck cl=80pf 5 ns [128] tpxz(jtck-jtdoz) jtdo output disable time after jtck cl=80pf 40 ns [66] tv(jtck-jtdo) tdo output valid time after jtck cl=80pf 5 ns [129] timing requirements switching characteristics
23-38 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 23.9 a.c. characteristics (when vcce = 5 v) figure 23.9.18 rtd timing rtdclk rtdack rtdtxd rtdrxd [82] tc(rtdclk) 0.5vcce 0.5vcce 0.5vcce 0.2vcce 0.8vcce 0.2vcce 0.8vcce 0.2vcce 0.8vcce 0.5vcce [83] tw(rtdclkh) [84] tw(rtdclkl) [85] td(rtdclkh-rtdack) [86] tv(rtdclkl-rtdack) [89] tsu(rtdrxd-rtdclkl) [87] td(rtdclkh-rtdtxd) [88] th(rtdclkh-rtdrxd) 0.8vcce 0.2vcce (16) rtd timing symbol parameter rated value unit see fig. min max 23.9.18 tc(rtdclk) rtdclk input cycle time 500 ns [82] tw(rtdclkh) rtdclk input "h" pulse width 230 ns [83] tw(rtdclkl) rtdclk input "l" pulse width 230 ns [84] th(rtdclkh-rtdrxd) rtdrxd input hold time 50 ns [88] tsu(rtdrxd-rtd clkl) rtdrxd input setup time 60 ns [89] td(rtdclkh-rtdack) rtdack delay time 160 ns [85] after rtdclk input tv(rtdclkl-rtdack) rtdack valid time 160 ns [86] after rtdclk input td(rtdclkh-rtdtxd) rtdtxd delay time 160 ns [87] after rtdclk input timing requirements switching characteristics
23 electrical characteristics 23-39 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 23.9 a.c. characteristics (when vcce = 5 v) (17) nbd timing symbol parameter measurement rated value unit see fig. condition min max 23.9.19 tc(nbdclk) nbdclk input cycle time 80 ns [103] tw(nbdclkl) nbdclk input "l" pulse width 35 ns [104] tsu(nbdd-nbdclkh) nbdd input setup time 20 ns [107] before nbdclk th(nbdclkh-nbdd) nbdd input hold time 5 ns [108] after nbdclk tsu(nbdsyncl-nbdclkh) nbdsync# input setup time 20 ns [109] before nbdclk th(nbdclkh-nbdsyncl) nbdsync# input hold time cl=100pf 5 ns [110] after nbdclk td(nbdclkh-nbdd) nbdd output delay time cl=100pf 7 tc(nbdclk)-20 ns [105] after nbdclk tpzx(nbdclkh-nbddz) nbdd output enable time cl=100pf 5 ns [130] after nbdclk tv(nbdclkh-nbdd) nbdd output valid time cl=100pf 5 ns [106] after nbdclk tpxz(nbdclkh-nbddz) nbdd output disable time cl=100pf 60 ns [131] after nbdclk tw(nbdevntl) nbdevnt# output "l" pulse width cl=100pf 30 ns [111] figure 23.9.19 nbd timing [103] tc(nbdclk) [104] tw(nbdclkl) [106] tv(nbdclkh-nbdd) [110] th(nbdclkh-nbdsyncl) [111] tw(nbdevntl) [109] tsu(nbdsyncl-nbdclkh) [107] tsu(nbdd-nbdclkh) [105] td(nbdclkh-nbdd) 0.8vcce 0.2vcce [108] th(nbdclkh-nbdd) 0.8vcce 0.2vcce 0.2vcce 0.2vcce 0.2vcce 0.2vcce 0.2vcce 0.2vcce 0.8vcce 0.2vcce 0.8vcce 0.2vcce 0.8vcce 0.2vcce 0.8vcce [130] tpzx(nbdclkh-nbddz) [131] tpxz(nbdclkh-nbddz) nbdclk (input) nbdd3-0 (output) nbdsync# (input) nbdevnt# (output) nbdd3-0 (input) timing requirements switching characteristics
23-40 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 23.9 a.c. characteristics (when vcce = 5 v) b) when special mode is on symbol parameter rated value unit see fig. min max 23.9.20 tw(din) din input pulse width din0, din1, din2, din3, din4 1.5 x tc(bclk) ns [138] din3 0.8 x tc( bclk) ns tc(dcap) import period when input data bus width is 8, 16 bit 2 x tc( bclk) ns [139] tsu(dd-e) dd input - import edge when din3 is selected in inport event 20 ns [140] set up time th(e-dd) import edge - dd input when din3 is selected in inport event 20 ns [141] hold time ts(e-e) edge interval that din0, din1, din2, din4 15 + tc(bclk) ns [142] event detection is not simultaneous tar indefinite period of din3 sampling edge by din1 before 20 ns [143] exiting reset initializing level tbr indefinite period of din3 sampling edge by din1 after 20 ns [144] exiting reset initializing level timing requirements timing requirements (18) dri timing a) when special mode is off symbol parameter rated value unit see fig. min max 23.9.20 tw(din) din input pulse width din0, din1, din2, din3, din4 1.5 x tc(bclk) ns [138] tc(dcap) import period when input data bus width is 8, 16 bit 3.5 x tc( bclk) ns [139] when input data bus width is 32 bit 4 x tc( bclk) ns tsu(dd-e) when din2, din3, din4 are selected dd input - import edge in inport event 20 ns [140] set up time (note 1) when din5 is selected in inport event 40 ns th(e-dd) import edge - dd input when din2, din3, din4 are selected in inport event 15 + tc(bclk) ns [141] hold time (note 1) when din5 is selected in inport event 15 + tc(bclk) ns ts(e-e) edge interval that din0, din1, din2, din3, din4 15 + tc(bclk) ns [142] event detection is not simultaneous note 1: this standard value is when considering inport timing as a default setup. if it is not, standard value is considered w ith the point that is shifted back from standard edge for tv(bclk).
23 electrical characteristics 23-41 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 23.9 a.c. characteristics (when vcce = 5 v) figure 23.9.20 dri timing din dd 0.8vcce [138] t w(din) 0.8vcce 0.2vcce 0.8vcce 0.8vcce [139] tc (dcap) [138] t w(din) [139] tc (dcap) [138] t w(din) [139] tc (dcap) * when rising edge is seledted * when falling edge are selected * when rising and falling edge are selected 0.8vcce 0.2vcce 0.8vcce 0.2vcce [141] th (e-dd) [140] tsu (dd-e) [141] th (e-dd) [140] tsu (dd-e) [140] tsu (dd-e) [141] th (e-dd) a) data import timing b) timing of event detection (edge interval that event detection is not simultaneous in dri) c) din3 sampling edge by din1 after exiting initializing 0.8vcce 0.2vcce [142] ts (e-e) 0.8vcce dini dinj [142] ts (e-e) 0.8vcce 0.2vcce [142] ts (e-e) 0.2vcce 0.2vcce [142] ts (e-e) 0.8vcce when dini rising edge/ dinj rising edge are selected when dini rising edge/ dinj falling edge are selected when dini rising edge/ dinj rising edge are selected when dini rising edge/ dinj falling edge are selected 0.8vcce 0.2vcce [144] tbr din1 din3 when initializing level l by din1/ din3 rising edge are selected 0.2vcce [143] tar [144] tbr when initializing level l by din1/ din3 falling edge are selected [143] tar 0.8vcce [144] tbr [143] tar when initializing level l by din1/ din3 rising edge are selected [144] tbr when initializing level l by din1 / din3 falling edge are selected [143] tar 0.8vcce 0.2vcce 0.8vcce 0.2vcce 0.8vcce 0.2vcce 0.8vcce 0.2vcce 0.2vcce
23-42 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 23.10.1 output switching characteristics measurement circuit measured pin cmos output cl : jtdo pin = 80pf : nbdd0 ? nbdd3 (output), nbdevnt# = 100pf : other than those above = 15 ? 50pf (2) input and output transition time symbol parameter rated value unit see fig min max 23.10.2 tr high-going nbdclk, nbdd0-nbdd3 pins (input), 8ns [115] (input) transitiontime of nbdsync# pin input jtck, jtdi, jtms 10 ns jtrst pin 2 ms tf low-ging nbdclk, nbdd0-nbdd3 pins (input), 8ns [116] (input) transition time of nbdsync# pin input jtck, jtdi, jtms 10 ns jtrst pin 2 ms 23.10 a.c. characteristics (when vcce = 3.3 v) 23.10 a.c. characteristics (when vcce = 3.3 v) ? the timing conditions are referenced to vcce, vccer, vcc-bus, vdde = 3.3 v 0.3 v, ta = ?40c to 125c unless otherwise noted. ? the rated values below are guaranteed for the case where the output load capacitance of the measured pins are 15 pf to 50 pf (guaranteed value during centralizedcapacitance for jtag related values is 80 pf and for nbd related is 100 pf). ? the terms w, c, s, r and id in the rated values shown below have the following meaning. for details about cs area wait control regiser, see section 18.2.1, "cs area wait control registers." w: number of wait states (selected by the cs area wait control register wait bit) c: "1" when the cs area wait control register cwait bit = 1, or "0" when cwait bit = 0 s: "1" when the cs area wait control register swait bit = 1, or "0" when swait bit = 0 r: "1" when the cs area wait control register recov bit = 1, or "0" when recov bit = 0 id: number of idle cycles inserted at the end of the bus cycle. idle cycles may be inserted as specified by the cs area wait control register idle bit, or inserted by default when a write operation is executed immediately after a read (id = 0 or 1). ? characteristics of synchronous timing to the external bus clock are values only relative to clkout (none relative to bclk). ? the clkout/wr# functions are assigned to two separate pins, p70/clkout/wr#/bclk pins (pin no.78) and p150/tin0/clkout/wr# pins (pin no.133). unless otherwise noted, characteristics for clkout pin/wr# pin are values of pin no.133. ? the output drive capability is a value under the following conditions. for output drive capability setting, see section 8.5, "port output drive capability setting function." ? clkout pin/wr# pin (pin no.133): high drive power selected ? the rest of the output pins: low drive power (the value upon exiting reset) selected (1) output switching characteristics measurement circuit timing requirements
23 electrical characteristics 23-43 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 23.10 a.c. characteristics (when vcce = 3.3 v) figure 23.10.2 input/output transition time input pin (relative to vcc-bus) [115] tr(input) [116] tf(input) 0.43vcc-bus 0.16vcc-bus 0.43vcc-bus 0.16vcc-bus input pin (relative to vcce) [115] tr(input) [116] tf(input) 0.8vcce 0.2vcce 0.8vcce 0.2vcce timing requirements figure 23.10.3 clock and reset timing xin (input) (when using oscillation circuit) 0.5vcc-bus reset# (input) 0.2vcce 0.2vcce [119] tc(xin) [124] tw(reset) xin (input) (when using external clock input) (note 1) 0.8vcc-bus [120] tw(xinh) [121] tw(xinl) 0.8vcc-bus 0.2vcc-bus [122] tr(xinh) [123] tr(xinl) 0.5vcc-bus 0.2vcc-bus 0.2vcc-bus note 1: make xout pin open and set parasitic capacity as 10pf or less. the xdrv bit of clock control register (clkcr) should be choosen b'11 (maximum). (3) clock and reset timing symbol parameter rated value unit see fig min max 23.10.3 tc(xin) clock input cycle time 50 66.7 ns [119] tw(xinh) external clock input "h" pulse width 20 ns [120] tw(xinl) external clock input "l" pulse width 20 ns [121] tr(xinh) external clock input hign-going time 5 ns [122] tr(xinl) external clock input low-going time 5 ns [123] tw(reset) reset input "l" pulse width 300 ns [124]
23-44 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 23.10 a.c. characteristics (when vcce = 3.3 v) (4) input/output ports symbol parameter rated value unit see fig. min max 23.10.4 timing tsu(p-e) port input setup time 100 ns [1] requirements th(e-p) port input hold time 0 ns [2] switching td(e-p) port data output delay time 100 ns [3] characteristics figure 23.10.4 input/output port timing port (output) [3] td(e-p) 0.8vcce 0.2vcce bclk 0.8vcce 0.2vcce 0.8vcce 0.2vcce port (input) 0.8vcce [1] tsu(p-e) [2] th(e-p) note:  the ports listed below operate with the vcc-bus power supply, and not with the vcce power supply. therefore, the reference voltage for these ports is the vcc-bus input voltage. p00?p07, p10?p17, p20?p27, p30?p37, p41?p47, p70?p73, p224, p225
23 electrical characteristics 23-45 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 symbol parameter rated value unit see fig. min max 23.10.5 tc(clk) clk input cycle time 16 x tc(bclk) ns [7] timing tw(clkh) clk input "h" pulse width 5 x tc(bclk) ns [8] requirements tw(clkl) clk input "l" pulse width 5 x tc(bclk) ns [9] tsu(d-clk) rxd input setup time 50 ns [10] th(clk-d) rxd input hold time 55+tc(bclk) ns [11] switching td(clk-d) txd output delay time when 3 point sampling is invalid 85+2tc(bclk) ns [12] characteristics when 3 point sampling is valid 85+3tc(bclk) 23.10 a.c. characteristics (when vcce = 3.3 v) sclko txd rxd [6] td(clk-d) [4] tsu(d-clk) [5] th(clk-d) a) csio mode, with internal clock selected 0.8vcce 0.2vcce 0.2vcce 0.8vcce 0.2vcce 0.8vcce b) csio mode, with external clock selected sclki txd rxd [12] td(clk-d) [10] tsu(d-clk) [11] th(clk-d) 0.8vcce 0.2vcce 0.2vcce 0.8vcce 0.2vcce 0.8vcce 0.2vcce 0.8vcce [7] tc(clk) [8] tw(clkh) [9] tw(clkl) 0.2vcce 0.8vcce [98] th(clk-d) figure 23.10.5 serial interface timing (5) serial interface a) csio mode, with internal clock selected b) csio mode, with external clock selected symbol parameter rated value unit see fig. min max 23.10.5 timing tsu(d-clk) rxd input setup time when 3 point sampling is invalid 80 ns [4] when 3 point sampling is valid 80+tc(bclk) ns requirements th(clk-d) rxd input hold time 15+tc(bclk) ns [5] switching td(clk-d) txd output delay time 50 ns [6] characteristics th(clk-d) txd hold time 0 ns [98]
23-46 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 23.10 a.c. characteristics (when vcce = 3.3 v) symbol parameter rated value unit see fig. min max 23.10.7 timing tw(tin) tin input pulse width when bclk/4 is selected (note 1) 7 tc(bclk) ns [14] requirements when bclk/4 is not selected (note 1) 7 tc ns (6) sbi sbi# [13] tw(sbil) 0.2vcce 0.2vcce figure 23.10.6 sbi timing figure 23.10.7 tin timing tin 0.8vcce 0.2vcce 0.8vcce 0.2vcce [14] tw(tin) (7) tin symbol parameter rated value unit see fig. min max 23.10.6 timing tw(sbil) sbi# input pulse width 5 ns [13] requirements tc(bclk) 2 tc(bclk) 2 note 1: tin24, 25, pwmoff0 are selected in tou0 control register 1 (tou0cr1) prs3cks bit, tin26, 27, pwmoff1 are selected in tou1 control register 1 (tou1cr1) prs4cks bit, other tin are selected in common count clock select register (cntcksel) pr012cks bit.
23 electrical characteristics 23-47 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 23.10 a.c. characteristics (when vcce = 3.3 v) figure 23.10.8 to timing bclk to [15] td(clkout-to) 0.8vcce 0.2vcce 0.2vcc-bus symbol parameter rated value unit see fig. min max 23.10.8 switching td(bclk-to) to output delay time 100 ns [15] characteristics (8)to figure 23.10.9 tclk timing tclk 0.2vcce [100] tw(tclkl) [99] tw(tclkh) 0.8vcce (9) tclk note 1: selected in common count clock select register (cntcksel) prs012cks bit. symbol parameter rated value unit see fig. min max 23.10.9 tw(tclkh) tclk input "h" when bclk/4 is selected (note 1) 7 tc(bclk) ns [99] timing pulse width when bclk/2 is selected (note 1) 7 ns requirements tw(tclkl) tclk input "l" when bclk/4 is selected (note 1) 7 tc(bclk) ns [100] pulse width when bclk/2 is selected (note 1) 7 ns tc(bclk) 2 tc(bclk) 2
23-48 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 23.10 a.c. characteristics (when vcce = 3.3 v) (10) read and write timing (1/4) symbol parameter rated value unit see figs. min max 23.10.10 23.10.11 tsu(d-clkouth) data input setup time before clkout 26 ns [31] th(clkouth-d) data input hold time after clkout 0 ns [32] tsu(waitl-clkouth) wait# input setup time before clkout 26 ns [33] th(clkouth-waitl) wait# input hold time after clkout 0 ns [34] tsu(waith-clkouth) wait# input setup time before clkout 26 ns [78] th(clkouth-waith) wait# input hold time after clkout 0 ns [79] tv(clkouth-blwl) write valid time after clkout -5 ns [90] tv(clkouth-bhwl) (with zero wait state) td(clkouth-rdl) read delay time after clkout 17 ns [92] (when either swait or cwait = 1) td(clkouth-blwl) write delay time after clkout 17 ns [112] td(clkouth-bhwl) (byte write mode) (when either swait or cwait = 1) td(clkoutl-blwh) write delay time after clkout 14 ns [97] td(clkoutl-bhwh) tc(clkout) clkout output cycle time ns [16] tw(clkouth) clkout output "h" pulse width - 5 ns [17] tw(clkoutl) clkout output "l" pulse width - 5 ns [18] td(clkouth-a) address delay time after clkout 29 ns [19] td(clkouth-cs) chip select delay time after clkout 30 ns [20] (when cwait=0) td(clkoutl-csl) chip select delay time after clkout 30 ns [113] (when cwait=1) tv(clkouth-a) address valid time after clkout -5 ns [21] tv(clkouth-cs) chip select valid time after clkout -5 ns [22] td(clkoutl-rdl) read delay time after clkout 14 ns [23] (when both swait and cwait=0 or both swait and cwait=1) tv(clkouth-rdl) read valid time after clkout -5 ns [24] td(clkoutl-blwl) write delay time after clkout 14 ns [25] td(clkoutl-bhwl) (when both swait and cwait=0 or both swait and cwait=1) tv(clkoutl-blwl) write valid time after clkout -5 ns [26] tv(clkoutl-bhwl) td(clkoutl-d) data output delay time after clkout 0 wait state:14 ns [27] 1-plus wait states:19 tv(clkouth-d) data output valid time after clkout 0 wait state: -4 ns [28] 1-plus wait states: -10 tpzx(clkoutl-dz) data output enable time after clkout -10 ns [29] tpxz(clkouth-dz) data output disable time after clkout 5 ns [30] tw(csh) chip select "h" pulse width c=0: ns [114] tc(clkout)xid-(15id) c=1: tc(clkout) ( +id) -15 timing requirements switching characteristics tc(xin) 2 tc(clkout) 2 tc(clkout) 2 1 2
23 electrical characteristics 23-49 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 23.10 a.c. characteristics (when vcce = 3.3 v) notes:  for signal-to-signal timing, see figure 23.10.12, "read timing (relative to read pulse)," and figure 23.10.13, "write timing (relative to write pulse)."  when using the threshold switching function, the data input and wait# voltage levels are determined with respect to the rated minimum and maximum values for vih and vil. clkout [16] tc(clkout) data output (db0?db15) address (a9?a30) blw# bhw# cs# (access area) wait# 0.43vcc-bus 0.16vcc-bus [19] td(clkouth-a) 0.43vcc-bus [17] tw(clkouth) [21] tv(clkouth-a) [18] tw(clkoutl) [20] td(clkouth-cs) [22] tv(clkouth-cs) [22] tv(clkouth-cs) [24] tv(clkouth-rdl) [92] td(clkouth-rdl) 0.16vcc-bus 0.43vcc-bus 0.16vcc-bus [23] td(clkoutl-rdl) [20] td(clkouth-cs) 0.43vcc-bus 0.16vcc-bus [32] th(clkouth-d) [31] tsu(d-clkouth) [26] tv(clkoutl-blwl) tv(clkoutl-bhwl) [28] tv(clkouth-d) [30] tpxz(clkouth-dz) [29] tpzx(clkoutl-dz) [27] td(clkoutl-d) [33] tsu(waitl-clkouth) [34] th(clkouth-waitl) [79] th(clkouth-waith) [78] tsu(waith-clkouth) [25] td(clkoutl-blwl) td(clkoutl-bhwl) 0.16vcc-bus 0.43vcc-bus 0.16vcc-bus 0.43vcc-bus 0.16vcc-bus 0.16vcc-bus 0.43vcc-bus cs# (non-access area) rd# data input (db0?db15) [97] td(clkoutl-blwh) td(clkoutl-bhwh) [113] td(clkoutl-csl) [114] tw(csh) [112] td(clkouth-blwl) td(clkouth-bhwl) figure 23.10.10 read and write timing (relative to clkout) with 1 or more wait states
23-50 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 23.10 a.c. characteristics (when vcce = 3.3 v) figure 23.10.11 read and write timing (relative to clkout) with zero wait state clkout [16] tc(clkout) data output (db0?db15) address (a9?a30) cs0#, cs1#, cs2#, cs3# blw# bhw# 0.43vcc-bus 0.16vcc-bus 0.43vcc-bus [17] tw(clkouth) [18] tw(clkoutl) [24] tv(clkouth-rdl) 0.16vcc-bus [23] td(clkoutl-rdl) 0.16vcc-bus [32] th(clkouth-d) [31] tsu(d-clkouth) [90] tv(clkouth-blwl) tv(clkouth-bhwl) [28] tv(clkouth-d) [30] tpxz(clkouth-dz) [29] tpzx(clkoutl-dz) [27] td(clkoutl-d) [25] td(clkoutl-blwl) td(clkoutl-bhwl) 0.16vcc-bus 0.43vcc-bus 0.16vcc-bus 0.43vcc-bus 0.16vcc-bus rd# data input (db0?db15) [20] td(clkouth-cs) [19] td(clkouth-a) [22] tv(clkouth-cs) [21] tv(clkouth-a) note:  when using the threshold switching function, the voltage levels of data input and wait# are determined with respect to the rated minimum and maximum values for vih and vil.
23 electrical characteristics 23-51 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (11) read and write timing (2/4) symbol parameter rated value unit see figs. min max 23.10.12 23.10.13 tsu(d-rdh) data input setup time before read 30 ns [44] th(rdh-d) data input hold time after read 0 ns [45] tsu(waith-rdl) data input setup time before read tc(clkout) + 21 ns [132] tsu(waitl-rdl) tw(waith) wait "h" pulse width (note 1) 26 ns [133] tw(waitl) wait "l" pulse width (note 1) 26 ns [134] tsu(waith-blwl) ns [135] tsu(waith-bhwl) wait input setup time before write + 21 tsu(waitl-blwl) (byte write mode) tsu(waitl-bhwl) tw(rdh) read "h" pulse width (1+c+s) - 5 ns [55] tw(rdl) read "l" pulse width (1+2w-c-s)-20 ns [43] tw(blwl) write "l" pulse width 0 wait state: ns [51] tw(bhwl) (byte write mode) - 11 1-plus wait states: (2w-c-s) -20 td(rdh-blwl) write delay time after read tc(clkout)( +r+id)-10 ns [56] td(rdh-bhwl) td(blwh-rdl) read delay time after write 0 wait state: ns [57] td(bhwh-rdl) - 10 1-plus wait states: tc(clkout)(1+r+ )-10 td(csl-rdl) chip select delay time before read (1+s) -16 ns [93] td(csl-blwl) chip select delay time before write (1+s) -16 ns [95] td(csl-bhwl) td(a-rdl) address delay time before read (1+c+s)-15 ns [39] td(cs-rdl) chip select delay time before read (1+s) - 15 ns [40] tv(rdh-a) address valid time after read tc(clkout) x (r+id) ns [41] tv(rdh-cs) chip select valid time after read tc(clkout) x r ns [42] tpzx(rdh-dz) data output enable time after read tc(clkout)( +r+id) ns [46] td(a-blwl) address delay time before write (1+c+s)-15 ns [47] td(a-bhwl) (byte write mode) td(cs-blwl) chip select delay time before write (1+s) - 15 ns [48] td(cs-bhwl) (byte write mode) tv(blwh-a) address valid time after write 0 wait state: -5 ns [49] tv(bhwh-a) (byte write mode) 1-plus wait states: tc(clkout)( +r) - 5 tv(blwh-cs) chip select valid time after write 0 wait state: -5 ns [50] tv(bhwh-cs) (byte write mode) 1-plus wait states: tc(clkout)( +r) - 5 td(blwl-d) data output delay time after write 0 wait state: 5 ns [52] td(bhwl-d) (byte write mode) 1-plus wait states: 15 - x (s+c) note 1: hold a level during tw(waith), tw(waitl) from the position of the minimum value of tsu(waith-rdl), tsu(waitl-rdl), tsu(waith-blwl), tsu(waith-bhwl), tsu(waitl-blwl), and tsu(waitl-bhwl). 23.10 a.c. characteristics (when vcce = 3.3 v) timing requirements switching characteristics tc(clkout) 2 tc(clkout) 2 tc(clkout) 2 tc(clkout) 2 tc(clkout) 2 1+c+s 2 c+s 2 1 2 tc(clkout) 2 tc(clkout) 2 tc(clkout) 2 tc(clkout) 2 tc(clkout) 2 1 2 1 2 tc(clkout) 2 tc(clkout) 2 tc(clkout) 2
23-52 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 23.10 a.c. characteristics (when vcce = 3.3 v) figure 23.10.12 read timing (relative to read pulse) [55] tw(rdh) blw# bhw# 0.43vcc-bus 0.16vcc-bus 0.43vcc-bus [43] tw(rdl) [39] td(a-rdl) [41] tv(rdh-a) [42] tv(rdh-cs) [42] tv(rdh-cs) 0.16vcc-bus 0.43vcc-bus 0.16vcc-bus [40] td(cs-rdl) 0.16vcc-bus [45] th(rdh-d) [44] tsu(d-rdh) 0.16vcc-bus 0.43vcc-bus rd# [57] td(blwh-rdl) td(bhwh-rdl) [56] td(rdh-blwl) td(rdh-bhwl) [93] td(csl-rdl) [46] tpzx(rdh-dz) 0.43vcc-bus 0.43vcc-bus 0.16vcc-bus wait# [132] tsu(waith-rdl) [133] tw(waith) data output (db0?db15) address (a9?a30) cs# (access area) cs# (non-access area) data input (db0?db15) note:  when using the threshold switching function, the voltage levels of data input and wait# are determined with respect to the rated minimum and maximum values for vih and vil. symbol parameter rated value unit see figs. min max 23.10.12 23.10.13 tv(blwh-d) data output valid time after write 0 wait state: -7 ns [53] tv(bhwh-d) (byte write mode) 1-plus wait states: tc(clkout)( +r) -13 tpzx(blwl-dz) data output enable time after write 0 wait state: -20 ns [126] tpzx(bhwl-dz) (byte write mode) 1-plus wait states: -22- (s+c) tpxz(blwh-dz) data output disable time after write 0 wait state: 5 ns [54] tpxz(bhwh-dz) (byte write mode) 1-plus wait states: tc(clkout)( +r)+5 tc(clkout) 2 1 2 1 2 switching characteristics
23 electrical characteristics 23-53 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 23.10 a.c. characteristics (when vcce = 3.3 v) figure 23.10.13 write timing (relative to write pulse) blw# bhw# 0.43vcc-bus 0.16vcc-bus 0.43vcc-bus 0.16vcc-bus 0.43vcc-bus 0.16vcc-bus 0.16vcc-bus 0.16vcc-bus 0.43vcc-bus rd# [56] td(rdh-blwl) td(rdh-bhwl) [57] td(blwh-rdl) td(bhwh-rdl) [51] tw(blwl) tw(bhwl) 0.43vcc-bus [47] td(a-blwl) td(a-bhwl) [49] tv(blwh-a) tv(bhwh-a) [50] tv(blwh-cs) tv(bhwh-cs) [95] td(csl-blwl) td(csl-bhwl) [48] td(cs-blwl) td(cs-bhwl) [50] tv(blwh-cs) tv(bhwh-cs) [52] td(blwl-d) td(bhwl-d) [53] tv(blwh-d) tv(bhwh-d) [54] tpxz(blwh-dz) tpxz(bhwh-dz) [126] tpzx(blwl-dz) tpzx(bhwl-dz) tsu(waitl-bhwl) tsu(waith-blwl) tsu(waitl-blwl) [134] tw(waitl) [133] tw(waith) 0.16vcc-bus wait# [135] tsu(waith-bhwl) address (a9?a30) cs# (access area) cs# (non-access area) data output (db0?db15)
23-54 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (12) read and write timing (3/4) symbol parameter rated value unit see figs. min max 23.10.14 tsu(d-rdh) data input setup time before read 30 ns [44] th(rdh-d) data input hold time after read 0 ns [45] td(a-rdl) address delay time before read (1+c+s)-15 ns [39] td(cs-rdl) chip select delay time before read (1+s) - 15 ns [40] tv(rdh-a) address valid time after read tc(clkout)(r+id) ns [41] tv(rdh-cs) chip select valid time after read tc(clkout) x r ns [42] tw(rdl) read "l" pulse width (1+2w-c-s)-20 ns [43] tpzx(rdh-dz) data output enable time after read tc(clkout)( +r+id) ns [46] td(rdh-wrl) write dalay time after read tc(clkout)( +r+id)-10 ns [80] (byte write mode) td(wrh-rdl) read dalay time after write during 0 wait: (byte write mode) -20 during 1 wait: tc(clkout)(1+r+ ) -20 ns [81] td(csl-rdl) chip select dalay time before read (1+s)-16 ns [93] td(blel-rdl) byte enable delay time before read x (1+s)-20 ns [136] td(bhel-rdl) (byte write mode) tv(rdh-blel) valid time after read tc(clkout) x r-5 ns [137] tv(rdh-bhel) (byte write mode) 23.10 a.c. characteristics (when vcce = 3.3 v) switching characteristics tc(clkout) 2 tc(clkout) 2 tc(clkout) 2 tc(clkout) 2 tc(clkout) 2 c+s 2 1 2 1+c+s 2 tc(clkout) 2 timing requirements
23 electrical characteristics 23-55 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 23.10.14 read timing (byte enable mode) 23.10 a.c. characteristics (when vcce = 3.3 v) address (a12?a30) rd# cs# (access area) 0.43vcce 0.16vcce 0.43vcce 0.16vcce 0.43vcce 0.16vcce 0.16vcce cs# (non-access area) wr# [80] td(rdh-wrl) 0.43vcce [43] tw(rdl) ble# bhe# 0.16vcce [136] td(blel-rdl) td(bhel-rdl) [137] tv(rdh-blel) tv(rdh-bhel) [41] tv(rdh-a) [81] td(wrh-rdl) [39] td(a-rdl) [93] td(csl-rdl) [42] tv(rdh-cs) [42] tv(rdh-cs) [40] td(cs-rdl) [45] th(rdh-d) [44] tsu(d-rdh) 0.16vcce 0.43vcce [46] tpzx(rdh-dz) 0.43vcce 0.16vcce data inpit (db0?db15) data inpit (db0?db15)
23-56 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (13) read and write timing (4/4) symbol parameter rated value unit see fig. min max 23.10.15 tw(wrl) write "l" pulse width 0 wait state: ns [68] (byte enable mode) - 7 1-plus wait states: (2w-c-s)-20 td(rdh-wrl) write delay time after read tc(clkout)( +r+id)-10 ns [80] (byte enable mode) td(wrh-rdl) read delay time after write 0 wait state: ns [81] (byte enable mode) ( ) - 20 1-plus wait states: tc(clkout)(1+r+ )-20 td(csl- wrl) chip select delay time before write (1+s) - 20 ns [96] (byte enable mode) td(a-wrl) address delay time before write (1+c+s)-20 ns [69] (byte enable mode) td(cs-wrl) chip select delay time before write (1+s) - 15 ns [70] (byte enable mode) tv(wrh-a) address valid time after write 0 wait state: -5 ns [71] (byte enable mode) 1-plus wait states: tc(clkout)( +r) - 5 tv(wrh-cs) chip select valid time after write 0 wait state: -5 ns [72] (byte enable mode) 1-plus wait states: tc(clkout)( +r) - 5 td(blel-wrl) byte enable delay time before write (1+s) - 15 ns [73] td(bhel-wrl) (byte enable mode) tv(wrh-blel) byte enable valid time after write 0 wait state: -5 ns [74] tv(wrh-bhel) (byte enable mode) 1-plus wait states: tc(clkout)( +r) - 5 td(wrl-d) data output delay time after write 0 wait state: 9 ns [75] (byte enable mode) 1-plus wait states: 15 - (s+c) tv(wrh-d) data output valid time after write 0 wait state : -7 ns [76] (byte enable mode) 1-plus wait states: tc(clkout)( +r)-13 tpzx(wrh-dz) data output enable time after write 0 wait state:-20 ns [127] (byte enable mode) 1-plus wait states: -22- (s+c) tpxz(wrh-dz) data output disable time after write 0 wait state: 5 ns [77] (byte enable mode) 1-plus wait states: tc(clkout)( +r) + 5 23.10 a.c. characteristics (when vcce = 3.3 v) switching characteristics tc(clkout) 2 1 2 tc(clkout) 2 tc(clkout) 2 tc(clkout) 2 tc(clkout) 2 tc(clkout) 2 tc(clkout) 2 c+s 2 1 2 1 2 1 2 1 2 1+c+s 2 tc(clkout) 2 tc(clkout) 2
23 electrical characteristics 23-57 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 23.10.15 write timing (byte enable mode) 23.10 a.c. characteristics (when vcce = 3.3 v) wr# 0.43vcc-bus 0.16vcc-bus 0.43vcc-bus 0.16vcc-bus 0.43vcc-bus 0.16vcc-bus 0.16vcc-bus 0.16vcc-bus 0.43vcc-bus [81] td(wrh-rdl) 0.43vcc-bus [68] tw(wrl) [77] tpxz(wrh-dz) 0.16vcc-bus [73] td(blel-wrl) td(bhel-wrl) [74] tv(wrh-blel) tv(wrh-bhel) [71] tv(wrh-a) [80] td(rdh-wrl) [69] td(a-wrl) [96] td(csl-wrl) [72] tv(wrh-cs) [72] tv(wrh-cs) [70] td(cs-wrl) [75] td(wrl-d) [76] tv(wrh-d) 0.16vcc-bus [127] tpzx(wrl-dz) address (a9?a30) cs# (access area) cs# (non-access area) rd# data output (db0?db15) ble# bhe#
23-58 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 symbol parameter rated value unit see fig. min max 23.10.16 timing tsu(hreql-clkouth) hreq# input setup time before clkout 27 ns [35] requirements th(clkouth-hreql) hreq# input hold time after clkout 0 ns [36] switching td(clkoutl-hackl) hack# delay time after clkout 29 ns [37] characteristics tv(clkoutl-hackl) hack# valid time after clkout -11 ns [38] (14) bus arbitration timing figure 23.10.16 bus arbitration timing clkout hack# [36] th(clkouth-hreql) [37] td(clkoutl-hackl) [38] tv(clkoutl-hackl) hreq# 0.16vcc-bus 0.43vcc-bus 0.16vcc-bus 0.16vcc-bus 0.16vcc-bus [35] tsu(hreql-clkouth) 0.16vcc-bus 23.10 a.c. characteristics (when vcce = 3.3 v)
23 electrical characteristics 23-59 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 figure 23.10.17 jtag interface timing jtck 0.5vcce [60] tc(jtck) [67] tw(jtrst) data input (jtdi) jtms data output (jtdo) jtrst 0.8vcce 0.2vcce 0.8vcce 0.2vcce 0.8vcce 0.2vcce 0.2vcce 0.2vcce 0.8vcce 0.2vcce [61] tw(jtckh) [62] tw(jtckl) [63] tsu(jtdi-jtck) [64] th(jtck-jtdi) [65] td(jtck-jtdo) 0.8vcce 0.2vcce [129] tv(jtck-jtdo) [66] tpxz(jtck-jtdoz) [128] tpzx(jtck-jtdoz) 0.8vcce 0.2vcce (15) jtag interface timing symbol parameter measurement rated value unit see fig. condition min max 23.10.17 tc(jtck) jtck input cycle time 100 ns [60] tw(jtckh) jtck input "h" pulse width 40 ns [61] tw(jtckl) jtck input "l" pulse width 40 ns [62] tsu(jtdi-jtck) jtdi, jtms input setup time 15 ns [63] th(jtck-jtdi) jtdi, jtms input hold time 20 ns [64] tw(jtrst) jtrst input "l" pulse width tc(jtck) ns [67] td(jtck-jtdo) jtdo output delay time after jtck cl=80pf 40 ns [65] tpzx(jtck-jtdoz) jtdo output enable time after jtck cl=80pf 5 ns [128] tpxz(jtck-jtdoz) jtdo output disable time after jtck cl=80pf 40 ns [66] tv(jtck-jtdo) tdo output valid time after jtck cl=80pf 5 ns [129] timing requirements switching characteristics 23.10 a.c. characteristics (when vcce = 3.3 v)
23-60 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 23.10 a.c. characteristics (when vcce = 3.3 v) figure 23.10.18 rtd timing rtdclk rtdack rtdtxd rtdrxd [82] tc(rtdclk) 0.5vcce 0.5vcce 0.5vcce 0.2vcce 0.8vcce 0.2vcce 0.8vcce 0.2vcce 0.8vcce 0.5vcce [83] tw(rtdclkh) [84] tw(rtdclkl) [85] td(rtdclkh-rtdack) [86] tv(rtdclkl-rtdack) [89] tsu(rtdrxd-rtdclkl) [87] td(rtdclkh-rtdtxd) [88] th(rtdclkh-rtdrxd) 0.8vcce 0.2vcce (16) rtd timing symbol parameter rated value unit see fig. min max 23.10.18 tc(rtdclk) rtdclk input cycle time 500 ns [82] tw(rtdclkh) rtdclk input "h" pulse width 230 ns [83] tw(rtdclkl) rtdclk input "l" pulse width 230 ns [84] th(rtdclkh-rtdrxd) rtdrxd input hold time 50 ns [88] tsu(rtdrxd-rtd clkl) rtdrxd input setup time 60 ns [89] td(rtdclkh-rtdack) rtdack delay time 160 ns [85] after rtdclk input tv(rtdclkl-rtdack) rtdack valid time 160 ns [86] after rtdclk input td(rtdclkh-rtdtxd) rtdtxd delay time 160 ns [87] after rtdclk input timing requirements switching characteristics
23 electrical characteristics 23-61 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 23.10 a.c. characteristics (when vcce = 3.3 v) (17) nbd timing symbol parameter measurement rated value unit see fig. condition min max 23.10.19 tc(nbdclk) nbdclk input cycle time 100 ns [103] tw(nbdclkl) nbdclk input "l" pulse width 45 ns [104] tsu(nbdd-nbdclkh) nbdd input setup time 20 ns [107] before nbdclk th(nbdclkh-nbdd) nbdd input hold time 5 ns [108] after nbdclk tsu(nbdsyncl-nbdclkh) nbdsync# input setup time 20 ns [109] before nbdclk th(nbdclkh-nbdsyncl) nbdsync# input hold time cl=100pf 5 ns [110] after nbdclk td(nbdclkh-nbdd) nbdd output delay time cl=100pf 7 tc(nbdclk)-20 ns [105] after nbdclk tpzx(nbdclkh-nbddz) nbdd output enable time cl=100pf 5 ns [130] after nbdclk tv(nbdclkh-nbdd) nbdd output valid time cl=100pf 5 ns [106] after nbdclk tpxz(nbdclkh-nbddz) nbdd output disable time cl=100pf 60 ns [131] after nbdclk tw(nbdevntl) nbdevnt# output "l" pulse width cl=100pf 30 ns [111] figure 23.10.19 nbd timing [103] tc(nbdclk) [104] tw(nbdclkl) [106] tv(nbdclkh-nbdd) [110] th(nbdclkh-nbdsyncl) [111] tw(nbdevntl) [109] tsu(nbdsyncl-nbdclkh) [107] tsu(nbdd-nbdclkh) [105] td(nbdclkh-nbdd) 0.8vcce 0.2vcce [108] th(nbdclkh-nbdd) 0.8vcce 0.2vcce 0.2vcce 0.2vcce 0.2vcce 0.2vcce 0.2vcce 0.2vcce 0.8vcce 0.2vcce 0.8vcce 0.2vcce 0.8vcce 0.2vcce 0.8vcce [130] tpzx(nbdclkh-nbddz) [131] tpxz(nbdclkh-nbddz) nbdclk (input) nbdd3-0 (output) nbdsync# (input) nbdevnt# (output) nbdd3-0 (input) timing requirements switching characteristics
23-62 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 b) when special mode is on symbol parameter rated value unit see fig. min max 23.10.20 tw(din) din input pulse width din0, din1, din2, din4 1.5 x tc(bclk) ns [138] din3 0.8 x tc( bclk) ns tc(dcap) import period when input data bus width is 8, 16 bit 2 x tc( bclk) ns [139] tsu(dd-e) dd input - import edge when din3 is selected in inport event 20 ns [140] set up time th(e-dd) import edge - dd input when din3 is selected in inport event 20 ns [141] hold time ts(e-e) edge interval that din0, din1, din2, din4 15 + tc(bclk) ns [142] event detection is not simultaneous tar indefinite period of din3 sampling edge by din1 before 20 ns [143] exiting reset initializing level tbr indefinite period of din3 sampling edge by din1 after 20 ns [144] exiting reset initializing level timing requirements timing requirements (18) dri timing a) when special mode is off symbol parameter rated value unit see fig. min max 23.10.20 tw(din) din input pulse width din0, din1, din2, din3, din4 1.5 x tc(bclk) ns [138] tc(dcap) import period when input data bus width is 8, 16 bit 3.5 x tc( bclk) ns [139] when input data bus width is 32 bit 4 x tc( bclk) ns tsu(dd-e) when din2, din3, din4 are selected dd input - import edge in inport event 20 ns [140] set up time (note 1) when din5 is selected in inport event 60 ns th(e-dd) import edge - dd input when din2, din3, din4 are selected in inport event 15 + tc(bclk) ns [141] hold time (note 1) when din5 is selected in inport event 15 + tc(bclk) ns ts?ie-e?j edge interval that din0, din1, din2, din3, din4 15 + tc(bclk) ns [142] event detection is not simultaneous note 1: this standard value is when considering inport timing as a default setup. if it is not, standard value is considered w ith the point that is shifted back from standard edge for tv(bclk). 23.10 a.c. characteristics (when vcce = 3.3 v)
23 electrical characteristics 23-63 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 23.10 a.c. characteristics (when vcce = 3.3 v) figure 23.10.20 dri timing din dd 0.8vcce [138] t w(din) 0.8vcce 0.2vcce 0.8vcce 0.8vcce [139] tc (dcap) [138] t w(din) [139] tc (dcap) [138] t w(din) [139] tc (dcap) * when rising edge is seledted * when falling edge are selected * when rising and falling edge are selected 0.8vcce 0.2vcce 0.8vcce 0.2vcce [141] th (e-dd) [140] tsu (dd-e) [141] th (e-dd) [140] tsu (dd-e) [140] tsu (dd-e) [141] th (e-dd) a) data import timing b) timing of event detection (edge interval that event detection is not simultaneous in dri) c) din3 sampling edge by din1 after exiting initializing 0.8vcce 0.2vcce [142] ts (e-e) 0.8vcce dini dinj [142] ts (e-e) 0.8vcce 0.2vcce [142] ts (e-e) 0.2vcce 0.2vcce [142] ts (e-e) 0.8vcce when dini rising edge/ dinj rising edge are selected when dini rising edge/ dinj falling edge are selected when dini rising edge/ dinj rising edge are selected when dini rising edge/ dinj falling edge are selected 0.8vcce 0.2vcce [144] tbr din1 din3 when initializing level l by din1/ din3 rising edge are selected 0.2vcce [143] tar [144] tbr when initializing level l by din1/ din3 falling edge are selected [143] tar 0.8vcce [144] tbr [143] tar when initializing level l by din1/ din3 rising edge are selected [144] tbr when initializing level l by din1 / din3 falling edge are selected [143] tar 0.8vcce 0.2vcce 0.8vcce 0.2vcce 0.8vcce 0.2vcce 0.8vcce 0.2vcce 0.2vcce
23-64 23 electrical characteristics 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 this page is blank for reasons of layout. 23.10 a.c. characteristics (when vcce = 3.3 v)
appendix 1 mechanical specificaitons appendix 1.1 dimensional outline drawing
appendix 1 appendix 1 -2 32192/32195/32196 group hardware manual mechanical specifications appendix 1.1 dimensional outline drawing rev.1.10 rej09b0123-0110 apr.06.07 appendix 1.1 dimensional outline drawing (1) 144-pin lqfp(plqp0144ka-a) terminal cross section b 1 c 1 b p c 1.0 0.125 0.20 1.25 1.25 0.08 0.20 0.145 0.09 0.27 0.22 0.17 max nom min dimension in millimeters symbol reference 20.1 20.0 19.9 d 20.1 20.0 19.9 e 1.4 a 2 22.2 22.0 21.8 22.2 22.0 21.8 1.7 a 0.15 0.1 0.05 0.65 0.5 0.35 l x 8 0 c 0.5 e 0.10 y h d h e a 1 b p b 1 c 1 z d z e l 1 p-lqfp144-20x20-0.50 1.2g mass[typ.] 144p6q-a / fp-144l / fp-144lv plqp0144ka-a renesas code jeita package code previous code f 1 36 37 72 73 108 109 144 * 1 * 2 * 3 x index mark y h e e d h d b p z d z e detail f c a l a 1 a 2 l 1 2. 1. dimensions " * 1" and " * 2" do not include mold flash. note) dimension " * 3" does not include trim offset. e note: ? the latest package dimension is on renesas technology website. please make sure whether it is the latest or not and refer to it.
appendix 1 -3 appendix 1 mechanical specifications appendix 1.1 dimensional outline drawing 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 under development s ys ab index mark index mark (laser mark) x4 v s a w s w b s a b c d e f g h k l m n p r 10 12 13 14 15 11 9 8 7 6 5 4 3 2 1 j a 1 a z e z d e d b 0.9 z e 0.9 z d b a 1 y 0.10 e 0.8 x 0.3 0.35 0.4 a 1.4 e 13.0 d 13.0 reference symbol dimension in millimeters min nom max 0.4 0.45 0.5 0.08 w 0.20 v 0.15 p-lfbga224-13x13-0.80 plbg0224ga-a 224fhe 0.4g previous code jeita package code renesas code mass[typ.] e e (2) 224pin fbga(plbg0224ga-a) note:  the latest package dimension is on renesas technology website. please make sure whether it is the latest or not and refer to it.
appendix 1 appendix 1 -4 32192/32195/32196 group hardware manual mechanical specifications appendix 1.1 dimensional outline drawing rev.1.10 rej09b0123-0110 apr.06.07 this page is blank for reasons of layout.
appendix 2 instruction processing time appendix 2.1 3219 2/32195/32196 instruction processing time
appendix 2 instruction processing time appendix 2.1 32192/32195/32196 instruction processing time appendix 2 -2 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 appendix 2.1 32192/32195/32196 instruction processing time for microcomputers, the number of instruction execution cycles in the e stage (note 1) normally represents their instruction processing time. however, depending on pipeline operation, other stages may affect the instruction processing time. especially when a branch instruction is executed, the processing time in each of the if (instruc- tion fetch), d (decode) and e (execution) stages of the next instruction must be taken into account. the tables below show the instruction processing time in each pipelined stage. note 1: two e stages, e1 and em, are used for the fpu instructions. table 2.1.1 instruction processing time in each pipelined stage (other than fpu instructions) number of execution cycles in each stage instruction if d e mem1 mem2 wb load instructions (ld, ldb, ldub, ldh, lduh, lock) r(note 1) 1 1 r(note 1) 1 1 store instructions (st, stb, sth, unlock) r(note 1) 1 1 w(note 1) 1 (1)(note 2) bset and bclr instructions r(note 1) 1 r(note 1) w(note 1) 1 ? +3 multiply instructions (mul) r(note 1) 1 3 ? ? 1 divide/remainder instructions (div, divu, rem, remu) r(note 1) 1 37 ? ? 1 other instructions(including dsp function instructions r(note 1) 1 1 ? ? 1 btst, setpsw and clrpsw) note 1: see the calculation methods for r and w described in the next page. note 2: of the store instructions, only those that have register indirect + register update addressing modes require one cycle in the wb stage (but not more than that). table 2.1.2 instruction processing time in each pipelined stage (fpu instructions) number of execution cycles in each stage instruction if d e1 em ea e2 wb fmadd and fmsub instructions r(note 1) 1 ? 1 1 1 1 fdiv instruction r(note 1) 1 14 ? ? 1 1 other fpu instructions r(note 1) 1 1 ? ? 1 1 note 1: see the calculation methods for r and w described in the next page.
appendix 2 instruction processing time appendix 2.1 32192/32195/32196 instruction processing time appendix 2 -3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 the following shows the number of memory access cycles in the if and mem stages. shown here are the minimum number of cycles required for memory access. therefore, these values do not always reflect the num- ber of cycles actually required for memory or bus access. in write access, for example, although the cpu finishes the mem stage by only writing to the write buffer, this operation actually is followed by a write to memory. depending on the memory or bus state before or after the cpu requests a memory access, the instruction processing may take more time than the calculated value. r (read cycle) when existing in the instruction queue 1 cpuclk cycle when reading the internal resource (ram) 1 cpuclk cycle when reading the internal resource (rom) 2 cpuclk cycles when reading the internal resource (sfr) (byte or halfword) 4 cpuclk cycles when reading the internal resource (sfr) (word) 8 cpuclk cycles when reading external memory (byte or halfword) 1 cpuclk + 1 clkout cycles (note 1) when reading external memory (word) 1 cpuclk + 2 clkout cycles (note 1) when successively fetching instructions from external memory 2 clkout cycles (note 1) w (write cycle) when writing to the internal resource (ram) 1 cpuclk cycle when writing to the internal resource (sfr) (byte or halfword) 4 cpuclk cycles when writing to the internal resource (sfr) (word) 8 cpuclk cycles when writing to external memory (byte or halfword) 1 clkout cycle (note 1) when writing to external memory (word) 2 clkout cycles (note 1) note 1: this applies when external memory is accessed with zero wait state. the instruction process- ing time increases by 1 clkout when one wait state is inserted. note:  clkout and cpuclk have the relationship 1 clkout = 8 cpuclk. when clkout = bclk is selected with clkout select register, the relationship 1 clkout = 4 cpuclk is set.
appendix 2 instruction processing time appendix 2.1 32192/32195/32196 instruction processing time appendix 2 -4 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 this page is blank for reasons of layout.
appendix 3 processing of unused pins appendix 3.1 example processing of unused pins
processing of unused pins appendix 3 appendix 3 -2 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 appendix 3.1 example processing of unused pins an example of how to process the unused pins of the microcomputer is shown below. (1) when operating in single-chip mode table 3.1.1 example processing of unused pins during single-chip mode (note 1) appendix 3.1 example processing of unused pins pin name p61?p63, p70?p77, p82?87, p93?p97, p100?p107, p110?p117, p124?p127, p130?p137, p174, p175 processing set the port for input mode and pull each pin low to vss or pull high to vcce via a 1 k ? -10 k ? resistor. or set the port for output mode and leave the pin open. xout (note 4) ad0in0?ad0in15, avref0, avss0 leave open connect to vcce avcc0 jtag jtdo, jtms, jtdi, jtck jtrst pull high to vcce or low to vss via a 0-100 k ? resistor pull low to vss via a 0-100 k ? resistor connect to vss a/d converter note 1: process the unused pins in the shortest wiring length possible (within 20 mm) from the microcomputer pins. note 2: if any port is set for output mode and left open, care should be taken because the port remains set for input before it is changed for output in a program after being reset. therefore, the voltage level at the pin is instable , and the power supply current tends to increase while the port remains set for input. because it is possible that the content of the port direction register will inadvertently be altered by noise or noise-induced runaway, higher reliability may be obtained by periodically setting the port direction register back again in a program. note, however, that p221 is input-only port and does not work as an output port. note 3: make sure that unintended falling edges due to noise, etc. will be not applied. (a falling edge at the sbi# input causes a system break interrupt to occur.) note 4: this is necessary when an external clock is connected to xin. sbi# (note 3) pull low to vss via a 1 k ? -10 k ? resistor. input/output ports (note 2) p00?p07, p10?p17, p20?p27, p30?p37, p41?p47, p150, p153, p220, p221, p224, p225 set the port for input mode and pull each pin low to vss or pull high to vcc-bus via a 1 k ? -10 k ? resistor. or set the port for output mode and leave the pin open.
processing of unused pins appendix 3 -3 appendix 3 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 (2) when operating in external extension mode table 3.1.2 example processing of unused pins during external extension mode (note 1) pin name p61?p63, p70?p77, p82?p87, p93?p97, p100?p107, p110?p117, p124?p127, p130?p137, p174, p175 processing xout (note 4) ad0in0?ad0in15, avref0, avss0 leave open connect to vcce avcc0 jtag jtdo, jtms, jtdi, jtck jtrst pull high to vcce or low to vss via a 0-100 k ? resistor pull low to vss via a 0-100 k ? resistor connect to vss a/d converter blw#/ble#, bhw#/bhe#, rd# leave open sbi# (note 3) pull low to vss via a 1 k ? -10 k ? resistor input/output ports (note 2) set the port for input mode and pull each pin low to vss or pull high to vcce via a 1 k ? -10 k ? resistor. or set the port for output mode and leave the pin open. p00?p07, p10?p17, p20?p27, p30?p37, p44?p47, p150, p153, p220, p221, p224, p225 set the port for input mode and pull each pin low to vss or pull high to vcc-bus via a 1 k ? -10 k ? resistor. or set the port for output mode and leave the pin open. note 1: process the unused pins in the shortest wiring length possible (within 20 mm) from the microcomputer pins. note 2: if any port is set for output mode and left open, care should be taken because the port remains set for input before it is changed for output in a program after being reset. therefore, the voltage level at the pin is instable , and the power supply current tends to increase while the port remains set for input. because it is possible that the content of the port direction register will inadvertently be altered by noise or noise-induced runaway, higher reliability may be obtained by periodically setting the port direction register back again in a program. note, however, that p221 is input-only port and does not work as an output port. note 3: make sure that unintended falling edges due to noise, etc. will be not applied. (a falling edge at the sbi# input causes a system break interrupt to occur.) note 4: this is necessary when an external clock is connected to xin. appendix 3.1 example processing of unused pins
processing of unused pins appendix 3 appendix 3 -4 32192/32195/32196 group hardware manual rev.1.10 rej09b0123-0110 apr.06.07 appendix 3.1 example processing of unused pins (3) when operating in processor mode table 3.1.3 example processing of unused pins during processor mode (note 1) pin name p61?p63, p70?p77, p82?p87, p93?p97, p100?p107, p110?p117, p126, p127, p130?p137, p174, p175 processing xout (note 4) ad0in0?ad0in15, avref0, avss0 leave open connect to vcce avcc0 jtag jtdo, jtms, jtdi, jtck jtrst pull high to vcce or low to vss via a 0-100 k ? resistor pull low to vss via a 0-100 k ? resistor connect to vss a/d converter a9?a30, db0?db15, blw#/ble#, bhw#/bhe#, rd#, cs0#, cs1# leave open sbi# (note 3) pull low to vss via a 1 k ? -10 k ? resistor input/output ports (note 2) set the port for input mode and pull each pin low to vss or pull high to vcce via a 1 k ? -10 k ? resistor. or set the port for output mode and leave the pin open. p150, p153, p220, p221 set the port for input mode and pull each pin low to vss or pull high to vcc-bus via a 1 k ? -10 k ? resistor. or set the port for output mode and leave the pin open note 1: process the unused pins in the shortest wiring length possible (within 20 mm) from the microcomputer pins. note 2: if any port is set for output mode and left open, care should be taken because the port remains set for input before it is changed for output in a program after being reset. therefore, the voltage level at the pin is instable , and the power supply current tends to increase while the port remains set for input. because it is possible that the content of the port direction register will inadvertently be altered by noise or noise-induced runaway, higher reliability may be obtained by periodically setting the port direction register back again in a program. note, however, that p221 is input-only port and does not work as an output port. note 3: make sure that unintended falling edges due to noise, etc. will be not applied. (a falling edge at the sbi# input causes a system break interrupt to occur.) note 4: this is necessary when an external clock is connected to xin.
appendix 4 summary of precautions appendix 4.1 notes on the cpu appendix 4.2 notes on address space appendix 4.3 notes on eit appendix 4.4 notes on the internal ram appendix 4.5 notes on the internal flash memory appendix 4.6 things to be considered upon exiting reset appendix 4.7 notes on input/output ports appendix 4.8 notes on the dmac appendix 4.9 notes on multijunction timers appendix 4.10 notes on the a/d converter appendix 4.11 notes on serial interface appendix 4.12 notes on can module appendix 4.13 notes on dri appendix 4.14 notes on ram backup mode appendix 4.15 notes on jtag appendix 4.16 notes on noise
summary of precautions appendix 4 appendix 4 -2 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.1 notes on the cpu ? notes on data transfer when transferring data, be aware that data arrangements in registers and memory are different. appendix figure 4.1.1 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 appendix 4.1 notes on the cpu
summary of precautions appendix 4 -3 appendix 4 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.2 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. appendix 4.3 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.) appendix 4.4 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. appendix 4.2 notes on address space
summary of precautions appendix 4 appendix 4 -4 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.5 notes on the internal flash memory appendix 4.5 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. appendix 4.6 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.?
summary of precautions appendix 4 -5 appendix 4 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.7 notes on input/output ports appendix 4.7 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.
summary of precautions appendix 4 appendix 4 -6 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.8 notes on the dmac appendix 4.8 notes on the dmac ? about writing to the dmac related registers because dma transfer involves exchanging data via the internal bus, the dmac related registers basically can only be accessed for write upon exiting the reset state or when transfer is disabled (transfer enable bit = "0"). when transfer is enabled, do not write to the dmac related registers, except the dma transfer enable bit, the transfer request flag, dma interrupt related register and the dma transfer count register that is protected in hardware. this is a precaution necessary to ensure stable dma operation. the table below lists the registers that can or cannot be accessed for write. appendix table 4.8.1 dmac related registers that can or cannot be accessed for write status transfer enable bit transfer request flag dma interrupt related register other dmac related registers transfer enabled can be accessed can be accessed can be accessed cannot be accessed transfer disabled can be accessed can be accessed can be accessed can be accessed even for registers that can exceptionally be written to while transfer is enabled, the following conditions must be observed: (1) dma channel control register 0 transfer enable bit and transfer request flag for all bits other than transfer enable bit and transfer request flag in this register, be sure to write the same data that those bits had before the write. note, however, that only writing "0" is effective for the transfer request flag. (2) dma transfer count register when transfer is enabled, this register is protected in hardware, so that any data rewritten to it is ignored. (3) rewriting the dma source and dma destination addresses on different channels by dma transfer although this operation means accessing the dmac related registers while dma is enabled, there is no problem. note, however, that no data can be transferred by dma to the dmac related registers on the currently active channel itself. ? manipulating the dmac related registers by dma transfer when manipulating the dmac related registers by means of dma transfer (e.g., reloading the dmac related registers with the initial values by dma transfer), do not write to the dmac related registers on the currently active channel through that channel. (if this precaution is neglected, device operation cannot be guaranteed.) it is only the dmac related registers on other channels that can be rewritten by means of dma transfer. (for example, the dman source address and dman destination address registers on channel 1 can be rewritten by dma transfer through channel 0.) ? about the dma interrupt request status register when clearing the dma interrupt request status register, be sure to write "1" to all bits, except those to be cleared. writing "1" to any bits in this register has no effect, so that they retain the data they had before the write. ? about the stable operation of dma transfer to ensure the stable operation of dma transfer, never rewrite the dmac related registers, except transfer enable bits of the dma channel control register 0, unless transfer is disabled. one exception is that even when transfer is enabled, the dma source address and dma destination address registers can be rewritten by dma transfer from one channel to another.
summary of precautions appendix 4 -7 appendix 4 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.9 notes on multijunction timers appendix 4.9 notes on multijunction timers appendix 4.9.1 notes on using top single-shot output mode the following describes precautions to be observed when using top single-shot output mode. ? if the counter stops due to an underflow in the same clock period as the timer is enabled by external input, the former has priority so that the counter stops. ? if the counter stops due to an underflow in the same clock period as count is enabled by writing to the enable bit, the latter has priority so that count is enabled. ? if the timer is enabled by external input in the same clock period as count is disabled by writing to the enable bit, the latter has priority so that count is disabled. ? because the timer operates synchronously with the count clock, a count clock-dependent delay is included before f/f output is inverted after the timer is enabled. ? when writing to the correction register, be careful not to cause the counter to overflow. even if the counter overflows due to correction of counts, no interrupt requests are generated for reasons of an overflow. there- fore, if the counter underflows in the subsequent down-count after an overflow, a false interrupt request is generated for an underflow that includes the overflowed count.
summary of precautions appendix 4 appendix 4 -8 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.9 notes on multijunction timers h'ffff h'0000 h'fff8 h'(fff0+0014) h'0004 h'fff0 h'0014 h'fff8 h'ffff h'(fff8-1) data inverted by enable data inverted by underflow counter count clock correction register f/f output enable bit reload register write to the correction register enabled (by writing to the enable bit or by external input) undefined value actual count after overflow overflow occurs undefined top interrupt request due to underflow note 1: a count clock dependent delay is included before f/f output changes state after the timer is enabled. note 2: the value that "reload register - 1" is reloaded. note:  this diagram does not show detailed timing information. (note 2) (note 1) appendix figure 4.9.1 example of an operation in top single-shot output mode where count overflows due to correction in the example below, the reload register is initially set to h?fff8. when the timer starts, the value that "the reload register -1" is loaded into the counter, letting it start counting down. in the diagram below, the value h?0014 is written to the correction register when the counter has counted down to h?fff0. as a result of this correction, the count overflows to h?0004 and the counter fails to count correctly. also, an interrupt request is generated for an erroneous overflowed count.
summary of precautions appendix 4 -9 appendix 4 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.9 notes on multijunction timers appendix 4.9.2 notes on using top delayed single-shot output mode the following describes precautions to be observed when using top delayed single-shot output mode. ? if the counter stops due to an underflow in the same clock period as the timer is enabled by external input, the former has priority so that the counter stops. ? if the counter stops due to an underflow in the same clock period as count is enabled by writing to the enable bit, the latter has priority so that count is enabled. ? if the timer is enabled by external input in the same clock period as count is disabled by writing to the enable bit, the latter has priority so that count is disabled. ? even if the counter overflows due to correction of counts, no interrupt requests are generated for reasons of an overflow. therefore, if the counter underflows in the subsequent down-count after an overflow, a false interrupt request is generated for an underflow that includes the overflowed count. ? if the counter is accessed for read at the cycle of underflow, the counter value is read as h?ffff but changes to "reload register value -1" at the next count clock timing after underflow. appendix figure 4.9.2 counter value immediately after underflow count clock enable bit "h" h'0001 h'0000 h'ffff h'aaa9 h'aaa8 counter value h'aaaa reload register underflow h'(aaaa-1) h'(aaaa-2) what is seen during underflow cycle is always h'ffff, and not the reload register value (in this case, h'aaaa). count down from the reload register value reload cycle the value that "reload register - 1" is reloaded by count clock next underflow
summary of precautions appendix 4 appendix 4 -10 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.9 notes on multijunction timers appendix 4.9.3 notes on using top continuous output mode the following describes precautions to be observed when using top continuous output mode. ? if the timer is enabled by external input in the same clock period as count is disabled by writing to the enable bit, the latter has priority so that count is disabled. ? if the counter is accessed for read at the cycle of underflow, the counter value is read as h?ffff but changes to "reload register value -1" at the next count clock timing. ? because the timer operates synchronously with the count clock, a count clock-dependent delay is included before f/f output is inverted after the timer is enabled. appendix 4.9.4 notes on using tio measure free-run/ clear input modes the following describes precautions to be observed when using tio measure free-run/ clear input modes. ? if measure event input and write to the counter occur in the same clock period, the write value is set in the counter while at the same time latched into the measure register. appendix 4.9.5 notes on using tio pwm output mode the following describes precautions to be observed when using tio pwm output mode. ? if the timer is enabled by external input in the same clock period as count is disabled by writing to the enable bit, the latter has priority so that count is disabled. ? if the counter is accessed for read at the cycle of underflow, the counter value is read as h?ffff but changes to "reload register value -1" at the next count clock timing. ? because the timer operates synchronously with the count clock, up to one count clock-dependent delay is generated before f/f output is inverted after writing to the enable bit. appendix 4.9.6 notes on using tio single-shot output mode the following describes precautions to be observed when using tio single-shot output mode. ? if the counter stops due to an underflow in the same clock period as the timer is enabled by external input, the former has priority so that the counter stops. ? if the counter stops due to an underflow in the same clock period as count is enabled by writing to the enable bit, the latter has priority so that count is enabled. ? if the timer is enabled by external input in the same clock period as count is disabled by writing to the enable bit, the latter has priority so that count is disabled. ? because the timer operates synchronously with the count clock, up to one count clock-dependent delay is generated before f/f output is inverted after writing to the enable bit.
summary of precautions appendix 4 -11 appendix 4 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.9 notes on multijunction timers appendix 4.9.7 notes on using tio delayed single-shot output mode the following describes precautions to be observed when using tio delayed single-shot output mode. ? if the counter stops due to an underflow in the same clock period as the timer is enabled by external input, the former has priority so that the counter stops. ? if the counter stops due to an underflow in the same clock period as count is enabled by writing to the enable bit, the latter has priority so that count is enabled. ? if the timer is enabled by external input in the same clock period as count is disabled by writing to the enable bit, the latter has priority so that count is disabled. ? if the counter is accessed for read ar the cycle of underflow, the counter value is read out as h?ffff but changes to "reload register value -1" at the next count clock timing. appendix 4.9.8 notes on using tio continuous output mode the following describes precautions to be observed when using tio continuous output mode. ? if the timer is enabled by external input in the same clock period as count is disabled by writing to the enable bit, the latter has priority so that count is disabled. ? if the counter is accessed for read at the cycle of underflow, the counter value is read out as h?ffff but changes to "reload register value -1" at the next count clock timing. ? because the timer operates synchronously with the count clock, up to one count clock-dependent delay is generated before f/f output is inverted after writing to the enable bit. appendix 4.9.9 notes on using tms measure input the following describes precautions to be observed when using tms measure input. ? if measure event input and write to the counter occur in the same clock period, the write value is set in the counter while at the same time latched into the measure register.
summary of precautions appendix 4 appendix 4 -12 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.9 notes on multijunction timers appendix 4.9.10 notes on using tml measure input the following describes precautions to be observed when using tml measure input. ? if measure event input and write to the counter occur in the same clock period, the write value is set in the counter, whereas the up-count value (before being rewritten) is latched into the measure register. ? if clock bus 1 is selected and any clock other than bclk/2 or bclk/4 (note 1) is used for the timer, by divided by internal prescaler prs1, the value captured into the measure register is one count larger the counter value. during the count clock to bclk/2 or bclk/4 (note 1) period interval, however, the captured value is exactly the counter value. the diagram below shows the relationship between counter operation and the valid data that can be captured. note 1: to select bclk/2 or bclk/4, use the prs012cks (prescaler 0-2, tml0,1 supplied clock select) bit. for details, refer to section 10.2.2, ?common count clock select function.? counter b acdef a bcde  when bclk/2 or bclk/4 is selected (note 1) bclk/2 or bclk/4 (note 1) bclk/2 or bclk/4 (note 1) captured counter b ac  when clock bus 1 is selected count clock captured bcd f note 1: to select bclk/2 or bclk/4, use the prs012cks (prescaler 0-2, tml0,1 supplied clock select) bit. for details, refer to section 10.2.2, "common count clock select function." appendix figure 4.9.3 mistimed counter value and the captured value
summary of precautions appendix 4 -13 appendix 4 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.9 notes on multijunction timers appendix 4.9.11 notes on using tou pwm output mode the following describes precautions to be observed when using tou pwm output mode. ? if the timer is enabled by external input in the same clock period as count is disabled by writing to the enable bit, the latter has priority so that count is disabled. ? if the counter is accessed for read to the cycle of underflow, the counter value is read out as h'ffff but changes to ?reload register value -1? at the next count clock timing. ? because the timer operates synchronously with the count clock, a count clock-dependent delay is included before f/f output is inverted after the timer is enabled. because a 0% or 100% duty-cycle needs to be determined when reloading the counter, there is a one count clock equivalent delay before f/f is inverted and an interrupt or dma transfer request is generated. however, startup requests to other timers are not delayed. for details, see section 10.8.19, ?0% or 100% duty-cycle wave output during pwm output and single-shot pwm output modes.?
summary of precautions appendix 4 appendix 4 -14 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix figure 4.9.4 reload 0 and reload 1 register updates in pwm output mode h'0001 h'ffff h'1000 h'7fff h'2000 h'8000 h'9000 h'1000 h'2000 h'8000 h'9000 h'7ffe h'0000 h'2000 h'9000 h'0001 h'ffff h'1000 h'8000 h'9000 h'1000 h'2000 h'9000 h'0000 h'2000 enlarged view old pwm output period new pwm output period new pwm output period enlarged view old pwm output period old pwm output period (a) when reload register updates take effect in the current period (reflected in the next period) timing at which reload 0 register is updated operation by new reload value written reload 0 register reload 1 register f/f output write to reload 1 write to reload 0 (reload 1 data latched) pwm period latched and timing at which reload 1 buffer is updated count clock reload 0 register reload 1 register counter interrupt due to underflow f/f output reload 1 buffer h'0fff h'2000 (b) when reload register updates take effect in the next period (reflected one period later) operation by old reload value h'8000 h'0ffe h'9000 note:  this diagram does not show detailed timing information. count clock reload 0 register reload 1 register counter interrupt due to underflow timing at which reload 0 register is updated reload 0 register reload 1 register f/f output write to reload 1 write to reload 0 (reload 1 data latched) f/f output pwm period latched reload 1 buffer old pwm output period appendix 4.9 notes on multijunction timers
summary of precautions appendix 4 -15 appendix 4 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix figure 4.9.5 reload 0 and reload 1 register updates in pwm output mode (for 0% or 100% duty-cycle wave output) h'ffff ffff ffff h'1000 ffff h'9000 h'9000 (a) when reload register updates take effect in the current period (reflected in the next period) timing at which reload 0 register is updated operation by new reload value written reload 0 register reload 1 register f/f output write to reload 1 write to reload 0 (reload 1 data latched) pwm period latched and timing at which reload 1 buffer is updated count clock reload 0 register reload 1 register counter interrupt due to underflow f/f output reload 1 buffer h'0fff ffff h'9000 h'2000 h'0ffe h'9000 (b) when reload register updates take effect in the next period (reflected one period later) operation by old reload value note:  this diagram does not show detailed timing information. timing at which reload 0 register is updated reload 0 register reload 1 register f/f output write to reload 1 write to reload 0 (reload 1 data latched) pwm period latched count clock reload 0 register reload 1 register counter interrupt due to underflow f/f output reload 1 buffer h'0001 h'ffff h'1000 ffff h'2000 ffff h'9000 h'1000 h'2000 ffff h'9000 8fff h'0000 h'2000 h'9000 h'0001 h'ffff h'1000 h'0fff h'2000 ffff h'9000 h'1000 h'2000 ffff h'9000 h'0ffe h'0000 h'2000 old pwm output period new pwm output period new pwm output period enlarged view enlarged view old pwm output period old pwm output period old pwm output period appendix 4.9 notes on multijunction timers
summary of precautions appendix 4 appendix 4 -16 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.9 notes on multijunction timers appendix 4.9.12 notes on using tou single-shot pwm output mode the following describes precautions to be observed when using tou single-shot pwm output mode. ? if the timer is enabled by external input in the same clock period as count is disabled by writing to the enable bit, the latter has priority so that count is disabled. ? if the counter is accessed for read at the cycle of underflow, the counter value is read out as h'ffff but changes to ?reload register value -1? at the next count clock timing. ? updating of reload 0 and reload 1 during timer operation does not effect pwm waveform that is outputting at present. updating is reflected at the next pwm period after updating reload 0 register. because a 0% or 100% duty-cycle needs to be determined when reloading the counter, there is a one count clock equivalent delay before f/f is inverted and an interrupt or dma transfer request is generated. however, startup requests to other timers are not delayed. for details, see appendix 4.9.16, ?0% or 100% duty-cycle wave output during pwm output and single-shot pwm output modes.? appendix 4.9.13 notes on using tou delayed single-shot output mode the following describes precautions to be observed when using tou delayed single-shot output mode. ? if the counter stops due to an underflow in the same clock period as the timer is enabled by external input, the former has priority so that the counter stops. ? if the counter stops due to an underflow in the same clock period as count is enabled by writing to the enable bit, the latter has priority so that count is enabled. ? if the timer is enabled by external input in the same clock period as count is disabled by writing to the enable bit, the latter has priority so that count is disabled. ? if the counter is accessed for read at the cycle of underflow, the counter value is read as h'ff ffff but changes to ?reload register value -1? at the next count clock timing. ? because the timer operates synchronously with the count clock, a count clock-dependent delay is included before f/f output is inverted after the timer is enabled. appendix 4.9.14 notes on using tou single-shot output mode the following describes precautions to be observed when using tou single-shot output mode. ? if the counter stops due to an underflow in the same clock period as the timer is enabled by external input, the former has priority so that the counter stops. ? if the counter stops due to an underflow in the same clock period as count is enabled by writing to the enable bit, the latter has priority so that count is enabled. ? if the timer is enabled by external input in the same clock period as count is disabled by writing to the enable bit, the latter has priority so that count is disabled. ? because the timer operates synchronously with the count clock, up to one count clock-dependent delay is generated before f/f output is inverted after writing the enable bit.
summary of precautions appendix 4 -17 appendix 4 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.9 notes on multijunction timers appendix 4.9.16 0% or 100% duty-cycle wave output during pwm output and single- shot pwm output modes during pwm output or single-shot pwm output mode, if the value "h'ffff" is written to the reload 0 or reload 1 register, f/f output will not be inverted, making it possible to produce a 0% or 100% duty-cycle pwm output. because determination is made to see if the reload value is "h'ffff" during pwm output or single-shot pwm output mode, following precautions must be observed. (1) because the counter counts one even when detecting 0% or 100% duty-cycle, one of the two reload registers must have set in it one less than the intended value in order for a constant-cycle waveform to be produced. example: if the desired output cycle is 10 counts cycle ratio 50% : 50% 80% : 20% 90% : 10% 100% : 0% count ratio 5 : 5 8 : 2 9 : 1 10 : 0 register set values 0004 : 0004 0007 : 0001 0008 : 0000 0009 : ffff because the counter counts n + 1, the values actually set in the respective registers must be one less than the intended value. (2) because setting the value "h'ffff" in the reload register produces a 0% or 100% duty-cycle, it is impos- sible to count the exact "h'ffff." (3) setting the value "h'ffff" in both reload 0 and reload 1 registers is inhibited. (4) writing the value "h'ffff" to the counter while in operation is inhibited. (5) even for a 0% or 100% duty-cycle, interrupt requests and startup registers to other timers are generated. (6) because a 0% or 100% duty-cycle needs to be determined when reloading the counter, there is a one count clock equivalent delay before f/f is inverted and an interrupt or dma transfer request is generated. how- ever, startup requests to other timers are not delayed. 0008: ffff the counter counts one without inverting f/f output after detecting "ffff." for this reason, the value to be set in the register must be "0008," and not "0009." appendix 4.9.15 notes on using tou continuous output mode the following describes precautions to be observed when using tou continuous output mode. ? if the timer is enabled by external input in the same clock period as count is disabled by writing to the enable bit, the latter has priority so that count is disabled. ? if the counter is accessed for read at the cycle of underflow, the counter value is read out as h'ff ffff but changes to ?reload register value -1? at the next count clock timing. ? because the timer operates synchronously with the count clock, up to one count clock-dependent delay is generated before f/f output is inverted after writing the enable bit.
summary of precautions appendix 4 appendix 4 -18 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.9 notes on multijunction timers appendix figure 4.9.6 typical operation in pwm output mode (reload 0 register: h?ffff) enabled (by writing to the enable bit or by external input) underflow superficial underflow h'ffff h'0000 h'ffff h'e000 h'(e000-1) h'(ffff-1) h'(ffff-1) h'(e000-1) h'e000 data not inverted data not inverted data not inverted counter undefined value dma transfer request enable bit reload 0 register reload 1 register f/f output interrupt request due to underflow timing at which startup requests to other timers are generated count clock (note 1) note 1: the value that "reload 0 register - 1" is reloaded. note 2: because reload 0 redister is h'ffff, pseudo underflow occurs and the value that "reload 1 register - 1" is reloaded. notes:  this diagram does not show detailed timing information.  this diagram is shown with respect to the one-count-clock delayed out. (note 1) (note 2) (note 2)
summary of precautions appendix 4 -19 appendix 4 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.9 notes on multijunction timers appendix figure 4.9.7 typical operation in pwm output mode (reload 1 register: h?ffff) enabled (by writing to the enable bit or by external input) count clock enable bit underflow superficial underflow h'ffff h'0000 h'e000 h'e000 h'(e000-1) h'(ffff-1) h'(ffff-1) h'(e000-1) h'ffff reload 0 register reload 1 register interrupt request due to underflow f/f output data not inverted data inverted by enable data not inverted counter undefined value dma transfer request timing at which startup requests to other timers are generated h'(e000-1) (note 3) note 1: the value that "reload 0 register - 1" is reloaded. note 2: the value that "reload 1 register - 1" is reloaded. note 3: because reload 1 redister is h'ffff, pseudo underflow occurs and the value that "reload 0 register - 1" is reloaded. notes:  this diagram does not show detailed timing information.  this diagram is shown with respect to the one-count-clock delayed out. (note 2) (note 1) (note 3) (note 2)
summary of precautions appendix 4 appendix 4 -20 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix figure 4.9.8 typical operation in single-shot pwm output mode (reload 0 register: h?ffff) underflow h'ffff h'0000 h'ffff h'e000 h'e000 data inverted by underflow data inverted by enable counter enabled (by writing to the enable bit or by external input) superficial underflow dma transfer request undefined value enable bit reload 0 register reload 1 register f/f output interrupt request due to underflow count clock timing at which startup requests to other timers are generated h'(ffff-1) h'(e000-1) note 1: the value that "reload 0 register - 1" is reloaded. note 2: because reload 0 redister is h'ffff, pseudo underflow occurs and the value that "reload 1 register - 1" is reloaded. notes:  this diagram does not show detailed timing information.  this diagram is shown with respect to the one-count-clock delayed out. (note 1) (note 2) appendix 4.9 notes on multijunction timers
summary of precautions appendix 4 -21 appendix 4 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix figure 4.9.9 typical operation in single-shot pwm output mode (reload 1 register: h?ffff) count clock enable bit h'ffff h'0000 h'e000 h'e000 h'ffff reload 0 register reload 1 register interrupt request due to underflow f/f output data not inverted counter enabled (by writing to the enable bit or by external input) underflow superficial underflow undefined value dma transfer request timing at which startup requests to other timers are generated note 1: the value that "reload 0 register - 1" is reloaded. note 2: the value that "reload 1 register - 1" is reloaded. note 3: because reload 0 redister is h'ffff, pseudo underflow occurs. notes:  this diagram does not show detailed timing information.  this diagram is shown with respect to the one-count-clock delayed out. h'(ffff-1) (note 2) h'(e000-1) (note 1) (note 3) appendix 4.9 notes on multijunction timers
summary of precautions appendix 4 appendix 4 -22 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.10 notes on the a/d converter appendix figure 4.10.1 internal equivalent circuit of the analog input part appendix 4.10 notes on the a/d converter ? forcible termination during scan operation if a/d conversion is forcibly terminated by setting the a/d conversion stop bit (adcstp) to "1" during scan mode operation and the a/d data register for the channel that was in the middle of conversion is accessed for read, the read value shows the last conversion result that had been transferred to the data register before the conversion was forcibly terminated. ? modification of the a/d converter related registers if the content of any register?a/d conversion interrupt control register, single or scan mode registers or a/d successive approximation register, except the a/d conversion stop bit?is modified in the middle of a/d conver- sion, the conversion result cannot be guaranteed. therefore, do not modify the contents of these registers while a/d conversion is in progress, or be sure to restart a/d conversion if register contents have been modified. ? handling of analog input signals when using the a/d converter with its sample-and-hold function disabled, make sure the analog input level is fixed during a/d conversion. ? a/d conversion completed bit read timing to read the a/d conversion completed bit (the single mode register 0 adscmp bit or the scan mode register 0 adccmp bit), as well as the a/d simultaneous sampling status bit (the a/d0 single mode register 2 adsh2st bit) immediately after a/d conversion has started or has been terminated by the a/d conversion stop bit, be sure to adjust the timing 6 bclk periods by performing a dummy read of their registers before read. ? regarding the analog input pins appendix figure 4.10.1 shows the internal equivalent circuit of the a/d converter?s analog input part. to obtain accurate a/d conversion results, make sure the internal capacitor c2 of the a/d conversion circuit is charged up within a predetermined time (sampling time). to meet this sampling time requirement, it is recommended that a stabilizing capacitor c1 be connected external to the chip. the method for determining the necessary value of this external stabilizing capacitor with respect to the output impedance of an analog output device is described below. also, an explanation is made of the case where the output impedance of an analog output device is low and the external stabilizing capacitor c1 is unnecessary. ? rated value of the absolute accuracy the rated value of the absolute accuracy is the actual performance value of the microcomputer alone, with influ- ences of the power supply wiring and noise on the board not taken into account. when designing the application system, use caution for the board layout by, for example, separating the analog circuit power supply and ground (avcc, avss and vref) from those of the digital circuit and incorporating measures to prevent the analog input pins from being affected by noise, etc. from other digital signals. comparator inside the microcomputer 10-bit a/d successive approximation register (adisar) 10-bit d/a converter vref0 v2 c2 cin : input pin capacitance (approx. 10 pf) r2 : parasitic resistance of the selector (1-2 k ? ) c2 : comparator capacitance (approx. 2.9 pf) selector r2 i i1 i2 adinn c1 e r1 c1 : parasitic capacitance of the board + stabilizing capacitance r1 : resistance of analog output device analog output device cin e : voltage of analog output device v2 : voltage across c2 vref0 : analog reference voltage
summary of precautions appendix 4 -23 appendix 4 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.10 notes on the a/d converter thus, for a 10-bit resolution a/d converter where c2 = 2.9 pf, c1 is 0.06 f or more. use this value for reference when setting up c1. (b) maximum value of the output impedance r1 when c1 is not added if the external capacitor c1 in appendix figure 4.10.1 is not used, examination must be made to see if the analog output device can fully charge c2 within a predetermined time. first, the equation to find i2 when c1 in appendix figure 4.10.1 does not exist is shown below. i2 = c2(e - v2) exp { - t } --------------------- eq. b-1 cin r1+c2(r1+r2) cin r1+c2(r1+r2) (a) example for calculating the external stabilizing capacitor c1 (addition of this capacitor is recommended) assuming the r1 in appendix figure 4.10.1 is infinitely large and that the current necessary to charge the internal capacitor c2 is supplied from c1, if the potential fluctuation, vp, caused by capacitance division of c1 and c2 is to be within 0.1 lsb, then what amount of capacitance c1 should have. for a 10-bit a/d converter where vref0 is 5.12 v, 1 lsb determination voltage = 5.12 v / 1,024 = 5 mv. the potential fluctuation of 0.1 lsb means a 0.5 mv fluctuation. vp is also obtained by the equation below: the relationship between the capacitance division of c1 and c2 and the potential fluctuation, vp, is obtained by the equation below: c2 c1 + c2 vp = (e - v2) eq. a-1 1 2 vp = vp1 < eq. a-2 i vref0 10 2 x - 1 i = 0 where vp1 = potential fluctuation in the first a/d conversion performed and x = 10 for a 10-bit resolution a/d converter when eq. a-1 and eq. a-2 are solved, the following results: e - v2 vp1 c1 = c2 { - 1 } eq. a-3 1 2 c1 > c2 { 10 2 - 1 } eq. a-4 i x - 1 i = 0 adini conversion time for the first bit sampling time comparison time repeated (10 times) for 10 bits second bit sampling time when sample-and-hold is disabled * when sample-and-hold is enabled, the analog input is sampled for only the first bit. appendix figure 4.10.2 a/d conversion timing diagram appendix figure 4.10.2 shows an a/d conversion timing diagram. c2 must be charged up within the sampling time shown in this diagram. when the sample-and-hold function is disabled, the sampling time for the second and subsequent bits is about half that of the first bit. the sampling times at the respective conversion speeds are listed in the appendix table 4.10.1. note that when the sample-and-hold function is enabled, the analog input is sampled for only the first bit.
summary of precautions appendix 4 appendix 4 -24 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.10 notes on the a/d converter appendix table 4.10.1 sampling time (in which c2 needs to be charged) conversion start method conversion speed sampling time sampling time for the for the first bit 2nd and subsequent bits 2bclk mode single mode slow mode normal speed 55bclk 27bclk (when sample-and-hold double speed 31bclk 15bclk disabled or normal fast mode normal speed 23bclk 11bclk sample-and-hod enabled double speed 15bclk 7bclk single mode slow mode normal speed 55bclk ? (when fast sample- double speed 31bclk ? and-hold enabled) fast mode normal speed 23bclk ? double speed 15bclk ? comparator mode slow mode normal speed 55bclk ? double speed 31bclk ? fast mode normal speed 23bclk ? double speed 15bclk ? simultaneous slow mode normal speed 55bclk ? sampling double speed 31bclk ? fast mode normal speed 23bclk ? double speed 15bclk ? therefore, the time in which c2 needs to be charged is found from eq. b-1, as follows: sampling time (in which c2 needs to be charged) > cin r1 + c2(r1 + r2) ----eq. b-2 thus, the maximum value of r1 can be obtained as a criterion from the equation below. note, however, that for single mode (when sample-and-hold is disabled), the sampling time for the second and subsequent bits (c2 charging time) must be applied. c2 charging time - c2 r2 r1 < cin + c2
summary of precautions appendix 4 -25 appendix 4 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.11 notes on serial interface appendix 4.11 notes on serial interface appendix 4.11.1 notes on using csio mode ? settings of sio transmit/receive mode register and sio baud rate register the sio transmit/receive mode register, sio special mode register and sio baud rate register and the transmit control register?s brg count source select bit must always be set when the serial interface is not operating. if a transmit or receive operation is in progress, wait until the transmit and receive operations are finished and then clear the transmit and receive enable bits before making changes. ? settings of sion baud rate register use caution when setting sion baud rate register so that the transfer rate will not exceed f(bclk)/8. ? about successive transmission to transmit data successively, make sure the next transmit data is set in the sio transmit buffer register before the current data transmission finishes. ? about reception because the receive shift clock in csio mode is derived by an operation of the transmit circuit, transmit operation must always be executed (by sending dummy data) even when the serial interface is used for only receiving data. in this case, be aware that if the port function is set for the txd pin (by setting the operation mode register to "1"), dummy data may actually be output from the pin. ? about successive reception to receive data successively, make sure that data (dummy data) is set in the sio transmit buffer register before a transmit operation on the transmitter side starts. ? transmission/reception using dma to transmit/receive data in dma request mode, enable the dmac to accept transfer requests (by setting the dma mode register) before serial communication starts. ? about reception finished bit if a receive error (overrun error) occurs, the reception finished bit can only be cleared by clearing the receive enable bit, and cannot be cleared by reading out the receive buffer register. ? about overrun error if all bits of the next received data have been set in the sio receive shift register before reading out the sio receive buffer register (i.e., an overrun error occurred), the received data is not stored in the receive buffer register, with the previous received data retained in it. although a receive operation continues thereafter, the subsequent received data is not stored in the receive buffer register (receive status bit = "1"). before normal receive operation can be restarted, the receive enable bit must be temporarily cleared to "0." and this is the only way that the overrun error flag can be cleared. ? about dma transfer request generation during sio transmission if the transmit buffer register becomes empty (transmit buffer empty flag = "1") while the transmit enable bit remains set to "1" (transmission enabled), an sio transmit buffer empty dma transfer request is generated. ? about dma transfer request generation during sio reception if the reception finished bit is set to "1" (receive buffer register full), a reception finished dma transfer request is generated. be aware, however, that if an overrun error occurred during reception, this dma transfer request is not generated.
summary of precautions appendix 4 appendix 4 -26 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.11 notes on serial interface ? switching from general-purpose to serial interface pin when switching general-purpose to serial interface pin, sclkon pin outputs "h" level (for the case of select- ing internal clock and setting ckpol bit to "0." when setting ckpol bit to "1," it outputs "l" level.), and txdn pin outputs undefined value. however, when switching general-purpose to serial interface pin with setting ten bit of the sion transmit control register to "1" (transmit enable), txdn pin outputs the last bit level of the previously output serial data. appendix 4.11.2 notes on using uart mode ? settings of sio transmit/receive mode register and sio baud rate register the sio transmit/receive mode register, sio special mode register and sio baud rate register and the transmit control register?s brg count source select bit must always be set when the serial interface is not operating. if a transmit or receive operation is in progress, wait until the transmit and receive operations are finished and then clear the transmit and receive enable bits before making changes. ? settings of sion baud rate register (sionbaur) writes to the sio baud rate register take effect in the next cycle after the brg counter has finished counting. however, if the register is accessed for write while transmission and reception are disabled, the written value takes effect at the same time it is written. ? transmission/reception using dma to transmit/receive data in dma request mode, enable the dmac to accept transfer requests (by setting the dma mode register) before serial communication starts. ? about overrun error if all bits of the next received data have been set in the sio receive shift register before reading out the sio receive buffer register (i.e., an overrun error occurred), the received data is not stored in the receive buffer register, with the previous received data retained in it. once an overrun error occurs, although a receive operation continues, the subsequent received data is not stored in the receive buffer register. before normal receive operation can be restarted, the receive enable bit must be temporarily cleared. and this is the only way that the overrun error flag can be cleared. ? flags showing the status of uart receive operation there are following flags that indicate the status of receive operation during uart mode: ? sio receive control register receive status bit ? sio receive control register reception finished bit ? sio receive control register receive error sum bit ? sio receive control register overrun error bit ? sio receive control register parity error bit ? sio receive control register framing error bit the manner in which the reception finished bit and various error flags are cleared differs depending on whether an overrun error occurred, as described below. [when an overrun error did not occur] cleared by reading out the lower byte of the receive buffer register or by clearing the receive enable bit. [when an overrun error occurred] cleared by only clearing the receive enable bit.
summary of precautions appendix 4 -27 appendix 4 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.11 notes on serial interface ? switching from general-purpose to serial interface pin when switching from general-purpose port to the serial interface pin by the port operation mode register, the terminal txdn pin outputs "h" level.
summary of precautions appendix 4 appendix 4 -28 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.12 notes on can module appendix 4.12 notes on can module ? note for cancelation of transmit and receive can remote frame when aborting remote frame transmission or canceling remote frame receiving, make sure that the ra (remote active) bit is cleared to "0" after writing "h'00" or "h'0f" to the can message slot control register. (1) when aborting remote frame transmission appendix figure 4.12.1 opertion flow when aborting remote frame transmission (2) when canceling remote frame receiving appendix figure 4.12.2 opertion flow when canceling remote frame receiving ra (remote active) bit = "0" complete transmission abort note 1: h'00 or h'0f can be used. no ye s start transmission abort write h'00 or h'0f to can message slot control register (note 1) read can message slot control register complete r eceiving abort no ye s start receiving abort write h'00 or h'0f to can message slot control register (note 1) read can message slot control register ra (remote active) bit = "0" note 1: h'00 or h'0f can be used.
summary of precautions appendix 4 -29 appendix 4 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.13 notes on dri appendix 4.13 notes on dri precautions about the dri is shown below. ? in order that the data writing from dri and rtd to internal ram use the exclusive bus prepared apart from m32 r- fpu, do not usually generate the competition with access from other bus masters (cpu, dma, nbd, sdi). however dri transfer, rtd transfer and the access (read-out/writing) from other bus master occur at the same time for areas of the 16-k byte unit of internal ram, access competition occurs. when access competition occurs, mediation is operated according to the following priority. nbd/sdi > dma > cpu > dri > rtd appendix 4.14 notes on ram backup mode appendix 4.14.1 precautions to be observed at power-on when changing portn from input mode to output mode after power-on, pay attention to the following. if port n is set for output mode while no data is set in the portn data register, the port?s initial output level is instable. therefore, before changing portn for output mode, make sure the portn data register is set to output a "h." unless this precaution is followed, port output may go "l" at the same time the port is set for output after the oscillation has stabilized, causing the microcomputer to enter ram backup mode. appendix 4.14.2 power-on limitation when powering on, make sure to meet the limitation vdde vccer. if vdde is 3.0 v or more, there will be no problem even when the limitation vdde vccer cannot be met. when the above power-on limitation cannot be met, sufficient evaluation must be made during system design in order to ensure that no power will be applied to the microcomputer with a potential difference of 1 v or more. for potential differences 0 v to 0.6 v, there is almost no in-flow current. the amount of in-flow current begins to increase when the potential difference exceeds 0.6 v.
summary of precautions appendix 4 appendix 4 -30 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.15 notes on jtag appendix 4.15 notes on jtag appendix 4.15.1 notes on board design when connecting jtag to materialize fast and highly reliable communication with jtag tools, make sure wiring lengths of jtag pins are matched during board design. m32r/ecu jtdi jtms jtck jtrst user board jtag tool make sure wiring lengths are the same, and avoid bending wires as much as possible. be careful not to use through-holes within the wiring. jtdo 33 ? 33 ? vcce(5v) 33 ? 33 ? 2k ? 10k ? 10k ? 0.1f sdi connector (jtag connector) power tdi tms tck trst tdo gnd note 1: the reset# related circuit and resistance-capacitance values must be determined depending on the user board's system design conditions and the microcomputer's operating conditions. note 2: n-channel open-drain output is recommended for the reset output of jtag tools. for details, see jtag tool specification s. notes:  only if the jtrst pin is firmly tied to ground, the jtdo, jtdi, jtms and jtclk pins can be processed by either pullup or pulldown.  each of these pins must always be processed even when not using jtag tools. the same pullup/pulldown resistance values as when using jtag tools may be used. reset# (note 1) reset (note 2) 33 ? 10k ? vss 33 ? 10k ? 10k ? appendix figure 4.15.1 notes on board design when connecting jtag tools
summary of precautions appendix 4 -31 appendix 4 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.15 notes on jtag m32r/ecu jtdi jtms jtck jtrst user board jtdo vcce(5v) 0?100k ? 0?100k ? 0?100k ? 0?100k ? 0?100k ? note:  only if the jtrst pin is firmly tied to ground, the jtdo, jtdi, jtms and jtclk pins can be processed by either pullup or pulldown. appendix 4.15.2 processing pins when not using jtag the following shows how the pins on the chip should be processed when not using jtag tools. appendix figure 4.15.2 processing pins when not using jtag
summary of precautions appendix 4 appendix 4 -32 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.16 notes on noise appendix 4.16 notes on noise the following describes precautions to be taken about noise and corrective measures against noise. the correc- tive measures described here are theoretically effective for noise, but require that the application system incorpo- rating those measures be fully evaluated before it can actually be put to use. appendix 4.16.1 reduction of wiring length wiring on the board may serve as an antenna to draw noise into the microcomputer. shorter the total wiring length, the smaller the possibility of drawing noise into the microcomputer. (1) wiring of the reset# pin reduce the length of wiring connecting to the reset# pin. especially when connecting a capacitor between the reset# and vss pins, make sure it is wired to each pin in the shortest distance possible (within 20 mm). reset is a function to initialize the internal logic of the microcomputer. the width of a pulse applied to the reset# pin is important and is therefore specified as part of timing requirements. if a pulse in width shorter than the specified duration (i.e., noise) is applied to the reset# pin, the microcomputer will not be reset for a sufficient duration of time and come out of reset before its internal logic is fully initialized, causing the program to malfunction. appendix figure 4.16.1 example wiring of the reset# pin reset circuit vss reset# vss reset# vss noise reset circuit vss long wiring short wiring
summary of precautions appendix 4 -33 appendix 4 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.16 notes on noise (3) wiring of the operation mode setup pins when connecting the operation mode setup pins and the vcc or vss pin, make sure they are wired in the shortest distance possible. the levels of the operation mode setup pins affect the microcomputer?s operation mode. when connecting the operation mode setup pins and the vcc or vss pin, be careful that no noise-induced potential differ- ence will exist between the operation mode setup pins and the vcc or vss pin. this is because the presence of such a potential difference makes operation mode instable, which may result in the micro- computer operating erratically or getting out of control. vss vss operation mode setup pins noise long wiring short wiring operation mode setup pins (2) wiring of clock input/output pins use as much thick and short wiring as possible for connections to the clock input/output pins. when connecting a capacitor to the oscillator, make sure its grounding lead wire and the osc-vss pin on the microcomputer are connected in the shortest distance possible (within 20 mm). also, make sure the vss pattern used for clock oscillation is a large ground plane and is connected to gnd. the microcomputer operates synchronously with the clock generated by an oscillator circuit. inclusion of noise on the clock input/output pins causes the clock waveform to become distorted, which may result in the microcomputer operating erratically or getting out of control. furthermore, if a noise-induced potential difference exists between the microcomputer?s vss level and that of the oscillator, the clock fed into the microcomputer may not be an exact clock. appendix figure 4.16.2 example wiring of clock input/output pins osc-vss xin xo ut vss noise thick and short wiring thin and long wiring osc-vss xin xo ut vss appendix figure 4.16.3 example wiring of the mod0 and mod1 pins
summary of precautions appendix 4 appendix 4 -34 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.16 notes on noise appendix 4.16.3 processing analog input pin wiring insert a resistor of about 100 to 500 ? in series to the analog signal line connecting to the analog input pin at a position as close to the microcomputer as possible. also, insert a capacitor of about 100 pf between the analog input pin and avss pin at a position as close to the avss pin as possible. the signal fed into the analog input pin (e.g., a/d converter input pin) normally is an output signal from a sensor. in many cases, a sensor to detect changes of event is located apart from the board on which the microcomputer is mounted, so that wiring to the analog input pin is inevitably long. because a long wiring serves as an antenna which draws noise into the microcomputer, the signal fed into the analog input pin tends to be noise-ridden. furthermore, if the capacitor connected between the analog input pin and avss pin is grounded at a position apart from the avss pin, noise riding on the ground line may penetrate into the microcomputer via the capacitor. appendix figure 4.16.5 example of a resistor and capacitor inserted for the analog signal line appendix 4.16.2 inserting a bypass capacitor between vss and vcc lines insert a bypass capacitor of about 0.1 f between the vss and vcc lines. at this time, make sure the require- ments described below are met. ? the wiring length between the vss pin and bypass capacitor and that between the vcc pin and bypass capacitor are the same. ? the wiring length between the vss pin and bypass capacitor and that between the vcc pin and bypass capacitor are the shortest distance possible. ? the vss and vcc lines have a greater wiring width than that of all other signal lines. appendix figure 4.16.4 example of a bypass capacitor inserted between vss and vcc lines vss vcc chip chip vss vcc vss vcc analog input pin avss sensor noise microcomputer
summary of precautions appendix 4 -35 appendix 4 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.16 notes on noise appendix 4.16.4 consideration about the oscillator the oscillator that generates the fundamental clock for microcomputer operation requires consideration to make it unsusceptible to influences from other signals. (1) avoidance from large-current signal lines signal lines that conduct a large current exceeding the range of current values that the microcomputer can handle must be routed as far away from the microcomputer (especially the oscillator) as possible. also, make sure the circuit is protected with a gnd pattern. systems using a microcomputer have signal lines to control a motor, led or thermal head, for example. when a large current flows in these signal lines, it generates noise due to mutual inductance (m). appendix figure 4.16.6 example wiring of a large-current signal line osc-vss xin xo ut large current noise is generated by mutual inductance between the microcomputer and an adjacent signal line gnd large current m osc-vss xin xo ut gnd m a signal line that conducts a large current exists near the microcomputer. locate a signal line that conducts a large current apart from the microcomputer.
summary of precautions appendix 4 appendix 4 -36 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.16 notes on noise (2) avoiding effects of rapidly level-changing signal lines locate signal lines whose levels change rapidly as far away from the oscillator as possible. also, make sure the rapidly level-changing signal lines will not intersect the clock-related signal lines and other noise-sensitive signal lines. rapidly level-changing signal lines tend to affect other signal lines as their voltage level frequently rises and falls. especially if these signal lines intersect the clock-related signal lines, they will cause the clock waveform to become distorted, which may result in the microcomputer operating erratically or getting out of control. appendix figure 4.16.7 example wiring of a rapidly level-changing signal line xin xo ut high-speed serial interface high-speed timer input/output, etc. signal line intersecting the clock-related and other signal lines xin xo ut high-speed serial interface high-speed timer input/output, etc. locate the si g nal line awa y from the clock-related and other si g nal lines
summary of precautions appendix 4 -37 appendix 4 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.16 notes on noise (3) protection against signal lines that are the source of strong noise do not use any pin that will probably be subject to strong noise for an adjacent port near the oscillator. if the pin can be left unused, set it for input and connect to gnd via a resistor, or fix it to output and leave open. if the pin needs to be used, it is recommended that it be used for input-only. for protection against a still stronger noise source, set the adjacent port for input and connect to gnd via a resistor, and use those that belong to the same port group as much for input-only as possible. if greater stability is required, do not use those that belong to the same port group and set them for input and connect to gnd via a resistor. if they need to be used, insert a limiting resistor for protection against noise. if the ports or pins adjacent to the oscillator operate at high speed or are exposed to strong noise from an external source, noise may affect the oscillator circuit, causing its oscillation to become instable. appendix figure 4.16.8 example processing of a noise-laden pin xin xo ut noise fast switching adjacent pin/peripheral pin (set for output) oscillator external noise or switching noise switching noise from an output pin applied directly to the port noise adjacent pin/peripheral pin (set for input) external noise from an input pin applied directl y to the port
summary of precautions appendix 4 appendix 4 -38 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.16 notes on noise appendix figure 4.16.9 example processing of pins adjacent to the oscillator adjacent pin/peripheral pin (set for input) method for limiting the effect of noise in input mode noise method for limiting noise with a resistor noise fast switching adjacent pin/peripheral pin (set for input) method for limiting the effect of noise in input mode adjacent pin/peripheral pin (set for output) method for limiting the effect of noise in output mode adjacent pin/peripheral pin (set for input) adjacent pin/peripheral pin (set for output) method for limiting switching noise with a resistor
summary of precautions appendix 4 -39 appendix 4 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual appendix 4.16 notes on noise appendix 4.16.5 processing input/output ports for input/output ports, take the appropriate measures in both hardware and software following the procedure described below. hardware measures ? insert resistors of 100 ? or more in series to the input/output ports. software measures ? for input ports, read out data in a program two or more times to verify that the levels coincide. ? for output ports, rewrite the data register at certain intervals because there is a possibility of the output data being inverted by noise. ? rewrite the direction register at certain intervals. appendix figure 4.16.10 example processing of input/output ports noise direction register data register data bus input/output port noise
summary of precautions appendix 4 appendix 4 -40 rev.1.10 rej09b0123-0110 apr.06.07 32192/32195/32196 group hardware manual to be written at a later time. appendix 4.16 notes on noise
32192/32195/32196 group hardware manual publication data : rev.1.01 jul 22, 2005 rev.1.10 apr 06, 2007 published by : sales strategic planning div. renesas technology corp. ? 2007. renesas technology corp., all rights reserved. printed in japan.
32192/32195/32196 group hardware manual 2-6-2, ote-machi, chiyoda-ku, tokyo, 100-0004, japan


▲Up To Search▲   

 
Price & Availability of M32192F8TWG

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

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


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