m38039g6hsp Renesas Electronics Corporation., m38039g6hsp Datasheet - Page 56

no-image

m38039g6hsp

Manufacturer Part Number
m38039g6hsp
Description
Single-chip 8-bit Cmos Microcomputer
Manufacturer
Renesas Electronics Corporation.
Datasheet
3803 Group (Spec.H QzROM version)
Rev.1.10
REJ03B0166-0110
PULSE WIDTH MODULATION (PWM)
The 3803 group (Spec.H QzROM version) has PWM functions
with an 8-bit resolution, based on a signal that is the clock input
X
that clock input divided by 2 in low-speed mode.
• Data Setting
The PWM output pin also functions as port P5
period by the PWM prescaler, and set the “H” term of output
pulse by the PWM register.
If the value in the PWM prescaler is n and the value in the PWM
register is m (where n = 0 to 255 and m = 0 to 255):
PWM period = 255 × (n+1) / f(X
Output pulse “H” term = PWM period × m / 255
Fig 46. Block diagram of PWM function
IN
speed mode)
(X
or that clock input divided by 2 or the clock input X
CIN
= 31.875 × (n+1) µs
(when f(X
= 0.125 × (n+1) × m µs
(when f(X
at low-
X
IN
Nov 14, 2005
IN
IN
) = 8 MHz, count source selection bit = “0”)
) = 8 MHz, count source selection bit = “0”)
Data bus
1/2
“0”
Count source
selection bit
“1”
IN
Page 56 of 91
)
prescaler pre-latch
PWM prescaler
prescaler latch
6
PWM
PWM
. Set the PWM
Transfer control circuit
CIN
or
register pre-latch
PWM register
• PWM Operation
When bit 0 (PWM enable bit) of the PWM control register is set
to “1”, operation starts by initializing the PWM output circuit,
and pulses are output starting at an “H”.
If the PWM register or PWM prescaler is updated during PWM
output, the pulses will change in the cycle after the one in which
the change was made.
Fig 45. Timing of PWM period
register latch
PWM output
PWM
PWM
m : Contents of PWM register
n : Contents of PWM prescaler
T : PWM period
(when f(X
31.875 × m × (n+1)
IN
) = 8 MHz, count source selection bit = “0”)
T = [31.875 × (n+1)] µ s
Port P5
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
255
PWM function enable bit
6
latch
µ s
Port P5
6

Related parts for m38039g6hsp