Versatility for R8C MCUs does not stop at the peripheral level. An advanced I/O configuration can be found in many R8C devices. At the very top of the list of features shown on this slide is the Pin State Detection function. This new feature allows the application to determine if a pin output has a high or low level. Most designers today need to connect two pins together; one as output and the other as input to achieve the same function. This feature is particularly useful to detect unsafe conditions in a system, such as a short, with minimum code and without using additional pins in the MCU. R8C MCUs also incorporate drive capacity selection for multiple pins. This offers the capability to drive external components such as high-current LEDs directly without any additional circuitry. In addition, this selection provides a way to optimize the design for EMI/EMS performance. In some devices, this option can be selected for any pin available as output providing great flexibility. One other advanced feature of R8C I/O's is the input level switch. The designer has full control to define, by software, the voltage threshold setting for any input pin. This can be used to design a simple comparator or filtering function without any additional circuitry and minimum software overhead.

