Fujitsu FR81S User Manual

Page of 2342
CHAPTER 19: BASE TIMER 
 
 
2. Features 
 
FUJITSU SEMICONDUCTOR LIMITED 
CHAPTER
 : BASE TIMER 
FUJITSU SEMICONDUCTOR CONFIDENTIAL 
2.2.  16-bit PWM Timer 
This section explains the 16-bit PWM timer of the base timer. 
The 16-bit PWM timer, PWM standing for Pulse Width Modulator Timer, produces a desired waveform at an 
external pin when a duty ratio of the pulse width is specified. 
   I/O mode 
You can select a signal (external clock, external activation trigger, waveform) I/O operation using the base 
timer I/O selection function. 
   Operation mode 
You can select one of the following two: 
 
Reload mode: In this mode, when the 16-bit down counter underflows, the preset cycle is reloaded to 
allow the timer to restart counting. 
 
One-shot mode: Once the 16-bit down counter underflows, the counter will no longer count. 
   Count clock 
You can select one of five internal (peripheral) clocks and three external clocks (ECK signals). 
 
Internal clock (peripheral clock): Clock obtained by dividing the frequency of the peripheral clock 
(PCLK) by 1, 4, 16, 128, or 256. 
 
External clock (ECK signal): Rising edges, falling edges, or both edges are detected. 
   Activation trigger 
One of the following can be selected: 
 
Software trigger 
 
Three external events: (Rising edge, falling edge, or both edges detection) 
   16-bit PWM timer reactivation 
The 16-bit PWM timer can be reactivated when an activation trigger is detected during counting. 
   Output waveform 
The output signal from the external pin can be fixed at the "L" or "H" level. 
   Interrupt request 
An interrupt request can be generated in one of the following events: 
 
IRQ0 : When an underflow occurs or counting is performed up to a preset value (duty) 
 
IRQ1 : When a 16-bit PWM timer activation trigger is detected 
MB91520 Series
MN705-00010-1v0-E
639