CHAPTER 7 8-BIT PWM TIMER

Count clock selector

The count clock selector selects one of three types of internal counter clock. The selector also selects an 8/ 16-bit capture timer or counter and uses it to increment the count of the 8-bit counter.

8-bit counter

This counter is incremented by the count clock selected by the count clock selector.

Comparator

A latch in the comparator holds the COMR register value when the value of the 8-bit counter is 00H and then compares the 8-bit counter with the COMR register value latched and detects a match.

PWM generation circuit and PWM output control circuit

During the interval timer operation, once a match is detected, an interrupt request occurs. And when the bit to control the output pin (CNTR: OE) is "1", the output level of the P50/PWM pin is inverted by the output control circuit, at which time the 8-bit counter is cleared.

During the PWM timer operation, once a match is detected, the output level of the P50/PWM pin is changed from "H" level to "L" level by the PWM generation circuit. Thereafter, when the 8-bit counter overflows, the output level is returned to "H" level.

COMR register

This register is used to set a value for comparison with the counter value of the 8-bit counter.

CNTR register

This register is used to select the operation mode, enable and disable operations, set the count clock, control interrupts, and check status.

When the operation mode is the PWM timer mode (P/TX = 0), the 8-bit counter cannot be cleared (by the match detection signal from the comparator) and the interrupt request (IRQ9) is disabled.

140

Page 156
Image 156
Fujitsu MB89202 Count clock selector, Bit counter, Comparator, PWM generation circuit and PWM output control circuit, 140

F202RA, MB89202 specifications

The Fujitsu MB89202 and F202RA microcontrollers are part of the 16-bit microcontroller family, renowned for their robust performance and versatility in a variety of embedded system applications. These devices are tailored for high-efficiency operation across diverse industries, including automotive, consumer electronics, and industrial automation.

One of the main features of the MB89202 is its powerful CPU core, which operates at a clock speed of up to 20 MHz. This enables the microcontroller to perform complex calculations and consumer-grade applications seamlessly. The architecture is designed to handle multiple tasks effectively, making it suitable for real-time operations.

Memory capacity is a vital characteristic of the MB89202, featuring on-chip RAM and ROM configurations. The microcontroller can accommodate different memory variants, providing developers with flexibility in memory allocation based on their application requirements. This adaptability facilitates applications ranging from simple control systems to complex data processing tasks.

The F202RA variant extends the capabilities of the MB89202 by integrating advanced peripheral functions. It includes built-in timers, A/D converters, and serial communication interfaces, which are essential for interfacing with other hardware components or sensors. The availability of these peripherals reduces the need for additional external circuits, thus contributing to a more compact and cost-effective design.

In terms of power management, the MB89202 series employs advanced power-saving technologies. The microcontroller offers various low-power modes, enabling devices to conserve energy during idle times, making it highly suitable for battery-operated applications. This characteristic not only enhances the efficiency of devices but also extends their operational lifespan.

Moreover, the Fujitsu MB89202 series incorporates robust protection features, including watchdog timers and failure detection mechanisms. These safety features ensure reliable operation in critical systems, making them a preferred choice in applications where failure is not an option.

The MB89202 and F202RA microcontrollers also support a range of development tools and environments, including integrated development environments (IDEs) and software libraries, which facilitate rapid application development. With these tools, developers can efficiently prototype, debug, and optimize their applications.

In summary, the Fujitsu MB89202 and F202RA microcontrollers stand out with their efficient performance, extensive memory options, integrated peripherals, and power-saving capabilities, making them ideal for a wide array of embedded applications. Their reliability and robustness further enhance their attractiveness for designers seeking advanced microcontroller solutions.