0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
会员中心
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
MB95F876KPMC-G-SNE2

MB95F876KPMC-G-SNE2

  • 厂商:

    CYPRESS(赛普拉斯)

  • 封装:

    48-LQFP

  • 描述:

    IC MCU 8BIT 36KB FLASH 48LQFP

  • 数据手册
  • 价格&库存
MB95F876KPMC-G-SNE2 数据手册
The following document contains information on Cypress products. The document has the series name, product name, and ordering part numbering with the prefix “MB”. However, Cypress will offer these products to new and existing customers with the series name, product name, and ordering part number with the prefix “CY”. How to Check the Ordering Part Number 1. Go to www.cypress.com/pcn. 2. Enter the keyword (for example, ordering part number) in the SEARCH PCNS field and click Apply. 3. Click the corresponding title from the search results. 4. Download the Affected Parts List file, which has details of all changes For More Information Please contact your local sales office for additional information about Cypress products and solutions. About Cypress Cypress is the leader in advanced embedded system solutions for the world's most innovative automotive, industrial, smart home appliances, consumer electronics and medical products. Cypress' microcontrollers, analog ICs, wireless and USB-based connectivity solutions and reliable, high-performance memories help engineers design differentiated products and get them to market first. Cypress is committed to providing customers with the best support and development resources on the planet enabling them to disrupt markets by creating new product categories in record time. To learn more, go to www.cypress.com. MB95F856K, MB95F866K, MB95F876K PRELIMINARY New 8FX MB95850K/860K/870K Series Datasheet Description The MB95850K/860K/870K Series is a series of general-purpose, single-chip microcontrollers. In addition to a compact instruction set, the microcontrollers of these series contain a variety of peripheral functions. Features ■ F2MC-8FX CPU core ❐ Instruction set optimized for controllers ❐ Multiplication and division instructions ❐ 16-bit arithmetic operations ❐ Bit test branch instructions ❐ Bit manipulation instructions, etc. ■ Clock ❐ Selectable main clock source • Main oscillation clock (up to 16.25 MHz, maximum machine clock frequency: 8.125 MHz) • External clock (up to 32.5 MHz, maximum machine clock frequency: 16.25 MHz) • Main CR clock (4 MHz 2%) • Main CR PLL clock The main CR PLL clock frequency becomes 8 MHz 2% when the PLL multiplication rate is 2. The main CR PLL clock frequency becomes 10 MHz 2% when the PLL multiplication rate is 2.5. The main CR PLL clock frequency becomes 12 MHz 2% when the PLL multiplication rate is 3. ❐ ■ ■ ■ The main CR PLL clock frequency becomes 16 MHz 2% when the PLL multiplication rate is 4. Selectable subclock source • Suboscillation clock (32.768 kHz) • External clock (32.768 kHz) • Sub-CR clock (Typ: 100 kHz, Min: 50 kHz, Max: 150 kHz) Timer ❐ 8/16-bit composite timer • MB95F856K: 1 channel • MB95F866K/F876K: 2 channels ❐ 8/16-bit PPG • MB95F856K: 1 channel • MB95F866K: 2 channels • MB95F876K: 3 channels ❐ Time-base timer  1 channel ❐ Watch counter  1 channel ❐ Watch prescaler  1 channel UART/SIO  1 channel ❐ Full duplex double buffer ❐ Capable of clock asynchronous (UART) serial data transfer and clock synchronous (SIO) serial data transfer I2C bus interface  1 channel Cypress Semiconductor Corporation Document Number: 002-09305 Rev. *C • Built-in wake-up function ■ External interrupt ❐ MB95F856K: 6 channels ❐ MB95F866K: 8 channels ❐ MB95F876K: 10 channels ❐ Interrupt by edge detection (rising edge, falling edge, and both edges can be selected) ❐ Can be used to wake up the device from different low power consumption (standby) modes ■ 8/10-bit A/D converter ❐ MB95F856K: 4 channels ❐ MB95F866K: 6 channels ❐ MB95F876K: 8 channels ❐ 8-bit or 10-bit resolution can be selected. ■ Low power consumption (standby) modes There are four standby modes as follows: ❐ Stop mode ❐ Sleep mode ❐ Watch mode ❐ Time-base timer mode In standby mode, two further options can be selected: normal standby mode and deep standby mode. ■ I/O port ❐ MB95F856K (number of I/O ports: 21) • General-purpose I/O ports (CMOS I/O): 17 • General-purpose I/O ports (N-ch open drain): 4 ❐ MB95F866K (number of I/O ports: 29) • General-purpose I/O ports (CMOS I/O): 25 • General-purpose I/O ports (N-ch open drain): 4 ❐ MB95F876K (number of I/O ports: 45) • General-purpose I/O ports (CMOS I/O): 41 • General-purpose I/O ports (N-ch open drain): 4 ■ On-chip debug ❐ 1-wire serial control ❐ Serial writing supported (asynchronous mode) ■ Hardware/software watchdog timer ❐ Built-in hardware watchdog timer ❐ Built-in software watchdog timer ■ Power-on reset ❐ A power-on reset is generated when the power is switched on. ■ Low-voltage detection (LVD) reset circuit 198 Champion Court • San Jose, CA 95134-1709 • 408-943-2600 Revised January 22, 2018 PRELIMINARY ❐ Built-in low-voltage detection function (The combination of detection voltage and release voltage can be selected from four options.) ■ Comparator  1 channel ❐ Built-in dedicated BGR ❐ The comparator reference voltage can be selected between the BGR voltage and the comparator pin. ■ Clock supervisor counter ❐ Built-in clock supervisor counter ■ Dual operation Flash memory ❐ The program/erase operation and the read operation can be executed in different banks (upper bank/lower bank) simultaneously. Document Number: 002-09305 Rev. *C MB95F856K, MB95F866K, MB95F876K ■ Flash memory security function ❐ Protects the content of the Flash memory. ■ Touch sensor (TS) ❐ Adjacent Pattern Interference Suppression (APIS™) ❐ Three modes in APIS: APIS mode 1, APIS mode 2 and APIS mode 3 ❐ Configurable Automatic Impedance Calibration (AIC™) ❐ Direct output (DIO) function Note: APIS and AIC are registered trademarks of ATLab, Inc., South Korea. ■ Beep output unit  1 channel Page 2 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY Block Diagram (MB95850K Series) F2MC-8FX CPU PF2*1/RST*2 Reset with LVD Dual operation Flash with security function (36 Kbyte) PF0/X0*2 PF1/X1*2 PG1/X0A*2 Oscillator circuit CR oscillator RAM (1 Kbyte) PG2/X1A*2 Interrupt controller Clock control (P04/TO01) C Watch prescaler 8/16-bit composite timer ch. 0 (P05/TO00) (P10*1/EC0) Watch counter (P07*3/CMP0_P) P10*1/DBG On-chip debug Comparator ch. 0 (P05/CMP0_N) (P06*3/CMP0_O) P15/INT00 P14/INT01 P13/INT04 P05/INT05 External interrupt ch. 0 to ch. 5 P46*1/INT06 Internal bus Wild register P47*1/INT07 (P13/UI0) (P14/UO0) UART/SIO ch. 0 (P15/UCK0) P06*3/PPG00 P07*3/PPG01 Beep output unit 8/16-bit PPG ch. 0 (P04/BEEP) P63/AREF P65/S01 to P67/S03 P04/AN00 (P05/AN01) (P06*3/AN02) P70/S04 8/10-bit A/D converter P71/S05 Touch sensor (P07*3/AN03) (P14/DIO00) (P04/DIO01) (P13/DIO02) (P47*1/SCL) (P46*1/SDA) I2C (PG1/DIO04) bus interface ch. 0 Port (PG2/DIO03) Port Vcc Vss *1: P10, P46, P47 and PF2 are N-ch open drain pins. *2: Software select *3: P06 and P07 are high-current pins. Note: Pins in parentheses indicate that those pins are shared among different peripheral functions. Document Number: 002-09305 Rev. *C Page 3 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY Block Diagram (MB95860K Series) F2MC-8FX CPU PF2*1/RST*2 Reset with LVD Dual operation Flash with security function (36 Kbyte) PF0/X0*2 PF1/X1*2 PG1/X0A*2 Oscillator circuit CR oscillator RAM (1 Kbyte) 2 PG2/X1A* Interrupt controller Clock control (P44*3/TO00) C Watch prescaler 8/16-bit composite timer ch. 0 (P45*3/TO01) (P10*1/EC0) Watch counter (P02/TO10) P10*1/DBG On-chip debug 8/16-bit composite timer ch. 1 (P03/TO11) P60/EC1 Wild register (P07*3/CMP0_P) P15/INT00 Comparator ch. 0 (P05/CMP0_N) (P06*3/CMP0_O) P14/INT01 P03/INT03 P13/INT04 External interrupt ch. 0 to ch. 7 P05/INT05 P46*1/INT06 P47*1/INT07 Internal bus P02/INT02 (P13/UI0) (P14/UO0) UART/SIO ch. 0 (P15/UCK0) P06*3/PPG00 P07*3/PPG01 8/16-bit PPG ch. 0 Beep output unit P44*3/PPG10 P45*3/PPG11 (P04/BEEP) 8/16-bit PPG ch. 1 P63/AREF P04/AN00 P64/S00 to P67/S03 (P05/AN01) (P06*3/AN02) (P07*3/AN03) P70/S04 to P73/S07 (P60/DIO00) 8/10-bit A/D converter Touch sensor (P44*3/AN06) (P45*3/AN07) (P04/DIO01) (P13/DIO02) (P44*3/DIO03) (PG2/DIO03) (P47*1/SCL) (P46*1/SDA) I2C (P45*3/DIO04) bus interface ch. 0 Port (PG1/DIO04) Port Vcc Vss *1: P10, P46, P47 and PF2 are N-ch open drain pins. *2: Software select *3: P06, P07, P44 and P45 are high-current pins. Note: Pins in parentheses indicate that those pins are shared among different peripheral functions. Document Number: 002-09305 Rev. *C Page 4 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY Block Diagram (MB95870K Series) F2MC-8FX CPU PF2*1/RST*2 Reset with LVD Dual operation Flash with security function (36 Kbyte) 2 PF0/X0* PF1/X1*2 PG1/X0A*2 Oscillator circuit CR oscillator RAM (1 Kbyte) 2 PG2/X1A* Interrupt controller Clock control (P44*3/TO00) C Watch prescaler 8/16-bit composite timer ch. 0 (P45*3/TO01) P11/EC0 Watch counter (P16/TO11) P10*1/DBG On-chip debug 8/16-bit composite timer ch. 1 (P17/TO10) P60/EC1 Wild register (P07*3/CMP0_P) P00/INT00 to P05/INT05 Comparator ch. 0 P42*3/INT06 P43*3/INT07 (P05/CMP0_N) (P06*3/CMP0_O) External interrupt ch. 0 to ch. 9 P16/INT09 P13/UI0 P14/UO0 UART/SIO ch. 0 P15/UCK0 P40*3/PPG00 P41*3/PPG01 (P42*3/PPG10) (P43*3/PPG11) P61/PPG20 P62/PPG21 Internal bus P17/INT08 8/16-bit PPG ch. 0 8/16-bit PPG ch. 1 8/16-bit PPG ch. 2 Beep output unit P12/BEEP (P04/AN00) (P05/AN01) P63/AREF P06*3/AN02 P64/S00 to P67/S03 P07*3/AN03 (P40*3/AN04) P70/S04 to P77/S11 8/10-bit A/D converter (P41*3/AN05) (P60/DIO00) Touch sensor P44*3/AN06 P45*3/AN07 (P11/DIO01) (P13/DIO02) (P44*3/DIO03) (PG2/DIO03) P47*1/SCL P46*1/SDA (P45*3/DIO04) I2C bus interface ch. 0 Port (PG1/DIO04) Port Vcc Vss *1: P10, P46, P47 and PF2 are N-ch open drain pins. *2: Software select *3: P06, P07, and P40 to P45 are high-current pins. Note: Pins in parentheses indicate that those pins are shared among different peripheral functions. Document Number: 002-09305 Rev. *C Page 5 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K Contents Product Line-up ................................................................ 7 Packages and Corresponding Products ........................ 9 Differences Among Products and Notes on Product Selection ............................................................. 9 Pin Assignment .............................................................. 10 Pin Functions .................................................................. 14 MB95850K Series ..................................................... 14 MB95860K Series ..................................................... 16 MB95870K Series ..................................................... 19 I/O Circuit Type ............................................................... 23 Handling Precautions ..................................................... 26 Precautions for Product Design ................................. 26 Precautions for Package Mounting ........................... 27 Precautions for Use Environment .............................. 28 Notes on Device Handling ............................................. 28 Pin Connection ............................................................... 29 CPU Core ......................................................................... 31 Memory Space ................................................................ 32 Areas for Specific Applications .................................... 34 I/O Maps ........................................................................... 35 MB95850K Series ..................................................... 35 MB95860K Series ..................................................... 40 MB95870K Series ..................................................... 46 Document Number: 002-09305 Rev. *C I/O Ports ........................................................................... 53 MB95850K Series ..................................................... 53 MB95860K Series ..................................................... 73 MB95870K Series ..................................................... 98 Interrupt Source Tables ............................................... 125 MB95850K Series ................................................... 125 MB95860K Series ................................................... 126 MB95870K Series ................................................... 127 Pin States in Each Mode .............................................. 128 MB95850K Series ................................................... 128 MB95860K Series ................................................... 130 MB95870K Series ................................................... 132 Electrical Characteristics ............................................. 135 Absolute Maximum Ratings ..................................... 135 Recommended Operating Conditions ..................... 137 DC Characteristics .................................................. 138 AC Characteristics ................................................... 141 A/D Converter .......................................................... 157 Flash Memory Program/Erase Characteristics ........ 161 Ordering Information .................................................... 162 Package Dimension ...................................................... 163 Major Changes in This Edition .................................... 168 Document History Page ............................................... 171 Sales, Solutions, and Legal Information .................... 172 Page 6 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 1. Product Line-up Parameter MB95F856K MB95F866K Type Flash memory product Clock supervisor counter It supervises the main clock oscillation and the subclock oscillation. Flash memory capacity 36 Kbyte RAM capacity 1 Kbyte Power-on reset Yes Low-voltage detection reset Yes Reset input CPU functions MB95F876K Selected through software • Number of basic instructions: 136 • • • • • Instruction bit length: 8 bits Instruction length: 1 to 3 bytes Data bit length: 1, 8 and 16 bits Minimum instruction execution time: 61.5 ns (machine clock frequency = 16.25 MHz) Interrupt processing time: 0.6 µs (machine clock frequency = 16.25 MHz) General-purpose I/O • I/O port:21 • CMOS I/O:17 • N-ch open drain:4 • I/O port:29 • CMOS I/O:25 • N-ch open drain:4 Time-base timer Interval time: 0.256 ms to 8.3 s (external clock frequency = 4 MHz) Hardware/software watchdog timer • Reset generation cycle - Main oscillation clock at 10 MHz: 105 ms (Min) • The sub-CR clock can be used as the source clock of the software watchdog timer. Wild register It can be used to replace three bytes of data. 8/10-bit A/D converter 4 channels 6 channels • I/O port:45 • CMOS I/O:41 • N-ch open drain:4 8 channels 8-bit or 10-bit resolution can be selected. 8/16-bit composite timer 1 channel 2 channels 2 channels • The timer can be configured as an “8-bit timer × 2 channels” or a “16-bit timer × 1 channel”. • It has the following functions: interval timer function, PWC function, PWM function and input capture function. • Count clock: it can be selected from internal clocks (seven types) and external clocks. • It can output square wave. External interrupt 6 channels 8 channels 10 channels Interrupt by edge detection (The rising edge, falling edge, and both edges can be selected.) It can be used to wake up the device from different standby modes. On-chip debug • 1-wire serial control • It supports serial writing (asynchronous mode). UART/SIO 1 channel • Data transfer with UART/SIO is enabled. • It has a full duplex double buffer, variable data length (5/6/7/8 bits), an internal baud rate generator and an error detection function. • It uses the NRZ type transfer format. • LSB-first data transfer and MSB-first data transfer are available to use. • Both clock asynchronous (UART) serial data transfer and clock synchronous (SIO) serial data transfer are enabled. Document Number: 002-09305 Rev. *C Page 7 of 172 PRELIMINARY Parameter 2 MB95F856K I C bus interface 1 channel 8/16-bit PPG 1 channels MB95F856K, MB95F866K, MB95F876K MB95F866K MB95F876K • Master/slave transmission and receiving • It has the following functions: bus error function, arbitration function, transmission direction detection function, wake-up function, and functions of generating and detecting repeated START conditions. 2 channels 3 channels • Each channel can be used as an “8-bit timer  2 channels” or a “16-bit timer  1 channel”. • The counter operating clock can be selected from eight clock sources. Touch sensor (TS) 5 touch channels • • • • 8 touch channels 12 touch channels Two types of interrupt: GINT for general purpose and TINT for touch detection 8-bit resolution of touch strength data (256 steps) Five DIO pins as direct touch outputs Beep generation for tactile feeling Beep output unit The beep output unit can be activated by using the software or the TS. Watch counter • Count clock: it can be selected from eight clock sources from the watch prescaler. • The counter value can be selected from 0 to 63. (The watch counter can count for one minute when the clock source of one second is selected and 60 is selected as the counter value.) Watch prescaler Eight different time intervals can be selected. Comparator 1 channel The comparator reference voltage can be selected between the BGR voltage and the comparator pin. Flash memory • It supports automatic programming (Embedded Algorithm), and program/erase/erase-suspend/erase-resume commands. • It has a flag indicating the completion of the operation of Embedded Algorithm. • Flash security feature for protecting the content of the Flash memory Number of program/erase cycles Data retention time Standby mode 1000 20 years 10000 10 years 100000 5 years There are four standby modes as follows: • Stop mode • Sleep mode • Watch mode • Time-base timer mode In standby mode, two further options can be selected: normal standby mode and deep standby mode. Package Document Number: 002-09305 Rev. *C STI024 SOL024 LQB032 LQA048 LQC052 Page 8 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 2. Packages and Corresponding Products Package MB95F856K MB95F866K MB95F876K STI024 O X X SOL024 O X X LQB032 X O X LQA048 X X O LQC052 X X O : Available X: Unavailable 3. Differences Among Products and Notes on Product Selection ■ Current consumption When using the on-chip debug function, take account of the current consumption of Flash memory program/erase. For details of current consumption, see Electrical Characteristics on page 135. ■ Package For details of information on each package, see Packages and Corresponding Products and Package Dimension on page 163. ■ Operating voltage The operating voltage varies, depending on whether the on-chip debug function is used or not. For details of operating voltage, see Electrical Characteristics on page 135. ■ On-chip debug function The on-chip debug function requires that VCC, VSS and one serial wire be connected to an evaluation tool. For details of the connection method, refer to “CHAPTER 24 EXAMPLE OF SERIAL PROGRAMMING CONNECTION” in “New 8FX MB95850K/860K/870K Series Hardware Manual”. Document Number: 002-09305 Rev. *C Page 9 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 4. Pin Assignment MB95850K PG2/X1A/DIO03 PG1/X0A/DIO04 C PF1/X1 1 2 3 4 5 6 (TOP VIEW) SOP24 TSSOP24 24 23 22 21 20 19 18 17 P10/DBG/EC0 P07*/AN03/CMP0_P/PPG01 P06*/AN02/CMP0_O/PPG00 P05/INT05/AN01/CMP0_N/TO00 P04/AN00/BEEP/DIO01/TO01 P47/INT07/SCL P46/INT06/SDA P13/INT04/UI0/DIO02 PF0/X0 Vss Vcc P71/S05 P70/S04 9 16 P14/INT01/UO0/DIO00 P67/S03 P66/S02 10 11 15 14 P15/INT00/UCK0 PF2/RST P65/S01 12 13 P63/AREF 7 8 STI024 SOL024 *: High-current pin (8 mA/12 mA) Document Number: 002-09305 Rev. *C Page 10 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 32 31 30 29 28 27 26 25 C PG1/X0A/DIO04 PG2/X1A/DIO03 P10/DBG/EC0 P45*/AN07/TO01/DIO04/PPG11 P44*/AN06/TO00/DIO03/PPG10 P07*/AN03/CMP0_P/PPG01 P06*/AN02/CMP0_O/PPG00 MB95860K P71/S05 P70/S04 7 8 LQB032 16 5 6 P15/INT00/UCK0 P73/S07 P72/S06 (TOP VIEW) LQFP32 13 14 15 3 4 P63/AREF PF2/RST P60/EC1/DIO00 Vss Vcc 9 10 11 12 1 2 P67/S03 P66/S02 P65/S01 P64/S00 PF1/X1 PF0/X0 24 23 22 21 P05/INT05/AN01/CMP0_N P04/AN00/BEEP/DIO01 P03/INT03/TO11 P02/INT02/TO10 20 19 18 17 P47/INT07/SCL P46/INT06/SDA P13/INT04/UI0/DIO02 P14/INT01/UO0 *: High-current pin (8 mA/12 mA) Document Number: 002-09305 Rev. *C Page 11 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY P07*/AN03/CMP0_P P06*/AN02/CMP0_O 38 37 28 27 P11/EC0/DIO01 P12/BEEP 11 26 P13/UI0/DIO02 12 25 P14/UO0 21 22 23 24 P17/INT08/TO10 P16/INT09/TO11 P15/UCK0 20 LQA048 P61/PPG20 P70/S04 P41*/AN05/PPG01 P40*/AN04/PPG00 P01/INT01 P00/INT00 P47/SCL P46/SDA P60/EC1/DIO00 P71/S05 40 39 32 31 30 29 (TOP VIEW) LQFP48 17 18 19 P73/S07 P72/S06 3 4 5 6 7 8 9 10 C PG1/X0A/DIO04 PG2/X1A/DIO03 P10/DBG P45*/AN07/TO01/DIO04 P44*/AN06/TO00/DIO03 P43*/INT07/PPG11 P42*/INT06/PPG10 P05/INT05/AN01/CMP0_N P04/INT04/AN00 P63/AREF PF2/RST P62/PPG21 Vss Vcc P77/S11 P76/S10 P75/S09 P74/S08 36 35 34 33 13 14 15 16 1 2 P67/S03 P66/S02 P65/S01 P64/S00 PF1/X1 PF0/X0 48 47 46 45 44 43 42 41 MB95870 P03/INT03 P02/INT02 *: High-current pin (8 mA/12 mA) Document Number: 002-09305 Rev. *C Page 12 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY P67/S03 P66/S02 P65/S01 P64/S00 14 15 16 P70/S04 P06*/AN02/CMP0_O P07*/AN03/CMP0_P P41*/AN05/PPG01 P40*/AN04/PPG00 42 41 40 39 38 37 36 P05/INT05/AN01/CMP0_N P04/INT04/AN00 P03/INT03 P02/INT02 35 34 33 32 31 P01/INT01 P00/INT00 NC P47/SCL P46/SDA 30 P11/EC0/DIO01 29 P12/BEEP 28 27 P13/UI0/DIO02 P14/UO0 P15/UCK0 12 13 24 25 26 P71/S05 P17/INT08/TO10 P16/INT09/TO11 11 22 23 P72/S06 P61/PPG20 10 LQC052 P60/EC1/DIO00 P73/S07 (TOP VIEW) LQFP52 20 3 4 5 6 7 8 9 21 Vss Vcc P77/S11 P76/S10 NC P75/S09 P74/S08 17 18 19 1 2 P63/AREF PF2/RST NC P62/PPG21 PF1/X1 PF0/X0 44 43 52 51 50 49 48 47 46 45 C PG1/X0A/DIO04 PG2/X1A/DIO03 P10/DBG P45*/AN07/TO01/DIO04 P44*/AN06/TO00/DIO03 NC P43*/INT07/PPG11 P42*/INT06/PPG10 MB958 *: High-current pin (8 mA/12 mA) Document Number: 002-09305 Rev. *C Page 13 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 5. Pin Functions 5.1 MB95850K Series circuit Pin no. Pin name I/Otype 1 PG2 1 2 X1A C 4 5 Subclock I/O oscillation pin DIO03 TS direct output ch. 3 pin PG1 General-purpose I/O port X0A C PF1 X1 PF0 X0 I/O type OD2 PU3 Input Output Hysteresis CMOS — O Hysteresis CMOS — O — — — — Hysteresis CMOS — — Hysteresis CMOS — — General-purpose I/O port C DIO04 3 Function Subclock input oscillation pin TS direct output ch. 4 pin — B B Decoupling capacitor connection pin General-purpose I/O port Main clock I/O oscillation pin General-purpose I/O port Main clock input oscillation pin 6 VSS — Power supply pin (GND) — — — — 7 VCC — Power supply pin — — — — Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis CMOS O — Hysteresis CMOS — O Hysteresis CMOS — O 8 9 10 11 12 13 14 P71 S05 P70 S04 P67 S03 P66 S02 P65 S01 P63 AREF PF2 RST F F F F F F A P15 15 INT00 G UO0 DIO00 General-purpose I/O port TS touch ch. 4 input pin General-purpose I/O port TS touch ch. 3 input pin General-purpose I/O port TS touch ch. 2 input pin General-purpose I/O port TS touch ch. 1 input pin General-purpose I/O port TS reference impedance input pin General-purpose I/O port Reset pin External interrupt input pin UART/SIO ch. 0 clock I/O pin P14 16 TS touch ch. 5 input pin General-purpose I/O port UCK0 INT01 General-purpose I/O port General-purpose I/O port G External interrupt input pin UART/SIO ch. 0 data output pin TS direct output ch. 0 pin Document Number: 002-09305 Rev. *C Page 14 of 172 PRELIMINARY circuit Pin no. Pin name I/Otype 1 P13 INT04 17 UI0 18 19 J General-purpose I/O port I I2C bus interface ch. 0 data I/O pin P47 General-purpose I/O port I I C bus interface ch. 0 clock I/O pin P04 General-purpose I/O port 8/10-bit A/D converter analog input pin E TS direct output ch. 1 pin TO01 8/16-bit composite timer ch. 0 output pin P05 General-purpose I/O port INT05 External interrupt input pin E AN02 CMP0_O K CMOS — O CMOS CMOS O — CMOS CMOS O — Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O 8/10-bit A/D converter analog input pin Comparator ch. 0 digital output pin Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis CMOS O — 8/16-bit PPG ch. 0 output pin General-purpose I/O port High-current pin K CMP0_P PPG01 8/10-bit A/D converter analog input pin Comparator ch. 0 non-inverting analog input (positive input) pin 8/16-bit PPG ch. 0 output pin P10 EC0 CMOS General-purpose I/O port, High-current pin P07 DBG Output 8/16-bit composite timer ch. 0 output pin PPG00 AN03 8/10-bit A/D converter analog input pin Comparator ch. 0 inverting analog input (negative input) pin P06 24 Beep output pin DIO01 TO00 23 External interrupt input pin SCL AN01 OD2 PU3 Input 2 CMP0_N 22 External interrupt input pin SDA AN00 21 External interrupt input pin UART/SIO ch. 0 data input pin P46 BEEP I/O type General-purpose I/O port TS direct output ch. 2 pin INT07 20 Function DIO02 INT06 MB95F856K, MB95F866K, MB95F876K General-purpose I/O port H DBG input pin 8/16-bit composite timer ch. 0 clock input pin : Available Notes 1. For the I/O circuit types, see I/O Circuit Type. 2. N-ch open drain 3. Pull-up Document Number: 002-09305 Rev. *C Page 15 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 5.2 MB95860K Series circuit Pin no. Pin name I/Otype 4 1 2 PF1 X1 PF0 X0 B B 3 VSS — 4 VCC — 5 6 7 8 9 10 11 12 13 14 P73 S07 P72 S06 P71 S05 P70 S04 P67 S03 P66 S02 P65 S01 P64 S00 P63 AREF PF2 RST F F F F F F F F F A P60 15 EC1 G UO0 Hysteresis CMOS — — Hysteresis CMOS — — Power supply pin (GND) — — — — Power supply pin — — — — Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis CMOS O — Hysteresis CMOS — O Hysteresis CMOS — O Hysteresis CMOS — O General-purpose I/O port Main clock I/O oscillation pin General-purpose I/O port Main clock input oscillation pin General-purpose I/O port TS touch ch. 7 input pin General-purpose I/O port TS touch ch. 6 input pin General-purpose I/O port TS touch ch. 5 input pin General-purpose I/O port TS touch ch. 4 input pin General-purpose I/O port TS touch ch. 3 input pin General-purpose I/O port TS touch ch. 2 input pin General-purpose I/O port TS touch ch. 1 input pin General-purpose I/O port TS touch ch. 0 input pin General-purpose I/O port TS reference impedance input pin General-purpose I/O port Reset pin 8/16-bit composite timer ch. 1 clock input pin External interrupt input pin UART/SIO ch. 0 clock I/O pin P14 INT01 Output General-purpose I/O port G UCK0 17 OD5 PU6 Input TS direct output ch. 0 pin P15 INT00 I/O type General-purpose I/O port DIO00 16 Function General-purpose I/O port G External interrupt input pin UART/SIO ch. 0 data output pin Document Number: 002-09305 Rev. *C Page 16 of 172 PRELIMINARY circuit Pin no. Pin name I/Otype 4 P13 18 19 20 21 INT04 UI0 J P46 General-purpose I/O port I I2C bus interface ch. 0 data I/O pin P47 General-purpose I/O port I I C bus interface ch. 0 clock I/O pin P02 General-purpose I/O port G INT03 AN00 BEEP E 8/10-bit A/D converter analog input pin Beep output pin General-purpose I/O port E K External interrupt input pin 8/10-bit A/D converter analog input pin 8/10-bit A/D converter analog input pin Comparator ch. 0 digital output pin CMOS O — CMOS CMOS O — Hysteresis CMOS — O Hysteresis CMOS — O Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O 8/16-bit PPG ch. 0 output pin General-purpose I/O port High-current pin P07 K CMP0_P PPG01 8/10-bit A/D converter analog input pin Comparator ch. 0 non-inverting analog input (positive input) pin 8/16-bit PPG ch. 0 output pin General-purpose I/O port High-current pin P44 TO00 CMOS General-purpose I/O port High-current pin PPG00 AN06 O Comparator ch. 0 inverting analog input (negative input) pin CMP0_O AN03 — General-purpose I/O port P05 AN02 CMOS 8/16-bit composite timer ch. 1 output pin P06 27 External interrupt input pin TS direct output ch. 1 pin AN01 CMOS General-purpose I/O port G CMP0_N 26 External interrupt input pin DIO01 INT05 Output 8/16-bit composite timer ch. 1 output pin P04 25 External interrupt input pin SCL INT02 OD5 PU6 Input 2 TO11 24 External interrupt input pin SDA P03 23 External interrupt input pin UART/SIO ch. 0 data input pin TS direct output ch. 2 pin INT07 I/O type General-purpose I/O port TO10 22 Function DIO02 INT06 MB95F856K, MB95F866K, MB95F876K K 8/10-bit A/D converter analog input pin 8/16-bit composite timer ch. 0 output pin DIO03 TS direct output ch. 3 pin PPG10 8/16-bit PPG ch. 1 output pin Document Number: 002-09305 Rev. *C Page 17 of 172 PRELIMINARY circuit Pin no. Pin name I/Otype 4 AN07 TO01 K 8/10-bit A/D converter analog input pin 8/16-bit composite timer ch. 0 output pin DIO04 TS direct output ch. 4 pin PPG11 8/16-bit PPG ch. 1 output pin P10 29 DBG 30 H 8/16-bit composite timer ch. 0 clock input pin General-purpose I/O port C X0A Hysteresis/ analog CMOS — O Hysteresis CMOS O — Subclock I/O oscillation pin Hysteresis CMOS — O Hysteresis CMOS — O — — — — General-purpose I/O port C DIO04 C Output TS direct output ch. 3 pin PG1 32 DBG input pin EC0 DIO03 31 OD5 PU6 Input General-purpose I/O port PG2 X1A I/O type General-purpose I/O port High-current pin P45 28 Function MB95F856K, MB95F866K, MB95F876K Subclock input oscillation pin TS direct output ch. 4 pin — Decoupling capacitor connection pin : Available Notes 4. For the I/O circuit types, see I/O Circuit Type. 5. N-ch open drain 6. Pull-up Document Number: 002-09305 Rev. *C Page 18 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 5.3 MB95870K Series Pin no. 7 8 I/O Pin name circuit type9 Function LQFP48 LQFP52 1 1 2 2 3 3 VSS — Power supply pin (GND) 4 4 VCC — Power supply pin 5 5 6 6 — 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 — 20 PF1 X1 PF0 X0 P77 S11 P76 S10 NC P75 S09 P74 S08 P73 S07 P72 S06 P71 S05 P70 S04 P67 S03 P66 S02 P65 S01 P64 S00 P63 AREF PF2 RST NC Document Number: 002-09305 Rev. *C B B F F — F F F F F F F F F F F A — General-purpose I/O port Main clock I/O oscillation pin General-purpose I/O port Main clock input oscillation pin General-purpose I/O port TS touch ch. 11 input pin General-purpose I/O port TS touch ch. 10 input pin It is an internally connected pin. Always leave it unconnected. General-purpose I/O port TS touch ch. 9 input pin General-purpose I/O port TS touch ch. 8 input pin General-purpose I/O port TS touch ch. 7 input pin General-purpose I/O port TS touch ch. 6 input pin General-purpose I/O port TS touch ch. 5 input pin General-purpose I/O port TS touch ch. 4 input pin General-purpose I/O port TS touch ch. 3 input pin General-purpose I/O port TS touch ch. 2 input pin General-purpose I/O port TS touch ch. 1 input pin General-purpose I/O port TS touch ch. 0 input pin General-purpose I/O port TS reference impedance input pin General-purpose I/O port Reset pin It is an internally connected pin. Always leave it unconnected. I/O type Input Output OD10 PU11 Hysteresis CMOS — — Hysteresis CMOS — — — — — — — — — — Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O — — — — Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis CMOS O — — — — — Page 19 of 172 PRELIMINARY Pin no. LQFP487 LQFP528 19 21 20 22 21 23 I/O Pin name circuit type9 P62 PPG21 P61 PPG20 G G P60 22 24 EC1 26 25 27 28 G INT09 P15 UCK0 P14 UO0 UI0 29 P12 BEEP 30 29 31 30 32 — 33 31 34 32 35 33 36 34 37 EC0 8/16-bit composite timer ch. 1 clock input pin External interrupt input pin G External interrupt input pin G G UART/SIO ch. 0 clock I/O pin General-purpose I/O port UART/SIO ch. 0 data output pin J UART/SIO ch. 0 data input pin G General-purpose I/O port Beep output pin P00 INT00 P01 INT01 P02 INT02 P03 INT03 Document Number: 002-09305 Rev. *C O Hysteresis CMOS — O Hysteresis CMOS — O Hysteresis CMOS — O Hysteresis CMOS — O Hysteresis CMOS — O Hysteresis CMOS — O CMOS CMOS — O Hysteresis CMOS — O Hysteresis CMOS — O CMOS CMOS O — CMOS CMOS O — — — — — Hysteresis CMOS — O Hysteresis CMOS — O Hysteresis CMOS — O Hysteresis CMOS — O General-purpose I/O port G 8/16-bit composite timer ch. 0 clock input pin TS direct output ch. 1 pin NC — TS direct output ch. 2 pin General-purpose I/O port SCL CMOS General-purpose I/O port P46 P47 Hysteresis 8/16-bit composite timer ch. 1 output pin General-purpose I/O port DIO01 SDA Output OD10 PU11 General-purpose I/O port P11 28 Input 8/16-bit composite timer ch. 1 output pin DIO02 27 8/16-bit PPG ch. 2 output pin General-purpose I/O port P13 26 General-purpose I/O port P17 TO11 24 8/16-bit PPG ch. 2 output pin TS direct output ch. 0 pin P16 25 General-purpose I/O port I/O type General-purpose I/O port G TO10 23 Function DIO00 INT08 MB95F856K, MB95F866K, MB95F876K I I — G G G G I2C bus interface ch. 0 data I/O pin General-purpose I/O port I2C bus interface ch. 0 clock I/O pin It is an internally connected pin. Always leave it unconnected. General-purpose I/O port External interrupt input pin General-purpose I/O port External interrupt input pin General-purpose I/O port External interrupt input pin General-purpose I/O port External interrupt input pin Page 20 of 172 PRELIMINARY Pin no. LQFP487 LQFP528 35 38 I/O Pin name circuit type9 P04 INT04 External interrupt input pin E P06 40 AN02 K CMP0_O 41 AN03 K AN04 K PPG00 43 AN05 K PPG01 44 INT06 D PPG10 45 INT07 D PPG11 — 46 NC 47 AN06 8/10-bit A/D converter analog input pin 8/10-bit A/D converter analog input pin General-purpose I/O port High-current pin 8/10-bit A/D converter analog input pin General-purpose I/O port High-current pin 8/10-bit A/D converter analog input pin General-purpose I/O port High-current pin External interrupt input pin General-purpose I/O port High-current pin External interrupt input pin — It is an internally connected pin. Always leave it unconnected. Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis/ analog CMOS — O Hysteresis CMOS — O Hysteresis CMOS — O — — — — Hysteresis/ analog CMOS — O General-purpose I/O port High-current pin K 8/10-bit A/D converter analog input pin TO00 8/16-bit composite timer ch. 0 output pin DIO03 TS direct output ch. 3 pin Document Number: 002-09305 Rev. *C O 8/16-bit PPG ch. 1 output pin P44 43 — 8/16-bit PPG ch. 1 output pin P43 42 CMOS 8/16-bit PPG ch. 0 output pin P42 41 Hysteresis/ analog 8/16-bit PPG ch. 0 output pin P41 40 General-purpose I/O port High-current pin Comparator ch. 0 non-inverting analog input (positive input) pin P40 42 8/10-bit A/D converter analog input pin General-purpose I/O port High-current pin CMP0_P 39 Output OD10 PU11 Comparator ch. 0 digital output pin P07 38 Input Comparator ch. 0 inverting analog input (negative input) pin CMP0_N 37 I/O type General-purpose I/O port INT05 AN01 External interrupt input pin 8/10-bit A/D converter analog input pin P05 39 Function General-purpose I/O port E AN00 36 MB95F856K, MB95F866K, MB95F876K Page 21 of 172 PRELIMINARY Pin no. LQFP487 LQFP528 I/O Pin name circuit type9 48 45 49 46 50 AN07 K TO01 8/16-bit composite timer ch. 0 output pin TS direct output ch. 4 pin DBG H PG2 47 51 X1A 52 General-purpose I/O port DBG input pin Subclock I/O oscillation pin DIO03 TS direct output ch. 3 pin PG1 General-purpose I/O port X0A C Input Output OD10 PU11 Hysteresis/ analog CMOS — O Hysteresis CMOS O — Hysteresis CMOS — O Hysteresis CMOS — O — — — — General-purpose I/O port C C DIO04 48 8/10-bit A/D converter analog input pin DIO04 P10 I/O type General-purpose I/O port High-current pin P45 44 Function MB95F856K, MB95F866K, MB95F876K Subclock input oscillation pin TS direct output ch. 4 pin — Decoupling capacitor connection pin : Available Notes 7. LQA048 8. LQC052 9. For the I/O circuit types, see I/O Circuit Type. 10. N-ch open drain 11. Pull-up Document Number: 002-09305 Rev. *C Page 22 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 6. I/O Circuit Type Type Circuit Remarks A Reset input / Hysteresis input Reset output / Digital output • N-ch open drain output • Hysteresis input • Reset output N-ch B P-ch Port select Digital output N-ch Digital output Standby control Hysteresis input • Oscillation circuit • High-speed side Feedback resistance: approx. 1 M CMOS output • Hysteresis input Clock input X1 X0 Standby control / Port select P-ch Port select Digital output N-ch Digital output Standby control Hysteresis input C Port select R Pull-up control P-ch P-ch Digital output N-ch Digital output • Oscillation circuit • Low-speed side Feedback resistance: approx. 5 M CMOS output • Hysteresis input • Pull-up control Standby control Hysteresis input Clock input X1A X0A Standby control / Port select Port select R Pull-up control Digital output P-ch Digital output N-ch Digital output Standby control Hysteresis input Document Number: 002-09305 Rev. *C Page 23 of 172 PRELIMINARY Type MB95F856K, MB95F866K, MB95F876K Circuit Remarks D Pull-up control R P-ch Digital output P-ch • • • • CMOS output Hysteresis input Pull-up control High current output • • • • CMOS output Hysteresis input Pull-up control Analog input • • • • • CMOS output Hysteresis input Pull-up control Touch input High electrostatic discharge (ESD) Digital output N-ch Standby control Hysteresis input E Pull-up control R P-ch Digital output P-ch Digital output N-ch Analog input A/D control Standby control Hysteresis input F Pull-up control R P-ch Digital output P-ch Digital output N-ch Touch input TS control Standby control Hysteresis input G Pull-up control R • CMOS output • Hysteresis input • Pull-up control P-ch Digital output P-ch Digital output N-ch Standby control Hysteresis input H Standby control • N-ch open drain output • Hysteresis input Hysteresis input Digital output N-ch Document Number: 002-09305 Rev. *C Page 24 of 172 PRELIMINARY Type MB95F856K, MB95F866K, MB95F876K Circuit Remarks I Digital output • N-ch open drain output • CMOS input N-ch Standby control CMOS input J Pull-up control R • CMOS output • CMOS input • Pull-up control P-ch Digital output P-ch Digital output N-ch Standby control CMOS input K Pull-up control R P-ch Digital output P-ch • • • • • CMOS output Hysteresis input Pull-up control Analog input High-current output Digital output N-ch Analog input A/D control Standby control Hysteresis input Document Number: 002-09305 Rev. *C Page 25 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 7. Handling Precautions Any semiconductor devices have inherently a certain rate of failure. The possibility of failure is greatly affected by the conditions in which they are used (circuit conditions, environmental conditions, etc.). This page describes precautions that must be observed to minimize the chance of failure and to obtain higher reliability from your Cypress semiconductor devices. 7.1 Precautions for Product Design This section describes precautions when designing electronic equipment using semiconductor devices. ■ Absolute Maximum Ratings Semiconductor devices can be permanently damaged by application of stress (voltage, current, temperature, etc.) in excess of certain established limits, called absolute maximum ratings. Do not exceed these ratings. ■ Recommended Operating Conditions Recommended operating conditions are normal operating ranges for the semiconductor device. All the device's electrical characteristics are warranted when operated within these ranges. Always use semiconductor devices within the recommended operating conditions. Operation outside these ranges may adversely affect reliability and could result in device failure. No warranty is made with respect to uses, operating conditions, or combinations not represented on the data sheet. Users considering application outside the listed conditions are advised to contact their sales representative beforehand. ■ Processing and Protection of Pins These precautions must be followed when handling the pins which connect semiconductor devices to power supply and input/output functions. ❐ Preventing Over-Voltage and Over-Current Conditions Exposure to voltage or current levels in excess of maximum ratings at any pin is likely to cause deterioration within the device, and in extreme cases leads to permanent damage of the device. Try to prevent such overvoltage or over-current conditions at the design stage. ❐ Protection of Output Pins Shorting of output pins to supply pins or other output pins, or connection to large capacitance can cause large current flows. Such conditions if present for extended periods of time can damage the device. Therefore, avoid this type of connection. Handling of Unused Input Pins Unconnected input pins with very high impedance levels can adversely affect stability of operation. Such pins should be connected through an appropriate resistance to a power supply pin or ground pin. ❐ ■ Latch-up Semiconductor devices are constructed by the formation of P-type and N-type areas on a substrate. When subjected to abnormally high voltages, internal parasitic PNPN junctions (called thyristor structures) may be formed, causing large current levels in excess of several hundred mA to flow continuously at the power supply pin. This condition is called latch-up. The occurrence of latch-up not only causes loss of reliability in the semiconductor device, but can cause injury or damage from high heat, smoke or flame. To prevent this from happening, do the following: ❐ Be sure that voltages applied to pins do not exceed the absolute maximum ratings. This should include attention to abnormal noise, surge levels, etc. ❐ Be sure that abnormal current flows do not occur during the power-on sequence. ■ Observance of Safety Regulations and Standards Most countries in the world have established standards and regulations regarding safety, protection from electromagnetic interference, etc. Customers are requested to observe applicable regulations and standards in the design of products. ■ Fail-Safe Design Any semiconductor devices have inherently a certain rate of failure. You must protect against injury, damage or loss from such failures by incorporating safety design measures into your facility and equipment such as redundancy, fire protection, and prevention of over-current levels and other abnormal operating conditions. ■ Precautions Related to Usage of Devices Cypress semiconductor devices are intended for use in standard applications (computers, office automation and other office equipment, industrial, communications, and measurement equipment, personal or household devices, etc.). Document Number: 002-09305 Rev. *C Page 26 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K Customers considering the use of our products in special applications where failure or abnormal operation may directly affect human lives or cause physical injury or property damage, or where extremely high levels of reliability are demanded (such as aerospace systems, atomic energy controls, sea floor repeaters, vehicle operating controls, medical devices for life support, etc.) are requested to consult with sales representatives before such use. The company will not be responsible for damages arising from such use without prior approval. 7.2 Precautions for Package Mounting Package mounting may be either lead insertion type or surface mount type. In either case, for heat resistance during soldering, you should only mount under Cypress recommended conditions. For detailed information about mount conditions, contact your sales representative. ■ Lead Insertion Type Mounting of lead insertion type packages onto printed circuit boards may be done by two methods: direct soldering on the board, or mounting by using a socket. Direct mounting onto boards normally involves processes for inserting leads into through-holes on the board and using the flow soldering (wave soldering) method of applying liquid solder. In this case, the soldering process usually causes leads to be subjected to thermal stress in excess of the absolute ratings for storage temperature. Mounting processes should conform to Cypress recommended mounting conditions. If socket mounting is used, differences in surface treatment of the socket contacts and IC lead surfaces can lead to contact deterioration after long periods. For this reason it is recommended that the surface treatment of socket contacts and IC leads be verified before mounting. ■ Surface Mount Type Surface mount packaging has longer and thinner leads than lead-insertion packaging, and therefore leads are more easily deformed or bent. The use of packages with higher pin counts and narrower pin pitch results in increased susceptibility to open connections caused by deformed pins, or shorting due to solder bridges. You must use appropriate mounting techniques. Cypress recommends the solder reflow method, and has established a ranking of mounting conditions for each product. Users are advised to mount packages in accordance with Cypress ranking of recommended conditions. ■ Lead-Free Packaging When ball grid array (BGA) packages with Sn-Ag-Cu balls are mounted using Sn-Pb eutectic soldering, junction strength may be reduced under some conditions of use. ■ Storage of Semiconductor Devices Because plastic chip packages are formed from plastic resins, exposure to natural environmental conditions will cause absorption of moisture. During mounting, the application of heat to a package that has absorbed moisture can cause surfaces to peel, reducing moisture resistance and causing packages to crack. To prevent, do the following: ❐ Avoid exposure to rapid temperature changes, which cause moisture to condense inside the product. Store products in locations where temperature changes are slight. ❐ Use dry boxes for product storage. Products should be stored below 70% relative humidity, and at temperatures between 5 °C and 30 °C. When you open Dry Package that recommends humidity 40% to 70% relative humidity. ❐ When necessary, Cypress packages semiconductor devices in highly moisture-resistant aluminum laminate bags, with a silica gel desiccant. Devices should be sealed in their aluminum laminate bags for storage. ❐ Avoid storing packages where they are exposed to corrosive gases or high levels of dust. ■ Baking Packages that have absorbed moisture may be de-moisturized by baking (heat drying). Follow the Cypress recommended conditions for baking. Condition: 125 °C/24 h ■ Static Electricity Because semiconductor devices are particularly susceptible to damage by static electricity, you must take the following precautions: ❐ Maintain relative humidity in the working environment between 40% and 70%. Use of an apparatus for ion generation may be needed to remove electricity. ❐ Electrically ground all conveyors, solder vessels, soldering irons and peripheral equipment. ❐ Eliminate static body electricity by the use of rings or bracelets connected to ground through high resistance (on the level of 1 M). Wearing of conductive clothing and shoes, use of conductive floor mats and other measures to minimize shock loads is recommended. ❐ Ground all fixtures and instruments, or protect with anti-static measures. ❐ Avoid the use of styrofoam or other highly static-prone materials for storage of completed board assemblies. Document Number: 002-09305 Rev. *C Page 27 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 7.3 Precautions for Use Environment Reliability of semiconductor devices depends on ambient temperature and other conditions as described above. For reliable performance, do the following: ❐ Humidity: Prolonged use in high humidity can lead to leakage in devices as well as printed circuit boards. If high humidity levels are anticipated, consider anti-humidity processing. ❐ Discharge of Static Electricity: When high-voltage charges exist close to semiconductor devices, discharges can cause abnormal operation. In such cases, use anti-static measures or processing to prevent discharges. ❐ Corrosive Gases, Dust, or Oil: Exposure to corrosive gases or contact with dust or oil may lead to chemical reactions that will adversely affect the device. If you use devices in such conditions, consider ways to prevent such exposure or to protect the devices. ❐ Radiation, Including Cosmic Radiation: Most devices are not designed for environments involving exposure to radiation or cosmic radiation. Users should provide shielding as appropriate. ❐ Smoke, Flame: Caution: Plastic molded devices are flammable, and therefore should not be used near combustible substances. If devices begin to smoke or burn, there is danger of the release of toxic gases. Customers considering the use of Cypress products in other special environmental conditions should consult with sales representatives. 8. Notes on Device Handling ■ Preventing latch-ups When using the device, ensure that the voltage applied does not exceed the maximum voltage rating. In a CMOS IC, if a voltage higher than VCC or a voltage lower than VSS is applied to an input/output pin that is neither a medium-withstand voltage pin nor a high-withstand voltage pin, or if a voltage out of the rating range of power supply voltage mentioned in “Absolute Maximum Ratings” of Electrical Characteristics on page 135 is applied to the VCC pin or the VSS pin, a latch-up may occur. When a latch-up occurs, power supply current increases significantly, which may cause a component to be thermally destroyed. ■ Stabilizing supply voltage Supply voltage must be stabilized. A malfunction may occur when power supply voltage fluctuates rapidly even though the fluctuation is within the guaranteed operating range of the VCC power supply voltage. As a rule of voltage stabilization, suppress voltage fluctuation so that the fluctuation in VCC ripple (p-p value) at the commercial frequency (50 Hz/60 Hz) does not exceed 10% of the standard VCC value, and the transient fluctuation rate does not exceed 0.1 V/ms at a momentary fluctuation such as switching the power supply. ■ Notes on using the external clock When an external clock is used, oscillation stabilization wait time is required for power-on reset, wake-up from subclock mode or stop mode. Document Number: 002-09305 Rev. *C Page 28 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 9. Pin Connection ■ Treatment of unused pins If an unused input pin is left unconnected, a component may be permanently damaged due to malfunctions or latch-ups. Always pull up or pull down an unused input pin through a resistor of at least 2 k. Set an unused input/output pin to the output state and leave it unconnected, or set it to the input state and treat it the same as an unused input pin. If there is an unused output pin, leave it unconnected. ■ Power supply pins To reduce unnecessary electro-magnetic emission, prevent malfunctions of strobe signals due to an increase in the ground level, and conform to the total output current standard, always connect the VCC pin and the VSS pin to the power supply and ground outside the device. In addition, connect the current supply source to the VCC pin and the VSS pin with low impedance. It is also advisable to connect a ceramic capacitor of approximately 0.1 µF as a bypass capacitor between the VCC pin and the VSS pin at a location close to this device. ■ DBG pin Connect the DBG pin to an external pull-up resistor of 2 k or above. After power-on, ensure that the DBG pin does not stay at “L” level until the reset output is released. The DBG pin becomes a communication pin in debug mode. Since the actual pull-up resistance depends on the tool used and the interconnection length, refer to the tool document when selecting a pull-up resistor. The recommended layout method illustrated in the following diagram aims to avoid noise coupled between the subclock I/O oscillation pin (X1A) and the DBG pin, which may cause the suboscillator to malfunction. DBG C X0A X1A GND MB95850K/860K/870K Series ■ RST pin Connect the RST pin to an external pull-up resistor of 2 k or above. To prevent the device from unintentionally entering the reset mode due to noise, minimize the interconnection length between a pull-up resistor and the RST pin and that between a pull-up resistor and the VCC pin when designing the layout of the printed circuit board. The PF2/RST pin functions as the reset input/output pin after power-on. In addition, the reset output of the PF2/RST pin can be enabled by the RSTOE bit in the SYSC register, and the reset input function and the general purpose I/O function can be selected by the RSTEN bit in the SYSC register. Document Number: 002-09305 Rev. *C Page 29 of 172 PRELIMINARY ■ MB95F856K, MB95F866K, MB95F876K C pin Use a ceramic capacitor or a capacitor with equivalent frequency characteristics. The bypass capacitor for the VCC pin must have a capacitance larger than CS. For the connection to a decoupling capacitor CS, see the diagram below. To prevent the device from unintentionally entering a mode to which the device is not set to transit due to noise, minimize the distance between the C pin and CS and the distance between CS and the VSS pin when designing the layout of a printed circuit board. Figure 1. DBG/RST/C pins connection diagram DBG C RST Cs ■ Note on serial communication In serial communication, reception of wrong data may occur due to noise or other causes. Therefore, design a printed circuit board to prevent noise from occurring. Taking account of the reception of wrong data, take measures such as adding a checksum to the end of data in order to detect errors. If an error is detected, retransmit the data. Document Number: 002-09305 Rev. *C Page 30 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 10. CPU Core ■ Memory space The memory space of the MB95850K/860K/870K Series is 64 Kbyte in size, and consists of an I/O area, an extended I/O area, a data area, and a program area. The memory space includes areas intended for specific purposes such as general-purpose registers and a vector table. The memory maps of the MB95850K/860K/870K Series are shown below. ■ Memory maps 0x0000 0x0080 0x0090 0x0100 0x0200 I/O area Access prohibited RAM 1 Kbyte Registers 0x0490 Access prohibited 0x0E00 0x0F00 0x0F80 0x1000 Extended I/O area Access prohibited Extended I/O area Flash memory 4 Kbyte 0x2000 Access prohibited 0x8000 Flash memory 32 Kbyte 0xFFFF Document Number: 002-09305 Rev. *C Page 31 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 11. Memory Space The memory space of the MB95850K/860K/870K Series is 64 Kbyte in size, and consists of an I/O area, an extended I/O area, a data area, and a program area. The memory space includes areas for specific applications such as general-purpose registers and a vector table. ■ I/O area (addresses: 0x0000 to 0x007F) ❐ This area contains the control registers and data registers for built-in peripheral functions. ❐ As the I/O area forms part of the memory space, it can be accessed in the same way as the memory. It can also be accessed at high-speed by using direct addressing instructions. ■ Extended I/O area (addresses: 0x0E00 to 0x0EFF and 0x0F80 to 0x0FFF) ❐ This area contains the control registers and data registers for built-in peripheral functions. ❐ As the extended I/O area forms part of the memory space, it can be accessed in the same way as the memory. ■ Data area ❐ Static RAM is incorporated in the data area as the internal data area. ❐ The internal RAM size varies according to product. ❐ The RAM area from 0x0090 to 0x00FF can be accessed at high-speed by using direct addressing instructions. ❐ The area from 0x0090 to 0x047F is an extended direct addressing area. It can be accessed at high-speed by direct addressing instructions with a direct bank pointer set. ❐ The area from 0x0100 to 0x01FF can be used as a general-purpose register area. ■ Program area ❐ The Flash memory is incorporated in the program area as the internal program area. ❐ The Flash memory size varies according to product. ❐ The area from 0xFFC0 to 0xFFFF is used as the vector table. ❐ The area from 0xFFBB to 0xFFBF is used to store data of the non-volatile register. Document Number: 002-09305 Rev. *C Page 32 of 172 PRELIMINARY ■ MB95F856K, MB95F866K, MB95F876K Memory space map 0x0000 0x0080 0x0090 0x0100 I/O area Direct addressing area Access prohibited Registers (General-purpose register area) 0x0200 Extended direct addressing area Data area 0x047F 0x048F 0x0490 Access prohibited 0x0E00 0x0F00 0x0F80 0x0FFF 0x1000 Extended I/O area Access prohibited Extended I/O area Program area 0xFFC0 0xFFFF Document Number: 002-09305 Rev. *C Vector table area Page 33 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 12. Areas for Specific Applications The general-purpose register area and vector table area are used for the specific applications. ■ General-purpose register area (Addresses: 0x0100 to 0x01FF) ❐ This area contains the auxiliary registers used for 8-bit arithmetic operations, transfer, etc. ❐ As this area forms part of the RAM area, it can also be used as conventional RAM. ❐ When the area is used as general-purpose registers, general-purpose register addressing enables high-speed access with short instructions. ■ Non-volatile register data area (Addresses: 0xFFBB to 0xFFBF) ❐ The area from 0xFFBB to 0xFFBF is used to store data of the non-volatile register. For details, refer to “CHAPTER 24 NON-VOLATILE REGISTER (NVR) INTERFACE” in “New 8FX MB95850K/860K/870K Series Hardware Manual”. Vector table area (Addresses: 0xFFC0 to 0xFFFF) ❐ This area is used as the vector table for vector call instructions (CALLV), interrupts, and resets. ❐ The top of the Flash memory area is allocated to the vector table area. The start address of a service routine is set to an address in the vector table in the form of data. Interrupt Source Tables on page 125, MB95860K Series on page 126 and MB95870K Series on page 127 list the vector table addresses corresponding to vector call instructions, interrupts, and resets. ■ For details, refer to “CHAPTER 4 RESET”, “CHAPTER 5 INTERRUPTS” and “A.2 Special Instruction ■ Special Instruction ● CALLV #vct” in “New 8FX MB95850K/860K/870K Series Hardware Manual”. ■ Direct bank pointer and access area Direct bank pointer (DP[2:0]) Operand-specified dir Access area 0bXXX (It does not affect mapping.) 0x0000 to 0x007F 0x0000 to 0x007F 0b000 (Initial value) 0x0090 to 0x00FF 0x0090 to 0x00FF 0b001 0x0080 to 0x00FF 0x0100 to 0x017F 0b010 0x0180 to 0x01FF 0b011 0x0200 to 0x027F 0b100 0x0280 to 0x02FF 0b101 0x0300 to 0x037F 0b110 0x0380 to 0x03FF 0b111 0x0400 to 0x047F Document Number: 002-09305 Rev. *C Page 34 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 13. I/O Maps 13.1 MB95850K Series Address Register abbreviation 0x0000 PDR0 0x0001 Register name R/W Initial value Port 0 data register R/W 0b00000000 DDR0 Port 0 direction register R/W 0b00000000 0x0002 PDR1 Port 1 data register R/W 0b00000000 0x0003 DDR1 Port 1 direction register R/W 0b00000000 0x0004 — — — 0x0005 WATR Oscillation stabilization wait time setting register R/W 0b11111111 0x0006 PLLC PLL control register R/W 0b000X0000 0x0007 SYCC System clock control register R/W 0bXXX11011 0x0008 STBC Standby control register R/W 0b00000000 0x0009 RSRR Reset source register R/W 0b000XXXXX (Disabled) 0x000A TBTC Time-base timer control register R/W 0b00000000 0x000B WPCR Watch prescaler control register R/W 0b00000000 0x000C WDTC Watchdog timer control register R/W 0b00XX0000 0x000D SYCC2 System clock control register 2 R/W 0bXXXX0011 0x000E to 0x0011 — — — (Disabled) 0x0012 PDR4 Port 4 data register R/W 0b00000000 0x0013 DDR4 Port 4 direction register R/W 0b00000000 0x0014, 0x0015 — — — (Disabled) 0x0016 PDR6 Port 6 data register R/W 0b00000000 0x0017 DDR6 Port 6 direction register R/W 0b00000000 0x0018 PDR7 Port 7 data register R/W 0b00000000 Port 7 direction register R/W 0b00000000 — — R/W 0b00000000 — — R/W 0b00000000 0x0019 DDR7 0x001A, 0x001B — (Disabled) 0x001C STBC2 0x001D to 0x0027 — Standby control register 2 0x0028 PDRF Port F data register (Disabled) 0x0029 DDRF Port F direction register R/W 0b00000000 0x002A PDRG Port G data register R/W 0b00000000 0x002B DDRG Port G direction register R/W 0b00000000 0x002C PUL0 Port 0 pull-up register R/W 0b00000000 0x002D PUL1 Port 1 pull-up register R/W 0b00000000 0x002E to 0x0031 — — — 0x0032 PUL7 Port 7 pull-up register R/W 0b00000000 0x0033 PUL6 Port 6 pull-up register R/W 0b00000000 0x0034 — 0x0035 PULG 0x0036 T01CR1 0x0037 T00CR1 0x0038, 0x0039 — Document Number: 002-09305 Rev. *C (Disabled) (Disabled) — — Port G pull-up register R/W 0b00000000 8/16-bit composite timer 01 status control register 1 R/W 0b00000000 8/16-bit composite timer 00 status control register 1 R/W 0b00000000 — — (Disabled) Page 35 of 172 PRELIMINARY Address Register abbreviation 0x003A PC01 0x003B PC00 0x003C to 0x0047 — 0x0048 EIC00 MB95F856K, MB95F866K, MB95F876K Register name R/W Initial value 8/16-bit PPG timer 01 control register R/W 0b00000000 8/16-bit PPG timer 00 control register R/W 0b00000000 — — R/W 0b00000000 (Disabled) External interrupt circuit control register ch. 0/ch. 1 0x0049 — — — 0x004A EIC20 External interrupt circuit control register ch. 4/ch. 5 R/W 0b00000000 0x004B EIC30 External interrupt circuit control register ch. 6/ch. 7 R/W 0b00000000 0x004C, 0x004D — 0x004E LVDR (Disabled) (Disabled) — — LVD reset voltage selection ID register R/W 0b00000000 LVD reset circuit control register R/W 0b00000001 — — 0x004F LVDCC 0x0050 to 0x0055 — 0x0056 SMC10 UART/SIO serial mode control register 1 ch. 0 R/W 0b00000000 0x0057 SMC20 UART/SIO serial mode control register 2 ch. 0 R/W 0b00100000 0x0058 SSR0 UART/SIO serial status and data register ch. 0 R/W 0b00000001 0x0059 TDR0 UART/SIO serial output data register ch. 0 R/W 0b00000000 R 0b00000000 R/W 0b11000101 (Disabled) 0x005A RDR0 UART/SIO serial input data register ch. 0 0x005B CMR0 Comparator control register ch. 0 0x005C to 0x005F — — — 0x0060 IBCR00 I2C bus control register 0 ch. 0 (Disabled) R/W 0b00000000 0x0061 IBCR10 I2C bus control register 1 ch. 0 R/W 0b00000000 0x0062 IBSR0 I2C R/W 0b00000000 0x0063 IDDR0 I2C data register ch. 0 R/W 0b00000000 0x0064 IAAR0 I2C address register ch. 0 R/W 0b00000000 I2C R/W 0b00000000 — — bus status register ch. 0 0x0065 ICCR0 0x0066 to 0x006B — 0x006C ADC1 8/10-bit A/D converter control register 1 R/W 0b00000000 0x006D ADC2 8/10-bit A/D converter control register 2 R/W 0b00000000 0x006E ADDH 8/10-bit A/D converter data register (upper) R/W 0b00000000 0x006F ADDL 8/10-bit A/D converter data register (lower) R/W 0b00000000 0x0070 WCSR Watch counter control register R/W 0b00000000 0x0071 FSR2 Flash memory status register 2 R/W 0b00000000 0x0072 FSR Flash memory status register R/W 0b000X0000 0x0073 SWRE0 Flash memory sector write control register 0 R/W 0b00000000 0x0074 FSR3 Flash memory status register 3 R 0b000XXXXX 0x0075 FSR4 Flash memory status register 4 R/W 0b00000000 0x0076 WREN Wild register address compare enable register R/W 0b00000000 0x0077 WROR Wild register data test setting register R/W 0b00000000 0x0078 — — — 0x0079 ILR0 Interrupt level setting register 0 R/W 0b11111111 0x007A ILR1 Interrupt level setting register 1 R/W 0b11111111 0x007B ILR2 Interrupt level setting register 2 R/W 0b11111111 Document Number: 002-09305 Rev. *C clock control register ch. 0 (Disabled) Mirror of register bank pointer (RP) and direct bank pointer (DP) Page 36 of 172 PRELIMINARY Address Register abbreviation 0x007C ILR3 0x007D 0x007E 0x007F — 0x0E10 BPFREQ 0x0E11 TER0 0x0E12 MB95F856K, MB95F866K, MB95F876K Register name R/W Initial value Interrupt level setting register 3 R/W 0b11111111 ILR4 Interrupt level setting register 4 R/W 0b11111111 ILR5 Interrupt level setting register 5 R/W 0b11111111 — — Beep output frequency register R/W 0b00000000 TS touch channel enable register 0 R/W 0b00000000 TER1 TS touch channel enable register 1 R/W 0b00000000 0x0E13 PSC TS prescaler control register R/W 0b00100000 0x0E14 WRESET TS warm reset register R/W 0b00000000 0x0E15 RSEL0 TS sensitivity select register 0 R/W 0b00000010 0x0E16 RSEL1 TS sensitivity select register 1 R/W 0b00010010 0x0E17 RSEL2 TS sensitivity select register 2 R/W 0b00010010 TS sensitivity select register 3 R/W 0b00010010 — — (Disabled) 0x0E18 RSEL3 0x0E19 to 0x0E1B — 0x0E1C BPDUR TS beep duration setting register R/W 0b00000000 0x0E1D DIOR1 TS direct output control register 1 R/W 0b00000000 0x0E1E DIOR2 TS direct output control register 2 R/W 0b00000000 0x0E1F DIOR3 TS direct output control register 3 R/W 0b00000000 0x0E20 FTSEL TS feature select register R/W 0b00000100 0x0E21 AICWAT TS AIC wait time setting register R/W 0b00100111 0x0E22 CALITV TS calibration interval setting register R/W 0b00110000 0x0E23 ITGTM TS integration time setting register R/W 0b00001111 0x0E24 IDLETM TS idle time setting register R/W 0b00001111 0x0E25 CONTROL TS control register R/W 0b00000000 0x0E26 INTMR TS interrupt mask register R/W 0b00011000 0x0E27 INTCR 0x0E28 FLTP 0x0E29 FLTTH (Disabled) TS interrupt clear register R/W 0b00000000 TS filter period setting register R/W 0b00000000 TS filter threshold setting register R/W 0b00000000 TS reference delay setting register R/W 0b00000000 — — 0x0E2A REFDLY 0x0E2B to 0x0E30 — 0x0E31 ALPH1 TS alpha value setting register ch. 1 R/W 0b00001000 0x0E32 ALPH2 TS alpha value setting register ch. 2 R/W 0b00001000 0x0E33 ALPH3 TS alpha value setting register ch. 3 R/W 0b00001000 0x0E34 ALPH4 TS alpha value setting register ch. 4 R/W 0b00001000 0x0E35 ALPH5 TS alpha value setting register ch. 5 R/W 0b00001000 0x0E36 to 0x0E3F — — — R/W 0b00000100 — — (Disabled) (Disabled) 0x0E40 BETA 0x0E41 to 0x0E50 — 0x0E51 STRTH1 TS touch strength threshold setting register ch. 1 R/W 0b00000001 0x0E52 STRTH2 TS touch strength threshold setting register ch. 2 R/W 0b00000001 0x0E53 STRTH3 TS touch strength threshold setting register ch. 3 R/W 0b00000001 Document Number: 002-09305 Rev. *C TS beta value setting register (Disabled) Page 37 of 172 PRELIMINARY Address Register abbreviation 0x0E54 STRTH4 0x0E55 STRTH5 0x0E56 to 0x0E60 — 0x0E61 MB95F856K, MB95F866K, MB95F876K Register name R/W Initial value TS touch strength threshold setting register ch. 4 R/W 0b00000001 TS touch strength threshold setting register ch. 5 R/W 0b00000001 (Disabled) — — STR1 TS touch strength register ch. 1 R 0bXXXXXXXX 0x0E62 STR2 TS touch strength register ch. 2 R 0bXXXXXXXX 0x0E63 STR3 TS touch strength register ch. 3 R 0bXXXXXXXX 0x0E64 STR4 TS touch strength register ch. 4 R 0bXXXXXXXX 0x0E65 STR5 0x0E66 to 0x0E70 — TS touch strength register ch. 5 R 0bXXXXXXXX (Disabled) — — 0x0E71 0x0E72 CALIP1 TS calibrated impedance register ch. 1 R 0b0XXXXXXX CALIP2 TS calibrated impedance register ch. 2 R 0b0XXXXXXX 0x0E73 CALIP3 TS calibrated impedance register ch. 3 R 0b0XXXXXXX 0x0E74 CALIP4 TS calibrated impedance register ch. 4 R 0b0XXXXXXX 0x0E75 CALIP5 TS calibrated impedance register ch. 5 R 0b0XXXXXXX 0x0E76 to 0x0E80 — (Disabled) — — 0x0E81 IMPE1 TS impedance register ch. 1 R 0b0XXXXXXX 0x0E82 IMPE2 TS impedance register ch. 2 R 0b0XXXXXXX 0x0E83 IMPE3 TS impedance register ch. 3 R 0b0XXXXXXX 0x0E84 IMPE4 TS impedance register ch. 4 R 0b0XXXXXXX 0x0E85 IMPE5 TS impedance register ch. 5 R 0b0XXXXXXX 0x0E86 to 0x0E8F — (Disabled) — — 0x0E90 TOUCHL TS touch data register (lower) R 0bXXXXXXXX 0x0E91 TOUCHH TS touch data register (upper) R 0b0000XXXX TS interrupt pending register R 0b000XXXXX (Disabled) — — 0x0E92 INTPR 0x0E93 to 0x0F7F — 0x0F80 WRARH0 Wild register address setting register (upper) ch. 0 R/W 0b00000000 0x0F81 WRARL0 Wild register address setting register (lower) ch. 0 R/W 0b00000000 0x0F82 WRDR0 Wild register data setting register ch. 0 R/W 0b00000000 0x0F83 WRARH1 Wild register address setting register (upper) ch. 1 R/W 0b00000000 0x0F84 WRARL1 Wild register address setting register (lower) ch. 1 R/W 0b00000000 0x0F85 WRDR1 Wild register data setting register ch. 1 R/W 0b00000000 0x0F86 WRARH2 Wild register address setting register (upper) ch. 2 R/W 0b00000000 0x0F87 WRARL2 Wild register address setting register (lower) ch. 2 R/W 0b00000000 Wild register data setting register ch. 2 R/W 0b00000000 — — R/W 0b00000000 0x0F88 WRDR2 0x0F89 to 0x0F91 — 0x0F92 T01CR0 0x0F93 T00CR0 8/16-bit composite timer 00 status control register 0 R/W 0b00000000 0x0F94 T01DR 8/16-bit composite timer 01 data register R/W 0b00000000 0x0F95 T00DR 8/16-bit composite timer 00 data register R/W 0b00000000 0x0F96 TMCR0 8/16-bit composite timer 00/01 timer mode control register R/W 0b00000000 0x0F97 to 0x0F9B — — — Document Number: 002-09305 Rev. *C (Disabled) 8/16-bit composite timer 01 status control register 0 (Disabled) Page 38 of 172 PRELIMINARY Address Register abbreviation 0x0F9C PPS01 MB95F856K, MB95F866K, MB95F876K Register name R/W Initial value 8/16-bit PPG01 cycle setting buffer register R/W 0b11111111 0x0F9D PPS00 8/16-bit PPG00 cycle setting buffer register R/W 0b11111111 0x0F9E PDS01 8/16-bit PPG01 duty setting buffer register R/W 0b11111111 0x0F9F PDS00 8/16-bit PPG00 duty setting buffer register R/W 0b11111111 0x0FA0 to 0x0FA3 — — — 0x0FA4 PPGS 8/16-bit PPG start register (Disabled) R/W 0b00000000 0x0FA5 REVC 8/16-bit PPG output inversion register R/W 0b00000000 0x0FA6 to 0x0FBD — (Disabled) — — R/W 0b00000000 0x0FBE PSSR0 UART/SIO dedicated baud rate generator prescaler select register ch. 0 0x0FBF BRSR0 UART/SIO dedicated baud rate generator baud rate setting register ch. 0 R/W 0b00000000 0x0FC0 TIDR0 Touch input disable register 0 R/W 0b00000000 0x0FC1 TIDR1 Touch input disable register 1 R/W 0b00000000 0x0FC2 — — — 0x0FC3 AIDRL (Disabled) A/D input disable register (lower) R/W 0b00000000 0x0FC4 LVDPW LVD reset circuit password register R/W 0b00000000 0x0FC5 to 0x0FE2 — — — 0x0FE3 WCDR Watch counter data register R/W 0b00111111 0x0FE4 CRTH Main CR clock trimming register (upper) R/W 0b000XXXXX 0x0FE5 CRTL Main CR clock trimming register (lower) R/W 0b000XXXXX 0x0FE6 — — — 0x0FE7 CRTDA Main CR clock temperature dependent adjustment register R/W 0b000XXXXX 0x0FE8 SYSC System configuration register R/W 0b11000011 0x0FE9 CMCR Clock monitoring control register R/W 0b00000000 0x0FEA CMDR Clock monitoring data register R 0b00000000 0x0FEB WDTH Watchdog timer selection ID register (upper) R 0bXXXXXXXX Watchdog timer selection ID register (lower) R 0bXXXXXXXX (Disabled) — — R/W 0b01000000 — — 0x0FEC WDTL 0x0FED, 0x0FEE — 0x0FEF WICR 0x0FF0 to 0x0FFF — (Disabled) (Disabled) Interrupt pin selection circuit control register (Disabled) ■ R/W access symbols R/W : Readable/Writable R : Read only ■ Initial value symbols 0 : The initial value of this bit is “0”. 1 : The initial value of this bit is “1”. X : The initial value of this bit is undefined. Note: Do not write to an address that is “(Disabled)”. If a “(Disabled)” address is read, an indeterminate value is returned. Document Number: 002-09305 Rev. *C Page 39 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 13.2 MB95860K Series Address Register abbreviation 0x0000 PDR0 0x0001 Register name R/W Initial value Port 0 data register R/W 0b00000000 DDR0 Port 0 direction register R/W 0b00000000 0x0002 PDR1 Port 1 data register R/W 0b00000000 0x0003 DDR1 Port 1 direction register R/W 0b00000000 0x0004 — — — 0x0005 WATR Oscillation stabilization wait time setting register R/W 0b11111111 0x0006 PLLC PLL control register R/W 0b000X0000 0x0007 SYCC System clock control register R/W 0bXXX11011 0x0008 STBC Standby control register R/W 0b00000000 0x0009 RSRR Reset source register R/W 0b000XXXXX 0x000A TBTC Time-base timer control register R/W 0b00000000 (Disabled) 0x000B WPCR Watch prescaler control register R/W 0b00000000 0x000C WDTC Watchdog timer control register R/W 0b00XX0000 0x000D SYCC2 System clock control register 2 R/W 0bXXXX0011 0x000E to 0x0011 — — — (Disabled) 0x0012 PDR4 Port 4 data register R/W 0b00000000 0x0013 DDR4 Port 4 direction register R/W 0b00000000 0x0014, 0x0015 — — — 0x0016 PDR6 Port 6 data register R/W 0b00000000 0x0017 DDR6 Port 6 direction register R/W 0b00000000 0x0018 PDR7 Port 7 data register R/W 0b00000000 0x0019 DDR7 Port 7 direction register R/W 0b00000000 0x001A, 0x001B — — — R/W 0b00000000 — — (Disabled) (Disabled) 0x001C STBC2 0x001D to 0x0027 — 0x0028 PDRF Port F data register R/W 0b00000000 0x0029 DDRF Port F direction register R/W 0b00000000 0x002A PDRG Port G data register R/W 0b00000000 0x002B DDRG Port G direction register R/W 0b00000000 0x002C PUL0 Port 0 pull-up register R/W 0b00000000 0x002D PUL1 Port 1 pull-up register R/W 0b00000000 0x002E, 0x002F — 0x0030 PUL4 0x0031 — 0x0032 PUL7 0x0033 PUL6 0x0034 — 0x0035 PULG 0x0036 T01CR1 Document Number: 002-09305 Rev. *C Standby control register 2 (Disabled) (Disabled) — — R/W 0b00000000 — — Port 7 pull-up register R/W 0b00000000 Port 6 pull-up register R/W 0b00000000 — — Port G pull-up register R/W 0b00000000 8/16-bit composite timer 01 status control register 1 R/W 0b00000000 Port 4 pull-up register (Disabled) (Disabled) Page 40 of 172 PRELIMINARY Address Register abbreviation 0x0037 T00CR1 0x0038 MB95F856K, MB95F866K, MB95F876K Register name R/W Initial value 8/16-bit composite timer 00 status control register 1 R/W 0b00000000 T11CR1 8/16-bit composite timer 11 status control register 1 R/W 0b00000000 0x0039 T10CR1 8/16-bit composite timer 10 status control register 1 R/W 0b00000000 0x003A PC01 8/16-bit PPG timer 01 control register R/W 0b00000000 0x003B PC00 8/16-bit PPG timer 00 control register R/W 0b00000000 0x003C PC11 8/16-bit PPG timer 11 control register R/W 0b00000000 0x003D PC10 8/16-bit PPG timer 10 control register R/W 0b00000000 0x003E to 0x0047 — — — 0x0048 EIC00 External interrupt circuit control register ch. 0/ch. 1 R/W 0b00000000 0x0049 EIC10 External interrupt circuit control register ch. 2/ch. 3 R/W 0b00000000 0x004A EIC20 External interrupt circuit control register ch. 4/ch. 5 R/W 0b00000000 External interrupt circuit control register ch. 6/ch. 7 R/W 0b00000000 — — LVD reset voltage selection ID register R/W 0b00000000 LVD reset circuit control register R/W 0b00000001 0x004B EIC30 0x004C, 0x004D — 0x004E LVDR 0x004F LVDCC (Disabled) (Disabled) 0x0050 to 0x0055 — — — 0x0056 SMC10 (Disabled) UART/SIO serial mode control register 1 ch. 0 R/W 0b00000000 0x0057 SMC20 UART/SIO serial mode control register 2 ch. 0 R/W 0b00100000 0x0058 SSR0 UART/SIO serial status and data register ch. 0 R/W 0b00000001 R/W 0b00000000 R 0b00000000 R/W 0b11000101 — — 0x0059 TDR0 UART/SIO serial output data register ch. 0 0x005A RDR0 UART/SIO serial input data register ch. 0 0x005B CMR0 Comparator control register ch. 0 0x005C to 0x005F — (Disabled) 2C 0x0060 IBCR00 I bus control register 0 ch. 0 R/W 0b00000000 0x0061 IBCR10 I2C bus control register 1 ch. 0 R/W 0b00000000 2 R/W 0b00000000 2 R/W 0b00000000 0x0062 0x0063 IBSR0 IDDR0 I C bus status register ch. 0 I C data register ch. 0 2 0x0064 IAAR0 I C address register ch. 0 R/W 0b00000000 0x0065 ICCR0 I2C clock control register ch. 0 R/W 0b00000000 0x0066 to 0x006B — — — 0x006C ADC1 8/10-bit A/D converter control register 1 R/W 0b00000000 (Disabled) 0x006D ADC2 8/10-bit A/D converter control register 2 R/W 0b00000000 0x006E ADDH 8/10-bit A/D converter data register (upper) R/W 0b00000000 0x006F ADDL 8/10-bit A/D converter data register (lower) R/W 0b00000000 0x0070 WCSR Watch counter control register R/W 0b00000000 0x0071 FSR2 Flash memory status register 2 R/W 0b00000000 0x0072 FSR Flash memory status register R/W 0b000X0000 0x0073 SWRE0 Flash memory sector write control register 0 R/W 0b00000000 0x0074 FSR3 Flash memory status register 3 R 0b000XXXXX 0x0075 FSR4 Flash memory status register 4 R/W 0b00000000 Document Number: 002-09305 Rev. *C Page 41 of 172 PRELIMINARY Address Register abbreviation 0x0076 WREN 0x0077 WROR 0x0078 — MB95F856K, MB95F866K, MB95F876K Register name R/W Initial value Wild register address compare enable register R/W 0b00000000 Wild register data test setting register R/W 0b00000000 — — Mirror of register bank pointer (RP) and direct bank pointer (DP) 0x0079 ILR0 Interrupt level setting register 0 R/W 0b11111111 0x007A ILR1 Interrupt level setting register 1 R/W 0b11111111 0x007B ILR2 Interrupt level setting register 2 R/W 0b11111111 0x007C ILR3 Interrupt level setting register 3 R/W 0b11111111 0x007D ILR4 Interrupt level setting register 4 R/W 0b11111111 0x007E ILR5 Interrupt level setting register 5 R/W 0b11111111 0x007F — — — 0x0E10 BPFREQ Beep output frequency register R/W 0b00000000 (Disabled) 0x0E11 TER0 TS touch channel enable register 0 R/W 0b00000000 0x0E12 TER1 TS touch channel enable register 1 R/W 0b00000000 0x0E13 PSC TS prescaler control register R/W 0b00100000 0x0E14 WRESET TS warm reset register R/W 0b00000000 0x0E15 RSEL0 TS sensitivity select register 0 R/W 0b00000010 0x0E16 RSEL1 TS sensitivity select register 1 R/W 0b00010010 0x0E17 RSEL2 TS sensitivity select register 2 R/W 0b00010010 0x0E18 RSEL3 TS sensitivity select register 3 R/W 0b00010010 TS sensitivity select register 4 R/W 0b00010010 — — 0x0E19 RSEL4 0x0E1A, 0x0E1B — 0x0E1C BPDUR TS beep duration setting register R/W 0b00000000 0x0E1D DIOR1 TS direct output control register 1 R/W 0b00000000 (Disabled) 0x0E1E DIOR2 TS direct output control register 2 R/W 0b00000000 0x0E1F DIOR3 TS direct output control register 3 R/W 0b00000000 0x0E20 FTSEL TS feature select register R/W 0b00000100 0x0E21 AICWAT TS AIC wait time setting register R/W 0b00100111 0x0E22 CALITV TS calibration interval setting register R/W 0b00110000 0x0E23 ITGTM TS integration time setting register R/W 0b00001111 0x0E24 IDLETM TS idle time setting register R/W 0b00001111 0x0E25 CONTROL TS control register R/W 0b00000000 0x0E26 INTMR TS interrupt mask register R/W 0b00011000 0x0E27 INTCR TS interrupt clear register R/W 0b00000000 0x0E28 FLTP TS filter period setting register R/W 0b00000000 0x0E29 FLTTH TS filter threshold setting register R/W 0b00000000 TS reference delay setting register R/W 0b00000000 — — 0x0E2A REFDLY 0x0E2B to 0x0E2F — 0x0E30 ALPH0 TS alpha value setting register ch. 0 R/W 0b00001000 0x0E31 ALPH1 TS alpha value setting register ch. 1 R/W 0b00001000 0x0E32 ALPH2 TS alpha value setting register ch. 2 R/W 0b00001000 Document Number: 002-09305 Rev. *C (Disabled) Page 42 of 172 PRELIMINARY Address Register abbreviation 0x0E33 ALPH3 0x0E34 MB95F856K, MB95F866K, MB95F876K Register name R/W Initial value TS alpha value setting register ch. 3 R/W 0b00001000 ALPH4 TS alpha value setting register ch. 4 R/W 0b00001000 0x0E35 ALPH5 TS alpha value setting register ch. 5 R/W 0b00001000 0x0E36 ALPH6 TS alpha value setting register ch. 6 R/W 0b00001000 0x0E37 ALPH7 TS alpha value setting register ch. 7 R/W 0b00001000 0x0E38 to 0x0E3F — — — 0x0E40 BETA R/W 0b00000100 (Disabled) TS beta value setting register 0x0E41 to 0x0E4F — — — 0x0E50 STRTH0 TS touch strength threshold setting register ch. 0 R/W 0b00000001 0x0E51 STRTH1 TS touch strength threshold setting register ch. 1 R/W 0b00000001 0x0E52 STRTH2 TS touch strength threshold setting register ch. 2 R/W 0b00000001 0x0E53 STRTH3 TS touch strength threshold setting register ch. 3 R/W 0b00000001 0x0E54 STRTH4 TS touch strength threshold setting register ch. 4 R/W 0b00000001 0x0E55 STRTH5 TS touch strength threshold setting register ch. 5 R/W 0b00000001 0x0E56 STRTH6 TS touch strength threshold setting register ch. 6 R/W 0b00000001 TS touch strength threshold setting register ch. 7 0x0E57 STRTH7 0x0E58 to 0x0E5F — 0x0E60 (Disabled) R/W 0b00000001 (Disabled) — — STR0 TS touch strength register ch. 0 R 0bXXXXXXXX 0x0E61 STR1 TS touch strength register ch. 1 R 0bXXXXXXXX 0x0E62 STR2 TS touch strength register ch. 2 R 0bXXXXXXXX 0x0E63 STR3 TS touch strength register ch. 3 R 0bXXXXXXXX 0x0E64 STR4 TS touch strength register ch. 4 R 0bXXXXXXXX 0x0E65 STR5 TS touch strength register ch. 5 R 0bXXXXXXXX 0x0E66 STR6 TS touch strength register ch. 6 R 0bXXXXXXXX 0x0E67 STR7 TS touch strength register ch. 7 R 0bXXXXXXXX 0x0E68 to 0x0E6F — (Disabled) — — 0x0E70 CALIP0 TS calibrated impedance register ch. 0 R 0b0XXXXXXX 0x0E71 CALIP1 TS calibrated impedance register ch. 1 R 0b0XXXXXXX 0x0E72 CALIP2 TS calibrated impedance register ch. 2 R 0b0XXXXXXX 0x0E73 CALIP3 TS calibrated impedance register ch. 3 R 0b0XXXXXXX 0x0E74 CALIP4 TS calibrated impedance register ch. 4 R 0b0XXXXXXX 0x0E75 CALIP5 TS calibrated impedance register ch. 5 R 0b0XXXXXXX 0x0E76 CALIP6 TS calibrated impedance register ch. 6 R 0b0XXXXXXX 0x0E77 CALIP7 TS calibrated impedance register ch. 7 R 0b0XXXXXXX 0x0E78 to 0x0E7F — (Disabled) — — 0x0E80 IMPE0 TS impedance register ch. 0 R 0b0XXXXXXX 0x0E81 IMPE1 TS impedance register ch. 1 R 0b0XXXXXXX 0x0E82 IMPE2 TS impedance register ch. 2 R 0b0XXXXXXX 0x0F80 WRARH0 Wild register address setting register (upper) ch. 0 R/W 0b00000000 0x0F81 WRARL0 Wild register address setting register (lower) ch. 0 R/W 0b00000000 Document Number: 002-09305 Rev. *C Page 43 of 172 PRELIMINARY Address Register abbreviation 0x0F82 WRDR0 0x0F83 0x0F84 MB95F856K, MB95F866K, MB95F876K Register name R/W Initial value Wild register data setting register ch. 0 R/W 0b00000000 WRARH1 Wild register address setting register (upper) ch. 1 R/W 0b00000000 WRARL1 Wild register address setting register (lower) ch. 1 R/W 0b00000000 0x0F85 WRDR1 Wild register data setting register ch. 1 R/W 0b00000000 0x0F86 WRARH2 Wild register address setting register (upper) ch. 2 R/W 0b00000000 0x0F87 WRARL2 Wild register address setting register (lower) ch. 2 R/W 0b00000000 0x0F88 WRDR2 Wild register data setting register ch. 2 R/W 0b00000000 0x0F89 to 0x0F91 — — — 0x0F92 T01CR0 (Disabled) 8/16-bit composite timer 01 status control register 0 R/W 0b00000000 0x0F93 T00CR0 8/16-bit composite timer 00 status control register 0 R/W 0b00000000 0x0F94 T01DR 8/16-bit composite timer 01 data register R/W 0b00000000 0x0F95 T00DR 8/16-bit composite timer 00 data register R/W 0b00000000 0x0F96 TMCR0 8/16-bit composite timer 00/01 timer mode control register R/W 0b00000000 0x0F97 T11CR0 8/16-bit composite timer 11 status control register 0 R/W 0b00000000 0x0F98 T10CR0 8/16-bit composite timer 10 status control register 0 R/W 0b00000000 0x0F99 T11DR 8/16-bit composite timer 11 data register R/W 0b00000000 0x0F9A T10DR 8/16-bit composite timer 10 data register R/W 0b00000000 0x0F9B TMCR1 8/16-bit composite timer 10/11 timer mode control register R/W 0b00000000 0x0F9C PPS01 8/16-bit PPG01 cycle setting buffer register R/W 0b11111111 0x0F9D PPS00 8/16-bit PPG00 cycle setting buffer register R/W 0b11111111 0x0F9E PDS01 8/16-bit PPG01 duty setting buffer register R/W 0b11111111 0x0F9F PDS00 8/16-bit PPG00 duty setting buffer register R/W 0b11111111 0x0FA0 PPS11 8/16-bit PPG11 cycle setting buffer register R/W 0b11111111 0x0FA1 PPS10 8/16-bit PPG10 cycle setting buffer register R/W 0b11111111 0x0FA2 PDS11 8/16-bit PPG11 duty setting buffer register R/W 0b11111111 0x0FA3 PDS10 8/16-bit PPG10 duty setting buffer register R/W 0b11111111 0x0FA4 PPGS 8/16-bit PPG start register R/W 0b00000000 8/16-bit PPG output inversion register R/W 0b00000000 — — 0x0FA5 REVC 0x0FA6 to 0x0FBD — 0x0FBE PSSR0 UART/SIO dedicated baud rate generator prescaler select register ch. 0 R/W 0b00000000 0x0FBF BRSR0 UART/SIO dedicated baud rate generator baud rate setting register ch. 0 R/W 0b00000000 0x0FC0 TIDR0 Touch input disable register 0 R/W 0b00000000 0x0FC1 TIDR1 Touch input disable register 1 R/W 0b00000000 0x0FC2 — — — 0x0FC3 AIDRL A/D input disable register (lower) R/W 0b00000000 LVD reset circuit password register R/W 0b00000000 — — (Disabled) (Disabled) 0x0FC4 LVDPW 0x0FC5 to 0x0FE2 — 0x0FE3 WCDR Watch counter data register R/W 0b00111111 0x0FE4 CRTH Main CR clock trimming register (upper) R/W 0b000XXXXX Document Number: 002-09305 Rev. *C (Disabled) Page 44 of 172 PRELIMINARY Address Register abbreviation 0x0FE5 CRTL 0x0FE6 — 0x0FE7 CRTDA MB95F856K, MB95F866K, MB95F876K Register name R/W Initial value Main CR clock trimming register (lower) R/W 0b000XXXXX — — R/W 0b000XXXXX (Disabled) Main CR clock temperature dependent adjustment register 0x0FE8 SYSC System configuration register R/W 0b11000011 0x0FE9 CMCR Clock monitoring control register R/W 0b00000000 0x0FEA CMDR Clock monitoring data register R 0b00000000 0x0FEB WDTH Watchdog timer selection ID register (upper) R 0bXXXXXXXX Watchdog timer selection ID register (lower) R 0bXXXXXXXX (Disabled) — — R/W 0b01000000 — — 0x0FEC WDTL 0x0FED, 0x0FEE — 0x0FEF WICR 0x0FF0 to 0x0FFF — Interrupt pin selection circuit control register (Disabled) ■ R/W access symbols R/W : Readable/Writable R : Read only ■ Initial value symbols 0 : The initial value of this bit is “0”. 1 : The initial value of this bit is “1”. X : The initial value of this bit is undefined. Note: Do not write to an address that is “(Disabled)”. If a “(Disabled)” address is read, an indeterminate value is returned. Document Number: 002-09305 Rev. *C Page 45 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 13.3 MB95870K Series Address Register abbreviation 0x0000 PDR0 0x0001 Register name R/W Initial value Port 0 data register R/W 0b00000000 DDR0 Port 0 direction register R/W 0b00000000 0x0002 PDR1 Port 1 data register R/W 0b00000000 0x0003 DDR1 Port 1 direction register R/W 0b00000000 0x0004 — — — 0x0005 WATR Oscillation stabilization wait time setting register R/W 0b11111111 0x0006 PLLC PLL control register R/W 0b000X0000 0x0007 SYCC System clock control register R/W 0bXXX11011 0x0008 STBC Standby control register R/W 0b00000000 0x0009 RSRR Reset source register R/W 0b000XXXXX 0x000A TBTC Time-base timer control register R/W 0b00000000 (Disabled) 0x000B WPCR Watch prescaler control register R/W 0b00000000 0x000C WDTC Watchdog timer control register R/W 0b00XX0000 0x000D SYCC2 System clock control register 2 R/W 0bXXXX0011 0x000E to 0x0011 — — — (Disabled) 0x0012 PDR4 Port 4 data register R/W 0b00000000 0x0013 DDR4 Port 4 direction register R/W 0b00000000 0x0014, 0x0015 — — — 0x0016 PDR6 Port 6 data register R/W 0b00000000 0x0017 DDR6 Port 6 direction register R/W 0b00000000 0x0018 PDR7 Port 7 data register R/W 0b00000000 0x0019 DDR7 Port 7 direction register R/W 0b00000000 0x001A, 0x001B — — — R/W 0b00000000 — — (Disabled) (Disabled) 0x001C STBC2 0x001D to 0x0027 — Standby control register 2 0x0028 PDRF Port F data register R/W 0b00000000 0x0029 DDRF Port F direction register R/W 0b00000000 (Disabled) 0x002A PDRG Port G data register R/W 0b00000000 0x002B DDRG Port G direction register R/W 0b00000000 0x002C PUL0 Port 0 pull-up register R/W 0b00000000 0x002D PUL1 Port 1 pull-up register R/W 0b00000000 0x002E, 0x002F — 0x0030 PUL4 0x0031 — 0x0032 PUL7 0x0033 PUL6 0x0034 — 0x0035 PULG 0x0036 T01CR1 Document Number: 002-09305 Rev. *C (Disabled) — — R/W 0b00000000 — — Port 7 pull-up register R/W 0b00000000 Port 6 pull-up register R/W 0b00000000 — — Port G pull-up register R/W 0b00000000 8/16-bit composite timer 01 status control register 1 R/W 0b00000000 Port 4 pull-up register (Disabled) (Disabled) Page 46 of 172 PRELIMINARY Address Register abbreviation 0x0037 T00CR1 0x0038 MB95F856K, MB95F866K, MB95F876K Register name R/W Initial value 8/16-bit composite timer 00 status control register 1 R/W 0b00000000 T11CR1 8/16-bit composite timer 11 status control register 1 R/W 0b00000000 0x0039 T10CR1 8/16-bit composite timer 10 status control register 1 R/W 0b00000000 0x003A PC01 8/16-bit PPG timer 01 control register R/W 0b00000000 0x003B PC00 8/16-bit PPG timer 00 control register R/W 0b00000000 0x003C PC11 8/16-bit PPG timer 11 control register R/W 0b00000000 0x003D PC10 8/16-bit PPG timer 10 control register R/W 0b00000000 0x003E PC21 8/16-bit PPG timer 21 control register R/W 0b00000000 0x003F PC20 8/16-bit PPG timer 20 control register R/W 0b00000000 0x0040 to 0x0047 — — — 0x0048 EIC00 External interrupt circuit control register ch. 0/ch. 1 R/W 0b00000000 (Disabled) 0x0049 EIC10 External interrupt circuit control register ch. 2/ch. 3 R/W 0b00000000 0x004A EIC20 External interrupt circuit control register ch. 4/ch. 5 R/W 0b00000000 0x004B EIC30 External interrupt circuit control register ch. 6/ch. 7 R/W 0b00000000 0x004C EIC01 External interrupt circuit control register ch. 8/ch. 9 R/W 0b00000000 0x004D — 0x004E LVDR 0x004F LVDCC 0x0050 to 0x0055 — — — LVD reset voltage selection ID register (Disabled) R/W 0b00000000 LVD reset circuit control register R/W 0b00000001 — — (Disabled) 0x0056 SMC10 UART/SIO serial mode control register 1 ch. 0 R/W 0b00000000 0x0057 SMC20 UART/SIO serial mode control register 2 ch. 0 R/W 0b00100000 0x0058 SSR0 UART/SIO serial status and data register ch. 0 R/W 0b00000001 0x0059 TDR0 UART/SIO serial output data register ch. 0 R/W 0b00000000 0x005A RDR0 UART/SIO serial input data register ch. 0 0x005B CMR0 Comparator control register ch. 0 0x005C to 0x005F — 0x0060 IBCR00 0x0061 IBCR10 0x0062 IBSR0 0x0063 0x0064 IDDR0 IAAR0 (Disabled) R 0b00000000 R/W 0b11000101 — — 2 R/W 0b00000000 2 I C bus control register 1 ch. 0 R/W 0b00000000 I2C bus status register ch. 0 R/W 0b00000000 2 R/W 0b00000000 2 R/W 0b00000000 2 R/W 0b00000000 — — I C bus control register 0 ch. 0 I C data register ch. 0 I C address register ch. 0 I C clock control register ch. 0 0x0065 ICCR0 0x0066 to 0x006B — 0x006C ADC1 8/10-bit A/D converter control register 1 R/W 0b00000000 0x006D ADC2 8/10-bit A/D converter control register 2 R/W 0b00000000 0x006E ADDH 8/10-bit A/D converter data register (upper) R/W 0b00000000 0x006F ADDL 8/10-bit A/D converter data register (lower) R/W 0b00000000 0x0070 WCSR Watch counter control register R/W 0b00000000 0x0071 FSR2 Flash memory status register 2 R/W 0b00000000 0x0072 FSR Flash memory status register R/W 0b000X0000 Document Number: 002-09305 Rev. *C (Disabled) Page 47 of 172 PRELIMINARY Address Register abbreviation 0x0073 SWRE0 0x0074 FSR3 0x0075 MB95F856K, MB95F866K, MB95F876K Register name R/W Initial value R/W 0b00000000 Flash memory status register 3 R 0b000XXXXX FSR4 Flash memory status register 4 R/W 0b00000000 0x0076 WREN Wild register address compare enable register R/W 0b00000000 0x0077 WROR Wild register data test setting register R/W 0b00000000 0x0078 — — — 0x0079 ILR0 Interrupt level setting register 0 R/W 0b11111111 0x007A ILR1 Interrupt level setting register 1 R/W 0b11111111 0x007B ILR2 Interrupt level setting register 2 R/W 0b11111111 0x007C ILR3 Interrupt level setting register 3 R/W 0b11111111 0x007D ILR4 Interrupt level setting register 4 R/W 0b11111111 0x007E ILR5 Interrupt level setting register 5 R/W 0b11111111 0x007F — — — 0x0E10 BPFREQ Beep output frequency register R/W 0b00000000 0x0E11 TER0 TS touch channel enable register 0 R/W 0b00000000 0x0E12 TER1 TS touch channel enable register 1 R/W 0b00000000 0x0E13 PSC TS prescaler control register R/W 0b00100000 0x0E14 WRESET TS warm reset register R/W 0b00000000 0x0E15 RSEL0 TS sensitivity select register 0 R/W 0b00000010 0x0E16 RSEL1 TS sensitivity select register 1 R/W 0b00010010 0x0E17 RSEL2 TS sensitivity select register 2 R/W 0b00010010 0x0E18 RSEL3 TS sensitivity select register 3 R/W 0b00010010 0x0E19 RSEL4 TS sensitivity select register 4 R/W 0b00010010 0x0E1A RSEL5 TS sensitivity select register 5 R/W 0b00010010 0x0E1B RSEL6 TS sensitivity select register 6 R/W 0b00010010 0x0E1C BPDUR TS beep duration setting register R/W 0b00000000 0x0E1D DIOR1 TS direct output control register 1 R/W 0b00000000 0x0E1E DIOR2 TS direct output control register 2 R/W 0b00000000 0x0E1F DIOR3 TS direct output control register 3 R/W 0b00000000 Flash memory sector write control register 0 Mirror of register bank pointer (RP) and direct bank pointer (DP) (Disabled) 0x0E20 FTSEL TS feature select register R/W 0b00000100 0x0E21 AICWAT TS AIC wait time setting register R/W 0b00100111 0x0E22 CALITV TS calibration interval setting register R/W 0b00110000 0x0E23 ITGTM TS integration time setting register R/W 0b00001111 0x0E24 IDLETM 0x0E25 CONTROL TS idle time setting register R/W 0b00001111 TS control register R/W 0b00000000 0x0E26 INTMR TS interrupt mask register R/W 0b00011000 0x0E27 INTCR TS interrupt clear register R/W 0b00000000 TS filter period setting register R/W 0b00000000 TS filter threshold setting register R/W 0b00000000 0x0E28 FLTP 0x0E29 FLTTH Document Number: 002-09305 Rev. *C Page 48 of 172 PRELIMINARY Address Register abbreviation 0x0E2A REFDLY 0x0E2B to 0x0E2F — 0x0E30 ALPH0 0x0E31 0x0E32 MB95F856K, MB95F866K, MB95F876K Register name R/W Initial value R/W 0b00000000 — — TS alpha value setting register ch. 0 R/W 0b00001000 ALPH1 TS alpha value setting register ch. 1 R/W 0b00001000 ALPH2 TS alpha value setting register ch. 2 R/W 0b00001000 0x0E33 ALPH3 TS alpha value setting register ch. 3 R/W 0b00001000 0x0E34 ALPH4 TS alpha value setting register ch. 4 R/W 0b00001000 0x0E35 ALPH5 TS alpha value setting register ch. 5 R/W 0b00001000 0x0E36 ALPH6 TS alpha value setting register ch. 6 R/W 0b00001000 0x0E37 ALPH7 TS alpha value setting register ch. 7 R/W 0b00001000 0x0E38 ALPH8 TS alpha value setting register ch. 8 R/W 0b00001000 TS reference delay setting register (Disabled) 0x0E39 ALPH9 TS alpha value setting register ch. 9 R/W 0b00001000 0x0E3A ALPH10 TS alpha value setting register ch. 10 R/W 0b00001000 0x0E3B ALPH11 TS alpha value setting register ch. 11 R/W 0b00001000 0x0E3C to 0x0E3F — — — R/W 0b00000100 — — (Disabled) 0x0E40 BETA 0x0E41 to 0x0E4F — 0x0E50 STRTH0 TS touch strength threshold setting register ch. 0 R/W 0b00000001 0x0E51 STRTH1 TS touch strength threshold setting register ch. 1 R/W 0b00000001 0x0E52 STRTH2 TS touch strength threshold setting register ch. 2 R/W 0b00000001 0x0E53 STRTH3 TS touch strength threshold setting register ch. 3 R/W 0b00000001 0x0E54 STRTH4 TS touch strength threshold setting register ch. 4 R/W 0b00000001 0x0E55 STRTH5 TS touch strength threshold setting register ch. 5 R/W 0b00000001 0x0E56 STRTH6 TS touch strength threshold setting register ch. 6 R/W 0b00000001 0x0E57 STRTH7 TS touch strength threshold setting register ch. 7 R/W 0b00000001 0x0E58 STRTH8 TS touch strength threshold setting register ch. 8 R/W 0b00000001 0x0E59 STRTH9 TS touch strength threshold setting register ch. 9 R/W 0b00000001 0x0E5A STRTH10 TS touch strength threshold setting register ch. 10 R/W 0b00000001 0x0E5B STRTH11 TS touch strength threshold setting register ch. 11 R/W 0b00000001 0x0E5C to 0x0E5F — (Disabled) — — 0x0E60 STR0 TS touch strength register ch. 0 R 0bXXXXXXXX 0x0E61 STR1 TS touch strength register ch. 1 R 0bXXXXXXXX 0x0E62 STR2 TS touch strength register ch. 2 R 0bXXXXXXXX 0x0E63 STR3 TS touch strength register ch. 3 R 0bXXXXXXXX 0x0E64 STR4 TS touch strength register ch. 4 R 0bXXXXXXXX 0x0E65 STR5 TS touch strength register ch. 5 R 0bXXXXXXXX 0x0E66 STR6 TS touch strength register ch. 6 R 0bXXXXXXXX 0x0E67 STR7 TS touch strength register ch. 7 R 0bXXXXXXXX 0x0E68 STR8 TS touch strength register ch. 8 R 0bXXXXXXXX 0x0E69 STR9 TS touch strength register ch. 9 R 0bXXXXXXXX Document Number: 002-09305 Rev. *C TS beta value setting register (Disabled) Page 49 of 172 PRELIMINARY Address Register abbreviation 0x0E6A STR10 0x0E6B STR11 0x0E6C to 0x0E6F — 0x0E70 0x0E71 MB95F856K, MB95F866K, MB95F876K Register name R/W Initial value TS touch strength register ch. 10 R 0bXXXXXXXX TS touch strength register ch. 11 R 0bXXXXXXXX (Disabled) — — CALIP0 TS calibrated impedance register ch. 0 R 0b0XXXXXXX CALIP1 TS calibrated impedance register ch. 1 R 0b0XXXXXXX 0x0E72 CALIP2 TS calibrated impedance register ch. 2 R 0b0XXXXXXX 0x0E73 CALIP3 TS calibrated impedance register ch. 3 R 0b0XXXXXXX 0x0E74 CALIP4 TS calibrated impedance register ch. 4 R 0b0XXXXXXX 0x0E75 CALIP5 TS calibrated impedance register ch. 5 R 0b0XXXXXXX 0x0E76 CALIP6 TS calibrated impedance register ch. 6 R 0b0XXXXXXX 0x0E77 CALIP7 TS calibrated impedance register ch. 7 R 0b0XXXXXXX 0x0E78 CALIP8 TS calibrated impedance register ch. 8 R 0b0XXXXXXX 0x0E79 CALIP9 TS calibrated impedance register ch. 9 R 0b0XXXXXXX 0x0E7A CALIP10 TS calibrated impedance register ch. 10 R 0b0XXXXXXX 0x0E7B CALIP11 TS calibrated impedance register ch. 11 R 0b0XXXXXXX 0x0E7C to 0x0E7F — (Disabled) — — 0x0E80 IMPE0 TS impedance register ch. 0 R 0b0XXXXXXX 0x0E81 IMPE1 TS impedance register ch. 1 R 0b0XXXXXXX 0x0E82 IMPE2 TS impedance register ch. 2 R 0b0XXXXXXX 0x0E83 IMPE3 TS impedance register ch. 3 R 0b0XXXXXXX 0x0E84 IMPE4 TS impedance register ch. 4 R 0b0XXXXXXX 0x0E85 IMPE5 TS impedance register ch. 5 R 0b0XXXXXXX 0x0E86 IMPE6 TS impedance register ch. 6 R 0b0XXXXXXX 0x0E87 IMPE7 TS impedance register ch. 7 R 0b0XXXXXXX 0x0E88 IMPE8 TS impedance register ch. 8 R 0b0XXXXXXX 0x0E89 IMPE9 TS impedance register ch. 9 R 0b0XXXXXXX 0x0E8A IMPE10 TS impedance register ch. 10 R 0b0XXXXXXX 0x0E8B IMPE11 0x0E8C to 0x0E8F — TS impedance register ch. 11 R 0b0XXXXXXX (Disabled) — — 0x0E90 TOUCHL TS touch data register (lower) R 0bXXXXXXXX 0x0E91 TOUCHH TS touch data register (upper) R 0b0000XXXX TS interrupt pending register R 0b000XXXXX (Disabled) — — 0x0E92 INTPR 0x0E93 to 0x0F7F — 0x0F80 WRARH0 Wild register address setting register (upper) ch. 0 R/W 0b00000000 0x0F81 WRARL0 Wild register address setting register (lower) ch. 0 R/W 0b00000000 0x0F82 WRDR0 Wild register data setting register ch. 0 R/W 0b00000000 0x0F83 WRARH1 Wild register address setting register (upper) ch. 1 R/W 0b00000000 0x0F84 WRARL1 Wild register address setting register (lower) ch. 1 R/W 0b00000000 0x0F85 WRDR1 Wild register data setting register ch. 1 R/W 0b00000000 0x0F86 WRARH2 Wild register address setting register (upper) ch. 2 R/W 0b00000000 Document Number: 002-09305 Rev. *C Page 50 of 172 PRELIMINARY Address Register abbreviation 0x0F87 WRARL2 0x0F88 WRDR2 0x0F89 to 0x0F91 — 0x0F92 T01CR0 0x0F93 T00CR0 0x0F94 0x0F95 MB95F856K, MB95F866K, MB95F876K Register name R/W Initial value Wild register address setting register (lower) ch. 2 R/W 0b00000000 Wild register data setting register ch. 2 R/W 0b00000000 — — 8/16-bit composite timer 01 status control register 0 R/W 0b00000000 8/16-bit composite timer 00 status control register 0 R/W 0b00000000 T01DR 8/16-bit composite timer 01 data register R/W 0b00000000 T00DR 8/16-bit composite timer 00 data register R/W 0b00000000 0x0F96 TMCR0 8/16-bit composite timer 00/01 timer mode control register R/W 0b00000000 0x0F97 T11CR0 8/16-bit composite timer 11 status control register 0 R/W 0b00000000 0x0F98 T10CR0 8/16-bit composite timer 10 status control register 0 R/W 0b00000000 0x0F99 T11DR 8/16-bit composite timer 11 data register R/W 0b00000000 0x0F9A T10DR 8/16-bit composite timer 10 data register R/W 0b00000000 0x0F9B TMCR1 8/16-bit composite timer 10/11 timer mode control register R/W 0b00000000 0x0F9C PPS01 8/16-bit PPG01 cycle setting buffer register R/W 0b11111111 0x0F9D PPS00 8/16-bit PPG00 cycle setting buffer register R/W 0b11111111 (Disabled) 0x0F9E PDS01 8/16-bit PPG01 duty setting buffer register R/W 0b11111111 0x0F9F PDS00 8/16-bit PPG00 duty setting buffer register R/W 0b11111111 0x0FA0 PPS11 8/16-bit PPG11 cycle setting buffer register R/W 0b11111111 0x0FA1 PPS10 8/16-bit PPG10 cycle setting buffer register R/W 0b11111111 0x0FA2 PDS11 8/16-bit PPG11 duty setting buffer register R/W 0b11111111 0x0FA3 PDS10 8/16-bit PPG10 duty setting buffer register R/W 0b11111111 0x0FA4 PPGS 8/16-bit PPG start register R/W 0b00000000 0x0FA5 REVC 8/16-bit PPG output inversion register R/W 0b00000000 0x0FA6 PPS21 8/16-bit PPG21 cycle setting buffer register R/W 0b11111111 0x0FA7 PPS20 8/16-bit PPG20 cycle setting buffer register R/W 0b11111111 0x0FA8, 0x0FA9 — — — 0x0FAA PDS21 8/16-bit PPG21 duty setting buffer register R/W 0b11111111 8/16-bit PPG20 duty setting buffer register R/W 0b11111111 — — (Disabled) 0x0FAB PDS20 0x0FAC to 0x0FBD — 0x0FBE PSSR0 UART/SIO dedicated baud rate generator prescaler select register ch. 0 R/W 0b00000000 0x0FBF BRSR0 UART/SIO dedicated baud rate generator baud rate setting register ch. 0 R/W 0b00000000 0x0FC0 TIDR0 Touch input disable register 0 R/W 0b00000000 0x0FC1 TIDR1 Touch input disable register 1 R/W 0b00000000 0x0FC2 — — — 0x0FC3 AIDRL A/D input disable register (lower) R/W 0b00000000 LVD reset circuit password register R/W 0b00000000 — — (Disabled) (Disabled) 0x0FC4 LVDPW 0x0FC5 to 0x0FE2 — 0x0FE3 WCDR Watch counter data register R/W 0b00111111 0x0FE4 CRTH Main CR clock trimming register (upper) R/W 0b000XXXXX Document Number: 002-09305 Rev. *C (Disabled) Page 51 of 172 PRELIMINARY Address Register abbreviation 0x0FE5 CRTL 0x0FE6 — 0x0FE7 CRTDA MB95F856K, MB95F866K, MB95F876K Register name Main CR clock trimming register (lower) (Disabled) Main CR clock temperature dependent adjustment register R/W Initial value R/W 0b000XXXXX — — R/W 0b000XXXXX 0x0FE8 SYSC System configuration register R/W 0b11000011 0x0FE9 CMCR Clock monitoring control register R/W 0b00000000 0x0FEA CMDR Clock monitoring data register R 0b00000000 0x0FEB WDTH Watchdog timer selection ID register (upper) R 0bXXXXXXXX Watchdog timer selection ID register (lower) R 0bXXXXXXXX (Disabled) — — R/W 0b01000000 — — 0x0FEC WDTL 0x0FED, 0x0FEE — 0x0FEF WICR 0x0FF0 to 0x0FFF — Interrupt pin selection circuit control register (Disabled) ■ R/W access symbols R/W : Readable/Writable R : Read only ■ Initial value symbols 0 : The initial value of this bit is “0”. 1 : The initial value of this bit is “1”. X : The initial value of this bit is undefined. Note: Do not write to an address that is “(Disabled)”. If a “(Disabled)” address is read, an indeterminate value is returned. Document Number: 002-09305 Rev. *C Page 52 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 14. I/O Ports 14.1 MB95850K Series ■ List of port registers Read/Write Initial value Port 0 data register Register name PDR0 R, RM/W 0b00000000 Port 0 direction register DDR0 R/W 0b00000000 Port 1 data register PDR1 R, RM/W 0b00000000 Port 1 direction register DDR1 R/W 0b00000000 Port 4 data register PDR4 R, RM/W 0b00000000 Port 4 direction register DDR4 R/W 0b00000000 Port 6 data register PDR6 R, RM/W 0b00000000 Port 6 direction register DDR6 R/W 0b00000000 Port 7 data register PDR7 R, RM/W 0b00000000 Port 7 direction register DDR7 R/W 0b00000000 Port F data register PDRF R, RM/W 0b00000000 Port F direction register DDRF R/W 0b00000000 Port G data register PDRG R, RM/W 0b00000000 Port G direction register DDRG R/W 0b00000000 Port 0 pull-up register PUL0 R/W 0b00000000 Port 1 pull-up register PUL1 R/W 0b00000000 Port 6 pull-up register PUL6 R/W 0b00000000 Port 7 pull-up register PUL7 R/W 0b00000000 Port G pull-up register PULG R/W 0b00000000 A/D input disable register (lower) AIDRL R/W 0b00000000 Touch input disable register 0 TIDR0 R/W 0b00000000 Touch input disable register 1 TIDR1 R/W 0b00000000 R/W : R, RM/W : Readable/writable (The read value is the same as the write value.) Readable/writable (The read value is different from the write value. The write value is read by the read-modify-write (RMW) type of instruction.) Document Number: 002-09305 Rev. *C Page 53 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 14.1.1 Port 0 Port 0 is a general-purpose I/O port. This section focuses on its functions as a general-purpose I/O port. For details of peripheral functions, refer to their respective chapters in “New 8FX MB95850K/860K/870K Series Hardware Manual”. 1. Port 0 configuration Port 0 is made up of the following elements. ❐ General-purpose I/O pins/peripheral function I/O pins ❐ Port 0 data register (PDR0) ❐ Port 0 direction register (DDR0) ❐ Port 0 pull-up register (PUL0) ❐ A/D input disable register (lower) (AIDRL) 2. Block diagrams of port 0 ■ ■ P04/AN00/BEEP/DIO01/TO01 pin This pin has the following peripheral functions: 8/10-bit A/D converter analog input pin (AN00) ❐ Beep output pin (BEEP) ❐ TS direct output ch. 1 pin (DIO01) ❐ 8/16-bit composite timer ch. 0 output pin (TO01) ❐ ■ P06/AN02/CMP0_O/PPG00 pin This pin has the following peripheral functions: ❐ 8/10-bit A/D converter analog input pin (AN02) ❐ Comparator ch. 0 digital output pin (CMP0_O) ❐ 816-bit PPG ch. 0 output pin (PPG00) ■ Block diagram of P04/AN00/BEEP/DIO01/TO01 and P06/AN02/CMP0_O/PPG00 Peripheral function output enable Peripheral function output A/D analog input Hysteresis Pull-up 0 1 PDR0 read 1 PDR0 0 Pin PDR0 write Internal bus Executing bit manipulation instruction DDR0 read DDR0 DDR0 write Stop mode, watch mode (SPL = 1) PUL0 read PUL0 PUL0 write AIDRL read AIDRL AIDRL write Document Number: 002-09305 Rev. *C Page 54 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY ■ P05/INT05/AN01/CMP0_N/TO00 pin This pin has the following peripheral functions: ❐ External interrupt input pin (INT05) ❐ 8/10-bit A/D converter analog input pin (AN01) ❐ Comparator ch. 0 inverting analog input (negative input) pin (CMP0_N) ❐ 8/16-bit composite timer ch. 0 output pin (TO00) ■ Block diagram of P05/INT05/AN01/CMP0_N/TO00 Comparator analog input Comparator analog input disable Peripheral function input Peripheral function input enable (INT05) Peripheral function output enable Peripheral function output A/D analog input Hysteresis Pull-up 0 1 PDR0 read 1 PDR0 0 Pin PDR0 write Internal bus Executing bit manipulation instruction DDR0 read DDR0 DDR0 write Stop mode, watch mode (SPL = 1) PUL0 read PUL0 PUL0 write AIDRL read AIDRL AIDRL write ■ P07/AN03/CMP0_P/PPG01 pin This pin has the following peripheral functions: ❐ 8/10-bit A/D converter analog input pin (AN03) ❐ Comparator ch. 0 non-inverting analog input (positive input) pin (CMP0_P) ❐ 8/16-bit PPG ch. 0 output pin (PPG01) Document Number: 002-09305 Rev. *C Page 55 of 172 PRELIMINARY ■ MB95F856K, MB95F866K, MB95F876K Block diagram of P07/AN03/CMP0_P/PPG01 Comparator analog input Comparator analog input disable Peripheral function output enable Peripheral function output A/D analog input Hysteresis Pull-up 0 1 PDR0 read 1 PDR0 0 Pin PDR0 write Internal bus Executing bit manipulation instruction DDR0 read DDR0 DDR0 write Stop mode, watch mode (SPL = 1) PUL0 read PUL0 PUL0 write AIDRL read AIDRL AIDRL write Document Number: 002-09305 Rev. *C Page 56 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 3. Port 0 registers ■ Port 0 register functions Register abbreviation PDR0 DDR0 PUL0 AIDRL ■ Data Read Read by read-modify-write (RMW) instruction Write 0 Pin state is “L” level. PDR0 value is “0”. As output port, outputs “L” level. 1 Pin state is “H” level. PDR0 value is “1”. As output port, outputs “H” level. 0 Port input enabled 1 Port output enabled 0 Pull-up disabled 1 Pull-up enabled 0 Analog input enabled 1 Port input enabled Correspondence between registers and pins for port 0 Pin name Correspondence between related register bits and pins P07 P06 P05 P04 bit7 bit6 bit5 bit4 bit5 bit4 bit1 bit0 - - - - - - - - PDR0 DDR0 PUL0 AIDRL Document Number: 002-09305 Rev. *C Page 57 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 4. Port 0 operations ■ Operation as an output port ❐ A pin becomes an output port if the bit in the DDR0 register corresponding to that pin is set to “1”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ When a pin is used as an output port, it outputs the value of the PDR0 register to external pins. ❐ If data is written to the PDR0 register, the value is stored in the output latch and is output to the pin set as an output port as it is. ❐ Reading the PDR0 register returns the PDR0 register value. ■ Operation as an input port ❐ A pin becomes an input port if the bit in the DDR0 register corresponding to that pin is set to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ When using a pin shared with the analog input function as an input port, set the bit in the A/D input disable register (lower) (AIDRL) corresponding to that pin to “1”. ❐ If data is written to the PDR0 register, the value is stored in the output latch but is not output to the pin set as an input port. ❐ Reading the PDR0 register returns the pin value. However, if the read-modify-write (RMW) type of instruction is used to read the PDR0 register, the PDR0 register value is returned. ■ Operation as a peripheral function output pin ❐ A pin becomes a peripheral function output pin if the peripheral output function is enabled by setting the output enable bit of a peripheral function corresponding to that pin. ❐ The pin value can be read from the PDR0 register even if the peripheral function output is enabled. Therefore, the output value of a peripheral function can be read by the read operation on the PDR0 register. However, if the read-modify-write (RMW) type of instruction is used to read the PDR0 register, the PDR0 register value is returned. ■ Operation as a peripheral function input pin ❐ To set a pin as an input port, set the bit in the DDR0 register corresponding to the input pin of a peripheral function to “0”. ❐ When using a pin shared with the analog input function as another peripheral function input pin, configure it as an input port by setting the bit in the AIDRL register corresponding to that pin to “1”. ❐ Reading the PDR0 register returns the pin value, regardless of whether the peripheral function uses that pin as its input pin. However, if the read-modify-write (RMW) type of instruction is used to read the PDR0 register, the PDR0 register value is returned. ■ Operation at reset If the CPU is reset, all bits in the DDR0 register are initialized to “0” and port input is enabled. As for a pin shared with the analog input function, its port input is disabled because the AIDRL register is initialized to “0”. ■ Operation in stop mode and watch mode ❐ If the pin state setting bit in the standby control register (STBC:SPL) is set to “1” and the device transits to stop mode or watch mode, the pin is compulsorily made to enter the high impedance state regardless of the DDR0 register value. The input of that pin is locked to “L” level and blocked in order to prevent leaks due to input open. However, if the interrupt input is enabled for the external interrupt (INT05), the input is enabled and not blocked. ❐ If the pin state setting bit is “0”, the state of the port I/O or that of the peripheral function I/O remains unchanged and the output level is maintained. ■ Operation as an analog input pin ❐ Set the DDR0 register bit corresponding to analog input pin to “0” and the bit corresponding to that pin in the AIDRL register to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. In addition, set the corresponding bit in the PUL0 register to “0”. ■ Operation as an external interrupt input pin ❐ Set the bit in the DDR0 register corresponding to the external interrupt input pin to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ The pin value is always input to the external interrupt circuit. When using a pin for a function other than the interrupt, disable the external interrupt function corresponding to that pin. ■ Operation of the pull-up register Setting the bit in the PUL0 register to “1” makes the pull-up resistor be internally connected to the pin. When the pin output is “L” level, the pull-up resistor is disconnected regardless of the value of the PUL0 register. ■ Operation as a comparator input pin ❐ Set the bit in the AIDRL register corresponding to the comparator input pin to “0”. ❐ Regardless of the value of the PDR0 register and that of the DDR0 register, if the comparator analog input enable bit in the comparator control register ch. 0 (CMR0:VCID) is set to “0”, the comparator input function is enabled. ❐ To disable the comparator input function, set the VCID bit to “1”. ❐ For details of the comparator, see “CHAPTER 25 COMPARATOR” in “New 8FX MB95850K/860K/870K Series Hardware Manual”. Document Number: 002-09305 Rev. *C Page 58 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 14.1.2 Port 1 Port 1 is a general-purpose I/O port. This section focuses on its functions as a general-purpose I/O port. For details of peripheral functions, refer to their respective chapters in “New 8FX MB95850K/860K/870K Series Hardware Manual”. 1. Port 1 configuration Port 1 is made up of the following elements. ❐ General-purpose I/O pins/peripheral function I/O pins ❐ Port 1 data register (PDR1) ❐ Port 1 direction register (DDR1) ❐ Port 1 pull-up register (PUL1) 2. Block diagrams of port 1 ■ ■ P10/DBG/EC0 pin This pin has the following peripheral functions: ❐ DBG input pin (DBG) ❐ 8/16-bit composite timer ch. 0 clock input pin (EC0) ■ Block diagram of P10/DBG/EC0 Peripheral function input Hysteresis 0 1 PDR1 read Internal bus PDR1 Pin OD PDR1 write Executing bit manipulation instruction DDR1 read DDR1 DDR1 write ■ Stop mode, watch mode (SPL = 1) P13/INT04/UI0/DIO02 pin This pin has the following peripheral functions: ❐ External interrupt input pin (INT04) ❐ UART/SIO ch. 0 data input pin (UI0) ❐ TS direct output ch. 2 pin (DIO02) Document Number: 002-09305 Rev. *C Page 59 of 172 PRELIMINARY ■ MB95F856K, MB95F866K, MB95F876K Block diagram of P13/INT04/UI0/DIO02 Peripheral function input Peripheral function input enable (INT04) Peripheral function output enable Peripheral function output Pull-up 0 1 CMOS PDR1 read 1 PDR1 Pin 0 PDR1 write Internal bus Executing bit manipulation instruction DDR1 read DDR1 DDR1 write Stop mode, watch mode (SPL = 1) PUL1 read PUL1 PUL1 write ■ P14/INT01/UO0/DIO00 pin This pin has the following peripheral functions: ❐ External interrupt input pin (INT01) ❐ UART/SIO ch. 0 data output pin (UO0) ❐ TS direct output ch. 0 pin (DIO00) ■ P15/INT00/UCK0 pin This pin has the following peripheral functions: ❐ External interrupt input pin (INT00) ❐ UART/SIO ch. 0 clock I/O pin (UCK0) ■ Block diagram of P14/INT01/UO0/DIO00 and P15/INT00/UCK0 Peripheral function input Peripheral function input enable (INT00 and INT01) Peripheral function output enable Peripheral function output Hysteresis Pull-up 0 1 PDR1 read 1 PDR1 0 Pin PDR1 write Internal bus Executing bit manipulation instruction DDR1 read DDR1 DDR1 write Stop mode, watch mode (SPL = 1) PUL1 read PUL1 PUL1 write Document Number: 002-09305 Rev. *C Page 60 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 3. Port 1 registers ■ Port 1 register functions Register abbreviation Data Read Read by read-modify-write (RMW) instruction Write 0 Pin state is “L” level. PDR1 value is “0”. As output port, outputs “L” level. 1 Pin state is “H” level. PDR1 value is “1”. As output port, outputs “H” level.* PDR1 DDR1 PUL1 0 Port input enabled 1 Port output enabled 0 Pull-up disabled 1 Pull-up enabled *: If the pin is an N-ch open drain pin, the pin state becomes Hi-Z. ■ Correspondence between registers and pins for port 1 Pin name Correspondence between related register bits and pins - - P15 P14 P13 - - P10 - - bit5 bit4 bit3 - - bit0* PDR1 DDR1 PUL1 *: Though P10 has no pull-up function, bit0 in the PUL1 register can still be accessed. The operation of P10 is not affected by the setting of bit0 in the PUL1 register. 4. Port 1 operations ■ Operation as an output port ❐ A pin becomes an output port if the bit in the DDR1 register corresponding to that pin is set to “1”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ When a pin is used as an output port, it outputs the value of the PDR1 register to external pins. ❐ If data is written to the PDR1 register, the value is stored in the output latch and is output to the pin set as an output port as it is. ❐ Reading the PDR1 register returns the PDR1 register value. ■ Operation as an input port ❐ A pin becomes an input port if the bit in the DDR1 register corresponding to that pin is set to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ If data is written to the PDR1 register, the value is stored in the output latch but is not output to the pin set as an input port. ❐ Reading the PDR1 register returns the pin value. However, if the read-modify-write (RMW) type of instruction is used to read the PDR1 register, the PDR1 register value is returned. ■ Operation as a peripheral function output pin ❐ A pin becomes a peripheral function output pin if the peripheral output function is enabled by setting the output enable bit of a peripheral function corresponding to that pin. ❐ The pin value can be read from the PDR1 register even if the peripheral function output is enabled. Therefore, the output value of a peripheral function can be read by the read operation on the PDR1 register. However, if the read-modify-write (RMW) type of instruction is used to read the PDR1 register, the PDR1 register value is returned. ■ Operation as a peripheral function input pin ❐ To set a pin as an input port, set the bit in the DDR1 register corresponding to the input pin of a peripheral function to “0”. ❐ Reading the PDR1 register returns the pin value, regardless of whether the peripheral function uses that pin as its input pin. However, if the read-modify-write (RMW) type of instruction is used to read the PDR1 register, the PDR1 register value is returned. ■ Operation at reset If the CPU is reset, all bits in the DDR1 register are initialized to “0” and port input is enabled. ■ Operation in stop mode and watch mode Document Number: 002-09305 Rev. *C Page 61 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K If the pin state setting bit in the standby control register (STBC:SPL) is set to “1” and the device transits to stop mode or watch mode, the pin is compulsorily made to enter the high impedance state regardless of the DDR1 register value. The input of that pin is locked to “L” level and blocked in order to prevent leaks due to input open. However, if the interrupt input from the external interrupt (INT00, INT01 and INT04) is enabled, or if the interrupt input of P10/DBG/EC0 is enabled by the external interrupt control register ch. 0 (EIC00) of the external interrupt circuit and the interrupt pin selection circuit control register (WICR) of the interrupt pin selection circuit, the input is enabled and is not blocked. ❐ If the pin state setting bit is “0”, the state of the port I/O or that of the peripheral function I/O remains unchanged and the output level is maintained. ❐ ■ Operation as an external interrupt input pin ❐ Set the bit in the DDR1 register corresponding to the external interrupt input pin to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ The pin value is always input to the external interrupt circuit. When using a pin for a function other than the interrupt, disable the external interrupt function corresponding to that pin. ■ Operation of the pull-up register Setting the bit in the PUL1 register to “1” makes the pull-up resistor be internally connected to the pin. When the pin output is “L” level, the pull-up resistor is disconnected regardless of the value of the PUL1 register. Document Number: 002-09305 Rev. *C Page 62 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 14.1.3 Port 4 Port 4 is a general-purpose I/O port. This section focuses on its functions as a general-purpose I/O port. For details of peripheral functions, refer to their respective chapters in “New 8FX MB95850K/860K/870K Series Hardware Manual”. 1. Port 4 configuration Port 4 is made up of the following elements. ❐ General-purpose I/O pins/peripheral function I/O pins ❐ Port 4 data register (PDR4) ❐ Port 4 direction register (DDR4) 2. Block diagrams of port 4 ■ ■ P46/INT06/SDA pin This pin has the following peripheral functions: ❐ External interrupt input pin (INT06) 2 ❐ I C bus interface ch. 0 data I/O pin (SDA) ■ P47/INT07/SCL pin This pin has the following peripheral functions: ❐ External interrupt input pin (INT07) 2 ❐ I C bus interface ch. 0 clock I/O pin (SCL) ■ Block diagram of P46/INT06/SDA and P47/INT07/SCL Peripheral function input Peripheral function input enable (INT06 and INT07) Peripheral function output enable Peripheral function output CMOS 0 1 PDR4 read PDR4 Internal bus Pin 1 OD 0 PDR4 write Executing bit manipulation instruction DDR4 read DDR4 DDR4 write Stop mode, watch mode (SPL = 1) 3. Port 4 registers ■ Port 4 register functions Register abbreviation PDR4 DDR4 Read Read by read-modify-write (RMW) instruction 0 Pin state is “L” level. PDR4 value is “0”. As output port, outputs “L” level. 1 Pin state is “H” level. PDR4 value is “1”. As output port, outputs “H” level.* Data 0 Port input enabled 1 Port output enabled Write *: If the pin is an N-ch open drain pin, the pin state becomes Hi-Z. Document Number: 002-09305 Rev. *C Page 63 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY ■ Correspondence between registers and pins for port 4 Pin name PDR4 DDR4 Correspondence between related register bits and pins P47 P46 - - - - - - bit7 bit6 - - - - - - 4. Port 4 operations ■ Operation as an output port ❐ A pin becomes an output port if the bit in the DDR4 register corresponding to that pin is set to “1”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ When a pin is used as an output port, it outputs the value of the PDR4 register to external pins. ❐ If data is written to the PDR4 register, the value is stored in the output latch and is output to the pin set as an output port as it is. ❐ Reading the PDR4 register returns the PDR4 register value. ■ Operation as an input port ❐ A pin becomes an input port if the bit in the DDR4 register corresponding to that pin is set to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ If data is written to the PDR4 register, the value is stored in the output latch but is not output to the pin set as an input port. ❐ Reading the PDR4 register returns the pin value. However, if the read-modify-write (RMW) type of instruction is used to read the PDR4 register, the PDR4 register value is returned. ■ Operation as a peripheral function output pin ❐ A pin becomes a peripheral function output pin if the peripheral output function is enabled by setting the output enable bit of a peripheral function corresponding to that pin. ❐ The pin value can be read from the PDR4 register even if the peripheral function output is enabled. Therefore, the output value of a peripheral function can be read by the read operation on the PDR4 register. However, if the read-modify-write (RMW) type of instruction is used to read the PDR4 register, the PDR4 register value is returned. ■ Operation as a peripheral function input pin ❐ To set a pin as an input port, set the bit in the DDR4 register corresponding to the input pin of a peripheral function to “0”. ❐ Reading the PDR4 register returns the pin value, regardless of whether the peripheral function uses that pin as its input pin. However, if the read-modify-write (RMW) type of instruction is used to read the PDR4 register, the PDR4 register value is returned. ■ Operation at reset If the CPU is reset, all bits in the DDR4 register are initialized to “0” and port input is enabled. ■ Operation in stop mode and watch mode ❐ If the pin state setting bit in the standby control register (STBC:SPL) is set to “1” and the device transits to stop mode or watch mode, the pin is compulsorily made to enter the high impedance state regardless of the DDR4 register value. The input of that pin is locked to “L” level and blocked in order to prevent leaks due to input open. However, if the interrupt input is enabled for the external interrupt (INT06 and INT07), the input is enabled and not blocked. ❐ If the pin state setting bit is “0”, the state of the port I/O or that of the peripheral function I/O remains unchanged and the output level is maintained. ■ Operation as an external interrupt input pin ❐ Set the bit in the DDR4 register corresponding to the external interrupt input pin to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ The pin value is always input to the external interrupt circuit. When using a pin for a function other than the interrupt, disable the external interrupt function corresponding to that pin. Document Number: 002-09305 Rev. *C Page 64 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 14.1.4 Port 6 Port 6 is a general-purpose I/O port. This section focuses on its functions as a general-purpose I/O port. For details of peripheral functions, refer to their respective chapters in “New 8FX MB95850K/860K/870K Series Hardware Manual”. 1. Port 6 configuration Port 6 is made up of the following elements. ❐ General-purpose I/O pins/peripheral function I/O pins ❐ Port 6 data register (PDR6) ❐ Port 6 direction register (DDR6) ❐ Port 6 pull-up register (PUL6) ❐ Touch input disable register 0 (TIDR0) 2. Block diagrams of port 6 ■ ■ P63/AREF pin This pin has the following peripheral function: ❐ TS reference input pin (AREF) ■ P65/S01 pin This pin has the following peripheral function: ❐ TS touch ch. 1 input pin (S01) ■ P66/S02 pin This pin has the following peripheral function: ❐ TS touch ch. 2 input pin (S02) ■ P67/S03 pin This pin has the following peripheral function: ❐ TS touch ch. 3 input pin (S03) ■ Block diagram of P63/AREF, P65/S01, P66/S02 and P67/S03 Touch input Hysteresis 0 Pull-up 1 PDR6 read PDR6 Pin PDR6 write Internal bus Executing bit manipulation instruction DDR6 read DDR6 DDR6 write Stop mode, watch mode (SPL = 1) PUL6 read PUL6 PUL6 write TIDR0 read TIDR0 TIDR0 write Document Number: 002-09305 Rev. *C Page 65 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 3. Port 6 registers ■ Port 6 register functions Register abbreviation Read 0 1 0 1 0 1 0 1 Pin state is “L” level. Pin state is “H” level. PDR6 DDR6 PUL6 TIDR0 ■ Read by read-modify-write (RMW) instruction Data Write PDR6 value is “0”. As output port, outputs “L” level. PDR6 value is “1”. As output port, outputs “H” level. Port input enabled Port output enabled Pull-up disabled Pull-up enabled Touch input or reference input enabled Port input enabled Correspondence between registers and pins for port 6 Pin name PDR6 DDR6 PUL6 TIDR0 P67 Correspondence between related register bits and pins P66 P65 P63 - bit7 bit6 bit5 bit7 bit6 bit5 - bit3 - - - - - bit3 4. Port 6 operations ■ Operation as an output port ❐ A pin becomes an output port if the bit in the DDR6 register corresponding to that pin is set to “1”. ❐ When a pin is used as an output port, it outputs the value of the PDR6 register to external pins. ❐ If data is written to the PDR6 register, the value is stored in the output latch and is output to the pin set as an output port as it is. ❐ Reading the PDR6 register returns the PDR6 register value. ■ Operation as an input port ❐ A pin becomes an input port if the bit in the DDR6 register corresponding to that pin is set to “0”. ❐ When using a pin shared with the touch input function as an input port, set the bit in the touch input disable register 0 (TIDR0) corresponding to that pin to “1”. ❐ If data is written to the PDR6 register, the value is stored in the output latch but is not output to the pin set as an input port. ❐ Reading the PDR6 register returns the pin value. However, if the read-modify-write (RMW) type of instruction is used to read the PDR6 register, the PDR6 register value is returned. ■ Operation at reset If the CPU is reset, all bits in the DDR6 register are initialized to “0” and port input is enabled. As for a pin shared with the touch input function, its port input is disabled because the TIDR0 register is initialized to “0”. ■ ■ Operation in stop mode and watch mode ❐ If the pin state setting bit in the standby control register (STBC:SPL) is set to “1” and the device transits to stop mode or watch mode, the pin is compulsorily made to enter the high impedance state regardless of the DDR6 register value. The input of that pin is locked to “L” level and blocked in order to prevent leaks due to input open. ❐ When the stop enable bit in the TS prescaler control register (PSC:STPE) is set to “1”, the TS can operate in stop mode or watch mode, the touch input is enabled and is not blocked. The TS wakes up in stop mode or watch mode provided that the TINT (touch interrupt) and the GINT (general interrupt) are set to enable the TS to wake up in stop mode or watch mode. ❐ If the pin state setting bit is “0”, the state of the port I/O or that of the peripheral function I/O remains unchanged and the output level is maintained. Operation as a touch input pin Set the bit in the DDR6 register corresponding to the touch input pin to “0”, the bit in the TIDR0 register corresponding to the same pin to “0”, and the bit in the PUL6 register corresponding to the same pin to “0”. ■ Operation of the pull-up register Setting the bit in the PUL6 register to “1” makes the pull-up resistor be internally connected to the pin. When the pin output is “L” level, the pull-up resistor is disconnected regardless of the value of the PUL6 register. Document Number: 002-09305 Rev. *C Page 66 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 14.1.5 Port 7 Port 7 is a general-purpose I/O port. This section focuses on its functions as a general-purpose I/O port. For details of peripheral functions, refer to their respective chapters in “New 8FX MB95850K/860K/870K Series Hardware Manual”. 1. Port 7 configuration Port 7 is made up of the following elements. ❐ General-purpose I/O pins/peripheral function I/O pins ❐ Port 7 data register (PDR7) ❐ Port 7 direction register (DDR7) ❐ Port 7 pull-up register (PUL7) ❐ Touch input disable register 1 (TIDR1) 2. Block diagrams of port 7 ■ ■ P70/S04 pin This pin has the following peripheral function: ❐ TS touch ch. 4 input pin (S04) ■ P71/S05 pin This pin has the following peripheral function: ❐ TS touch ch. 5 input pin (S05) ■ Block diagram of P70/S04 and P71/S05 Touch input Hysteresis 0 Pull-up 1 PDR7 read PDR7 Pin PDR7 write Internal bus Executing bit manipulation instruction DDR7 read DDR7 DDR7 write Stop mode, watch mode (SPL = 1) PUL7 read PUL7 PUL7 write TIDR1 read TIDR1 TIDR1 write Document Number: 002-09305 Rev. *C Page 67 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 3. Port 7 registers ■ Port 7 register functions Register abbreviation PDR7 DDR7 PUL7 TIDR1 ■ Data Read 0 1 0 1 0 1 0 1 Pin state is “L” level. Pin state is “H” level. Read by read-modify-write Write (RMW) instruction PDR7 value is “0”. As output port, outputs “L” level. PDR7 value is “1”. As output port, outputs “H” level. Port input enabled Port output enabled Pull-up disabled Pull-up enabled Touch input enabled Port input enabled Correspondence between registers and pins for port 7 Pin name PDR7 DDR7 PUL7 TIDR1 - - - - Correspondence between related register bits and pins P71 - - - - bit1 P70 bit0 4. Port 7 operations ■ Operation as an output port ❐ A pin becomes an output port if the bit in the DDR7 register corresponding to that pin is set to “1”. ❐ When a pin is used as an output port, it outputs the value of the PDR7 register to external pins. ❐ If data is written to the PDR7 register, the value is stored in the output latch and is output to the pin set as an output port as it is. ❐ Reading the PDR7 register returns the PDR7 register value. ■ Operation as an input port ❐ A pin becomes an input port if the bit in the DDR7 register corresponding to that pin is set to “0”. ❐ When using a pin shared with the touch input function as an input port, set the bit in the touch input disable register 1 (TIDR1) corresponding to that pin to “1”. ❐ If data is written to the PDR7 register, the value is stored in the output latch but is not output to the pin set as an input port. ❐ Reading the PDR7 register returns the pin value. However, if the read-modify-write (RMW) type of instruction is used to read the PDR7 register, the PDR7 register value is returned. Operation at reset ■ If the CPU is reset, all bits in the DDR7 register are initialized to “0” and port input is enabled. As for a pin shared with the touch input function, its port input is disabled because the TIDR1 register is initialized to “0”. ■ ■ Operation in stop mode and watch mode ❐ If the pin state setting bit in the standby control register (STBC:SPL) is set to “1” and the device transits to stop mode or watch mode, the pin is compulsorily made to enter the high impedance state regardless of the DDR7 register value. The input of that pin is locked to “L” level and blocked in order to prevent leaks due to input open. ❐ When the stop enable bit in the TS prescaler control register (PSC:STPE) is set to “1”, the TS can operate in stop mode or watch mode, the touch input is enabled and is not blocked. The TS wakes up in stop mode or watch mode provided that the TINT (touch interrupt) and the GINT (general interrupt) are set to enable the TS to wake up in stop mode or watch mode. ❐ If the pin state setting bit is “0”, the state of the port I/O or that of the peripheral function I/O remains unchanged and the output level is maintained. Operation as a touch input pin Set the bit in the DDR7 register corresponding to the touch input pin to “0”, the bit in the TIDR1 register corresponding to the same pin to “0”, and the bit in the PUL7 register corresponding to the same pin to “0”. ■ Operation of the pull-up register Setting the bit in the PUL7 register to “1” makes the pull-up resistor be internally connected to the pin. When the pin output is “L” level, the pull-up resistor is disconnected regardless of the value of the PUL7 register. Document Number: 002-09305 Rev. *C Page 68 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 14.1.6 Port F Port F is a general-purpose I/O port. This section focuses on its functions as a general-purpose I/O port. For details of peripheral functions, refer to their respective chapters in “New 8FX MB95850K/860K/870K Series Hardware Manual”. 1. Port F configuration Port F is made up of the following elements. ❐ General-purpose I/O pins/peripheral function I/O pins ❐ Port F data register (PDRF) ❐ Port F direction register (DDRF) 2. Block diagrams of port F ■ ■ PF0/X0 pin This pin has the following peripheral function: ❐ Main clock input oscillation pin (X0) ■ PF1/X1 pin This pin has the following peripheral function: ❐ Main clock I/O oscillation pin (X1) ■ Block diagram of PF0/X0 and PF1/X1 Hysteresis 0 1 PDRF read Pin Internal bus PDRF PDRF write Executing bit manipulation instruction DDRF read DDRF DDRF write ■ Stop mode, watch mode (SPL = 1) PF2/RST pin This pin has the following peripheral function: ❐ Reset pin (RST) ■ Block diagram of PF2/RST Reset input Reset input enable Reset output enable Reset output Hysteresis 0 1 PDRF read Internal bus Pin 1 PDRF 0 OD PDRF write Executing bit manipulation instruction DDRF read DDRF DDRF write Stop mode, watch mode (SPL = 1) Document Number: 002-09305 Rev. *C Page 69 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 3. Port F registers ■ Port F register functions Register abbreviation Read Read by read-modify-write (RMW) instruction 0 Pin state is “L” level. PDRF value is “0”. As output port, outputs “L” level. 1 Pin state is “H” level. PDRF value is “1”. As output port, outputs “H” level.* Data PDRF DDRF 0 Port input enabled 1 Port output enabled Write *: If the pin is an N-ch open drain pin, the pin state becomes Hi-Z. ■ Correspondence between registers and pins for port F Pin name PDRF DDRF Correspondence between related register bits and pins - - - - - PF2 PF1 PF0 - - - - - bit2 bit1 bit0 4. Port F operations ■ Operation as an output port ❐ A pin becomes an output port if the bit in the DDRF register corresponding to that pin is set to “1”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ When a pin is used as an output port, it outputs the value of the PDRF register to external pins. ❐ If data is written to the PDRF register, the value is stored in the output latch and is output to the pin set as an output port as it is. ❐ Reading the PDRF register returns the PDRF register value. ■ Operation as an input port ❐ A pin becomes an input port if the bit in the DDRF register corresponding to that pin is set to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ If data is written to the PDRF register, the value is stored in the output latch but is not output to the pin set as an input port. ❐ Reading the PDRF register returns the pin value. However, if the read-modify-write (RMW) type of instruction is used to read the PDRF register, the PDRF register value is returned. ■ Operation at reset ■ Operation in stop mode and watch mode ❐ If the pin state setting bit in the standby control register (STBC:SPL) is set to “1” and the device transits to stop mode or watch mode, the pin is compulsorily made to enter the high impedance state regardless of the DDRF register value. The input of that pin is locked to “L” level and blocked in order to prevent leaks due to input open. ❐ If the pin state setting bit is “0”, the state of the port I/O or that of the peripheral function I/O remains unchanged and the output level is maintained. If the CPU is reset, all bits in the DDRF register are initialized to “0” and port input is enabled. Document Number: 002-09305 Rev. *C Page 70 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 14.1.7 Port G Port G is a general-purpose I/O port. This section focuses on its functions as a general-purpose I/O port. For details of peripheral functions, refer to their respective chapters in “New 8FX MB95850K/860K/870K Series Hardware Manual”. 1. Port G configuration Port G is made up of the following elements. ❐ General-purpose I/O pins/peripheral function I/O pins ❐ Port G data register (PDRG) ❐ Port G direction register (DDRG) ❐ Port G pull-up register (PULG) 2. Block diagram of port G ■ ■ PG1/X0A/DIO04 pin This pin has the following peripheral functions: ❐ Subclock input oscillation pin (X0A) ❐ TS direct output ch. 4 pin (DIO04) ■ PG2/X1A/DIO03 pin This pin has the following peripheral functions: ❐ Subclock I/O oscillation pin (X1A) ❐ TS direct output ch. 3 pin (DIO03) ■ Block diagram of PG1/X0A/DIO04 and PG2/X1A/DIO03 Peripheral function output enable Peripheral function output Hysteresis Pull-up 0 1 PDRG read 1 PDRG 0 Pin PDRG write Internal bus Executing bit manipulation instruction DDRG read DDRG DDRG write Stop mode, watch mode (SPL = 1) PULG read PULG PULG write Document Number: 002-09305 Rev. *C Page 71 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 3. Port G registers ■ Port G register functions Register abbreviation PDRG DDRG PULG ■ Read Read by read-modify-write (RMW) instruction 0 Pin state is “L” level. PDRG value is “0”. As output port, outputs “L” level. 1 Pin state is “H” level. PDRG value is “1”. As output port, outputs “H” level. Data 0 Port input enabled 1 Port output enabled 0 Pull-up disabled 1 Pull-up enabled Write Correspondence between registers and pins for port G Pin name Correspondence between related register bits and pins - - - - - PG2 PG1 - - - - - - bit2 bit1 - PDRG DDRG PULG 4. Port G operations ■ Operation as an output port ❐ A pin becomes an output port if the bit in the DDRG register corresponding to that pin is set to “1”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ When a pin is used as an output port, it outputs the value of the PDRG register to external pins. ❐ If data is written to the PDRG register, the value is stored in the output latch and is output to the pin set as an output port as it is. ❐ Reading the PDRG register returns the PDRG register value. ■ Operation as an input port ❐ A pin becomes an input port if the bit in the DDRG register corresponding to that pin is set to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ If data is written to the PDRG register, the value is stored in the output latch but is not output to the pin set as an input port. ❐ Reading the PDRG register returns the pin value. However, if the read-modify-write (RMW) type of instruction is used to read the PDRG register, the PDRG register value is returned. ■ Operation as a peripheral function output pin ❐ A pin becomes a peripheral function output pin if the peripheral output function is enabled by setting the output enable bit of a peripheral function corresponding to that pin. ❐ The pin value can be read from the PDRG register even if the peripheral function output is enabled. Therefore, the output value of a peripheral function can be read by the read operation on the PDRG register. However, if the read-modify-write (RMW) type of instruction is used to read the PDRG register, the PDRG register value is returned. ■ Operation at reset If the CPU is reset, all bits in the DDRG register are initialized to “0” and port input is enabled. ■ Operation in stop mode and watch mode ❐ If the pin state setting bit in the standby control register (STBC:SPL) is set to “1” and the device transits to stop mode or watch mode, the pin is compulsorily made to enter the high impedance state regardless of the DDRG register value. The input of that pin is locked to “L” level and blocked in order to prevent leaks due to input open. ❐ If the pin state setting bit is “0”, the state of the port I/O or that of the peripheral function I/O remains unchanged and the output level is maintained. ■ Operation of the pull-up register Setting the bit in the PULG register to “1” makes the pull-up resistor be internally connected to the pin. When the pin output is “L” level, the pull-up resistor is disconnected regardless of the value of the PULG register. Document Number: 002-09305 Rev. *C Page 72 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 14.2 MB95860K Series ■ List of port registers Register name Read/Write Initial value Port 0 data register PDR0 R, RM/W 0b00000000 Port 0 direction register DDR0 R/W 0b00000000 Port 1 data register PDR1 R, RM/W 0b00000000 Port 1 direction register DDR1 R/W 0b00000000 Port 4 data register PDR4 R, RM/W 0b00000000 Port 4 direction register DDR4 R/W 0b00000000 Port 6 data register PDR6 R, RM/W 0b00000000 Port 6 direction register DDR6 R/W 0b00000000 Port 7 data register PDR7 R, RM/W 0b00000000 Port 7 direction register DDR7 R/W 0b00000000 Port F data register PDRF R, RM/W 0b00000000 Port F direction register DDRF R/W 0b00000000 Port G data register PDRG R, RM/W 0b00000000 Port G direction register DDRG R/W 0b00000000 Port 0 pull-up register PUL0 R/W 0b00000000 Port 1 pull-up register PUL1 R/W 0b00000000 Port 4 pull-up register PUL4 R/W 0b00000000 Port 6 pull-up register PUL6 R/W 0b00000000 Port 7 pull-up register PUL7 R/W 0b00000000 Port G pull-up register PULG R/W 0b00000000 A/D input disable register (lower) AIDRL R/W 0b00000000 Touch input disable register 0 TIDR0 R/W 0b00000000 Touch input disable register 1 TIDR1 R/W 0b00000000 R/W : Readable/writable (The read value is the same as the write value.) R, RM/W : Readable/writable (The read value is different from the write value. The write value is read by the read-modify-write (RMW) type of instruction.) Document Number: 002-09305 Rev. *C Page 73 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 14.2.1 Port 0 Port 0 is a general-purpose I/O port. This section focuses on its functions as a general-purpose I/O port. For details of peripheral functions, refer to their respective chapters in “New 8FX MB95850K/860K/870K Series Hardware Manual”. 1. Port 0 configuration Port 0 is made up of the following elements. ❐ General-purpose I/O pins/peripheral function I/O pins ❐ Port 0 data register (PDR0) ❐ Port 0 direction register (DDR0) ❐ Port 0 pull-up register (PUL0) ❐ A/D input disable register (lower) (AIDRL) 2. Block diagrams of port 0 ■ ■ P02/INT02/TO10 pin This pin has the following peripheral functions: ❐ External interrupt input pin (INT02) ❐ 8/16-bit composite timer ch. 1 output pin (TO10) ■ P03/INT03/TO11 pin This pin has the following peripheral functions: ❐ External interrupt input pin (INT03) ❐ 8/16-bit composite timer ch. 1 output pin (TO11) ■ Block diagram of P02/INT02/TO10 and P03/INT03/TO11 Peripheral function input Peripheral function input enable (INT02 and INT03) Peripheral function output enable Peripheral function output Hysteresis Pull-up 0 1 PDR0 read 1 PDR0 0 Pin PDR0 write Internal bus Executing bit manipulation instruction DDR0 read DDR0 DDR0 write Stop mode, watch mode (SPL = 1) PUL0 read PUL0 PUL0 write Document Number: 002-09305 Rev. *C Page 74 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY ■ P04/AN00/BEEP/DIO01 pin This pin has the following peripheral functions: ❐ 8/10-bit A/D converter analog input pin (AN00) ❐ Beep output pin (BEEP) ❐ TS direct output ch. 1 pin (DIO01) ■ P06/AN02/CMP0_O/PPG00 pin This pin has the following peripheral functions: ❐ 8/10-bit A/D converter analog input pin (AN02) ❐ Comparator ch. 0 digital output pin (CMP0_O) ❐ 8/16-bit PPG ch. 0 output pin (PPG00) ■ Block diagram of P04/AN00/BEEP/DIO01 and P06/AN02/CMP0_O/PPG00 Peripheral function output enable Peripheral function output A/D analog input Hysteresis Pull-up 0 1 PDR0 read 1 PDR0 0 Pin PDR0 write Internal bus Executing bit manipulation instruction DDR0 read DDR0 DDR0 write Stop mode, watch mode (SPL = 1) PUL0 read PUL0 PUL0 write AIDRL read AIDRL AIDRL write ■ P05/INT05/AN01/CMP0_N pin This pin has the following peripheral functions: ❐ External interrupt input pin (INT05) ❐ 8/10-bit A/D converter analog input pin (AN01) ❐ Comparator ch. 0 inverting analog input (negative input) pin (CMP0_N) Document Number: 002-09305 Rev. *C Page 75 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY ■ Block diagram of P05/INT05/AN01/CMP0_N Comparator analog input Comparator analog input disable Peripheral function input Peripheral function input enable (INT05) A/D analog input Hysteresis 0 Pull-up 1 PDR0 read PDR0 Pin PDR0 write Internal bus Executing bit manipulation instruction DDR0 read DDR0 DDR0 write Stop mode, watch mode (SPL = 1) PUL0 read PUL0 PUL0 write AIDRL read AIDRL AIDRL write ■ P07/AN03/CMP0_P/PPG01 pin This pin has the following peripheral functions: ❐ 8/10-bit A/D converter analog input pin (AN03) ❐ Comparator ch. 0 non-inverting analog input (positive input) pin (CMP0_P) ❐ 8/16-bit PPG ch. 0 output pin (PPG01) Document Number: 002-09305 Rev. *C Page 76 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY ■ Block diagram of P07/AN03/CMP0_P/PPG01 Comparator analog input Comparator analog input disable Peripheral function output enable Peripheral function output A/D analog input Hysteresis Pull-up 0 1 PDR0 read 1 PDR0 0 Pin PDR0 write Internal bus Executing bit manipulation instruction DDR0 read DDR0 DDR0 write Stop mode, watch mode (SPL = 1) PUL0 read PUL0 PUL0 write AIDRL read AIDRL AIDRL write Document Number: 002-09305 Rev. *C Page 77 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 3. Port 0 registers ■ Port 0 register functions Register abbreviation PDR0 DDR0 PUL0 AIDRL ■ Read Read by read-modify-write (RMW) instruction 0 Pin state is “L” level. PDR0 value is “0”. As output port, outputs “L” level. 1 Pin state is “H” level. PDR0 value is “1”. As output port, outputs “H” level. Data 0 Port input enabled 1 Port output enabled 0 Pull-up disabled 1 Pull-up enabled 0 Analog input enabled 1 Port input enabled Write Correspondence between registers and pins for port 0 Pin name Correspondence between related register bits and pins P07 P06 P05 P04 P03 P02 bit7 bit6 bit5 bit4 bit3 bit2 bit5 bit4 bit1 bit0 - - - - - - PDR0 DDR0 PUL0 AIDRL 4. Port 0 operations ■ Operation as an output port ❐ A pin becomes an output port if the bit in the DDR0 register corresponding to that pin is set to “1”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ When a pin is used as an output port, it outputs the value of the PDR0 register to external pins. ❐ If data is written to the PDR0 register, the value is stored in the output latch and is output to the pin set as an output port as it is. ❐ Reading the PDR0 register returns the PDR0 register value. ■ Operation as an input port ❐ A pin becomes an input port if the bit in the DDR0 register corresponding to that pin is set to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ When using a pin shared with the analog input function as an input port, set the bit in the A/D input disable register (lower) (AIDRL) corresponding to that pin to “1”. ❐ If data is written to the PDR0 register, the value is stored in the output latch but is not output to the pin set as an input port. ❐ Reading the PDR0 register returns the pin value. However, if the read-modify-write (RMW) type of instruction is used to read the PDR0 register, the PDR0 register value is returned. ■ Operation as a peripheral function output pin ❐ A pin becomes a peripheral function output pin if the peripheral output function is enabled by setting the output enable bit of a peripheral function corresponding to that pin. ❐ The pin value can be read from the PDR0 register even if the peripheral function output is enabled. Therefore, the output value of a peripheral function can be read by the read operation on the PDR0 register. However, if the read-modify-write (RMW) type of instruction is used to read the PDR0 register, the PDR0 register value is returned. ■ Operation as a peripheral function input pin ❐ To set a pin as an input port, set the bit in the DDR0 register corresponding to the input pin of a peripheral function to “0”. ❐ When using a pin shared with the analog input function as another peripheral function input pin, configure it as an input port by setting the bit in the AIDRL register corresponding to that pin to “1”. ❐ Reading the PDR0 register returns the pin value, regardless of whether the peripheral function uses that pin as its input pin. However, if the read-modify-write (RMW) type of instruction is used to read the PDR0 register, the PDR0 register value is returned. ■ Operation at reset Document Number: 002-09305 Rev. *C Page 78 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K If the CPU is reset, all bits in the DDR0 register are initialized to “0” and port input is enabled. As for a pin shared with the analog input function, its port input is disabled because the AIDRL register is initialized to “0”. ■ Operation in stop mode and watch mode ❐ If the pin state setting bit in the standby control register (STBC:SPL) is set to “1” and the device transits to stop mode or watch mode, the pin is compulsorily made to enter the high impedance state regardless of the DDR0 register value. The input of that pin is locked to “L” level and blocked in order to prevent leaks due to input open. However, if the interrupt input is enabled for the external interrupt (INT02, INT03 and INT05), the input is enabled and not blocked. ❐ If the pin state setting bit is “0”, the state of the port I/O or that of the peripheral function I/O remains unchanged and the output level is maintained. ■ Operation as an analog input pin ❐ Set the bit in the DDR0 register bit corresponding to the analog input pin to “0” and the bit corresponding to that pin in the AIDRL register to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. In addition, set the corresponding bit in the PUL0 register to “0”. ■ Operation as an external interrupt input pin ❐ Set the bit in the DDR0 register corresponding to the external interrupt input pin to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ The pin value is always input to the external interrupt circuit. When using a pin for a function other than the interrupt, disable the external interrupt function corresponding to that pin. ■ Operation of the pull-up register Setting the bit in the PUL0 register to “1” makes the pull-up resistor be internally connected to the pin. When the pin output is “L” level, the pull-up resistor is disconnected regardless of the value of the PUL0 register. ■ Operation as a comparator input pin ❐ Set the bit in the AIDRL register corresponding to the comparator input pin to “0”. ❐ Regardless of the value of the PDR0 register and that of the DDR0 register, if the comparator analog input enable bit in the comparator control register ch. 0 (CMR0:VCID) is set to “0”, the comparator input function is enabled. ❐ To disable the comparator input function, set the VCID bit to “1”. ❐ For details of the comparator, refer to “CHAPTER 25 COMPARATOR” in “New 8FX MB95850K/860K/870K Series Hardware Manual”. Document Number: 002-09305 Rev. *C Page 79 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 14.2.2 Port 1 Port 1 is a general-purpose I/O port. This section focuses on its functions as a general-purpose I/O port. For details of peripheral functions, refer to their respective chapters in “New 8FX MB95850K/860K/870K Series Hardware Manual”. 1. Port 1 configuration Port 1 is made up of the following elements. ❐ General-purpose I/O pins/peripheral function I/O pins ❐ Port 1 data register (PDR1) ❐ Port 1 direction register (DDR1) ❐ Port 1 pull-up register (PUL1) 2. Block diagrams of port 1 ■ ■ P10/DBG/EC0 pin This pin has the following peripheral functions: ❐ DBG input pin (DBG) ❐ 8/16-bit composite timer ch. 0 clock input pin (EC0) ■ Block diagram of P10/DBG/EC0 Peripheral function input Hysteresis 0 1 PDR1 read Internal bus PDR1 Pin OD PDR1 write Executing bit manipulation instruction DDR1 read DDR1 DDR1 write ■ Stop mode, watch mode (SPL = 1) P13/INT04/UI0/DIO02 pin This pin has the following peripheral functions: ❐ External interrupt input pin (INT04) ❐ UART/SIO ch. 0 data input pin (UI0) ❐ TS direct output ch. 2 pin (DIO02) Document Number: 002-09305 Rev. *C Page 80 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY ■ Block diagram of P13/INT04/UI0/DIO02 Peripheral function input Peripheral function input enable (INT04) Peripheral function output enable Peripheral function output Pull-up 0 1 PDR1 read CMOS 1 PDR1 0 Pin PDR1 write Internal bus Executing bit manipulation instruction DDR1 read DDR1 DDR1 write Stop mode, watch mode (SPL = 1) PUL1 read PUL1 PUL1 write ■ P14/INT01/UO0 pin This pin has the following peripheral functions: ❐ External interrupt input pin (INT01) ❐ UART/SIO ch. 0 data output pin (UO0) ■ P15/INT00/UCK0 pin This pin has the following peripheral functions: ❐ External interrupt input pin (INT00) ❐ UART/SIO ch. 0 clock I/O pin (UCK0) Document Number: 002-09305 Rev. *C Page 81 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY ■ Block diagram of P14/INT01/UO0 and P15/INT00/UCK0 Peripheral function input Peripheral function input enable (INT00 and INT01) Peripheral function output enable Peripheral function output Hysteresis Pull-up 0 1 PDR1 read 1 PDR1 Pin 0 PDR1 write Internal bus Executing bit manipulation instruction DDR1 read DDR1 DDR1 write Stop mode, watch mode (SPL = 1) PUL1 read PUL1 PUL1 write 3. Port 1 registers ■ Port 1 register functions Register abbreviation PDR1 DDR1 PUL1 Read Read by read-modify-write (RMW) instruction 0 Pin state is “L” level. PDR1 value is “0”. As output port, outputs “L” level. 1 Pin state is “H” level. PDR1 value is “1”. As output port, outputs “H” level.* Data 0 Port input enabled 1 Port output enabled 0 Pull-up disabled 1 Pull-up enabled Write *: If the pin is an N-ch open drain pin, the pin state becomes Hi-Z. ■ Correspondence between registers and pins for port 1 Pin name Correspondence between related register bits and pins - - P15 P14 P13 - - P10 - - bit5 bit4 bit3 - - bit0* PDR1 DDR1 PUL1 *: Though P10 has no pull-up function, bit0 in the PUL1 register can still be accessed. The operation of P10 is not affected by the setting of bit0 in the PUL1 register. Document Number: 002-09305 Rev. *C Page 82 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 4. Port 1 operations ■ Operation as an output port ❐ A pin becomes an output port if the bit in the DDR1 register corresponding to that pin is set to “1”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ When a pin is used as an output port, it outputs the value of the PDR1 register to external pins. ❐ If data is written to the PDR1 register, the value is stored in the output latch and is output to the pin set as an output port as it is. ❐ Reading the PDR1 register returns the PDR1 register value. ■ Operation as an input port ❐ A pin becomes an input port if the bit in the DDR1 register corresponding to that pin is set to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ If data is written to the PDR1 register, the value is stored in the output latch but is not output to the pin set as an input port. ❐ Reading the PDR1 register returns the pin value. However, if the read-modify-write (RMW) type of instruction is used to read the PDR1 register, the PDR1 register value is returned. ■ Operation as a peripheral function output pin ❐ A pin becomes a peripheral function output pin if the peripheral output function is enabled by setting the output enable bit of a peripheral function corresponding to that pin. ❐ The pin value can be read from the PDR1 register even if the peripheral function output is enabled. Therefore, the output value of a peripheral function can be read by the read operation on the PDR1 register. However, if the read-modify-write (RMW) type of instruction is used to read the PDR1 register, the PDR1 register value is returned. ■ Operation as a peripheral function input pin ❐ To set a pin as an input port, set the bit in the DDR1 register corresponding to the input pin of a peripheral function to “0”. ❐ Reading the PDR1 register returns the pin value, regardless of whether the peripheral function uses that pin as its input pin. However, if the read-modify-write (RMW) type of instruction is used to read the PDR1 register, the PDR1 register value is returned. ■ Operation at reset If the CPU is reset, all bits in the DDR1 register are initialized to “0” and port input is enabled. ■ Operation in stop mode and watch mode ❐ If the pin state setting bit in the standby control register (STBC:SPL) is set to “1” and the device transits to stop mode or watch mode, the pin is compulsorily made to enter the high impedance state regardless of the DDR1 register value. The input of that pin is locked to “L” level and blocked in order to prevent leaks due to input open. However, if the interrupt input from the external interrupt (INT00, INT01 and INT04) is enabled, or if the interrupt input of P10/DBG/EC0 is enabled by the external interrupt control register ch. 0 (EIC00) of the external interrupt circuit and the interrupt pin selection circuit control register (WICR) of the interrupt pin selection circuit, the input is enabled and is not blocked. ❐ If the pin state setting bit is “0”, the state of the port I/O or that of the peripheral function I/O remains unchanged and the output level is maintained. ■ Operation as an external interrupt input pin ❐ Set the bit in the DDR1 register corresponding to the external interrupt input pin to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ The pin value is always input to the external interrupt circuit. When using a pin for a function other than the interrupt, disable the external interrupt function corresponding to that pin. ■ Operation of the pull-up register Setting the bit in the PUL1 register to “1” makes the pull-up resistor be internally connected to the pin. When the pin output is “L” level, the pull-up resistor is disconnected regardless of the value of the PUL1 register. Document Number: 002-09305 Rev. *C Page 83 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 14.2.3 Port 4 Port 4 is a general-purpose I/O port. This section focuses on its functions as a general-purpose I/O port. For details of peripheral functions, refer to their respective chapters in “New 8FX MB95850K/860K/870K Series Hardware Manual”. 1. Port 4 configuration Port 4 is made up of the following elements. ❐ General-purpose I/O pins/peripheral function I/O pins ❐ Port 4 data register (PDR4) ❐ Port 4 direction register (DDR4) ❐ Port 4 pull-up register (PUL4) ❐ A/D input disable register (lower) (AIDRL) 2. Block diagrams of port 4 ■ ■ P44/AN06/TO00/DIO03/PPG10 pin This pin has the following peripheral functions: ❐ 8/10-bit A/D converter analog input pin (AN06) ❐ 8/16-bit composite timer ch. 0 output pin (TO00) ❐ TS direct output ch. 3 pin (DIO03) ❐ 8/16-bit PPG ch. 1 output pin (PPG10) ■ P45/AN07/TO01/DIO04/PPG11 pin This pin has the following peripheral functions: ❐ 8/10-bit A/D converter analog input pin (AN07) ❐ 8/16-bit composite timer ch. 0 output pin (TO01) ❐ TS direct output ch. 4 pin (DIO04) ❐ 8/16-bit PPG ch. 1 output pin (PPG11) ■ Block diagram of P44/AN06/TO00/DIO03/PPG10 and P45/AN07/TO01/DIO04/PPG11 Peripheral function output enable Peripheral function output A/D analog input Hysteresis Pull-up 0 1 PDR4 read 1 PDR4 0 Pin PDR4 write Internal bus Executing bit manipulation instruction DDR4 read DDR4 DDR4 write Stop mode, watch mode (SPL = 1) PUL4 read PUL4 PUL4 write AIDRL read AIDRL AIDRL write Document Number: 002-09305 Rev. *C Page 84 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY ■ P46/INT06/SDA pin This pin has the following peripheral functions: ❐ External interrupt input pin (INT06) 2 ❐ I C bus interface ch. 0 data I/O pin (SDA) ■ P47/INT07/SCL pin This pin has the following peripheral functions: ❐ External interrupt input pin (INT07) 2 ❐ I C bus interface ch. 0 clock I/O pin (SCL) ■ Block diagram of P46/INT06/SDA and P47/INT07/SCL Peripheral function input Peripheral function input enable (INT06 and INT07) Peripheral function output enable Peripheral function output CMOS 0 1 PDR4 read Internal bus Pin 1 PDR4 OD 0 PDR4 write Executing bit manipulation instruction DDR4 read DDR4 DDR4 write Stop mode, watch mode (SPL = 1) 3. Port 4 registers ■ Port 4 register functions Register abbreviation PDR4 DDR4 PUL4 AIDRL Data Read Read by read-modify-write (RMW) instruction Write 0 Pin state is “L” level. PDR4 value is “0”. As output port, outputs “L” level. 1 Pin state is “H” level. PDR4 value is “1”. As output port, outputs “H” level.* 0 Port input enabled 1 Port output enabled 0 Pull-up disabled 1 Pull-up enabled 0 Analog input enabled 1 Port input enabled *: If the pin is an N-ch open drain pin, the pin state becomes Hi-Z. ■ Correspondence between registers and pins for port 4 Pin name PDR4 DDR4 PUL4 AIDRL Correspondence between related register bits and pins P47 P46 bit7 bit6 - - Document Number: 002-09305 Rev. *C P45 P44 bit5 bit4 bit7 bit6 - - - - - - - - Page 85 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 4. Port 4 operations ■ Operation as an output port ❐ A pin becomes an output port if the bit in the DDR4 register corresponding to that pin is set to “1”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ When a pin is used as an output port, it outputs the value of the PDR4 register to external pins. ❐ If data is written to the PDR4 register, the value is stored in the output latch and is output to the pin set as an output port as it is. ❐ Reading the PDR4 register returns the PDR4 register value. ■ Operation as an input port ❐ A pin becomes an input port if the bit in the DDR4 register corresponding to that pin is set to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ When using a pin shared with the analog input function as an input port, set the bit in the A/D input disable register (lower) (AIDRL) corresponding to that pin to “1”. ❐ If data is written to the PDR4 register, the value is stored in the output latch but is not output to the pin set as an input port. ❐ Reading the PDR4 register returns the pin value. However, if the read-modify-write (RMW) type of instruction is used to read the PDR4 register, the PDR4 register value is returned. ■ Operation as a peripheral function output pin ❐ A pin becomes a peripheral function output pin if the peripheral output function is enabled by setting the output enable bit of a peripheral function corresponding to that pin. ❐ The pin value can be read from the PDR4 register even if the peripheral function output is enabled. Therefore, the output value of a peripheral function can be read by the read operation on the PDR4 register. However, if the read-modify-write (RMW) type of instruction is used to read the PDR4 register, the PDR4 register value is returned. ■ Operation as a peripheral function input pin ❐ To set a pin as an input port, set the bit in the DDR4 register corresponding to the input pin of a peripheral function to “0”. ❐ When using a pin shared with the analog input function as another peripheral function input pin, configure it as an input port by setting the bit in the AIDRL register corresponding to that pin to “1”. ❐ Reading the PDR4 register returns the pin value, regardless of whether the peripheral function uses that pin as its input pin. However, if the read-modify-write (RMW) type of instruction is used to read the PDR4 register, the PDR4 register value is returned. ■ Operation at reset If the CPU is reset, all bits in the DDR4 register are initialized to “0” and port input is enabled. As for a pin shared with the analog input function, its port input is disabled because the AIDRL register is initialized to “0”. ■ Operation in stop mode and watch mode ❐ If the pin state setting bit in the standby control register (STBC:SPL) is set to “1” and the device transits to stop mode or watch mode, the pin is compulsorily made to enter the high impedance state regardless of the DDR4 register value. The input of that pin is locked to “L” level and blocked in order to prevent leaks due to input open. However, if the interrupt input is enabled for the external interrupt (INT06 and INT07), the input is enabled and not blocked. ❐ If the pin state setting bit is “0”, the state of the port I/O or that of the peripheral function I/O remains unchanged and the output level is maintained. ■ Operation as an analog input pin ❐ Set the bit in the DDR4 register bit corresponding to the analog input pin to “0” and the bit corresponding to that pin in the AIDRL register to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. In addition, set the corresponding bit in the PUL4 register to “0”. ■ Operation as an external interrupt input pin ❐ Set the bit in the DDR4 register corresponding to the external interrupt input pin to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ The pin value is always input to the external interrupt circuit. When using a pin for a function other than the interrupt, disable the external interrupt function corresponding to that pin. ■ Operation of the pull-up register Setting the bit in the PUL4 register to “1” makes the pull-up resistor be internally connected to the pin. When the pin output is “L” level, the pull-up resistor is disconnected regardless of the value of the PUL4 register. Document Number: 002-09305 Rev. *C Page 86 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 14.2.4 Port 6 Port 6 is a general-purpose I/O port. This section focuses on its functions as a general-purpose I/O port. For details of peripheral functions, refer to their respective chapters in “New 8FX MB95850K/860K/870K Series Hardware Manual”. 1. Port 6 configuration Port 6 is made up of the following elements. ❐ General-purpose I/O pins/peripheral function I/O pins ❐ Port 6 data register (PDR6) ❐ Port 6 direction register (DDR6) ❐ Port 6 pull-up register (PUL6) ❐ Touch input disable register 0 (TIDR0) 2. Block diagrams of port 6 ■ ■ P60/EC1/DIO00 pin This pin has the following peripheral functions: ❐ 8/16-bit composite timer ch. 1 clock input pin (EC1) ❐ TS direct output ch. 0 pin (DIO00) ■ Block diagram of P60/EC1/DIO00 Peripheral function input Peripheral function input enable Peripheral function output enable Peripheral function output Hysteresis Pull-up 0 1 PDR6 read 1 PDR6 0 Pin PDR6 write Internal bus Executing bit manipulation instruction DDR6 read DDR6 DDR6 write Stop mode, watch mode (SPL = 1) PUL6 read PUL6 PUL6 write ■ P63/AREF pin This pin has the following peripheral function: ❐ TS reference input pin (AREF) ■ P64/S00 pin This pin has the following peripheral function: ❐ TS touch ch. 0 input pin (S00) ■ P65/S01 pin This pin has the following peripheral function: ❐ TS touch ch. 1 input pin (S01) ■ P66/S02 pin This pin has the following peripheral function: ❐ TS touch ch. 2 input pin (S02) Document Number: 002-09305 Rev. *C Page 87 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY ■ P67/S03 pin This pin has the following peripheral function: ❐ TS touch ch. 3 input pin (S03) ■ Block diagram of P63/AREF, P64/S00, P65/S01, P66/S02 and P67/S03 Touch input Hysteresis 0 Pull-up 1 PDR6 read Pin PDR6 PDR6 write Executing bit manipulation instruction Internal bus DDR6 read DDR6 DDR6 write Stop mode, watch mode (SPL = 1) PUL6 read PUL6 PUL6 write TIDR0 read TIDR0 TIDR0 write 3. Port 6 registers ■ Port 6 register functions Register abbreviation PDR6 DDR6 PUL6 TIDR0 ■ Data Read Read by read-modify-write (RMW) instruction Write 0 Pin state is “L” level. PDR6 value is “0”. As output port, outputs “L” level. 1 Pin state is “H” level. PDR6 value is “1”. As output port, outputs “H” level. 0 Port input enabled 1 Port output enabled 0 Pull-up disabled 1 Pull-up enabled 0 Touch input or reference input enabled 1 Port input enabled Correspondence between registers and pins for port 6 Pin name Correspondence between related register bits and pins P67 P66 P65 P64 P63 bit7 bit6 bit5 bit4 bit3 bit7 bit6 bit5 bit4 bit3 - - - - P60 PDR6 DDR6 PUL6 TIDR0 Document Number: 002-09305 Rev. *C bit0 - Page 88 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 4. Port 6 operations ■ Operation as an output port ❐ A pin becomes an output port if the bit in the DDR6 register corresponding to that pin is set to “1”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ When a pin is used as an output port, it outputs the value of the PDR6 register to external pins. ❐ If data is written to the PDR6 register, the value is stored in the output latch and is output to the pin set as an output port as it is. ❐ Reading the PDR6 register returns the PDR6 register value. ■ Operation as an input port ❐ A pin becomes an input port if the bit in the DDR6 register corresponding to that pin is set to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ When using a pin shared with the touch input function as an input port, set the bit in the touch input disable register 0 (TIDR0) corresponding to that pin to “1”. ❐ If data is written to the PDR6 register, the value is stored in the output latch but is not output to the pin set as an input port. ❐ Reading the PDR6 register returns the pin value. However, if the read-modify-write (RMW) type of instruction is used to read the PDR6 register, the PDR6 register value is returned. ■ Operation as a peripheral function output pin ❐ A pin becomes a peripheral function output pin if the peripheral output function is enabled by setting the output enable bit of a peripheral function corresponding to that pin. ❐ The pin value can be read from the PDR6 register even if the peripheral function output is enabled. Therefore, the output value of a peripheral function can be read by the read operation on the PDR6 register. However, if the read-modify-write (RMW) type of instruction is used to read the PDR6 register, the PDR6 register value is returned. ■ Operation as a peripheral function input pin ❐ To set a pin as an input port, set the bit in the DDR6 register corresponding to the input pin of a peripheral function to “0”. ❐ Reading the PDR6 register returns the pin value, regardless of whether the peripheral function uses that pin as its input pin. However, if the read-modify-write (RMW) type of instruction is used to read the PDR6 register, the PDR6 register value is returned. ■ Operation at reset ■ Operation in stop mode and watch mode ❐ If the pin state setting bit in the standby control register (STBC:SPL) is set to “1” and the device transits to stop mode or watch mode, the pin is compulsorily made to enter the high impedance state regardless of the DDR6 register value. The input of that pin is locked to “L” level and blocked in order to prevent leaks due to input open. However, if the interrupt input of P60/EC1/DIO00 is enabled by the external interrupt control register ch. 0 (EIC00) of the external interrupt circuit and the interrupt pin selection circuit control register (WICR) of the interrupt pin selection circuit, the input is enabled and is not blocked. ❐ When the stop enable bit in the TS prescaler control register (PSC:STPE) is set to “1”, the TS can operate in stop mode or watch mode, the touch input is enabled and is not blocked. The TS wakes up in stop mode or watch mode provided that the TINT (touch interrupt) and the GINT (general interrupt) are set to enable the TS to wake up in stop mode or watch mode. ❐ If the pin state setting bit is “0”, the state of the port I/O or that of the peripheral function I/O remains unchanged and the output level is maintained. ■ Operation as a touch input pin If the CPU is reset, all bits in the DDR6 register are initialized to “0” and port input is enabled. As for a pin shared with the touch input function, its port input is disabled because the TIDR0 register is initialized to “0”. Set the bit in the DDR6 register corresponding to the touch input pin to “0”, the bit in the TIDR0 register corresponding to the same pin to “0”, and the bit in the PUL6 register corresponding to the same pin to “0”. ■ Operation of the pull-up register Setting the bit in the PUL6 register to “1” makes the pull-up resistor be internally connected to the pin. When the pin output is “L” level, the pull-up resistor is disconnected regardless of the value of the PUL6 register. Document Number: 002-09305 Rev. *C Page 89 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 14.2.5 Port 7 Port 7 is a general-purpose I/O port. This section focuses on its functions as a general-purpose I/O port. For details of peripheral functions, refer to their respective chapters in “New 8FX MB95850K/860K/870K Series Hardware Manual”. 1. Port 7 configuration Port 7 is made up of the following elements. ❐ General-purpose I/O pins/peripheral function I/O pins ❐ Port 7 data register (PDR7) ❐ Port 7 direction register (DDR7) ❐ Port 7 pull-up register (PUL7) ❐ Touch input disable register 1 (TIDR1) 2. Block diagrams of port 7 ■ ■ P70/S04 pin This pin has the following peripheral function: ❐ TS touch ch. 4 input pin (S04) ■ P71/S05 pin This pin has the following peripheral function: ❐ TS touch ch. 5 input pin (S05) ■ P72/S06 pin This pin has the following peripheral function: ❐ TS touch ch. 6 input pin (S06) ■ P73/S07 pin This pin has the following peripheral function: ❐ TS touch ch. 7 input pin (S07) ■ Block diagram of P70/S04, P71/S05, P72/S06 and P73/S07 Touch input Hysteresis 0 Pull-up 1 PDR7 read PDR7 Pin PDR7 write Internal bus Executing bit manipulation instruction DDR7 read DDR7 DDR7 write Stop mode, watch mode (SPL = 1) PUL7 read PUL7 PUL7 write TIDR1 read TIDR1 TIDR1 write Document Number: 002-09305 Rev. *C Page 90 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 3. Port 7 registers ■ Port 7 register functions Register abbreviation PDR7 DDR7 PUL7 TIDR1 ■ Read Read by read-modify-write (RMW) instruction 0 Pin state is “L” level. PDR7 value is “0”. As output port, outputs “L” level. 1 Pin state is “H” level. PDR7 value is “1”. As output port, outputs “H” level. Data 0 Port input enabled 1 Port output enabled 0 Pull-up disabled 1 Pull-up enabled 0 Touch input enabled 1 Port input enabled Write Correspondence between registers and pins for port 7 Pin name Correspondence between related register bits and pins - - - - P73 P72 P71 P70 - - - - bit3 bit2 bit1 bit0 PDR7 DDR7 PUL7 TIDR1 Document Number: 002-09305 Rev. *C Page 91 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 4. Port 7 operations ■ Operation as an output port ❐ A pin becomes an output port if the bit in the DDR7 register corresponding to that pin is set to “1”. ❐ When a pin is used as an output port, it outputs the value of the PDR7 register to external pins. ❐ If data is written to the PDR7 register, the value is stored in the output latch and is output to the pin set as an output port as it is. ❐ Reading the PDR7 register returns the PDR7 register value. ■ Operation as an input port ❐ A pin becomes an input port if the bit in the DDR7 register corresponding to that pin is set to “0”. ❐ When using a pin shared with the touch input function as an input port, set the bit in the touch input disable register 1 (TIDR1) corresponding to that pin to “1”. ❐ If data is written to the PDR7 register, the value is stored in the output latch but is not output to the pin set as an input port. ❐ Reading the PDR7 register returns the pin value. However, if the read-modify-write (RMW) type of instruction is used to read the PDR7 register, the PDR7 register value is returned. ■ Operation at reset If the CPU is reset, all bits in the DDR7 register are initialized to “0” and port input is enabled. As for a pin shared with the touch input function, its port input is disabled because the TIDR1 register is initialized to “0”. ■ Operation in stop mode and watch mode ❐ If the pin state setting bit in the standby control register (STBC:SPL) is set to “1” and the device transits to stop mode or watch mode, the pin is compulsorily made to enter the high impedance state regardless of the DDR7 register value. The input of that pin is locked to “L” level and blocked in order to prevent leaks due to input open. ❐ When the stop enable bit in the TS prescaler control register (PSC:STPE) is set to “1”, the TS can operate in stop mode or watch mode, the touch input is enabled and is not blocked. The TS wakes up in stop mode or watch mode provided that the TINT (touch interrupt) and the GINT (general interrupt) are set to enable the TS to wake up in stop mode or watch mode. ❐ If the pin state setting bit is “0”, the state of the port I/O or that of the peripheral function I/O remains unchanged and the output level is maintained. ■ Operation as a touch input pin Set the bit in the DDR7 register corresponding to the touch input pin to “0”, the bit in the TIDR1 register corresponding to the same pin to “0”, and the bit in the PUL7 register corresponding to the same pin to “0”. ■ Operation of the pull-up register Setting the bit in the PUL7 register to “1” makes the pull-up resistor be internally connected to the pin. When the pin output is “L” level, the pull-up resistor is disconnected regardless of the value of the PUL7 register. Document Number: 002-09305 Rev. *C Page 92 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 14.2.6 Port F Port F is a general-purpose I/O port. This section focuses on its functions as a general-purpose I/O port. For details of peripheral functions, refer to their respective chapters in “New 8FX MB95850K/860K/870K Series Hardware Manual”. 1. Port F configuration Port F is made up of the following elements. ❐ General-purpose I/O pins/peripheral function I/O pins ❐ Port F data register (PDRF) ❐ Port F direction register (DDRF) 2. Block diagrams of port F ■ ■ PF0/X0 pin This pin has the following peripheral function: ❐ Main clock input oscillation pin (X0) ■ PF1/X1 pin This pin has the following peripheral function: ❐ Main clock I/O oscillation pin (X1) ■ Block diagram of PF0/X0 and PF1/X1 Hysteresis 0 1 PDRF read Internal bus PDRF Pin PDRF write Executing bit manipulation instruction DDRF read DDRF DDRF write ■ Stop mode, watch mode (SPL = 1) PF2/RST pin This pin has the following peripheral function: ❐ Reset pin (RST) Document Number: 002-09305 Rev. *C Page 93 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY ■ Block diagram of PF2/RST Reset input Reset input enable Reset output enable Reset output Hysteresis 0 1 PDRF read PDRF Internal bus Pin 1 OD 0 PDRF write Executing bit manipulation instruction DDRF read DDRF DDRF write Stop mode, watch mode (SPL = 1) 3. Port F registers ■ Port F register functions Register abbreviation PDRF DDRF Read Read by read-modify-write (RMW) instruction 0 Pin state is “L” level. PDRF value is “0”. As output port, outputs “L” level. 1 Pin state is “H” level. PDRF value is “1”. As output port, outputs “H” level.* Data 0 Port input enabled 1 Port output enabled Write *: If the pin is an N-ch open drain pin, the pin state becomes Hi-Z. ■ Correspondence between registers and pins for port F Pin name PDRF DDRF Correspondence between related register bits and pins - - - - - PF2 PF1 PF0 - - - - - bit2 bit1 bit0 Document Number: 002-09305 Rev. *C Page 94 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 4. Port F operations ■ Operation as an output port ❐ A pin becomes an output port if the bit in the DDRF register corresponding to that pin is set to “1”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ When a pin is used as an output port, it outputs the value of the PDRF register to external pins. ❐ If data is written to the PDRF register, the value is stored in the output latch and is output to the pin set as an output port as it is. ❐ Reading the PDRF register returns the PDRF register value. ■ Operation as an input port ❐ A pin becomes an input port if the bit in the DDRF register corresponding to that pin is set to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ If data is written to the PDRF register, the value is stored in the output latch but is not output to the pin set as an input port. ❐ Reading the PDRF register returns the pin value. However, if the read-modify-write (RMW) type of instruction is used to read the PDRF register, the PDRF register value is returned. ■ Operation at reset If the CPU is reset, all bits in the DDRF register are initialized to “0” and port input is enabled. ■ Operation in stop mode and watch mode ❐ If the pin state setting bit in the standby control register (STBC:SPL) is set to “1” and the device transits to stop mode or watch mode, the pin is compulsorily made to enter the high impedance state regardless of the DDRF register value. The input of that pin is locked to “L” level and blocked in order to prevent leaks due to input open. ❐ If the pin state setting bit is “0”, the state of the port I/O or that of the peripheral function I/O remains unchanged and the output level is maintained. Document Number: 002-09305 Rev. *C Page 95 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 14.2.7 Port G Port G is a general-purpose I/O port. This section focuses on its functions as a general-purpose I/O port. For details of peripheral functions, refer to their respective chapters in “New 8FX MB95850K/860K/870K Series Hardware Manual”. 1. Port G configuration Port G is made up of the following elements. ❐ General-purpose I/O pins/peripheral function I/O pins ❐ Port G data register (PDRG) ❐ Port G direction register (DDRG) ❐ Port G pull-up register (PULG) 2. Block diagram of port G ■ ■ PG1/X0A/DIO04 pin This pin has the following peripheral functions: ❐ Subclock input oscillation pin (X0A) ❐ TS direct output ch. 4 pin (DIO04) ■ PG2/X1A/DIO03 pin This pin has the following peripheral functions: ❐ Subclock I/O oscillation pin (X1A) ❐ TS direct output ch. 3 pin (DIO03) ■ Block diagram of PG1/X0A/DIO04 and PG2/X1A/DIO03 Peripheral function output enable Peripheral function output Hysteresis Pull-up 0 1 PDRG read 1 PDRG 0 Pin PDRG write Internal bus Executing bit manipulation instruction DDRG read DDRG DDRG write Stop mode, watch mode (SPL = 1) PULG read PULG PULG write Document Number: 002-09305 Rev. *C Page 96 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 3. Port G registers ■ Port G register functions Register abbreviation Data Read Read by read-modify-write (RMW) instruction Write 0 Pin state is “L” level. PDRG value is “0”. As output port, outputs “L” level. 1 Pin state is “H” level. PDRG value is “1”. As output port, outputs “H” level. PDRG DDRG PULG ■ 0 Port input enabled 1 Port output enabled 0 Pull-up disabled 1 Pull-up enabled Correspondence between registers and pins for port G Pin name Correspondence between related register bits and pins - - - - - PG2 PG1 - - - - - - bit2 bit1 - PDRG DDRG PULG 4. Port G operations ■ Operation as an output port ❐ A pin becomes an output port if the bit in the DDRG register corresponding to that pin is set to “1”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ When a pin is used as an output port, it outputs the value of the PDRG register to external pins. ❐ If data is written to the PDRG register, the value is stored in the output latch and is output to the pin set as an output port as it is. ❐ Reading the PDRG register returns the PDRG register value. ■ Operation as an input port ❐ A pin becomes an input port if the bit in the DDRG register corresponding to that pin is set to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ If data is written to the PDRG register, the value is stored in the output latch but is not output to the pin set as an input port. ❐ Reading the PDRG register returns the pin value. However, if the read-modify-write (RMW) type of instruction is used to read the PDRG register, the PDRG register value is returned. ■ Operation as a peripheral function output pin ❐ A pin becomes a peripheral function output pin if the peripheral output function is enabled by setting the output enable bit of a peripheral function corresponding to that pin. ❐ The pin value can be read from the PDRG register even if the peripheral function output is enabled. Therefore, the output value of a peripheral function can be read by the read operation on the PDRG register. However, if the read-modify-write (RMW) type of instruction is used to read the PDRG register, the PDRG register value is returned. ■ Operation at reset If the CPU is reset, all bits in the DDRG register are initialized to “0” and port input is enabled. ■ Operation in stop mode and watch mode ❐ If the pin state setting bit in the standby control register (STBC:SPL) is set to “1” and the device transits to stop mode or watch mode, the pin is compulsorily made to enter the high impedance state regardless of the DDRG register value. The input of that pin is locked to “L” level and blocked in order to prevent leaks due to input open. ❐ If the pin state setting bit is “0”, the state of the port I/O or that of the peripheral function I/O remains unchanged and the output level is maintained. ■ Operation of the pull-up register Setting the bit in the PULG register to “1” makes the pull-up resistor be internally connected to the pin. When the pin output is “L” level, the pull-up resistor is disconnected regardless of the value of the PULG register. Document Number: 002-09305 Rev. *C Page 97 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 14.3 MB95870K Series ■ List of port registers Read/Write Initial value Port 0 data register Register name PDR0 R, RM/W 0b00000000 Port 0 direction register DDR0 R/W 0b00000000 Port 1 data register PDR1 R, RM/W 0b00000000 Port 1 direction register DDR1 R/W 0b00000000 Port 4 data register PDR4 R, RM/W 0b00000000 Port 4 direction register DDR4 R/W 0b00000000 Port 6 data register PDR6 R, RM/W 0b00000000 Port 6 direction register DDR6 R/W 0b00000000 Port 7 data register PDR7 R, RM/W 0b00000000 Port 7 direction register DDR7 R/W 0b00000000 Port F data register PDRF R, RM/W 0b00000000 Port F direction register DDRF R/W 0b00000000 Port G data register PDRG R, RM/W 0b00000000 Port G direction register DDRG R/W 0b00000000 Port 0 pull-up register PUL0 R/W 0b00000000 Port 1 pull-up register PUL1 R/W 0b00000000 Port 4 pull-up register PUL4 R/W 0b00000000 Port 6 pull-up register PUL6 R/W 0b00000000 Port 7 pull-up register PUL7 R/W 0b00000000 Port G pull-up register PULG R/W 0b00000000 A/D input disable register (lower) AIDRL R/W 0b00000000 Touch input disable register 0 TIDR0 R/W 0b00000000 Touch input disable register 1 TIDR1 R/W 0b00000000 R/W : Readable/writable (The read value is the same as the write value.) R, RM/W : Readable/writable (The read value is different from the write value. The write value is read by the read-modify-write (RMW) type of instruction.) Document Number: 002-09305 Rev. *C Page 98 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 14.3.1 Port 0 Port 0 is a general-purpose I/O port. This section focuses on its functions as a general-purpose I/O port. For details of peripheral functions, refer to their respective chapters in “New 8FX MB95850K/860K/870K Series Hardware Manual”. 1. Port 0 configuration Port 0 is made up of the following elements. ❐ General-purpose I/O pins/peripheral function I/O pins ❐ Port 0 data register (PDR0) ❐ Port 0 direction register (DDR0) ❐ Port 0 pull-up register (PUL0) ❐ A/D input disable register (lower) (AIDRL) 2. Block diagrams of port 0 ■ ■ P00/INT00 pin This pin has the following peripheral function: ❐ External interrupt input pin (INT00) ■ P01/INT01 pin This pin has the following peripheral function: ❐ External interrupt input pin (INT01) ■ P02/INT02 pin This pin has the following peripheral function: ❐ External interrupt input pin (INT02) ■ P03/INT03 pin This pin has the following peripheral function: ❐ External interrupt input pin (INT03) ■ Block diagram of P00/INT00, P01/INT01, P02/INT02 and P03/INT03 Peripheral function input Peripheral function input enable (INT00 to INT03) Hysteresis 0 Pull-up 1 PDR0 read PDR0 Pin PDR0 write Internal bus Executing bit manipulation instruction DDR0 read DDR0 DDR0 write Stop mode, watch mode (SPL = 1) PUL0 read PUL0 PUL0 write Document Number: 002-09305 Rev. *C Page 99 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY ■ P04/INT04/AN00 pin This pin has the following peripheral functions: ❐ External interrupt input pin (INT04) ❐ 8/10-bit A/D converter analog input pin (AN00) ■ Block diagram of P04/INT04/AN00 Peripheral function input Peripheral function input enable (INT04) A/D analog input Hysteresis 0 Pull-up 1 PDR0 read PDR0 Pin PDR0 write Internal bus Executing bit manipulation instruction DDR0 read DDR0 DDR0 write Stop mode, watch mode (SPL = 1) PUL0 read PUL0 PUL0 write AIDRL read AIDRL AIDRL write Document Number: 002-09305 Rev. *C Page 100 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY ■ P05/INT05/AN01/CMP0_N pin This pin has the following peripheral functions: ❐ External interrupt input pin (INT05) ❐ 8/10-bit A/D converter analog input pin (AN01) ❐ Comparator ch. 0 inverting analog input (negative input) pin (CMP0_N) ■ Block diagram of P05/INT05/AN01/CMP0_N Comparator analog input Comparator analog input disable Peripheral function input Peripheral function input enable (INT05) A/D analog input Hysteresis 0 Pull-up 1 PDR0 read PDR0 Pin PDR0 write Internal bus Executing bit manipulation instruction DDR0 read DDR0 DDR0 write Stop mode, watch mode (SPL = 1) PUL0 read PUL0 PUL0 write AIDRL read AIDRL AIDRL write ■ P06/AN02/CMP0_O pin This pin has the following peripheral functions: ❐ 8/10-bit A/D converter analog input pin (AN02) ❐ Comparator ch. 0 digital output pin (CMP0_O) Document Number: 002-09305 Rev. *C Page 101 of 172 PRELIMINARY ■ MB95F856K, MB95F866K, MB95F876K Block diagram of P06/AN02/CMP0_O Peripheral function output enable Peripheral function output A/D analog input Hysteresis Pull-up 0 1 PDR0 read 1 PDR0 Pin 0 PDR0 write Internal bus Executing bit manipulation instruction DDR0 read DDR0 DDR0 write Stop mode, watch mode (SPL = 1) PUL0 read PUL0 PUL0 write AIDRL read AIDRL AIDRL write ■ P07/AN03/CMP0_P pin This pin has the following peripheral functions: ❐ 8/10-bit A/D converter analog input pin (AN03) ❐ Comparator ch. 0 non-inverting analog input (positive input) pin (CMP0_P) ■ Block diagram of P07/AN03/CMP0_P Comparator analog input Comparator analog input disable A/D analog input Hysteresis 0 Pull-up 1 PDR0 read PDR0 Pin PDR0 write Internal bus Executing bit manipulation instruction DDR0 read DDR0 DDR0 write Stop mode, watch mode (SPL = 1) PUL0 read PUL0 PUL0 write AIDRL read AIDRL AIDRL write Document Number: 002-09305 Rev. *C Page 102 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 3. Port 0 registers ■ Port 0 register functions Register abbreviation PDR0 DDR0 PUL0 AIDRL ■ Read Read by read-modify-write (RMW) instruction 0 Pin state is “L” level. PDR0 value is “0”. As output port, outputs “L” level. 1 Pin state is “H” level. PDR0 value is “1”. As output port, outputs “H” level. Data 0 Port input enabled 1 Port output enabled 0 Pull-up disabled 1 Pull-up enabled 0 Analog input enabled 1 Port input enabled Write Correspondence between registers and pins for port 0 Pin name Correspondence between related register bits and pins P07 P06 P05 P04 P03 P02 P01 P00 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 bit5 bit4 bit1 bit0 - - - - PDR0 DDR0 PUL0 AIDRL 4. Port 0 operations ■ Operation as an output port ❐ A pin becomes an output port if the bit in the DDR0 register corresponding to that pin is set to “1”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ When a pin is used as an output port, it outputs the value of the PDR0 register to external pins. ❐ If data is written to the PDR0 register, the value is stored in the output latch and is output to the pin set as an output port as it is. ❐ Reading the PDR0 register returns the PDR0 register value. ■ Operation as an input port ❐ A pin becomes an input port if the bit in the DDR0 register corresponding to that pin is set to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ When using a pin shared with the analog input function as an input port, set the bit in the A/D input disable register (lower) (AIDRL) corresponding to that pin to “1”. ❐ If data is written to the PDR0 register, the value is stored in the output latch but is not output to the pin set as an input port. ❐ Reading the PDR0 register returns the pin value. However, if the read-modify-write (RMW) type of instruction is used to read the PDR0 register, the PDR0 register value is returned. ■ Operation as a peripheral function output pin ❐ A pin becomes a peripheral function output pin if the peripheral output function is enabled by setting the output enable bit of a peripheral function corresponding to that pin. ❐ The pin value can be read from the PDR0 register even if the peripheral function output is enabled. Therefore, the output value of a peripheral function can be read by the read operation on the PDR0 register. However, if the read-modify-write (RMW) type of instruction is used to read the PDR0 register, the PDR0 register value is returned. ■ Operation as a peripheral function input pin ❐ To set a pin as an input port, set the bit in the DDR0 register corresponding to the input pin of a peripheral function to “0”. ❐ When using a pin shared with the analog input function as another peripheral function input pin, configure it as an input port by setting the bit in the AIDRL register corresponding to that pin to “1”. ❐ Reading the PDR0 register returns the pin value, regardless of whether the peripheral function uses that pin as its input pin. However, if the read-modify-write (RMW) type of instruction is used to read the PDR0 register, the PDR0 register value is returned. ■ Operation at reset Document Number: 002-09305 Rev. *C Page 103 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K If the CPU is reset, all bits in the DDR0 register are initialized to “0” and port input is enabled. As for a pin shared with the analog input function, its port input is disabled because the AIDRL register is initialized to “0”. ■ Operation in stop mode and watch mode ❐ If the pin state setting bit in the standby control register (STBC:SPL) is set to “1” and the device transits to stop mode or watch mode, the pin is compulsorily made to enter the high impedance state regardless of the DDR0 register value. The input of that pin is locked to “L” level and blocked in order to prevent leaks due to input open. However, if the interrupt input is enabled for the external interrupt (INT00 to INT05), the input is enabled and not blocked. ❐ If the pin state setting bit is “0”, the state of the port I/O or that of the peripheral function I/O remains unchanged and the output level is maintained. ■ Operation as an analog input pin ❐ Set the bit in the DDR0 register bit corresponding to the analog input pin to “0” and the bit corresponding to that pin in the AIDRL register to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. In addition, set the corresponding bit in the PUL0 register to “0”. ■ Operation as an external interrupt input pin ❐ Set the bit in the DDR0 register corresponding to the external interrupt input pin to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ The pin value is always input to the external interrupt circuit. When using a pin for a function other than the interrupt, disable the external interrupt function corresponding to that pin. ■ Operation of the pull-up register Setting the bit in the PUL0 register to “1” makes the pull-up resistor be internally connected to the pin. When the pin output is “L” level, the pull-up resistor is disconnected regardless of the value of the PUL0 register. ■ Operation as a comparator input pin ❐ Set the bit in the AIDRL register corresponding to the comparator input pin to “0”. ❐ Regardless of the value of the PDR0 register and that of the DDR0 register, if the comparator analog input enable bit in the comparator control register ch. 0 (CMR0:VCID) is set to “0”, the comparator input function is enabled. ❐ To disable the comparator input function, set the VCID bit to “1”. ❐ For details of the comparator, refer to “CHAPTER 25 COMPARATOR” in “New 8FX MB95850K/860K/870K Series Hardware Manual”. Document Number: 002-09305 Rev. *C Page 104 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 14.3.2 Port 1 Port 1 is a general-purpose I/O port. This section focuses on its functions as a general-purpose I/O port. For details of peripheral functions, refer to their respective chapters in “New 8FX MB95850K/860K/870K Series Hardware Manual”. 1. Port 1 configuration Port 1 is made up of the following elements. ❐ General-purpose I/O pins/peripheral function I/O pins ❐ Port 1 data register (PDR1) ❐ Port 1 direction register (DDR1) ❐ Port 1 pull-up register (PUL1) 2. Block diagrams of port 1 ■ ■ P10/DBG pin This pin has the following peripheral function: ❐ DBG input pin (DBG) ■ Block diagram of P10/DBG Hysteresis 0 1 PDR1 read Internal bus PDR1 Pin OD PDR1 write Executing bit manipulation instruction DDR1 read DDR1 DDR1 write ■ Stop mode, watch mode (SPL = 1) P11/EC0/DIO01 pin This pin has the following peripheral functions: ❐ 8/16-bit composite timer ch. 0 clock input pin (EC0) ❐ TS direct output ch. 1 pin (DIO01) ■ P15/UCK0 pin This pin has the following peripheral function: ❐ UART/SIO ch. 0 clock I/O pin (UCK0) ■ P16/INT09/TO11 pin This pin has the following peripheral functions: ❐ External interrupt input pin (INT09) ❐ 8/16-bit composite timer ch. 1 output pin (TO11) ■ P17/INT08/TO10 pin This pin has the following peripheral functions: ❐ External interrupt input pin (INT08) ❐ 8/16-bit composite timer ch. 1 output pin (TO10) Document Number: 002-09305 Rev. *C Page 105 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY ■ Block diagram of P11/EC0/DIO01, P15/UCK0, P16/INT09/TO11 and P17/INT08/TO10 Peripheral function input Peripheral function input enable (INT08 and INT09) Peripheral function output enable Peripheral function output Hysteresis Pull-up 0 1 PDR1 read 1 PDR1 Pin 0 PDR1 write Internal bus Executing bit manipulation instruction DDR1 read DDR1 DDR1 write Stop mode, watch mode (SPL = 1) PUL1 read PUL1 PUL1 write ■ P12/BEEP pin This pin has the following peripheral function: ❐ Beep output pin (BEEP) ■ P14/UO0 pin This pin has the following peripheral function: ❐ UART/SIO ch. 0 data output pin (UO0) ■ Block diagram of P12/BEEP and P14/UO0 Peripheral function output enable Peripheral function output Hysteresis Pull-up 0 1 PDR1 read 1 PDR1 0 Pin PDR1 write Internal bus Executing bit manipulation instruction DDR1 read DDR1 DDR1 write Stop mode, watch mode (SPL = 1) PUL1 read PUL1 PUL1 write Document Number: 002-09305 Rev. *C Page 106 of 172 PRELIMINARY ■ MB95F856K, MB95F866K, MB95F876K P13/UI0/DIO02 pin This pin has the following peripheral functions: ❐ UART/SIO ch. 0 data input pin (UI0) ❐ TS direct output ch. 2 pin (DIO02) ■ Block diagram of P13/UI0/DIO02 Peripheral function input Peripheral function input enable Peripheral function output enable Peripheral function output Pull-up 0 1 CMOS PDR1 read 1 PDR1 Pin 0 PDR1 write Internal bus Executing bit manipulation instruction DDR1 read DDR1 DDR1 write Stop mode, watch mode (SPL = 1) PUL1 read PUL1 PUL1 write 3. Port 1 registers ■ Port 1 register functions Register abbreviation PDR1 DDR1 PUL1 Data Read Read by read-modify-write (RMW) instruction Write 0 Pin state is “L” level. PDR1 value is “0”. As output port, outputs “L” level. 1 Pin state is “H” level. PDR1 value is “1”. As output port, outputs “H” level.* 0 Port input enabled 1 Port output enabled 0 Pull-up disabled 1 Pull-up enabled *: If the pin is an N-ch open drain pin, the pin state becomes Hi-Z. ■ Correspondence between registers and pins for port 1 Pin name Correspondence between related register bits and pins P17 P16 P15 P14 P13 P12 P11 P10 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0* PDR1 DDR1 PUL1 *: Though P10 has no pull-up function, bit0 in the PUL1 register can still be accessed. The operation of P10 is not affected by the setting of bit0 in the PUL1 register. Document Number: 002-09305 Rev. *C Page 107 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 4. Port 1 operations ■ Operation as an output port ❐ A pin becomes an output port if the bit in the DDR1 register corresponding to that pin is set to “1”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ When a pin is used as an output port, it outputs the value of the PDR1 register to external pins. ❐ If data is written to the PDR1 register, the value is stored in the output latch and is output to the pin set as an output port as it is. ❐ Reading the PDR1 register returns the PDR1 register value. ■ Operation as an input port ❐ A pin becomes an input port if the bit in the DDR1 register corresponding to that pin is set to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ If data is written to the PDR1 register, the value is stored in the output latch but is not output to the pin set as an input port. ❐ Reading the PDR1 register returns the pin value. However, if the read-modify-write (RMW) type of instruction is used to read the PDR1 register, the PDR1 register value is returned. ■ Operation as a peripheral function output pin ❐ A pin becomes a peripheral function output pin if the peripheral output function is enabled by setting the output enable bit of a peripheral function corresponding to that pin. ❐ The pin value can be read from the PDR1 register even if the peripheral function output is enabled. Therefore, the output value of a peripheral function can be read by the read operation on the PDR1 register. However, if the read-modify-write (RMW) type of instruction is used to read the PDR1 register, the PDR1 register value is returned. ■ Operation as a peripheral function input pin ❐ To set a pin as an input port, set the bit in the DDR1 register corresponding to the input pin of a peripheral function to “0”. ❐ Reading the PDR1 register returns the pin value, regardless of whether the peripheral function uses that pin as its input pin. However, if the read-modify-write (RMW) type of instruction is used to read the PDR1 register, the PDR1 register value is returned. ■ Operation at reset If the CPU is reset, all bits in the DDR1 register are initialized to “0” and port input is enabled. ■ Operation in stop mode and watch mode ❐ If the pin state setting bit in the standby control register (STBC:SPL) is set to “1” and the device transits to stop mode or watch mode, the pin is compulsorily made to enter the high impedance state regardless of the DDR1 register value. The input of that pin is locked to “L” level and blocked in order to prevent leaks due to input open. However, if the interrupt input from the external interrupt (INT08 and INT09) is enabled, or if the interrupt input of P11/EC0, P13/UI0 and P15/UCK0 is enabled by the external interrupt control register ch. 0 (EIC00) of the external interrupt circuit and the interrupt pin selection circuit control register (WICR) of the interrupt pin selection circuit, the input is enabled and is not blocked. ❐ If the pin state setting bit is “0”, the state of the port I/O or that of the peripheral function I/O remains unchanged and the output level is maintained. ■ Operation as an external interrupt input pin ❐ Set the bit in the DDR1 register corresponding to the external interrupt input pin to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ The pin value is always input to the external interrupt circuit. When using a pin for a function other than the interrupt, disable the external interrupt function corresponding to that pin. ■ Operation of the pull-up register Setting the bit in the PUL1 register to “1” makes the pull-up resistor be internally connected to the pin. When the pin output is “L” level, the pull-up resistor is disconnected regardless of the value of the PUL1 register. Document Number: 002-09305 Rev. *C Page 108 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 14.3.3 Port 4 Port 4 is a general-purpose I/O port. This section focuses on its functions as a general-purpose I/O port. For details of peripheral functions, refer to their respective chapters in “New 8FX MB95850K/860K/870K Series Hardware Manual”. 1. Port 4 configuration Port 4 is made up of the following elements. ❐ General-purpose I/O pins/peripheral function I/O pins ❐ Port 4 data register (PDR4) ❐ Port 4 direction register (DDR4) ❐ Port 4 pull-up register (PUL4) ❐ A/D input disable register (lower) (AIDRL) 2. Block diagrams of port 4 ■ ■ P40/AN04/PPG00 pin This pin has the following peripheral functions: ❐ 8/10-bit A/D converter analog input pin (AN04) ❐ 8/16-bit PPG ch. 0 output pin (PPG00) ■ P41/AN05/PPG01 pin This pin has the following peripheral functions: ❐ 8/10-bit A/D converter analog input pin (AN05) ❐ 8/16-bit PPG ch. 0 output pin (PPG01) ■ P44/AN06/TO00/DIO03 pin This pin has the following peripheral functions: ❐ 8/10-bit A/D converter analog input pin (AN06) ❐ 8/16-bit composite timer ch. 0 output pin (TO00) ❐ TS direct output ch. 3 pin (DIO03) ■ P45/AN07/TO01/DIO04 pin This pin has the following peripheral functions: ❐ 8/10-bit A/D converter analog input pin (AN07) ❐ 8/16-bit composite timer ch. 0 output pin (TO01) ❐ TS direct output ch. 4 pin (DIO04) Document Number: 002-09305 Rev. *C Page 109 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY ■ Block diagram of P40/AN04/PPG00, P41/AN05/PPG01, P44/AN06/TO00/DIO03 and P45/AN07/TO01/DIO04 Peripheral function output enable Peripheral function output A/D analog input Hysteresis Pull-up 0 1 PDR4 read 1 PDR4 0 Pin PDR4 write Internal bus Executing bit manipulation instruction DDR4 read DDR4 DDR4 write Stop mode, watch mode (SPL = 1) PUL4 read PUL4 PUL4 write AIDRL read AIDRL AIDRL write ■ P42/INT06/PPG10 pin This pin has the following peripheral functions: ❐ External interrupt input pin (INT06) ❐ 8/16-bit PPG ch. 1 output pin (PPG10) ■ P43/INT07/PPG11 pin This pin has the following peripheral functions: ❐ External interrupt input pin (INT07) ❐ 8/16-bit PPG ch. 1 output pin (PPG11) Document Number: 002-09305 Rev. *C Page 110 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY ■ Block diagram of P42/INT06/PPG10 and P43/INT07/PPG11 Peripheral function input Peripheral function input enable (INT06 and INT07) Peripheral function output enable Peripheral function output Hysteresis Pull-up 0 1 PDR4 read 1 PDR4 Pin 0 PDR4 write Internal bus Executing bit manipulation instruction DDR4 read DDR4 DDR4 write Stop mode, watch mode (SPL = 1) PUL4 read PUL4 PUL4 write ■ P46/SDA pin This pin has the following peripheral function: 2 ❐ I C bus interface ch. 0 data I/O pin (SDA) ■ P47/SCL pin This pin has the following peripheral function: 2 ❐ I C bus interface ch. 0 clock I/O pin (SCL) ■ Block diagram of P46/SDA and P47/SCL Peripheral function input Peripheral function input enable Peripheral function output enable Peripheral function output CMOS 0 1 PDR4 read PDR4 Internal bus Pin 1 0 OD PDR4 write Executing bit manipulation instruction DDR4 read DDR4 DDR4 write Stop mode, watch mode (SPL = 1) Document Number: 002-09305 Rev. *C Page 111 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 3. Port 4 registers ■ Port 4 register functions Register abbreviation PDR4 DDR4 PUL4 AIDRL Data Read Read by read-modify-write (RMW) instruction Write 0 Pin state is “L” level. PDR4 value is “0”. As output port, outputs “L” level. 1 Pin state is “H” level. PDR4 value is “1”. As output port, outputs “H” level.* 0 Port input enabled 1 Port output enabled 0 Pull-up disabled 1 Pull-up enabled 0 Analog input enabled 1 Port input enabled *: If the pin is an N-ch open drain pin, the pin state becomes Hi-Z. ■ Correspondence between registers and pins for port 4 Pin name PDR4 DDR4 PUL4 AIDRL Correspondence between related register bits and pins P47 P46 bit7 bit6 - - Document Number: 002-09305 Rev. *C P45 P44 P43 P42 P41 P40 bit5 bit4 bit3 bit2 bit1 bit0 bit7 bit6 - - bit3 bit2 Page 112 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 4. Port 4 operations ■ Operation as an output port ❐ A pin becomes an output port if the bit in the DDR4 register corresponding to that pin is set to “1”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ When a pin is used as an output port, it outputs the value of the PDR4 register to external pins. ❐ If data is written to the PDR4 register, the value is stored in the output latch and is output to the pin set as an output port as it is. ❐ Reading the PDR4 register returns the PDR4 register value. ■ Operation as an input port ❐ A pin becomes an input port if the bit in the DDR4 register corresponding to that pin is set to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ When using a pin shared with the analog input function as an input port, set the bit in the A/D input disable register (lower) (AIDRL) corresponding to that pin to “1”. ❐ If data is written to the PDR4 register, the value is stored in the output latch but is not output to the pin set as an input port. ❐ Reading the PDR4 register returns the pin value. However, if the read-modify-write (RMW) type of instruction is used to read the PDR4 register, the PDR4 register value is returned. ■ Operation as a peripheral function output pin ❐ A pin becomes a peripheral function output pin if the peripheral output function is enabled by setting the output enable bit of a peripheral function corresponding to that pin. ❐ The pin value can be read from the PDR4 register even if the peripheral function output is enabled. Therefore, the output value of a peripheral function can be read by the read operation on the PDR4 register. However, if the read-modify-write (RMW) type of instruction is used to read the PDR4 register, the PDR4 register value is returned. ■ Operation as a peripheral function input pin ❐ To set a pin as an input port, set the bit in the DDR4 register corresponding to the input pin of a peripheral function to “0”. ❐ When using a pin shared with the analog input function as another peripheral function input pin, configure it as an input port by setting the bit in the AIDRL register corresponding to that pin to “1”. ❐ Reading the PDR4 register returns the pin value, regardless of whether the peripheral function uses that pin as its input pin. However, if the read-modify-write (RMW) type of instruction is used to read the PDR4 register, the PDR4 register value is returned. ■ Operation at reset If the CPU is reset, all bits in the DDR4 register are initialized to “0” and port input is enabled. As for a pin shared with the analog input function, its port input is disabled because the AIDRL register is initialized to “0”. ■ Operation in stop mode and watch mode ❐ If the pin state setting bit in the standby control register (STBC:SPL) is set to “1” and the device transits to stop mode or watch mode, the pin is compulsorily made to enter the high impedance state regardless of the DDR4 register value. The input of that pin is locked to “L” level and blocked in order to prevent leaks due to input open. However, if the interrupt input is enabled for the external interrupt (INT06 and INT07), the input is enabled and not blocked. ❐ If the pin state setting bit is “0”, the state of the port I/O or that of the peripheral function I/O remains unchanged and the output level is maintained. ■ Operation as an analog input pin ❐ Set the bit in the DDR4 register bit corresponding to the analog input pin to “0” and the bit corresponding to that pin in the AIDRL register to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. In addition, set the corresponding bit in the PUL4 register to “0”. ■ Operation as an external interrupt input pin ❐ Set the bit in the DDR4 register corresponding to the external interrupt input pin to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ The pin value is always input to the external interrupt circuit. When using a pin for a function other than the interrupt, disable the external interrupt function corresponding to that pin. ■ Operation of the pull-up register Setting the bit in the PUL4 register to “1” makes the pull-up resistor be internally connected to the pin. When the pin output is “L” level, the pull-up resistor is disconnected regardless of the value of the PUL4 register. Document Number: 002-09305 Rev. *C Page 113 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 14.3.4 Port 6 Port 6 is a general-purpose I/O port. This section focuses on its functions as a general-purpose I/O port. For details of peripheral functions, refer to their respective chapters in “New 8FX MB95850K/860K/870K Series Hardware Manual”. 1. Port 6 configuration Port 6 is made up of the following elements. ❐ General-purpose I/O pins/peripheral function I/O pins ❐ Port 6 data register (PDR6) ❐ Port 6 direction register (DDR6) ❐ Port 6 pull-up register (PUL6) ❐ Touch input disable register 0 (TIDR0) 2. Block diagrams of port 6 ■ ■ P60/EC1/DIO00 pin This pin has the following peripheral functions: ❐ 8/16-bit composite timer ch. 1 clock input pin (EC1) ❐ TS direct output ch. 0 pin (DIO00) ■ Block diagram of P60/EC1/DIO00 Peripheral function input Peripheral function input enable Peripheral function output enable Peripheral function output Hysteresis Pull-up 0 1 PDR6 read 1 PDR6 0 Pin PDR6 write Internal bus Executing bit manipulation instruction DDR6 read DDR6 DDR6 write Stop mode, watch mode (SPL = 1) PUL6 read PUL6 PUL6 write ■ P61/PPG20 pin This pin has the following peripheral function: ❐ 8/16-bit PPG ch. 2 output pin (PPG20) ■ P62/PPG21 pin This pin has the following peripheral function: ❐ 8/16-bit PPG ch. 2 output pin (PPG21) Document Number: 002-09305 Rev. *C Page 114 of 172 PRELIMINARY ■ MB95F856K, MB95F866K, MB95F876K Block diagram of P61/PPG20 and P62/PPG21 Peripheral function output enable Peripheral function output Hysteresis Pull-up 0 1 PDR6 read 1 PDR6 0 Pin PDR6 write Internal bus Executing bit manipulation instruction DDR6 read DDR6 DDR6 write Stop mode, watch mode (SPL = 1) PUL6 read PUL6 PUL6 write ■ P63/AREF pin This pin has the following peripheral function: ❐ TS reference input pin (AREF) ■ P64/S00 pin This pin has the following peripheral function: ❐ TS touch ch. 0 input pin (S00) ■ P65/S01 pin This pin has the following peripheral function: ❐ TS touch ch. 1 input pin (S01) ■ P66/S02 pin This pin has the following peripheral function: ❐ TS touch ch. 2 input pin (S02) ■ P67/S03 pin This pin has the following peripheral function: ❐ TS touch ch. 3 input pin (S03) Document Number: 002-09305 Rev. *C Page 115 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY ■ Block diagram of P63/AREF, P64/S00, P65/S01, P66/S02 and P67/S03 Touch input Hysteresis 0 Pull-up 1 PDR6 read Pin PDR6 PDR6 write Executing bit manipulation instruction Internal bus DDR6 read DDR6 DDR6 write Stop mode, watch mode (SPL = 1) PUL6 read PUL6 PUL6 write TIDR0 read TIDR0 TIDR0 write 3. Port 6 registers ■ Port 6 register functions Register abbreviation PDR6 DDR6 PUL6 TIDR0 ■ Data Read Read by read-modify-write (RMW) instruction Write 0 Pin state is “L” level. PDR6 value is “0”. As output port, outputs “L” level. 1 Pin state is “H” level. PDR6 value is “1”. As output port, outputs “H” level. 0 Port input enabled 1 Port output enabled 0 Pull-up disabled 1 Pull-up enabled 0 Touch input or reference input enabled 1 Port input enabled Correspondence between registers and pins for port 6 Pin name Correspondence between related register bits and pins P67 P66 P65 P64 P63 P62 P61 P60 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 bit7 bit6 bit5 bit4 bit3 - - - PDR6 DDR6 PUL6 TIDR0 Document Number: 002-09305 Rev. *C Page 116 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 4. Port 6 operations ■ Operation as an output port ❐ A pin becomes an output port if the bit in the DDR6 register corresponding to that pin is set to “1”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ When a pin is used as an output port, it outputs the value of the PDR6 register to external pins. ❐ If data is written to the PDR6 register, the value is stored in the output latch and is output to the pin set as an output port as it is. ❐ Reading the PDR6 register returns the PDR6 register value. ■ Operation as an input port ❐ A pin becomes an input port if the bit in the DDR6 register corresponding to that pin is set to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ When using a pin shared with the touch input function as an input port, set the bit in the touch input disable register 0 (TIDR0) corresponding to that pin to “1”. ❐ If data is written to the PDR6 register, the value is stored in the output latch but is not output to the pin set as an input port. ❐ Reading the PDR6 register returns the pin value. However, if the read-modify-write (RMW) type of instruction is used to read the PDR6 register, the PDR6 register value is returned. ■ Operation as a peripheral function output pin ❐ A pin becomes a peripheral function output pin if the peripheral output function is enabled by setting the output enable bit of a peripheral function corresponding to that pin. ❐ The pin value can be read from the PDR6 register even if the peripheral function output is enabled. Therefore, the output value of a peripheral function can be read by the read operation on the PDR6 register. However, if the read-modify-write (RMW) type of instruction is used to read the PDR6 register, the PDR6 register value is returned. ■ Operation as a peripheral function input pin ❐ To set a pin as an input port, set the bit in the DDR6 register corresponding to the input pin of a peripheral function to “0”. ❐ Reading the PDR6 register returns the pin value, regardless of whether the peripheral function uses that pin as its input pin. However, if the read-modify-write (RMW) type of instruction is used to read the PDR6 register, the PDR6 register value is returned. ■ Operation at reset If the CPU is reset, all bits in the DDR6 register are initialized to “0” and port input is enabled. As for a pin shared with the touch input function, its port input is disabled because the TIDR0 register is initialized to “0”. ■ Operation in stop mode and watch mode ❐ If the pin state setting bit in the standby control register (STBC:SPL) is set to “1” and the device transits to stop mode or watch mode, the pin is compulsorily made to enter the high impedance state regardless of the DDR6 register value. The input of that pin is locked to “L” level and blocked in order to prevent leaks due to input open. However, if the interrupt input of P60/EC1/DIO00 is enabled by the external interrupt control register ch. 0 (EIC00) of the external interrupt circuit and the interrupt pin selection circuit control register (WICR) of the interrupt pin selection circuit, the input is enabled and is not blocked. ❐ When the stop enable bit in the TS prescaler control register (PSC:STPE) is set to “1”, the TS can operate in stop mode or watch mode, the touch input is enabled and is not blocked. The TS wakes up in stop mode or watch mode provided that the TINT (touch interrupt) and the GINT (general interrupt) are set to enable the TS to wake up in stop mode or watch mode. ❐ If the pin state setting bit is “0”, the state of the port I/O or that of the peripheral function I/O remains unchanged and the output level is maintained. ■ Operation as a touch input pin Set the bit in the DDR6 register corresponding to the touch input pin to “0”, the bit in the TIDR0 register corresponding to the same pin to “0”, and the bit in the PUL6 register corresponding to the same pin to “0”. ■ Operation of the pull-up register Setting the bit in the PUL6 register to “1” makes the pull-up resistor be internally connected to the pin. When the pin output is “L” level, the pull-up resistor is disconnected regardless of the value of the PUL6 register. Document Number: 002-09305 Rev. *C Page 117 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 14.3.5 Port 7 Port 7 is a general-purpose I/O port. This section focuses on its functions as a general-purpose I/O port. For details of peripheral functions, refer to their respective chapters in “New 8FX MB95850K/860K/870K Series Hardware Manual”. 1. Port 7 configuration Port 7 is made up of the following elements. ❐ General-purpose I/O pins/peripheral function I/O pins ❐ Port 7 data register (PDR7) ❐ Port 7 direction register (DDR7) ❐ Port 7 pull-up register (PUL7) ❐ Touch input disable register 1 (TIDR1) 2. Block diagrams of port 7 ■ ■ P70/S04 pin This pin has the following peripheral function: ❐ TS touch ch. 4 input pin (S04) ■ P71/S05 pin This pin has the following peripheral function: ❐ TS touch ch. 5 input pin (S05) ■ P72/S06 pin This pin has the following peripheral function: ❐ TS touch ch. 6 input pin (S06) ■ P73/S07 pin This pin has the following peripheral function: ❐ TS touch ch. 7 input pin (S07) ■ P74/S08 pin This pin has the following peripheral function: ❐ TS touch ch. 8 input pin (S08) ■ P75/S09 pin This pin has the following peripheral function: ❐ TS touch ch. 9 input pin (S09) ■ P76/S10 pin This pin has the following peripheral function: ❐ TS touch ch. 10 input pin (S10) ■ P77/S11 pin This pin has the following peripheral function: ❐ TS touch ch. 11 input pin (S11) Document Number: 002-09305 Rev. *C Page 118 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY ■ Block diagram of P70/S04, P71/S05, P72/S06, P73/S07, P74/S08, P75/S09, P76/S10 and P77/S11 Touch input Hysteresis 0 Pull-up 1 PDR7 read Pin PDR7 PDR7 write Executing bit manipulation instruction Internal bus DDR7 read DDR7 DDR7 write Stop mode, watch mode (SPL = 1) PUL7 read PUL7 PUL7 write TIDR1 read TIDR1 TIDR1 write 3. Port 7 registers ■ Port 7 register functions Register abbreviation PDR7 DDR7 PUL7 TIDR1 ■ Read Read by read-modify-write (RMW) instruction 0 Pin state is “L” level. PDR7 value is “0”. As output port, outputs “L” level. 1 Pin state is “H” level. PDR7 value is “1”. As output port, outputs “H” level. Data 0 Port input enabled 1 Port output enabled 0 Pull-up disabled 1 Pull-up enabled 0 Touch input enabled 1 Port input enabled Write Correspondence between registers and pins for port 7 Pin name Correspondence between related register bits and pins P77 P76 P75 P74 P73 P72 P71 P70 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 PDR7 DDR7 PUL7 TIDR1 Document Number: 002-09305 Rev. *C Page 119 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 4. Port 7 operations ■ Operation as an output port ❐ A pin becomes an output port if the bit in the DDR7 register corresponding to that pin is set to “1”. ❐ When a pin is used as an output port, it outputs the value of the PDR7 register to external pins. ❐ If data is written to the PDR7 register, the value is stored in the output latch and is output to the pin set as an output port as it is. ❐ Reading the PDR7 register returns the PDR7 register value. ■ Operation as an input port ❐ A pin becomes an input port if the bit in the DDR7 register corresponding to that pin is set to “0”. ❐ When using a pin shared with the touch input function as an input port, set the bit in the touch input disable register 1 (TIDR1) corresponding to that pin to “1”. ❐ If data is written to the PDR7 register, the value is stored in the output latch but is not output to the pin set as an input port. ❐ Reading the PDR7 register returns the pin value. However, if the read-modify-write (RMW) type of instruction is used to read the PDR7 register, the PDR7 register value is returned. ■ Operation at reset If the CPU is reset, all bits in the DDR7 register are initialized to “0” and port input is enabled. As for a pin shared with the touch input function, its port input is disabled because the TIDR1 register is initialized to “0”. ■ Operation in stop mode and watch mode ❐ If the pin state setting bit in the standby control register (STBC:SPL) is set to “1” and the device transits to stop mode or watch mode, the pin is compulsorily made to enter the high impedance state regardless of the DDR7 register value. The input of that pin is locked to “L” level and blocked in order to prevent leaks due to input open. ❐ When the stop enable bit in the TS prescaler control register (PSC:STPE) is set to “1”, the TS can operate in stop mode or watch mode, the touch input is enabled and is not blocked. The TS wakes up in stop mode or watch mode provided that the TINT (touch interrupt) and the GINT (general interrupt) are set to enable the TS to wake up in stop mode or watch mode. ❐ If the pin state setting bit is “0”, the state of the port I/O or that of the peripheral function I/O remains unchanged and the output level is maintained. ■ Operation as a touch input pin Set the bit in the DDR7 register corresponding to the touch input pin to “0”, the bit in the TIDR1 register corresponding to the same pin to “0”, and the bit in the PUL7 register corresponding to the same pin to “0”. ■ Operation of the pull-up register Setting the bit in the PUL7 register to “1” makes the pull-up resistor be internally connected to the pin. When the pin output is “L” level, the pull-up resistor is disconnected regardless of the value of the PUL7 register. Document Number: 002-09305 Rev. *C Page 120 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 14.3.6 Port F Port F is a general-purpose I/O port. This section focuses on its functions as a general-purpose I/O port. For details of peripheral functions, refer to their respective chapters in “New 8FX MB95850K/860K/870K Series Hardware Manual”. 1. Port F configuration Port F is made up of the following elements. ❐ General-purpose I/O pins/peripheral function I/O pins ❐ Port F data register (PDRF) ❐ Port F direction register (DDRF) 2. Block diagrams of port F ■ ■ PF0/X0 pin This pin has the following peripheral function: ❐ Main clock input oscillation pin (X0) ■ PF1/X1 pin This pin has the following peripheral function: ❐ Main clock I/O oscillation pin (X1) ■ Block diagram of PF0/X0 and PF1/X1 Hysteresis 0 1 PDRF read Pin Internal bus PDRF PDRF write Executing bit manipulation instruction DDRF read DDRF DDRF write ■ Stop mode, watch mode (SPL = 1) PF2/RST pin This pin has the following peripheral function: ❐ Reset pin (RST) ■ Block diagram of PF2/RST Reset input Reset input enable Reset output enable Reset output Hysteresis 0 1 PDRF read Internal bus Pin 1 PDRF 0 OD PDRF write Executing bit manipulation instruction DDRF read DDRF DDRF write Stop mode, watch mode (SPL = 1) Document Number: 002-09305 Rev. *C Page 121 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 3. Port F registers ■ Port F register functions Register abbreviation Data Read Read by read-modify-write (RMW) instruction Write 0 Pin state is “L” level. PDRF value is “0”. As output port, outputs “L” level. 1 Pin state is “H” level. PDRF value is “1”. As output port, outputs “H” level.* PDRF DDRF 0 Port input enabled 1 Port output enabled *: If the pin is an N-ch open drain pin, the pin state becomes Hi-Z. ■ Correspondence between registers and pins for port F Pin name PDRF DDRF Correspondence between related register bits and pins - - - - - PF2 PF1 PF0 - - - - - bit2 bit1 bit0 4. Port F operations ■ Operation as an output port ❐ A pin becomes an output port if the bit in the DDRF register corresponding to that pin is set to “1”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ When a pin is used as an output port, it outputs the value of the PDRF register to external pins. ❐ If data is written to the PDRF register, the value is stored in the output latch and is output to the pin set as an output port as it is. ❐ Reading the PDRF register returns the PDRF register value. ■ Operation as an input port ❐ A pin becomes an input port if the bit in the DDRF register corresponding to that pin is set to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ If data is written to the PDRF register, the value is stored in the output latch but is not output to the pin set as an input port. ❐ Reading the PDRF register returns the pin value. However, if the read-modify-write (RMW) type of instruction is used to read the PDRF register, the PDRF register value is returned. ■ Operation at reset If the CPU is reset, all bits in the DDRF register are initialized to “0” and port input is enabled. ■ Operation in stop mode and watch mode ❐ If the pin state setting bit in the standby control register (STBC:SPL) is set to “1” and the device transits to stop mode or watch mode, the pin is compulsorily made to enter the high impedance state regardless of the DDRF register value. The input of that pin is locked to “L” level and blocked in order to prevent leaks due to input open. ❐ If the pin state setting bit is “0”, the state of the port I/O or that of the peripheral function I/O remains unchanged and the output level is maintained. Document Number: 002-09305 Rev. *C Page 122 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 14.3.7 Port G Port G is a general-purpose I/O port. This section focuses on its functions as a general-purpose I/O port. For details of peripheral functions, refer to their respective chapters in “New 8FX MB95850K/860K/870K Series Hardware Manual”. 1. Port G configuration Port G is made up of the following elements. ❐ General-purpose I/O pins/peripheral function I/O pins ❐ Port G data register (PDRG) ❐ Port G direction register (DDRG) ❐ Port G pull-up register (PULG) 2. Block diagram of port G ■ ■ PG1/X0A/DIO04 pin This pin has the following peripheral functions: ❐ Subclock input oscillation pin (X0A) ❐ TS direct output ch. 4 pin (DIO04) ■ PG2/X1A/DIO03 pin This pin has the following peripheral functions: ❐ Subclock I/O oscillation pin (X1A) ❐ TS direct output ch. 3 pin (DIO03) ■ Block diagram of PG1/X0A/DIO04 and PG2/X1A/DIO03 Peripheral function output enable Peripheral function output Hysteresis Pull-up 0 1 PDRG read 1 PDRG 0 Pin PDRG write Internal bus Executing bit manipulation instruction DDRG read DDRG DDRG write Stop mode, watch mode (SPL = 1) PULG read PULG PULG write Document Number: 002-09305 Rev. *C Page 123 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 3. Port G registers ■ Port G register functions Register abbreviation PDRG DDRG PULG ■ Read Read by read-modify-write (RMW) instruction 0 Pin state is “L” level. PDRG value is “0”. As output port, outputs “L” level. 1 Pin state is “H” level. PDRG value is “1”. As output port, outputs “H” level. Data 0 Port input enabled 1 Port output enabled 0 Pull-up disabled 1 Pull-up enabled Write Correspondence between registers and pins for port G Pin name Correspondence between related register bits and pins - - - - - PG2 PG1 - - - - - - bit2 bit1 - PDRG DDRG PULG 4. Port G operations ■ Operation as an output port ❐ A pin becomes an output port if the bit in the DDRG register corresponding to that pin is set to “1”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ When a pin is used as an output port, it outputs the value of the PDRG register to external pins. ❐ If data is written to the PDRG register, the value is stored in the output latch and is output to the pin set as an output port as it is. ❐ Reading the PDRG register returns the PDRG register value. ■ Operation as an input port ❐ A pin becomes an input port if the bit in the DDRG register corresponding to that pin is set to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ If data is written to the PDRG register, the value is stored in the output latch but is not output to the pin set as an input port. ❐ Reading the PDRG register returns the pin value. However, if the read-modify-write (RMW) type of instruction is used to read the PDRG register, the PDRG register value is returned. ■ Operation as a peripheral function output pin ❐ A pin becomes a peripheral function output pin if the peripheral output function is enabled by setting the output enable bit of a peripheral function corresponding to that pin. ❐ The pin value can be read from the PDRG register even if the peripheral function output is enabled. Therefore, the output value of a peripheral function can be read by the read operation on the PDRG register. However, if the read-modify-write (RMW) type of instruction is used to read the PDRG register, the PDRG register value is returned. ■ Operation at reset If the CPU is reset, all bits in the DDRG register are initialized to “0” and port input is enabled. ■ Operation in stop mode and watch mode ❐ If the pin state setting bit in the standby control register (STBC:SPL) is set to “1” and the device transits to stop mode or watch mode, the pin is compulsorily made to enter the high impedance state regardless of the DDRG register value. The input of that pin is locked to “L” level and blocked in order to prevent leaks due to input open. ❐ If the pin state setting bit is “0”, the state of the port I/O or that of the peripheral function I/O remains unchanged and the output level is maintained. ■ Operation of the pull-up register Setting the bit in the PULG register to “1” makes the pull-up resistor be internally connected to the pin. When the pin output is “L” level, the pull-up resistor is disconnected regardless of the value of the PULG register. Document Number: 002-09305 Rev. *C Page 124 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 15. Interrupt Source Tables 15.1 MB95850K Series Vector table address Interrupt level setting Priority order of interrupt register sources of the same level (occurring simultaneously) Register Bit Interrupt request number Upper Lower IRQ00 0xFFFA 0xFFFB ILR0 L00 [1:0] IRQ01 0xFFF8 0xFFF9 ILR0 L01 [1:0] External interrupt ch. 6 IRQ02 0xFFF6 0xFFF7 ILR0 L02 [1:0] External interrupt ch. 7 IRQ03 0xFFF4 0xFFF5 ILR0 L03 [1:0] UART/SIO ch. 0 IRQ04 0xFFF2 0xFFF3 ILR1 L04 [1:0] 8/16-bit composite timer ch. 0 (lower) IRQ05 0xFFF0 0xFFF1 ILR1 L05 [1:0] 8/16-bit composite timer ch. 0 (upper) IRQ06 0xFFEE 0xFFEF ILR1 L06 [1:0] Touch interrupt (TINT) IRQ07 0xFFEC 0xFFED ILR1 L07 [1:0] General interrupt (GINT) IRQ08 0xFFEA 0xFFEB ILR2 L08 [1:0] — IRQ09 0xFFE8 0xFFE9 ILR2 L09 [1:0] — IRQ10 0xFFE6 0xFFE7 ILR2 L10 [1:0] — IRQ11 0xFFE4 0xFFE5 ILR2 L11 [1:0] 8/16-bit PPG ch. 0 (upper) IRQ12 0xFFE2 0xFFE3 ILR3 L12 [1:0] 8/16-bit PPG ch. 0 (lower) IRQ13 0xFFE0 0xFFE1 ILR3 L13 [1:0] — IRQ14 0xFFDE 0xFFDF ILR3 L14 [1:0] — IRQ15 0xFFDC 0xFFDD ILR3 L15 [1:0] bus interface ch. 0 IRQ16 0xFFDA 0xFFDB ILR4 L16 [1:0] — IRQ17 0xFFD8 0xFFD9 ILR4 L17 [1:0] 8/10-bit A/D converter IRQ18 0xFFD6 0xFFD7 ILR4 L18 [1:0] Time-base timer IRQ19 0xFFD4 0xFFD5 ILR4 L19 [1:0] IRQ20 0xFFD2 0xFFD3 ILR5 L20 [1:0] Comparator ch. 0 IRQ21 0xFFD0 0xFFD1 ILR5 L21 [1:0] — IRQ22 0xFFCE 0xFFCF ILR5 L22 [1:0] IRQ23 0xFFCC 0xFFCD ILR5 L23 [1:0] Interrupt source External interrupt ch. 0 External interrupt ch. 4 External interrupt ch. 1 External interrupt ch. 5 2C I Watch prescaler Watch counter High Flash memory Low Document Number: 002-09305 Rev. *C Page 125 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 15.2 MB95860K Series Vector table address Interrupt level setting register Interrupt request number Upper Lower Register Bit IRQ00 0xFFFA 0xFFFB ILR0 L00 [1:0] IRQ01 0xFFF8 0xFFF9 ILR0 L01 [1:0] IRQ02 0xFFF6 0xFFF7 ILR0 L02 [1:0] IRQ03 0xFFF4 0xFFF5 ILR0 L03 [1:0] UART/SIO ch. 0 IRQ04 0xFFF2 0xFFF3 ILR1 L04 [1:0] 8/16-bit composite timer ch. 0 (lower) IRQ05 0xFFF0 0xFFF1 ILR1 L05 [1:0] 8/16-bit composite timer ch. 0 (upper) IRQ06 0xFFEE 0xFFEF ILR1 L06 [1:0] Touch interrupt (TINT) IRQ07 0xFFEC 0xFFED ILR1 L07 [1:0] General interrupt (GINT) IRQ08 0xFFEA 0xFFEB ILR2 L08 [1:0] 8/16-bit PPG ch. 1 (lower) IRQ09 0xFFE8 0xFFE9 ILR2 L09 [1:0] 8/16-bit PPG ch. 1 (upper) IRQ10 0xFFE6 0xFFE7 ILR2 L10 [1:0] — IRQ11 0xFFE4 0xFFE5 ILR2 L11 [1:0] 8/16-bit PPG ch. 0 (upper) IRQ12 0xFFE2 0xFFE3 ILR3 L12 [1:0] 8/16-bit PPG ch. 0 (lower) IRQ13 0xFFE0 0xFFE1 ILR3 L13 [1:0] 8/16-bit composite timer ch. 1 (upper) IRQ14 0xFFDE 0xFFDF ILR3 L14 [1:0] — IRQ15 0xFFDC 0xFFDD ILR3 L15 [1:0] I2C bus interface ch. 0 IRQ16 0xFFDA 0xFFDB ILR4 L16 [1:0] — IRQ17 0xFFD8 0xFFD9 ILR4 L17 [1:0] Interrupt source External interrupt ch. 0 External interrupt ch. 4 External interrupt ch. 1 External interrupt ch. 5 External interrupt ch. 2 External interrupt ch. 6 External interrupt ch. 3 External interrupt ch. 7 8/10-bit A/D converter IRQ18 0xFFD6 0xFFD7 ILR4 L18 [1:0] Time-base timer IRQ19 0xFFD4 0xFFD5 ILR4 L19 [1:0] IRQ20 0xFFD2 0xFFD3 ILR5 L20 [1:0] Watch prescaler Watch counter Comparator ch. 0 IRQ21 0xFFD0 0xFFD1 ILR5 L21 [1:0] 8/16-bit composite timer ch. 1 (lower) IRQ22 0xFFCE 0xFFCF ILR5 L22 [1:0] IRQ23 0xFFCC 0xFFCD ILR5 L23 [1:0] Priority order of interrupt sources of the same level (occurring simultaneously) High Flash memory Low Document Number: 002-09305 Rev. *C Page 126 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 15.3 MB95870K Series Vector table address Interrupt level setting Priority order of interregister rupt sources of the same level (occurring Register Bit simultaneously) Interrupt request number Upper Lower IRQ00 0xFFFA 0xFFFB ILR0 L00 [1:0] IRQ01 0xFFF8 0xFFF9 ILR0 L01 [1:0] IRQ02 0xFFF6 0xFFF7 ILR0 L02 [1:0] IRQ03 0xFFF4 0xFFF5 ILR0 L03 [1:0] UART/SIO ch. 0 IRQ04 0xFFF2 0xFFF3 ILR1 L04 [1:0] 8/16-bit composite timer ch. 0 (lower) IRQ05 0xFFF0 0xFFF1 ILR1 L05 [1:0] 8/16-bit composite timer ch. 0 (upper) IRQ06 0xFFEE 0xFFEF ILR1 L06 [1:0] Touch interrupt (TINT) IRQ07 0xFFEC 0xFFED ILR1 L07 [1:0] General interrupt (GINT) IRQ08 0xFFEA 0xFFEB ILR2 L08 [1:0] 8/16-bit PPG ch. 1 (lower) IRQ09 0xFFE8 0xFFE9 ILR2 L09 [1:0] 8/16-bit PPG ch. 1 (upper) IRQ10 0xFFE6 0xFFE7 ILR2 L10 [1:0] 8/16-bit PPG ch. 2 (upper) IRQ11 0xFFE4 0xFFE5 ILR2 L11 [1:0] 8/16-bit PPG ch. 0 (upper) IRQ12 0xFFE2 0xFFE3 ILR3 L12 [1:0] 8/16-bit PPG ch. 0 (lower) IRQ13 0xFFE0 0xFFE1 ILR3 L13 [1:0] 8/16-bit composite timer ch. 1 (upper) IRQ14 0xFFDE 0xFFDF ILR3 L14 [1:0] 8/16-bit PPG ch. 2 (lower) IRQ15 0xFFDC 0xFFDD ILR3 L15 [1:0] IRQ16 0xFFDA 0xFFDB ILR4 L16 [1:0] IRQ17 0xFFD8 0xFFD9 ILR4 L17 [1:0] 8/10-bit A/D converter IRQ18 0xFFD6 0xFFD7 ILR4 L18 [1:0] Time-base timer IRQ19 0xFFD4 0xFFD5 ILR4 L19 [1:0] IRQ20 0xFFD2 0xFFD3 ILR5 L20 [1:0] Comparator ch. 0 IRQ21 0xFFD0 0xFFD1 ILR5 L21 [1:0] 8/16-bit composite timer ch. 1 (lower) IRQ22 0xFFCE 0xFFCF ILR5 L22 [1:0] IRQ23 0xFFCC 0xFFCD ILR5 L23 [1:0] Interrupt source External interrupt ch. 0 External interrupt ch. 4 External interrupt ch. 1 External interrupt ch. 5 External interrupt ch. 2 External interrupt ch. 6 External interrupt ch. 3 External interrupt ch. 7 2C I bus interface ch. 0 External interrupt ch. 8 External interrupt ch. 9 Watch prescaler Watch counter High Flash memory Low Document Number: 002-09305 Rev. *C Page 127 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 16. Pin States in Each Mode 16.1 MB95850K Series Pin name Normal operation Sleep mode Oscillation input Oscillation input PF0/X0 I/O port*1 I/O port*1 Oscillation input Oscillation input PF1/X1 PF2/RST Watch mode On reset SPL=0 SPL=1 SPL=0 SPL=1 Hi-Z Hi-Z Hi-Z Hi-Z — Previous state kept Input blocked*1, *2 Hi-Z Input blocked*1, *2 Previous state kept Input blocked*1, *2 Hi-Z Input blocked*1, *2 Hi-Z Input enabled*3 (However, it does not function.) Hi-Z Hi-Z Hi-Z Hi-Z — I/O port*1 I/O port*1 Previous state kept Input blocked*1, *2 Hi-Z Input blocked*1, *2 Previous state kept Input blocked*1, *2 Hi-Z Input blocked*1, *2 Hi-Z Input enabled*3 (However, it does not function.) Reset input*4 Reset input*4 Reset input Reset input Reset input Reset input Reset input*4 I/O port I/O port Previous state kept Input blocked*1, *2 Hi-Z Input blocked*1, *2 Previous state kept Input blocked*1, *2 Hi-Z Input blocked*1, *2 Hi-Z Input enabled*3 (However, it does not function.) Hi-Z Hi-Z Hi-Z Hi-Z — Previous state kept*5 Input blocked*1, *2 Hi-Z*6 Input blocked*1, *2 Previous state kept*5 Input blocked*1, *2 Hi-Z*6 Input blocked*1, *2 Hi-Z Input enabled*3 (However, it does not function.) Hi-Z Hi-Z Hi-Z Hi-Z — Oscillation input Oscillation input PG1/X0A/ DIO04 Stop mode I/O port*1/ peripheral function I/O I/O port*1/ peripheral function I/O Oscillation input Oscillation input I/O port*1/ peripheral function I/O I/O port*1/ peripheral function I/O Previous state kept*5 Input blocked*1, *2 Hi-Z*6 Input blocked*1, *2 Previous state kept*5 Input blocked*1, *2 Hi-Z*6 Input blocked*1, *2 Hi-Z Input enabled*3 (However, it does not function.) P04/AN00/ BEEP/ DIO01/TO01 I/O port/ peripheral function I/O/ analog input I/O port/ peripheral function I/O/ analog input Previous state kept*5, *10 Input blocked*2 Hi-Z*6 Input blocked*2 Previous state kept*5, *10 Input blocked*2 Hi-Z*6 Input blocked*2 Hi-Z Input blocked*2 P05/INT05/ AN01/ CMP0_N/ TO00 I/O port/ peripheral function I/O/ analog input I/O port/ peripheral function I/O/ analog input Previous state Previous state Hi-Z*6 Hi-Z*6 kept kept Input Input Input Input blocked*2, *7, *8 blocked*2, *7, *8 blocked*2, *7, *8 blocked*2, *7, *8 Hi-Z Input blocked*2 P06/AN02/ CMP0_O/ PPG00 I/O port/ peripheral function I/O/ analog input I/O port/ peripheral function I/O/ analog input Previous state kept*9 Input blocked*2 Hi-Z*6 Input blocked*2 Previous state kept*9 Input blocked*2 Hi-Z*6 Input blocked*2 Hi-Z Input blocked*2 P07/AN03/ CMP0_P/ PPG01 I/O port/ peripheral function I/O/ analog input I/O port/ peripheral function I/O/ analog input Previous state kept Input blocked*2, *8 Hi-Z*6 Input blocked*2, *8 Previous state kept Input blocked*2, *8 Hi-Z*6 Input blocked*2, *8 Hi-Z Input blocked*2 P10/DBG/ EC0 I/O port/ peripheral function I/O I/O port/ peripheral function I/O Previous state kept Input blocked*2, *7 Hi-Z Input blocked*2, *7 Previous state kept Input blocked*2, *7 Hi-Z Input blocked*2, *7 Hi-Z Input enabled*3 (However, it does not function.) P13/INT04/UI0/DI O02 I/O port/ peripheral function I/O I/O port/ peripheral function I/O Previous state kept*5 Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Previous state kept*5 Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Hi-Z Input enabled*3 (However, it does not function.) P14/INT01/UO0/D IO00 I/O port/ peripheral function I/O I/O port/ peripheral function I/O Previous state kept*5 Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Previous state kept*5 Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Hi-Z Input enabled*3 (However, it does not function.) P15/INT00/UCK0 I/O port/ peripheral function I/O I/O port/ peripheral function I/O Previous state kept Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Previous state kept Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Hi-Z Input enabled*3 (However, it does not function.) PG2/X1A/ DIO03 Document Number: 002-09305 Rev. *C Page 128 of 172 PRELIMINARY Pin name P46/INT06/ SDA P47/INT07/ SCL Normal operation Sleep mode I/O port/ peripheral function I/O I/O port/ peripheral function I/O I/O port/ touch input I/O port/ touch input Stop mode SPL=0 SPL=1 MB95F856K, MB95F866K, MB95F876K Watch mode SPL=0 SPL=1 On reset Previous state Previous state Hi-Z Hi-Z Hi-Z kept kept Input enabled*3 Input Input Input Input blocked*2, *7, *11 blocked*2, *7, *11 (However, it does not blocked*2, *7, *11 blocked*2, *7, *11 function.) P63/AREF P65/S01 P66/S02 P67/S03 Previous state kept*12 Input blocked*2, *13 Hi-Z*12 Input blocked*2, *13 Previous state kept*12 Input blocked*2, *13 Hi-Z*12 Input blocked*2, *13 Hi-Z Input blocked*2 P70/S04 P71/S05 SPL: Pin state setting bit in the standby control register (STBC:SPL) Hi-Z: High impedance *1: The pin stays at the state shown when configured as a general-purpose I/O port. *2: “Input blocked” means direct input gate operation from the pin is disabled. *3: “Input enabled” means that the input function is enabled. While the input function is enabled, a pull-up or pull-down operation has to be performed in order to prevent leaks due to external input. If a pin is used as an output port, its pin state is the same as that of other ports. *4: The PF2/RST pin stays at the state shown when configured as a reset pin. *5: In stop mode and watch mode, the pin functions as a TS direct output pin only when the SPL bit is set to “0” and the TS direct output function is enabled. *6: The pull-up control setting is still effective. *7: Though input is blocked, an external interrupt can be input when the external interrupt request is enabled. *8: Though input is blocked, an analog signal can be input to generate a comparator interrupt when the comparator interrupt is enabled. *9: In stop mode and watch mode, comparator input varies according to the register settings of the comparator, and the pin functions as a comparator output pin only when the SPL bit is set to “0” and the comparator output function is enabled. *10: In stop mode and watch mode, the pin functions as a beep output pin only when the SPL bit is set to “0” and the beep output function is enabled. *11: The I2C bus interface can wake up the MCU in stop mode or watch mode when its MCU standby mode wakeup function is enabled. For details of the MCU standby mode wakeup function, refer to “CHAPTER 21 I2C BUS INTERFACE” in “New 8FX MB95850K/860K/870K Series Hardware Manual”. *12: In stop mode and watch mode, the pin outputs SNCLK only when it is used as a TS touch input pin and the TS is in operation. *13: Though input is blocked, a touch signal can be input to generate a touch interrupt (TINT) when the TINT is enabled. Document Number: 002-09305 Rev. *C Page 129 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 16.2 MB95860K Series Pin name Normal operation Sleep mode Oscillation input Oscillation input PF0/X0 I/O port*1 I/O port*1 Oscillation input Oscillation input PF1/X1 PF2/RST Watch mode On reset SPL=0 SPL=1 SPL=0 SPL=1 Hi-Z Hi-Z Hi-Z Hi-Z — Previous state kept Input blocked*1, *2 Hi-Z Input blocked*1, *2 Previous state kept Input blocked*1, *2 Hi-Z Input blocked*1, *2 Hi-Z Input enabled*3 (However, it does not function.) Hi-Z Hi-Z Hi-Z Hi-Z — Hi-Z Input blocked*1, *2 Previous state kept Input blocked*1, *2 Hi-Z Input blocked*1, *2 Hi-Z Input enabled*3 (However, it does not function.) I/O port*1 I/O port*1 Previous state kept Input blocked*1, *2 Reset input*4 Reset input*4 Reset input Reset input Reset input Reset input Reset input*4 I/O port I/O port Previous state kept Input blocked*1, *2 Hi-Z Input blocked*1, *2 Previous state kept Input blocked*1, *2 Hi-Z Input blocked*1, *2 Hi-Z Input enabled*3 (However, it does not function.) Hi-Z Hi-Z Hi-Z Hi-Z — Previous state kept*5 Input blocked*1, *2 Hi-Z*6 Previous state kept*5 Input blocked*1, *2 Hi-Z*6 Hi-Z Input enabled*3 (However, it does not function.) Oscillation input Oscillation input PG1/X0A/ DIO04 Stop mode 1/ I/O port* peripheral function I/O port*1/ I/O peripheral function I/O Oscillation input Oscillation input Hi-Z Input blocked*1, *2 Hi-Z Hi-Z Input blocked*1, *2 Hi-Z — I/O port* / peripheral function I/O I/O port* / peripheral function I/O Previous state kept*5 Input blocked*1, *2 I/O port/ peripheral function I/O I/O port/ peripheral function I/O Previous state kept Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Previous state kept Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Hi-Z Input enabled*3 (However, it does not function.) P04/AN00/ BEEP/ DIO01 I/O port/ peripheral function I/O/ analog input I/O port/ peripheral function I/O/ analog input Previous state kept*5, *10 Input blocked*2 Hi-Z*6 Input blocked*2 Previous state kept*5, *10 Input blocked*2 Hi-Z*6 Input blocked*2 Hi-Z Input blocked*2 P05/INT05/ AN01/ CMP0_N I/O port/ peripheral function I/O/ analog input I/O port/ peripheral function I/O/ analog input Previous state Previous state Hi-Z*6 Hi-Z*6 kept kept Input Input Input Input blocked*2, *7, *8 blocked*2, *7, *8 blocked*2, *7, *8 blocked*2, *7, *8 Hi-Z Input blocked*2 P06/AN02/ CMP0_O/ PPG00 I/O port/ peripheral function I/O/ analog input I/O port/ peripheral function I/O/ analog input Previous state kept*9 Input blocked*2 Hi-Z*6 Input blocked*2 Previous state kept*9 Input blocked*2 Hi-Z*6 Input blocked*2 Hi-Z Input blocked*2 P07/AN03/ CMP0_P/ PPG01 I/O port/ peripheral function I/O/ analog input I/O port/ peripheral function I/O/ analog input Previous state kept Input blocked*2, *8 Hi-Z*6 Input blocked*2, *8 Previous state kept Input blocked*2, *8 Hi-Z*6 Input blocked*2, *8 Hi-Z Input blocked*2 P10/DBG/ EC0 I/O port/ peripheral function I/O I/O port/ peripheral function I/O Previous state kept Input blocked*2, *7 Hi-Z Input blocked*2, *7 Previous state kept Input blocked*2, *7 Hi-Z Input blocked*2, *7 Hi-Z Input enabled*3 (However, it does not function.) P13/INT04/UI0/DI O02 I/O port/ peripheral function I/O I/O port/ peripheral function I/O Previous state kept*5 Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Previous state kept*5 Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Hi-Z Input enabled*3 (However, it does not function.) P14/INT01/UO0 I/O port/ peripheral function I/O I/O port/ peripheral function I/O Previous state kept Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Previous state kept Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Hi-Z Input enabled*3 (However, it does not function.) PG2/X1A/ DIO03 P02/INT02/ TO10 P03/INT03/ TO11 1 1 Document Number: 002-09305 Rev. *C Hi-Z* Input blocked*1, *2 Previous state kept*5 Input blocked*1, *2 Hi-Z* Input blocked*1, *2 Hi-Z Input enabled*3 (However, it does not function.) 6 6 Page 130 of 172 PRELIMINARY Pin name Normal operation Sleep mode P15/INT00/UCK0 I/O port/ peripheral function I/O P44/AN06/ TO00/ DIO03/ PPG10 P45/AN07/ TO01/ DIO04/ PPG11 P46/INT06/ SDA P47/INT07/ SCL P60/EC1/ DIO00 Stop mode MB95F856K, MB95F866K, MB95F876K Watch mode On reset SPL=0 SPL=1 SPL=0 SPL=1 I/O port/ peripheral function I/O Previous state kept Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Previous state kept Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Hi-Z Input enabled*3 (However, it does not function.) I/O port/ peripheral function I/O/ analog input I/O port/ peripheral function I/O/ analog input Previous state kept*5 Input blocked*2 Hi-Z*6 Input blocked*2 Previous state kept*5 Input blocked*2 Hi-Z*6 Input blocked*2 Hi-Z Input blocked*2 I/O port/ peripheral function I/O I/O port/ peripheral function I/O Previous state Previous state Hi-Z Hi-Z kept kept Input Input Input Input 2, *7, *11 blocked* blocked*2, *7, *11 blocked*2, *7, *11 blocked*2, *7, *11 I/O port/ peripheral function I/O I/O port/ peripheral function I/O Previous state kept*5 Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Previous state kept*5 Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Hi-Z Input enabled*3 (However, it does not function.) I/O port/ touch input I/O port/ touch input Previous state kept*12 Input blocked*2, *13 Hi-Z*12 Input blocked*2, *13 Previous state kept*12 Input blocked*2, *13 Hi-Z*12 Input blocked*2, *13 Hi-Z Input blocked*2 Hi-Z Input enabled*3 (However, it does not function.) P63/AREF P64/S00 P65/S01 P66/S02 P67/S03 P70/S04 P71/S05 P72/S06 P73/S07 SPL: Pin state setting bit in the standby control register (STBC:SPL) Hi-Z: High impedance *1: The pin stays at the state shown when configured as a general-purpose I/O port. *2: “Input blocked” means direct input gate operation from the pin is disabled. *3: “Input enabled” means that the input function is enabled. While the input function is enabled, a pull-up or pull-down operation has to be performed in order to prevent leaks due to external input. If a pin is used as an output port, its pin state is the same as that of other ports. *4: The PF2/RST pin stays at the state shown when configured as a reset pin. *5: In stop mode and watch mode, the pin functions as a TS direct output pin only when the SPL bit is set to “0” and the TS direct output function is enabled. *6: The pull-up control setting is still effective. *7: Though input is blocked, an external interrupt can be input when the external interrupt request is enabled. *8: Though input is blocked, an analog signal can be input to generate a comparator interrupt when the comparator interrupt is enabled. *9: In stop mode and watch mode, comparator input varies according to the register settings of the comparator, and the pin functions as a comparator output pin only when the SPL bit is set to “0” and the comparator output function is enabled. *10: In stop mode and watch mode, the pin functions as a beep output pin only when the SPL bit is set to “0” and the beep output function is enabled. *11: The I2C bus interface can wake up the MCU in stop mode or watch mode when its MCU standby mode wakeup function is enabled. For details of the MCU standby mode wakeup function, refer to “CHAPTER 21 I2C BUS INTERFACE” in “New 8FX MB95850K/860K/870K Series Hardware Manual”. *12: In stop mode and watch mode, the pin outputs SNCLK only when it is used as a TS touch input pin and the TS is in operation. *13: Though input is blocked, a touch signal can be input to generate a touch interrupt (TINT) when the TINT is enabled. Document Number: 002-09305 Rev. *C Page 131 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 16.3 MB95870K Series Pin name Normal operation Sleep mode Oscillation input Oscillation input PF0/X0 I/O port*1 I/O port*1 Oscillation input Oscillation input PF1/X1 PF2/RST Watch mode On reset SPL=0 SPL=1 SPL=0 SPL=1 Hi-Z Hi-Z Hi-Z Hi-Z — Previous state kept Input blocked*1, *2 Hi-Z Input blocked*1, *2 Previous state kept Input blocked*1, *2 Hi-Z Input blocked*1, *2 Hi-Z Input enabled*3 (However, it does not function.) Hi-Z Hi-Z Hi-Z Hi-Z — Hi-Z Input blocked*1, *2 Previous state kept Input blocked*1, *2 Hi-Z Input blocked*1, *2 Hi-Z Input enabled*3 (However, it does not function.) I/O port*1 I/O port*1 Previous state kept Input blocked*1, *2 Reset input*4 Reset input*4 Reset input Reset input Reset input Reset input Reset input*4 I/O port I/O port Previous state kept Input blocked*1, *2 Hi-Z Input blocked*1, *2 Previous state kept Input blocked*1, *2 Hi-Z Input blocked*1, *2 Hi-Z Input enabled*3 (However, it does not function.) Hi-Z Hi-Z Hi-Z Hi-Z — Previous state kept*5 Input blocked*1, *2 Hi-Z*6 Previous state kept*5 Input blocked*1, *2 Hi-Z*6 Hi-Z Input enabled*3 (However, it does not function.) Oscillation input Oscillation input PG1/X0A/ DIO04 Stop mode 1/ I/O port* peripheral function I/O port*1/ I/O peripheral function I/O Oscillation input Oscillation input Hi-Z Input blocked*1, *2 Hi-Z Hi-Z Input blocked*1, *2 Hi-Z — I/O port* / peripheral function I/O I/O port* / peripheral function I/O Previous state kept*5 Input blocked*1, *2 I/O port/ peripheral function I/O I/O port/ peripheral function I/O Previous state kept Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Previous state kept Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Hi-Z Input enabled*3 (However, it does not function.) P04/INT04/ AN00 I/O port/ peripheral function I/O/ analog input I/O port/ peripheral function I/O/ analog input Previous state kept Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Previous state kept Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Hi-Z Input blocked*2 P05/INT05/ AN01/ CMP0_N I/O port/ peripheral function I/O/ analog input I/O port/ peripheral function I/O/ analog input Previous state Previous state Hi-Z*6 Hi-Z*6 kept kept Input Input Input Input 2, 7, 8 2, 7, 8 blocked*2, *7, *8 blocked* * * blocked*2, *7, *8 blocked* * * Hi-Z Input blocked*2 P06/AN02/ CMP0_O I/O port/ peripheral function I/O/ analog input I/O port/ peripheral function I/O/ analog input Previous state kept*9 Input blocked*2 Hi-Z*6 Input blocked*2 Previous state kept*9 Input blocked*2 Hi-Z*6 Input blocked*2 Hi-Z Input blocked*2 P07/AN03/ CMP0_P I/O port/ analog input I/O port/ analog input Previous state kept Input blocked*2, *8 Hi-Z*6 Input blocked*2, *8 Previous state kept Input blocked*2, *8 Hi-Z*6 Input blocked*2, *8 Hi-Z Input blocked*2 P10/DBG I/O port/ peripheral function I/O I/O port/ peripheral function I/O Previous state kept Input blocked*2 Hi-Z Input blocked*2 Previous state kept Input blocked*2 Hi-Z Input blocked*2 Hi-Z Input enabled*3 (However, it does not function.) P11/EC0/ DIO01 I/O port/ peripheral function I/O I/O port/ peripheral function I/O Previous state kept*5 Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Previous state kept*5 Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Hi-Z Input enabled*3 (However, it does not function.) PG2/X1A/ DIO03 1 1 Hi-Z* Input blocked*1, *2 Previous state kept*5 Input blocked*1, *2 Hi-Z* Input blocked*1, *2 Hi-Z Input enabled*3 (However, it does not function.) 6 6 P00/INT00 P01/INT01 P02/INT02 P03/INT03 Document Number: 002-09305 Rev. *C Page 132 of 172 PRELIMINARY Pin name Normal operation Sleep mode P12/BEEP I/O port/ peripheral function I/O P13/UI0/ DIO02 Stop mode MB95F856K, MB95F866K, MB95F876K Watch mode On reset SPL=0 SPL=1 SPL=0 SPL=1 I/O port/ peripheral function I/O Previous state kept*10 Input blocked*2 Hi-Z*6 Input blocked*2 Previous state kept*10 Input blocked*2 Hi-Z*6 Input blocked*2 Hi-Z Input enabled*3 (However, it does not function.) I/O port/ peripheral function I/O I/O port/ peripheral function I/O Previous state kept*5 Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Previous state kept*5 Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Hi-Z Input enabled*3 (However, it does not function.) P14/UO0 I/O port/ peripheral function I/O I/O port/ peripheral function I/O Previous state kept Input blocked*2 Hi-Z*6 Input blocked*2 Previous state kept Input blocked*2 Hi-Z*6 Input blocked*2 Hi-Z Input enabled*3 (However, it does not function.) P15/UCK0 I/O port/ peripheral function I/O I/O port/ peripheral function I/O Previous state kept Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Previous state kept Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Hi-Z Input enabled*3 (However, it does not function.) I/O port/ peripheral function I/O I/O port/ peripheral function I/O Previous state kept Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Previous state kept Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Hi-Z Input enabled*3 (However, it does not function.) I/O port/ peripheral function I/O/ analog input I/O port/ peripheral function I/O/ analog input Previous state kept Input blocked*2 Hi-Z*6 Input blocked*2 Previous state kept Input blocked*2 Hi-Z*6 Input blocked*2 Hi-Z Input blocked*2 I/O port/ peripheral function I/O I/O port/ peripheral function I/O Previous state kept Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Previous state kept Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Hi-Z Input enabled*3 (However, it does not function.) I/O port/ peripheral function I/O/ analog input I/O port/ peripheral function I/O/ analog input Previous state kept*5 Input blocked*2 Hi-Z*6 Input blocked*2 Previous state kept*5 Input blocked*2 Hi-Z*6 Input blocked*2 Hi-Z Input blocked*2 I/O port/ peripheral function I/O I/O port/ peripheral function I/O Previous state kept Input blocked*2, *11 Hi-Z Input blocked*2, *11 Previous state kept Input blocked*2, *11 Hi-Z Input blocked*2, *11 Hi-Z Input enabled*3 (However, it does not function.) I/O port/ peripheral function I/O I/O port/ peripheral function I/O Previous state kept*5 Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Previous state kept*5 Input blocked*2, *7 Hi-Z*6 Input blocked*2, *7 Hi-Z Input enabled*3 (However, it does not function.) I/O port/ peripheral function I/O I/O port/ peripheral function I/O Previous state kept Input blocked*2 Hi-Z*6 Input blocked*2 Previous state kept Input blocked*2 Hi-Z*6 Input blocked*2 Hi-Z Input enabled*3 (However, it does not function.) P16/INT09/ TO11 P17/INT08/ TO10 P40/AN04/ PPG00 P41/AN05/ PPG01 P42/INT06/ PPG10 P43/INT07/ PPG11 P44/AN06/ TO00/DIO03 P45/AN07/ TO01/DIO04 P46/SDA P47/SCL P60/EC1/ DIO00 P61/PPG20 P62/PPG21 Document Number: 002-09305 Rev. *C Page 133 of 172 PRELIMINARY Pin name Normal operation Sleep mode I/O port/ touch input I/O port/ touch input Stop mode MB95F856K, MB95F866K, MB95F876K Watch mode SPL=0 SPL=1 SPL=0 SPL=1 Previous state kept*12 Input blocked*2, *13 Hi-Z*12 Input blocked*2, *13 Previous state kept*12 Input blocked*2, *13 Hi-Z*12 Input blocked*2, *13 On reset P63/AREF P64/S00 P65/S01 P66/S02 P67/S03 P70/S04 P71/S05 P72/S06 Hi-Z Input blocked*2 P73/S07 P74/S08 P75/S09 P76/S10 P77/S11 SPL: Pin state setting bit in the standby control register (STBC:SPL) Hi-Z: High impedance *1: The pin stays at the state shown when configured as a general-purpose I/O port. *2: “Input blocked” means direct input gate operation from the pin is disabled. *3: “Input enabled” means that the input function is enabled. While the input function is enabled, a pull-up or pull-down operation has to be performed in order to prevent leaks due to external input. If a pin is used as an output port, its pin state is the same as that of other ports. *4: The PF2/RST pin stays at the state shown when configured as a reset pin. *5: In stop mode and watch mode, the pin functions as a TS direct output pin only when the SPL bit is set to “0” and the TS direct output function is enabled. *6: The pull-up control setting is still effective. *7: Though input is blocked, an external interrupt can be input when the external interrupt request is enabled. *8: Though input is blocked, an analog signal can be input to generate a comparator interrupt when the comparator interrupt is enabled. *9: In stop mode and watch mode, comparator input varies according to the register settings of the comparator, and the pin functions as a comparator output pin only when the SPL bit is set to “0” and the comparator output function is enabled. *10: In stop mode and watch mode, the pin functions as a beep output pin only when the SPL bit is set to “0” and the beep output function is enabled. *11: The I2C bus interface can wake up the MCU in stop mode or watch mode when its MCU standby mode wakeup function is enabled. For details of the MCU standby mode wakeup function, refer to “CHAPTER 21 I2C BUS INTERFACE” in “New 8FX MB95850K/860K/870K Series Hardware Manual”. *12: In stop mode and watch mode, the pin outputs SNCLK only when it is used as a TS touch input pin and the TS is in operation. *13: Though input is blocked, a touch signal can be input to generate a touch interrupt (TINT) when the TINT is enabled. Document Number: 002-09305 Rev. *C Page 134 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 17. Electrical Characteristics 17.1 Absolute Maximum Ratings Parameter Power supply voltage*1 Input voltage* 1 1 Output voltage* Maximum clamp current Total maximum clamp current “L” level maximum output current “L” level average current Symbol Rating VCC VSS 0.3 VSS  6 V VI VSS 0.3 VSS  6 V VO VSS 0.3 VSS  6 V ICLAMP 2 2 mA Applicable to specific pins*3 |ICLAMP| — 20 mA Applicable to specific pins*3 IOL — 15 mA 4 IOLAV1 IOLAV2 “L” level total average output current “H” level maximum output current “H” level average current mA 12 IOL — 100 mA IOLAV — 37 mA IOH — 15 mA 4 IOHAV1 — mA 8 IOHAV2 IOH — 100 mA IOHAV — 47 mA Power consumption Pd — 320 mW Operating temperature TA 40 85 Storage temperature Tstg 55 150 C C Operating humidity Hopr 5 95 % Electrostatic discharge (human-body model) HBM — 8000 V “H” level total maximum output current “H” level total average output current Remarks Max — “L” level total maximum output current Unit Min *2 *2 For pins other than P06, P07, P40 to P45 Average output current = operating current  operating ratio (1 pin) For P06, P07, P40 to P45 Average output current = operating current  operating ratio (1 pin) Total average output current = operating current  operating ratio (Total number of pins) For pins other than P06, P07, P40 to P45 Average output current = operating current  operating ratio (1 pin) For P06, P07, P40 to P45 Average output current = operating current  operating ratio (1 pin) Total average output current = operating current  operating ratio (Total number of pins) For the TS touch input pins: S00 to S11 *1: These parameters are based on the condition that VSS is 0.0 V. *2: V1 and V0 must not exceed VCC  0.3 V. V1 must not exceed the rated voltage. However, if the maximum current to/from an input is limited by means of an external component, the ICLAMP rating is used instead of the VI rating. *3: Specific pins: P00 to P07, P11 to P17, P40 to P45, P60 to P67, P70 to P77, PF0, PF1, PG1, PG2 • Use under recommended operating conditions. • Use with DC voltage (current). • The HV (High Voltage) signal is an input signal exceeding the VCC voltage. Always connect a limiting resistor between the HV (High Voltage) signal and the microcontroller before applying the HV (High Voltage) signal. • The value of the limiting resistor should be set to a value at which the current to be input to the microcontroller pin when the HV (High Voltage) signal is input is below the standard value, irrespective of whether the current is transient current or stationary current. Document Number: 002-09305 Rev. *C Page 135 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K • When the microcontroller drive current is low, such as in low power consumption modes, the HV (High Voltage) input potential may pass through the protective diode to increase the potential of the VCC pin, affecting other devices. • If the HV (High Voltage) signal is input when the microcontroller power supply is off (not fixed at 0 V), since power is supplied from the pins, incomplete operations may be executed. • If the HV (High Voltage) input is input after power-on, since power is supplied from the pins, the voltage of power supply may not be sufficient to enable a power-on reset. • Do not leave the HV (High Voltage) input pin unconnected. • Example of a recommended circuit: Input/Output equivalent circuit Protective diode VCC P-ch Limiting resistor HV(High Voltage) input (0 V to 16 V) N-ch R Warning: Semiconductor devices can be permanently damaged by application of stress (voltage, current, temperature, etc.) in excess of absolute maximum ratings. Do not exceed these ratings. Document Number: 002-09305 Rev. *C Page 136 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 17.2 Recommended Operating Conditions (VSS = 0.0 V) Parameter Symbol Power supply voltage VCC Decoupling capacitor Operating temperature CS TA Value Unit Remarks Min Max 2.88 5.5 2.4 5.5 2.3 5.5 0.022 1 µF * 40 85 Other than on-chip debug mode 5 35 C When the device is powered on or in on-chip debug mode, or when the LVD reset circuit is enabled V When the LVD reset circuit is disabled Hold condition in stop mode On-chip debug mode *: Use a ceramic capacitor or a capacitor with equivalent frequency characteristics. The bypass capacitor for the VCC pin must have a capacitance larger than CS. For the connection to a decoupling capacitor CS, see the diagram below. To prevent the device from unintentionally entering an unknown mode due to noise, minimize the distance between the C pin and CS and the distance between CS and the VSS pin when designing the layout of a printed circuit board. ■ DBG / RST / C pins connection diagram * DBG C RST Cs *: Connect the DBG pin to an external pull-up resistor of 2 k or above. After power-on, ensure that the DBG pin does not stay at “L” level until the reset output is released. The DBG pin becomes a communication pin in debug mode. Since the actual pull-up resistance depends on the tool used and the interconnection length, refer to the tool document when selecting a pull-up resistor. Warning: ■ The recommended operating conditions are required in order to ensure the normal operation of the semiconductor device. All of the device's electrical characteristics are warranted when the device is operated within these ranges. ■ Always use semiconductor devices within their recommended operating condition ranges. Operation outside these ranges may adversely affect reliability and could result in device failure. ■ No warranty is made with respect to uses, operating conditions, or combinations not represented on the data sheet. Users considering application outside the listed conditions are advised to contact their representatives beforehand. Document Number: 002-09305 Rev. *C Page 137 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 17.3 DC Characteristics (VCC = 5.0 V±10%, VSS = 0.0 V, TA = -40 °C to +85 °C) Parameter Symbol “H” level input voltage VIHI P13, P46, P47 VIHS “L” level input voltage Open-drain output application voltage “H” level output voltage “L” level output voltage Condition Value Unit Remarks Min Typ Max — 0.7 VCC — VCC  0.3 V CMOS input level Other than P13, P46, P47, PF2 — 0.8 VCC — VCC  0.3 V Hysteresis input VIHM PF2 — 0.8 VCC — VCC  0.3 V Hysteresis input VILI P13, P46, P47 — VSS 0.3 — 0.3 VCC V CMOS input level VILS Other than P13, P46, P47, PF2 — VSS 0.3 — 0.2 VCC V Hysteresis input VILM PF2 — VSS 0.3 — 0.2 VCC V Hysteresis input — VSS 0.3 — Vss  5.5 V P10, P46, P47, PF2 VD VOH1 Output pins other than P06, P07, P10, P40 to P45, PF2 IOH = 4 mA VCC 0.5 — — V VOH2 P06, P07, P40 to P45 IOH = 8 mA VCC 0.5 — — V VOL1 Output pins other than P06, P07, P40 to P45 IOL = 4 mA — — 0.4 V VOL2 P06, P07, P40 to P45 IOL = 12 mA — — 0.4 V Input leak current (Hi-Z output leak current) ILI Internal pull-up resistor RPULL Input capacitance Pin name CIN All input pins Other than P10, P46, P47, PF0, PF1, PF2 Other than VCC and VSS Document Number: 002-09305 Rev. *C 0.0 V < VI < VCC 5 — 5 µA VI = 0 V 25 50 100 k f = 1 MHz — 5 15 pF When the internal pull-up resistor is disabled When the internal pull-up resistor is enabled Page 138 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY Parameter Symbol Pin name Power supply VCC current*3 (External clock operation) ICC Condition FCH = 32 MHz Value Unit Typ Max — 4.7 5.8 mA Except during Flash memory programming and erasing — 8.6 13.8 mA During Flash memory programming and erasing — 6.1 9.1 mA At A/D conversion — 2.2 3 mA — 63 145 µA FMP = 16 MHz Main clock mode (divided by 2) Remarks Min FCH = 32 MHz FMP = 16 MHz ICCS Main sleep mode (divided by 2) FCL = 32 kHz FMPL = 16 kHz ICCL Subclock mode (divided by 2) TA = 25 °C In deep standby mode FCL = 32 kHz FMPL = 16 kHz ICCLS Subsleep mode (divided by 2) — 11 16 µA TA = 25 °C FCL = 32 kHz Watch mode Main stop mode ICCT In deep standby mode — 8 13 µA — 5.1 6.8 mA — 1.4 4.6 mA — 58.1 230 µA TA = 25 °C VCC FMCRPLL = 16 MHz FMP = 16 MHz Main CR PLL clock mode (multiplied by 4) ICCMPLL TA = 25 °C FCRH = 4 MHz FMP = 4 MHz ICCMCR Main CR clock mode Sub-CR clock mode (divided by 2) ICCSCR TA = 25 °C VCC ICCTS (External clock operation) In deep standby mode FCH = 32 MHz Time-base timer mode — 590 660 µA — 8 13 µA TA = 25 °C ICCH Document Number: 002-09305 Rev. *C Substop mode TA = 25 °C In deep standby mode Page 139 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY Parameter Symbol Condition Value Unit Min Typ Max Current consumption of the comparator — 60 160 µA ILVD Current consumption of the low-voltage detection reset circuit — 4 7 µA ICRH Current consumption of the main CR oscillator — 240 320 µA ICRL Current consumption of the sub-CR oscillator oscillating at 100 kHz — 7 20 µA — 20 30 µA — 37 60 µA Power supply current*3 Pin name IV VCC INSTBY Current consumption difference between normal standby mode and deep standby mode Remarks TA = 25 °C ITSC Current consumption difference between standby mode with the TS in operation and standby mode with the TS not in operation *1: VCC = 5.0 V, TA = 25 °C *2: VCC = 5.5 V, TA = 85 °C (unless otherwise specified) *3: • The power supply current is determined by the external clock. When the low-voltage detection reset circuit is selected, the power supply current is the sum of adding the current consumption of the low-voltage detection reset circuit (ILVD) to one of the values from ICC to ICCH. In addition, when both the low-voltage detection reset circuit and a CR oscillator are selected, the power supply current is the sum of adding up the current consumption of the low-voltage detection circuit, the current consumption of the CR oscillators (ICRH or ICRL) and one of the values from ICC to ICCH. In on-chip debug mode, the main CR oscillator (ICRH) and the low-voltage detection resket circuit are always in operation, and current consumption therefore increases accordingly. • See “4. AC Characteristics Clock Timing on page 141” for FCH, FCL, FCRH and FMCRPLL. • See “4. AC Characteristics Source Clock/Machine Clock on page 145” for FMP and FMPL. • The power supply current value in standby mode is measured in deep standby mode. The current consumption in normal standby is higher than that in deep standby mode. The power supply current value in normal standby can be found by adding the current consumption difference between normal standby mode and deep standby mode (INSTBY) to the power supply current value in deep standby mode. For details of normal standby and deep standby mode, refer to “CHAPTER 3 CLOCK CONTROLLER” in “New 8FX MB95850K/860K/870K Series Hardware Manual”. Document Number: 002-09305 Rev. *C Page 140 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 17.4 AC Characteristics 17.4.1 Clock Timing (VCC = 2.4 V to 5.5 V, VSS = 0.0 V, TA = 40 °C to 85 °C) Parameter Symbol FCH FCRH Pin name Condition X0, X1 Value Clock cycle time Remarks Typ Max — 1 — 16.25 X0 X1: open 1 — 12 MHz X0, X1 * 1 — 32.5 MHz 3.92 4 4.08 Operating conditions MHz • The main CR clock is used. • 0 C TA 70 C — — — MHz When the main oscillation circuit is used When the main external clock is used 3.8 4 4.2 Operating conditions • The main CR clock is used. MHz •  40 C  TA  0 C,  70 C  TA   85 C 7.84 8 8.16 Operating conditions MHz • PLL multiplication rate: 2 • 0 C TA 70 C 7.6 8 8.4 MHz 9.8 10 10.2 Operating conditions MHz • PLL multiplication rate: 2.5 • 0 C TA 70 C Clock frequency FMCRPLL Unit Min Operating conditions • PLL multiplication rate: 2 •  40 C  TA  0 C,  70 C  TA   85 C 9.5 10 10.5 Operating conditions • PLL multiplication rate: 2.5 MHz •  40 C  TA  0 C,  70 C  TA   85 C 11.76 12 12.24 Operating conditions MHz • PLL multiplication rate: 3 • 0 C TA 70 C 11.4 12 12.6 MHz 15.68 16 16.32 Operating conditions MHz • PLL multiplication rate: 4 • 0 C TA 70 C Operating conditions • PLL multiplication rate: 4 MHz •  40 C  TA  0 C,  70 C  TA   85 C — Operating conditions • PLL multiplication rate: 3 •  40 C  TA  0 C,  70 C  TA   85 C 15.2 16 16.8 — 32.768 — kHz When the sub-oscillation circuit is used FCL X0A, X1A — — 32.768 — kHz When the sub-external clock is used FCRL — — 50 100 150 kHz When the sub-CR clock is used X0, X1 — 61.5 — 1000 ns X0 X1: open 83.4 — 1000 ns X0, X1 * 30.8 — 1000 ns X0A, X1A — — 30.5 — µs tHCYL tLCYL Document Number: 002-09305 Rev. *C When the main oscillation circuit is used When an external clock is used When the subclock is used Page 141 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY Parameter Input clock pulse width Input clock rising time and falling time Symbol Pin name Condition tWH1, tWL1 X0 tWH2, tWL2 tCR, tCF Value Unit Min Typ Max X1: open 33.4 — — ns X0, X1 * 12.4 — — ns X0A — — 15.2 — µs X0 X1: open — — 5 ns X0, X1 * — — 5 ns Remarks When an external clock is used, the duty ratio should range between 40% and 60%. When an external clock is used CR oscillation start time tCRHWK — — — — 50 µs When the main CR clock is used tCRLWK — — — — 30 µs When the sub-CR clock is used PLL oscillation start time tMCRPLLWK — — — — 100 µs When the main CR PLL clock is used *: The external clock signal is input to X0 and the inverted external clock signal to X1. Document Number: 002-09305 Rev. *C Page 142 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY ■ Input waveform generated when an external clock (main clock) is used tHCYL tWH1 tWL1 tCR tCF 0.8 VCC 0.8 VCC X0, X1 0.2 VCC ■ 0.2 VCC 0.2 VCC Figure of main clock input port external connection When a crystal oscillator or a ceramic oscillator is used X0 When an external clock is used When an external clock (X1 is open) is used X0 X1 X1 X0 FCH FCH ■ X1 Open FCH Input waveform generated when an external clock (subclock) is used tLCYL tWH2 tCR tWL2 tCF 0.8 VCC 0.8 VCC X0A 0.2 VCC ■ 0.2 VCC 0.2 VCC Figure of subclock input port external connection When a crystal oscillator or a ceramic oscillator is used X0A X1A FCL When an external clock is used X0A X1A Open FCL Document Number: 002-09305 Rev. *C Page 143 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY ■ Input waveform generated when an internal clock (main CR clock) is used tCRHWK 1/FCRH Main CR clock Oscillation starts ■ Oscillation stabilizes Input waveform generated when an internal clock (sub-CR clock) is used tCRLWK 1/FCRL Sub-CR clock Oscillation starts ■ Oscillation stabilizes Input waveform generated when an internal clock (main CR PLL clock) is used 1/FMCRPLL tMCRPLLWK Main CR PLL clock Oscillation starts Document Number: 002-09305 Rev. *C Oscillation stabilizes Page 144 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 17.4.2 Source Clock/Machine Clock (VCC = 5.0 V10%, VSS = 0.0 V, TA = 40 °C to 85 °C) Parameter Source clock cycle time*1 Symbol tSCLK Pin name — FSP Source clock frequency Machine clock cycle time*2 (minimum instruction execution time) — FSPL tMCLK Unit — FMPL Remarks Typ Max 61.5 — 2000 ns When the main external clock is used Min: FCH = 32.5 MHz, divided by 2 Max: FCH = 1 MHz, divided by 2 62.5 — 1000 ns When the main CR clock is used Min: FCRH = 4 MHz, multiplied by 4 Max: FCRH = 4 MHz, divided by 4 — 61 — µs When the sub-oscillation clock is used FCL = 32.768 kHz, divided by 2 — 20 — µs When the sub-CR clock is used FCRL = 100 kHz, divided by 2 0.5 — 16.25 MHz When the main oscillation clock is used — 4 12.5 MHz When the main CR clock is used — 16.384 — kHz When the sub-oscillation clock is used — 50 — kHz 61.5 — 32000 ns When the main oscillation clock is used Min: FSP = 16.25 MHz, no division Max: FSP = 0.5 MHz, divided by 16 250 — 4000 ns When the main CR clock is used Min: FSP = 4 MHz, no division Max: FSP = 4 MHz, divided by 16 61 — 976.5 µs When the sub-oscillation clock is used Min: FSPL = 16.384 kHz, no division Max: FSPL = 16.384 kHz, divided by 16 20 — 320 µs When the sub-CR clock is used Min: FSPL = 50 kHz, no division Max: FSPL = 50 kHz, divided by 16 0.031 — 16.25 0.25 — 16 1.024 — 16.384 3.125 — 50 — FMP Machine clock frequency Value Min When the sub-CR clock is used FCRL = 100 kHz, divided by 2 MHz When the main oscillation clock is used MHz When the main CR clock is used kHz When the sub-oscillation clock is used kHz When the sub-CR clock is used FCRL = 100 kHz *1: This is the clock before it is divided according to the division ratio set by the machine clock division ratio select bits (SYCC:DIV[1:0]). This source clock is divided to become a machine clock according to the division ratio set by the machine clock division ratio select bits (SYCC:DIV[1:0]). In addition, a source clock can be selected from the following. • Main clock divided by 2 • Main CR clock • PLL multiplication of main CR clock (Select a multiplication rate from 2, 2.5, 3 and 4.) • Subclock divided by 2 • Sub-CR clock divided by 2 *2: This is the operating clock of the microcontroller. A machine clock can be selected from the following. • Source clock (no division) • Source clock divided by 4 • Source clock divided by 8 • Source clock divided by 16 Document Number: 002-09305 Rev. *C Page 145 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY ■ Schematic diagram of the clock generation block FCH (Main oscillation clock) Divided by 2 FCRH (Main CR clock) SCLK (Source clock) FMCRPLL (Main CR PLL clock) FCL (Suboscillation clock) Division circuit × 1 × 1/4 × 1/8 × 1/16 MCLK (Machine clock) Divided by 2 Machine clock divide ratio select bits (SYCC:DIV[1:0]) FCRL (Sub-CR clock) Divided by 2 Clock mode select bits (SYCC:SCS[2:0]) ■ Operating voltage - Operating frequency (TA = 40°C to 85°C) 5.5 Operating voltage (V) 5.0 A/D converter operation range 4.0 3.5 3.0 2.7 2.4 16 kHz 3 MHz 10 MHz 16.25 MHz Source clock frequency (FSP/FSPL) Document Number: 002-09305 Rev. *C Page 146 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 17.4.3 External Reset (VCC = 5.0 V10%, VSS = 0.0 V, TA = 40 °C to 85 °C) Parameter Value Symbol RST “L” level pulse width tRSTL Min Max 2 tMCLK* — Unit Remarks ns *: See “Source Clock/Machine Clock” for tMCLK. tRSTL RST 0.2 VCC 0.2 VCC 17.4.4 Power-on Reset (VSS = 0.0 V, TA = 40 °C to 85 °C) Parameter Symbol Condition Power supply rising time tR Power supply cutoff time tOFF Value Unit Min Max — — 50 ms — 1 — ms tR Remarks Wait time until power-on tOFF 2.5 V VCC 0.2 V 0.2 V 0.2 V Note: A sudden change of power supply voltage may activate the power-on reset function. When changing the power supply voltage during the operation, set the slope of rising to a value below within 30 mV/ms as shown below. VCC 2.3 V Set the slope of rising to a value below 30 mV/ms. Hold condition in stop mode VSS Document Number: 002-09305 Rev. *C Page 147 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 17.4.5 Peripheral Input Timing (VCC = 5.0 V10%, VSS = 0.0 V, TA = 40 °C to 85 °C) Parameter Symbol Peripheral input “H” pulse width tILIH Peripheral input “L” pulse width tIHIL Min INT00 to INT09*1, EC0, EC1 tILIH INT00 to INT09*1, EC0, EC1 Value Pin name 0.8 VCC Max Unit 2 tMCLK*2 — ns 2 — ns 2 tMCLK* tIHIL 0.8 VCC 0.2 VCC 0.2 VCC *1: On the MB95850K Series, only INT00, INT01, INT04, INT05, INT06 and INT07 are available. On the MB95860K Series, only INT00 to INT07 are available. On the MB95870K Series, INT00 to INT09 are available. *2: See “Source Clock/Machine Clock” for tMCLK. Document Number: 002-09305 Rev. *C Page 148 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 17.4.6 Low-voltage Detection (VSS = 0.0 V, TA = 40 °C to 85 °C) Parameter Symbol Release voltage* VDL Detection voltage* VDL Value Unit Min Typ Max 2.52 2.7 2.88 V 2.61 2.8 2.99 V 2.89 3.1 3.31 V 3.08 3.3 3.52 V 2.43 2.6 2.77 V 2.52 2.7 2.88 V 2.80 3 3.20 V 2.99 3.2 3.41 V VHYS — — 100 mV Power supply start voltage Voff — — 2.3 V Power supply end voltage Hysteresis width Remarks At power supply rise At power supply fall Von 4.9 — — V Power supply voltage change time (at power supply rise) tr 650 — — µs Slope of power supply that the reset release signal generates within the rating (VDL+) Power supply voltage change time (at power supply fall) tf 650 — — µs Slope of power supply that the reset detection signal generates within the rating (VDL-) Reset release delay time td1 — — 30 µs Reset detection delay time td2 — — 30 µs LVD reset threshold voltage transition stabilization time tstb 10 — — µs *: After the LVD reset is enabled by the LVD reset circuit control register (LVDCC), the release voltage and the detection voltage can be selected by using the LVD reset voltage selection ID register (LVDR) in the low-voltage detection reset circuit. For details of the LVDCC register and the LVDR register, refer to “CHAPTER 16 LOW-VOLTAGE DETECTION RESET CIRCUIT” in “New 8FX MB95850K/860K/870K Series Hardware Manual”. Document Number: 002-09305 Rev. *C Page 149 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY VCC Von Voff time tf tr VDL+ VHYS VDL- Internal reset signal time td2 Document Number: 002-09305 Rev. *C td1 Page 150 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 17.4.7 I2C Bus Interface Timing (VCC = 5.0 V10%, VSS = 0.0 V, TA = 40 °C to 85 °C) Value Parameter Symbol Pin name Condition Standard-mode Fast-mode Min Max Min Max Unit fSCL SCL 0 100 0 400 kHz tHD;STA SCL, SDA 4.0 — 0.6 — µs SCL clock “L” width tLOW SCL 4.7 — 1.3 — µs SCL clock “H” width 4.0 — 0.6 — µs 4.7 — 0.6 — µs 0 3.45*2 0 0.9*3 µs SCL clock frequency (Repeated) START condition hold time SDA  SCL  tHIGH SCL (Repeated) START condition setup time SCL  SDA  tSU;STA SCL, SDA Data hold time SCL  SDA  tHD;DAT SCL, SDA Data setup time SDA  SCL  tSU;DAT SCL, SDA 0.25 — 0.1 — µs STOP condition setup time SCL   SDA  tSU;STO SCL, SDA 4 — 0.6 — µs tBUF SCL, SDA 4.7 — 1.3 — µs Bus free time between STOP condition and START condition R = 1.7 k, C = 50 pF*1 *1: R represents the pull-up resistor of the SCL and SDA lines, and C the load capacitor of the SCL and SDA lines. *2: The maximum tHD;DAT in the Standard-mode is applicable only when the time during which the device is holding the SCL signal at “L” (tLOW) does not extend. *3: A Fast-mode I2C-bus device can be used in a Standard-mode I2C-bus system, provided that the condition of tSU;DAT  250 ns is fulfilled. tWAKEUP SDA tLOW tHD;DAT tHIGH tHD;STA tBUF SCL tHD;STA Document Number: 002-09305 Rev. *C tSU;DAT fSCL tSU;STA tSU;STO Page 151 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY (VCC = 5.0 V10%, VSS = 0.0 V, TA = 40 °C to 85 °C) Parameter Pin Symbol name Condition Value*2 Min Max Unit Remarks SCL clock “L” width tLOW SCL (2  nm/2)tMCLK  20 — ns Master mode SCL clock “H” width tHIGH SCL (nm/2)tMCLK  20 (nm/2)tMCLK  20 ns Master mode tHD;STA SCL, SDA (-1  nm/2)tMCLK  20 (-1  nm)tMCLK  20 ns Master mode Maximum value is applied when m, n = 1, 8. Otherwise, the minimum value is applied. STOP condition setup tSU;STO time SCL, SDA (1  nm/2)tMCLK  20 (1  nm/2)tMCLK  20 ns Master mode Master mode START condition hold time START condition setup time tSU;STA SCL, SDA (1  nm/2)tMCLK  20 (1  nm/2)tMCLK  20 ns Bus free time between STOP condition and START condition tBUF SCL, SDA (2 nm  4) tMCLK  20 — ns Data hold time tHD;DAT SCL, SDA 3 tMCLK  20 — ns Master mode ns Master mode It is assumed that “L” of SCL is not extended. The minimum value is applied to the first bit of continuous data. Otherwise, the maximum value is applied. Data setup time tSU;DAT SCL, SDA R = 1.7 k, C = 50 pF*1 (-2  nm/2) tMCLK  20 (-1  nm/2) tMCLK  20 Setup time between clearing interrupt and SCL rising tSU;INT SCL (nm/2) tMCLK  20 (1  nm/2) tMCLK  20 ns The minimum value is applied to the interrupt at the ninth SCL. The maximum value is applied to the interrupt at the eighth SCL. SCL clock “L” width tLOW SCL 4 tMCLK  20 — ns At reception SCL clock “H” width tHIGH SCL 4 tMCLK  20 — ns At reception Document Number: 002-09305 Rev. *C Page 152 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY Parameter Pin Symbol name tHD;STA SCL, SDA tSU;STO SCL, SDA RESTART condition detection condition tSU;STA SCL, SDA Bus free time tBUF SCL, SDA Data hold time tHD;DAT Data setup time START condition detection STOP condition detection Condition Value*2 Min 2 tMCLK  20 2 tMCLK  20 Max — — Unit Remarks ns No START condition is detected when 1 tMCLK is used at reception. ns No STOP condition is detected when 1 tMCLK is used at reception. 2 tMCLK  20 — ns No RESTART condition is detected when 1 tMCLK is used at reception. 2 tMCLK  20 — ns At reception SCL, SDA 2 tMCLK  20 — ns At slave transmission mode tSU;DAT SCL, SDA tLOW  3 tMCLK  20 — ns At slave transmission mode Data hold time tHD;DAT SCL, SDA 0 — ns At reception Data setup time tSU;DAT SCL, SDA tMCLK  20 — ns At reception SDA  SCL (with wakeup function tWAKEUP in use) SCL, SDA Oscillation stabilization wait time 2 tMCLK  20 — ns R = 1.7 k, C = 50 pF*1 *1: R represents the pull-up resistor of the SCL and SDA lines, and C the load capacitor of the SCL and SDA lines. *2: • See “Source Clock/Machine Clock” for tMCLK. • m represents the CS[4:3] bits in the I2C clock control register (ICCR0). • n represents the CS[2:0] bits in the I2C clock control register (ICCR0). • The actual timing of the I2C bus interface is determined by the values of m and n set by the machine clock (tMCLK) and the CS[4:0] bits in the ICCR0 register. • Standard-mode: m and n can be set to values in the following range: 0.9 MHz  tMCLK (machine clock)  16.25 MHz. The usable frequencies of the machine clock are determined by the settings of m and n as shown below. (m, n) = (1, 8) : 0.9 MHz < tMCLK  1 MHz (m, n) = (1, 22), (5, 4), (6, 4), (7, 4), (8, 4) : 0.9 MHz < tMCLK  2 MHz (m, n) = (1, 38), (5, 8), (6, 8), (7, 8), (8, 8) : 0.9 MHz < tMCLK  4 MHz (m, n) = (1, 98), (5, 22), (6, 22), (7, 22) : 0.9 MHz < tMCLK  10 MHz (m, n) = (8, 22) : 0.9 MHz < tMCLK  16.25 MHz • Fast-mode: m and n can be set to values in the following range: 3.3 MHz < tMCLK (machine clock) < 16.25 MHz. The usable frequencies of the machine clock are determined by the settings of m and n as shown below. (m, n) = (1, 8) : 3.3 MHz < tMCLK  4 MHz (m, n) = (1, 22), (5, 4) : 3.3 MHz < tMCLK  8 MHz (m, n) = (1, 38), (6, 4), (7, 4), (8, 4) : 3.3 MHz < tMCLK  10 MHz (m, n) = (5, 8) : 3.3 MHz < tMCLK  16.25 MHz Document Number: 002-09305 Rev. *C Page 153 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 17.4.8 UART/SIO, Serial I/O Timing (VCC = 5.0 V10%, VSS = 0.0 V, TA = 40 °C to 85 °C) Parameter Symbol Pin name Serial clock cycle time tSCYC UCK0 UCK  UO time tSLOV UCK0, UO0 Value Condition Internal clock operation Unit Min Max 4 tMCLK* — ns 190 190 ns Valid UI  UCK  tIVSH UCK0, UI0 2 tMCLK* — ns UCK  valid UI hold time tSHIX UCK0, UI0 2 tMCLK* — ns Serial clock “H” pulse width tSHSL UCK0 4 tMCLK* — ns Serial clock “L” pulse width tSLSH UCK0 4 tMCLK* — ns UCK  UO time tSLOV UCK0, UO0 — 190 ns Valid UI  UCK  tIVSH UCK0, UI0 2 tMCLK* — ns UCK  valid UI hold time tSHIX UCK0, UI0 2 tMCLK* — ns External clock operation *: See “Source Clock/Machine Clock” for tMCLK. ■ Internal shift clock mode tSCYC 0.8 VCC UCK0 0.2 VCC 0.2 VCC tSLOV 0.8 VCC UO0 0.2 VCC tIVSH tSHIX 0.7 VCC 0.7 VCC UI0 0.3 VCC 0.3 VCC ■ External shift clock mode tSLSH tSHSL 0.8 VCC 0.8 VCC UCK0 0.2 VCC 0.2 VCC tSLOV 0.8 VCC UO0 0.2 VCC tIVSH tSHIX 0.7 VCC 0.7 VCC UI0 0.3 VCC 0.3 VCC Document Number: 002-09305 Rev. *C Page 154 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 17.4.9 Comparator Timing (VCC = 2.4 V to 5.5 V, VSS = 0.0 V, TA = 40 °C to 85 °C) Parameter Value Pin name Min Typ Max Unit Remarks Voltage range CMP0_P, CMP0_N 0 — VCC  1.3 V Offset voltage CMP0_P, CMP0_N 15 — 15 mV — 650 1200 ns Overdrive 5 mV — 140 420 ns Overdrive 50 mV CMP0_O — — 1200 ns Power down recovery PD: 1  0 CMP0_O — — 1200 ns Delay time Power down delay Power up stabilization wait time CMP0_O Output stabilization time at power up 17.4.10 BGR for Comparator (VCC = 2.4 V to 5.5 V, VSS = 0.0 V, TA = 40 °C to 85 °C) Parameter Power up stabilization wait time Output voltage Symbol Value Min Typ Max Unit — — — 150 µs VBGR 1.1495 1.21 1.2705 V Document Number: 002-09305 Rev. *C Remarks Load: 10 pF Page 155 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 17.4.11 TS (VCC = 2.4 V to 5.5 V, VSS = 0.0 V, TA = 40 °C to 85 °C) Parameter Symbol Value Unit Remarks — pF The sensitivity of touch ch. n bits in a TS sensitivity select register x (RSELx:SnB[2:0])*1 have been set to “0b000”. 0.086 — pF The sensitivity of touch ch. n bits in a TS sensitivity select register x (RSELx:SnB[2:0])*1 have been set to “0b001”. 0.040 0.063 — pF The sensitivity of touch ch. n bits in a TS sensitivity select register x (RSELx:SnB[2:0])*1 have been set to “0b010”. 0.032 0.047 — pF The sensitivity of touch ch. n bits in a TS sensitivity select register x (RSELx:SnB[2:0])*1 have been set to “0b011”. 0.025 0.040 — pF The sensitivity of touch ch. n bits in a TS sensitivity select register x (RSELx:SnB[2:0])*1 have been set to “0b100”. 0.022 0.033 — pF The sensitivity of touch ch. n bits in a TS sensitivity select register x (RSELx:SnB[2:0])*1 have been set to “0b101”. 0.019 0.030 — pF The sensitivity of touch ch. n bits in a TS sensitivity select register x (RSELx:SnB[2:0])*1 have been set to “0b110”. 0.017 0.027 — pF The sensitivity of touch ch. n bits in a TS sensitivity select register x (RSELx:SnB[2:0])*1 have been set to “0b111”. Csi 0 — 15 pF FSNCLKS 5 — 20 kHz Touch sensitivity Min Typ Max 0.068 0.149 0.054 Stch Tuning capacitor in AREF and sensor pad Sensor clock*2 (sensing phase) Frequency of the sensor clock in the sensing phase *1: “n” represents the touch channel number and “x” a number from one to six. For details of the RSELx register, refer to “CHAPTER 26 TOUCH SENSOR” in “New 8FX MB95850K/860K/870K Series Hardware Manual”. *2: For details of the sensor clock, refer to “CHAPTER 26 TOUCH SENSOR” in “New 8FX MB95850K/860K/870K Series Hardware Manual”. Document Number: 002-09305 Rev. *C Page 156 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 17.5 A/D Converter 17.5.1 A/D Converter Electrical Characteristics (VCC = 2.7 V to 5.5 V, VSS = 0.0 V, TA = 40 °C to 85 °C) Parameter Value Symbol Resolution Total error Linearity error — Differential linearity error Unit Min Typ Max — — 10 bit 3 — 3 LSB 2.5 — 2.5 LSB 1.9 — 1.9 LSB Remarks Zero transition voltage V0T VSS 7.2 LSB VSS  0.5 LSB VSS  8.2 LSB V Full-scale transition voltage VFST VCC 6.2 LSB VCC 1.5 LSB VCC  9.2 LSB V — 3 — 10 µs 2.7 V  VCC  5.5 V — 0.941 — ¥ µs 2.7 V  VCC  5.5 V, with external impedance  3.3 k and external capacitance = 10 pF Analog input current IAIN 0.3 — 0.3 µA Analog input voltage VAIN VSS — VCC V Compare time Sampling time Document Number: 002-09305 Rev. *C Page 157 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 17.5.2 Notes on Using A/D Converter ■ External impedance of analog input and its sampling time The A/D converter of the MB95850K/860K/870K Series has a sample and hold circuit. If the external impedance is too high to keep sufficient sampling time, the analog voltage charged to the capacitor of the internal sample and hold circuit is insufficient, adversely affecting A/D conversion precision. Therefore, to satisfy the A/D conversion precision standard, considering the relationship between the external impedance and minimum sampling time, either adjust the register value and operating frequency or decrease the external impedance so that the sampling time is longer than the minimum value. In addition, if sufficient sampling time cannot be secured, connect a capacitor of about 0.1 µF to the analog input pin. ■ Analog input equivalent circuit Analog input Comparator R C During sampling: ON VCC R C 4.5 V ≤ VCC ≤ 5.5 V 2.7 V ≤ VCC < 4.5 V 1.45 kΩ (Max) 2.7 kΩ (Max) 14.89 pF (Max) 14.89 pF (Max) Note: The values are reference values. ■ Relationship between external impedance and minimum sampling time [External impedance = 0 kΩ to 100 kΩ] 100 External impedance [kΩ] 80 60 40 20 0 0 2 4 6 8 10 12 14 16 18 20 Minimum sampling time [μs] [External impedance = 0 kΩ to 20 kΩ] External impedance [kΩ] 20 15 10 5 0 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 Minimum sampling time [μs] Note: External capacitance = 10 pF ■ A/D conversion error As |VCC  VSS| decreases, the A/D conversion error increases proportionately. Document Number: 002-09305 Rev. *C Page 158 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 17.5.3 Definitions of A/D Converter Terms ■ Resolution It indicates the level of analog variation that can be distinguished by the A/D converter. When the number of bits is 10, analog voltage can be divided into 210 = 1024. ■ Linearity error (unit: LSB) It indicates how much an actual conversion value deviates from the straight line connecting the zero transition point (“0000000000”   “0000000001”) of a device to the full-scale transition point (“1111111111”   “1111111110”) of the same device. ■ Differential linear error (unit: LSB) It indicates how much the input voltage required to change the output code by 1 LSB deviates from an ideal value. ■ Total error (unit: LSB) It indicates the difference between an actual value and a theoretical value. The error can be caused by a zero transition error, a full-scale transition errors, a linearity error, a quantum error, or noise. Ideal I/O characteristics Total error VFST 0x3FF 0x3FF 2 LSB 0x3FD Digital output Digital output 0x3FD 0x004 0x003 Actual conversion characteristic 0x3FE 0x3FE V0T {1 LSB × (N − 1) + 0.5 LSB} 0x004 VNT 0x003 1 LSB 0x002 0x002 0x001 Actual conversion characteristic Ideal characteristic 0x001 0.5 LSB VSS Analog input 1 LSB = VCC VCC − VSS V 1024 N VSS Analog input Total error of digital output N = VCC VNT − {1 LSB × (N − 1) + 0.5 LSB} LSB 1 LSB : A/D converter digital output value VNT : Voltage at which the digital output transits from 0x(N − 1) to 0xN Document Number: 002-09305 Rev. *C Page 159 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY Zero transition error Full-scale transition error 0x004 Ideal characteristic Actual conversion characteristic 0x3FF Actual conversion characteristic 0x002 Ideal characteristic Digital output Digital output 0x003 Actual conversion characteristic 0x3FE VFST (measurement value) 0x3FD Actual conversion characteristic 0x001 0x3FC V0T (measurement value) VSS Analog input VCC VSS Linearity error 0x3FF 0x3FE Ideal characteristic 0x(N+1) Actual conversion characteristic {1 LSB × N + V0T} VFST Digital output Digital output 0x3FD (measurement value) VNT 0x004 0x002 VCC Differential linearity error Actual conversion characteristic V(N+1)T 0xN VNT 0x(N−1) Actual conversion characteristic 0x003 Analog input Ideal characteristic Actual conversion characteristic 0x(N−2) 0x001 V0T (measurement value) VSS Analog input VCC Linearity error of digital output N = VSS VCC VNT − {1 LSB × N + V0T} 1 LSB Differential linearity error of digital output N = N Analog input V(N+1)T − VNT − 1 1 LSB : A/D converter digital output value VNT : Voltage at which the digital output transits from 0x(N − 1) to 0xN V0T (ideal value) = VSS + 0.5 LSB [V] VFST (ideal value) = VCC − 2 LSB [V] Document Number: 002-09305 Rev. *C Page 160 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 17.6 Flash Memory Program/Erase Characteristics Parameter Value Unit Min Typ Max Sector erase time (2 Kbyte sector) — 0.3*1 1.6*2 s Sector erase time (32 Kbyte sector) — 0.6*1 3.1*2 s Byte writing time — 17 272 µs 100000 — — cycle Power supply voltage at program/erase 2.4 — 5.5 V Flash memory data retention time 20*3 — — 10*3 — — 5*3 — — Program/erase cycle Remarks The time of writing “0x00” prior to erasure is excluded. The time of writing “0x00” prior to erasure is excluded. System-level overhead is excluded. Average TA = 85 °C Number of program/erase cycles: 1000 or below year Average TA = 85 °C Number of program/erase cycles: 1001 to 10000 inclusive Average TA = 85 °C Number of program/erase cycles: 10001 or above *1: VCC = 5.5 V, TA = 25 °C, 0 cycle *2: VCC = 2.4 V, TA = 85 °C, 100000 cycles *3: These values were converted from the result of a technology reliability assessment. (These values were converted from the result of a high temperature accelerated test using the Arrhenius equation with the average temperature being 85 °C.) Document Number: 002-09305 Rev. *C Page 161 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 18. Ordering Information Part number Package MB95F856KPFT-G-SNE2 24-pin plastic TSSOP (STI024) MB95F856KPF-G-SNE2 24-pin plastic SOP (SOL024) MB95F866KPMC-G-SNE2 32-pin plastic LQFP (LQB032) MB95F876KPMC-G-SNE2 48-pin plastic LQFP (LQA048) MB95F876KPMC1-G-SNE2 52-pin plastic LQFP (LQC052) Document Number: 002-09305 Rev. *C Page 162 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY 19. Package Dimension Package Type Package Code TSSOP 24 STI024 D A 0.10 H D 4 D 5 4 E1 E INDEX AREA aaa H D 0.20 C A-B D 5 BOTTOM VIEW TOP VIEW DETAIL A L2 C A e A1 SEATING PLANE θ GAUGE PLANE 0.10 C b 10 SIDE VIEW 0.10 C A-B D A c A' b L 8 L1 SECTION A-A' DETAIL A DIMENSIONS SYMBOL MIN. NOM. A A1 1.20 0.05 0.15 D 7.80 BSC E 6.40 BSC E1 4.40 BSC θ MAX. 0° 8° c 0.10 0.19 b 0.20 L 0.45 0.22 0.29 0.60 0.75 L 1 1.00 REF L 2 0.25 BSC e 0.65 BSC 002-14046 ** PACKAGE OUTLINE, 24 LEAD TSSOP 4.4X7.8X1.2 MM STI024 REV** Document Number: 002-09305 Rev. *C Page 163 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY Package Type Package Code SOP 24 SOL024 0.40 H D 4 D A D 5 4 E1 E INDEX AREA 0.40 H D B 0.40 C A-B D 5 TOP VIEW A DETAIL A θ GAUGE C A1 SEATING PLANE e 10 0.25 C A-B D A c PLANE A' L 0.10 C b L2 8 SIDE VIEW b SECTION A-A' L1 DETAIL A DIMENSIONS SYMBOL MIN. NOM. A A1 2.80 0.05 0.30 D 15.34BSC E 10.20BSC 7.50 BSC E1 θ MAX. 0° 8° c 0.20 b 0.35 0.42 0.49 L 0.40 0.60 0.80 L 1 0.34 1.35 REF L 2 0.25 BSC e 1.27 BSC 11. JEDECSPECIFICATION NO. REF : N/A 002-16904 ** PACKAGE OUTLINE, 24 LEAD SOP 15.34X7.50X2.80 MM SOL024 REV** Document Number: 002-09305 Rev. *C Page 164 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY Package Type Package Code LQFP 32 LQB032 4 D D1 24 5 7 17 17 25 16 24 16 25 9 32 E1 E 5 7 3 6 32 4 9 8 1 e 3 0.20 C A-B D 8 2 5 7 b 0.20 C A-B TOP VIEW 1 BOTTOM VIEW 0.10 C A-B D D 8 2 9 θ A A' 0.10 C SEATING PLANE c b SECTION A-A' 0.25 10 SIDE VIEW SYMBOL DIMENSIONS MIN. NOM. MAX. 1.60 A A1 0.05 b 0.32 c 0.13 0.15 0.35 0.43 0.18 D 9.00 BSC D1 7.00 BSC e 0.80 BSC E 9.00 BSC E1 7.00 BSC L 0.45 0.60 0.75 L1 0.30 0.50 0.70 θ 0° 8° 002-13879 ** PACKAGE OUTLINE, 32 LEAD LQFP 7.0X7.0X1.6 MM LQB032 REV*.* Document Number: 002-09305 Rev. *C Page 165 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY Package Type Package Code LQFP 48 LQA048 4 D D1 5 7 36 25 37 24 E1 24 37 13 48 E 5 7 3 36 25 4 6 13 48 1 12 e 1 12 2 5 7 0.10 C A-B D 3 0.20 C A-B D b 0.80 C A-B D 8 2 A θ A A' 0.80 C SYMBOL L1 0.25 L A1 c b 10 SECTION A-A' DIMENSIONS MIN. NOM. MAX. 0.00 0.20 1.70 A A1 9 SEATING PLANE b 0.15 0.27 c 0.09 0.20 D 9.00 BSC D1 7.00 BSC e 0.50 BSC E 9.00 BSC E1 7.00 BSC L 0.45 0.60 0.75 L1 0.30 0.50 0.70 θ 0° 8° 002-13731 ** PACKAGE OUTLINE, 48 LEAD LQFP 7.0X7.0X1.7 MM LQA048 REV** Document Number: 002-09305 Rev. *C Page 166 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY Package Type Package Code LQFP 52 LQC052 4 D D1 39 5 7 27 26 40 39 27 26 40 14 52 E1 E 4 5 7 3 6 14 52 1 2 5 7 13 e b 0.20 C A-B D 0.13 C A-B 1 13 0.10 C A-B D 3 BOTTOM VIEW D 8 TOP VIEW 2 A θ 0.25 A A' 0.10 C SEATING PLA NE L1 L A1 10 9 c b SECTION A-A' SIDE VIEW SYMBOL DIMENSION MIN. NOM. MAX. 1.70 A A1 0.00 0.20 b 0.265 c 0.09 0.30 0.365 0.20 D 12.00 BSC D1 10.00 BSC e 0.65 BSC E 12.00 BSC E1 10.00 BSC L 0.45 0.60 0.75 L1 0.30 0.50 0.70 θ 0° 8° 002-13880 ** PACKAGE OUTLINE, 52 LEAD LQFP 10.0X10.0X1.7 MM LQC052 REV** Document Number: 002-09305 Rev. *C Page 167 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K 20. Major Changes in This Edition Spansion Document Code: DS702-00013-0v02-E. Page Section Details 11 Pin Functions MB95850K Series Revised the function of the AREF pin. TS reference input pin ® TS reference impedance input pin 13 Pin Functions MB95860K Series Revised the function of the AREF pin. TS reference input pin ® TS reference impedance input pin 17 Pin Functions MB95870K Series Revised the function of the AREF pin. TS reference input pin ® TS reference impedance input pin 29 Pin Connection DBG pin Revised details of “• DBG pin”. RST pin Revised details of “• RST pin”. I/O Map MB95850K Series Revised the register name of the RSEL0 register. TS resistance select register 0  TS sensitivity select register 0 40 Revised the register name of the RSEL1 register. TS resistance select register 1  TS sensitivity select register 1 Revised the register name of the RSEL2 register. TS resistance select register 2  TS sensitivity select register 2 Revised the register name of the RSEL3 register. TS resistance select register 3  TS sensitivity select register 3 42 Document Number: 002-09305 Rev. *C Corrected the initial value of the TOUCHH register. 0b00000XXX  0b0000XXXX Page 168 of 172 PRELIMINARY Page 47 Section I/O Map MB95860K Series MB95F856K, MB95F866K, MB95F876K Details Revised the register name of the RSEL0 register. TS resistance select register 0  TS sensitivity select register 0 Revised the register name of the RSEL1 register. TS resistance select register 1  TS sensitivity select register 1 Revised the register name of the RSEL2 register. TS resistance select register 2  TS sensitivity select register 2 Revised the register name of the RSEL3 register. TS resistance select register 3  TS sensitivity select register 3 Revised the register name of the RSEL4 register. TS resistance select register 4  TS sensitivity select register 4 49 54 Corrected the initial value of the TOUCHH register. 0b00000XXX  0b0000XXXX I/O Map MB95870K Series Revised the register name of the RSEL0 register. TS resistance select register 0  TS sensitivity select register 0 Revised the register name of the RSEL1 register. TS resistance select register 1  TS sensitivity select register 1 Revised the register name of the RSEL2 register. TS resistance select register 2  TS sensitivity select register 2 Revised the register name of the RSEL3 register. TS resistance select register 3  TS sensitivity select register 3 Revised the register name of the RSEL4 register. TS resistance select register 4  TS sensitivity select register 4 Revised the register name of the RSEL5 register. TS resistance select register 5  TS sensitivity select register 5 Revised the register name of the RSEL6 register. TS resistance select register 6  TS sensitivity select register 6 57 I/O MAP MB95870K Series Document Number: 002-09305 Rev. *C Corrected the initial value of the TOUCHH register. 0b00000XXX  0b0000XXXX Page 169 of 172 PRELIMINARY Page Section MB95F856K, MB95F866K, MB95F876K Details 84 I/O Ports MB95850K Series 6.Port F (4)Port F operations •Operation as an input port Added the following statement. For a pin shared with other peripheral functions, disable the output of such peripheral functions. 118 I/O Ports MB95860K Series 6.Port F (4)Port F operations •Operation as an input port Added the following statement. For a pin shared with other peripheral functions, disable the output of such peripheral functions. 153 I/O Ports MB95850K Series 5.Port 7 (4)Port 7 operations •Operation as an output port Deleted the following statement. For a pin shared with other peripheral functions, disable the output of such peripheral functions. 157 6.Port F (4)Port F operations •Operation as an input port Added the following statement. For a pin shared with other peripheral functions, disable the output of such peripheral functions. 175 Electrical Characteristics Recommended Operating Conditions Revised the remark in “• DBG/RST/C pins connection diagram”. 176 DC Characteristics Revised the remark of the parameter “Input leak current (Hi-Z output leak current)”. When pull-up resistance is disabled ® When the internal pull-up resistor is disabled Rename the parameter “Pull-up resistance” to “Internal pull-up resistor”. Revised the remark of the parameter “Internal pull-up resistor”. When pull-up resistance is enabled ® When the internal pull-up resistor is enabled 183 AC Characteristics (2)Source Clock/Machine Clock Added the maximum value of FSP of the parameter “Source clock frequency”. 12.5 196 AC Characteristics (11)TS Revised the minimum values and typical values of the parameter “Touch sensitivity”. Deleted the parameter “Sensor clock”. Added the parameter “Sensor clock” to “Sensor clock (sensing phase)”. Added remark *2. 197 199, 200 A/D Converter (1)A/D Converter Electrical Characteristics Corrected the symbol of the parameter “Zero transition voltage”. VOT  V0T A/D Converter (3)Definitions of A/D Converter Terms Corrected the symbol of the zero transition voltage. VOT  V0T Document Number: 002-09305 Rev. *C Page 170 of 172 MB95F856K, MB95F866K, MB95F876K PRELIMINARY Document History Page Document Title: MB95F856K, MB95F866K, MB95F876K New 8FX MB95850K/860K/870K Series Datasheet Document Number: 002-09305 Revision ECN Orig. of Change Submission Date ** – YSKA 08/02/2012 Migrated to Cypress and assigned document number 002-09305. No change to document contents or format. *A 5560459 YSKA 12/20/2016 Migrated to Cypress datasheet template *B 5844036 YSAT 08/04/2017 Adapted new Cypress logo *C 6038234 YSAT 01/22/2018 Corrected the package codes as bellow FPT-24P-M10 → STI024 FPT-24P-M34 → SOL024 FPT-32P-M30 → LQB032 FPT-48P-M49 → LQA048 FPT-52P-M02 → LQC052 Updated “19. Package Dimension” Updated Arm trademark and the last page Document Number: 002-09305 Rev. *C Description of Change Page 171 of 172 PRELIMINARY MB95F856K, MB95F866K, MB95F876K Sales, Solutions, and Legal Information Worldwide Sales and Design Support Cypress maintains a worldwide network of offices, solution centers, manufacturer’s representatives, and distributors. To find the office closest to you, visit us at Cypress Locations. PSoC®Solutions Products Arm® Cortex® Microcontrollers Automotive cypress.com/arm cypress.com/automotive Clocks & Buffers Interface cypress.com/clocks cypress.com/interface Internet of Things Memory cypress.com/iot cypress.com/memory Microcontrollers cypress.com/mcu PSoC cypress.com/psoc Power Management ICs Cypress Developer Community Community | Projects | Video | Blogs | Training | Components Technical Support cypress.com/support cypress.com/pmic Touch Sensing cypress.com/touch USB Controllers Wireless Connectivity PSoC 1 | PSoC 3 | PSoC 4 | PSoC 5LP | PSoC 6 MCU cypress.com/usb cypress.com/wireless © Cypress Semiconductor Corporation, 2012-2018. This document is the property of Cypress Semiconductor Corporation and its subsidiaries, including Spansion LLC ("Cypress"). This document, including any software or firmware included or referenced in this document ("Software"), is owned by Cypress under the intellectual property laws and treaties of the United States and other countries worldwide. Cypress reserves all rights under such laws and treaties and does not, except as specifically stated in this paragraph, grant any license under its patents, copyrights, trademarks, or other intellectual property rights. If the Software is not accompanied by a license agreement and you do not otherwise have a written agreement with Cypress governing the use of the Software, then Cypress hereby grants you a personal, non-exclusive, nontransferable license (without the right to sublicense) (1) under its copyright rights in the Software (a) for Software provided in source code form, to modify and reproduce the Software solely for use with Cypress hardware products, only internally within your organization, and (b) to distribute the Software in binary code form externally to end users (either directly or indirectly through resellers and distributors), solely for use on Cypress hardware product units, and (2) under those claims of Cypress's patents that are infringed by the Software (as provided by Cypress, unmodified) to make, use, distribute, and import the Software solely for use with Cypress hardware products. Any other use, reproduction, modification, translation, or compilation of the Software is prohibited. TO THE EXTENT PERMITTED BY APPLICABLE LAW, CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS DOCUMENT OR ANY SOFTWARE OR ACCOMPANYING HARDWARE, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. No computing device can be absolutely secure. Therefore, despite security measures implemented in Cypress hardware or software products, Cypress does not assume any liability arising out of any security breach, such as unauthorized access to or use of a Cypress product. In addition, the products described in these materials may contain design defects or errors known as errata which may cause the product to deviate from published specifications. To the extent permitted by applicable law, Cypress reserves the right to make changes to this document without further notice. Cypress does not assume any liability arising out of the application or use of any product or circuit described in this document. Any information provided in this document, including any sample design information or programming code, is provided only for reference purposes. It is the responsibility of the user of this document to properly design, program, and test the functionality and safety of any application made of this information and any resulting product. Cypress products are not designed, intended, or authorized for use as critical components in systems designed or intended for the operation of weapons, weapons systems, nuclear installations, life-support devices or systems, other medical devices or systems (including resuscitation equipment and surgical implants), pollution control or hazardous substances management, or other uses where the failure of the device or system could cause personal injury, death, or property damage (“Unintended Uses”). A critical component is any component of a device or system whose failure to perform can be reasonably expected to cause the failure of the device or system, or to affect its safety or effectiveness. Cypress is not liable, in whole or in part, and you shall and hereby do release Cypress from any claim, damage, or other liability arising from or related to all Unintended Uses of Cypress products. You shall indemnify and hold Cypress harmless from and against all claims, costs, damages, and other liabilities, including claims for personal injury or death, arising from or related to any Unintended Uses of Cypress products. Cypress, the Cypress logo, Spansion, the Spansion logo, and combinations thereof, WICED, PSoC, CapSense, EZ-USB, F-RAM, and Traveo are trademarks or registered trademarks of Cypress in the United States and other countries. For a more complete list of Cypress trademarks, visit cypress.com. Other names and brands may be claimed as property of their respective owners. Document Number: 002-09305 Rev. *C Revised January 22, 2018 Page 172 of 172
MB95F876KPMC-G-SNE2 价格&库存

很抱歉,暂时无法提供与“MB95F876KPMC-G-SNE2”相匹配的价格&库存,您可以联系我们找货

免费人工找货