Fujitsu F2MC-8L F202RA Hardware Manual page 160

F2mc-8l 8-bit microcontroller
Hide thumbs Also See for F2MC-8L F202RA:
Table of Contents

Advertisement

CHAPTER 7 8-BIT PWM TIMER
Table 7.4-1 Explanation of the Functions of Each Bit in the PWM Control Register (CNTR)
Bit name
P/TX:
bit7
Bit to select the
operation mode
bit6
Unused bit
bit5,
P1, P0:
bit4
Bits to select the clock
TPE:
bit3
Bit to enable the counter
operation
TIR:
bit2
Interrupt request flag bit
OE:
bit1
Bit to control the output
pin
TIE:
bit0
Bit to enable an interrupt
request
144
This bit is used to select the interval timer operation (P/TX = 0) or PWM timer
operation (P/TX = 1).
Note:
Before writing into this bit, stop the counter operation (TPE = 0), disable an
interrupt (TIE = 0), and clear the interrupt request flag bit (TIR = 0).
The value during a read is undetermined.
A write does not affect operations.
This bit is used to select the count clock of the interval timer functions or PWM
timer functions.
One of three types of internal count clock or the output of the 8/16-bit capture
timer or counter can be selected.
Note:
When the counter is operating (TPE = 1), do not switch P1 and P0.
This bit is used to start and stop the interval timer functions or PWM timer
functions.
To start the count operation, write "1" to this bit. When "0" is written to this bit,
the counter is cleared (setting 00
While the internal timer functions are enabled:
When the counter value matches the PWM compare register (COMR) value, "1" is
set to this bit.
When this bit and the bit to enable an interrupt request (TIE) are "1", an interrupt
request to the CPU is output.
While the PWM timer functions are enabled, an interrupt request does not occur.
When this bit is written, it is cleared (setting "0"). Writing "1" does not affect this
bit in any way.
When this bit is "0", the P50/PWM pin is used as a general-purpose port (P50).
When the bit is "1", it is used as a dedicated pin (PWM).
When the interval timer functions are enabled, the square wave is output to the
PWM pin. When the PWM timer functions are enabled, the PWM wave is output
to the PWM pin.
This bit is used to enable and disable the output of an interrupt request to the CPU.
When this bit and the interrupt request flag bit (TIR) are both "1", an interrupt
request is output.
Function
) and then stopped.
H

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-8l mb89202Mb89202/f202ra series

Table of Contents