z89138 ZiLOG Semiconductor, z89138 Datasheet - Page 51

no-image

z89138

Manufacturer Part Number
z89138
Description
Voice Processing Controllers
Manufacturer
ZiLOG Semiconductor
Datasheet
Zilog
Pulse Width Modulator (PWM)
The PWM supports two different sampling rates (10 and 16
kHz), according to the settings of bit 8 of the ACR. The out-
put of the PWM can be assigned to logic 1 only during the
active region (which is 4/5 of the output signal period). The
output will be at logic 0 for the rest of the time. An excep-
tion occurs in 10 kHz PWM, where the active region covers
the whole output signal period (Figure 39). The active re-
gion is divided into 1024 time slots. In each of these time
slots, the output can be set to logic 1 or logic 0.
In order to increase the effective sampling rate, the PWM
employs a special technique of distributing the “logic 1” pe-
riod over the active region.
The 10-bit PWM data is divided into two parts: the upper
five bits (High_Val) and the lower five bits (Low_Val). The
1024 time slots in the active region are divided into 32
equal groups, with 32 time slots in each group. The first
DS97TAD0201
100 s
Figure 38. PWM Waveform (shaded area shows the active region)
P R E L I M I N A R Y
250 s
slot of each of the 32 groups represents Low_Val, while
High_Val is represented by the remaining 31 time slots in
each group.
For example, a value of %13a is loaded into PWM data
register EXT 5:
26 out of 32 groups will then have their first slots set to log-
ic 1. The remaining one slot in each group has nine time
slots set to logic 1.
For 10 kHz PWM, the effective output frequency is 10K x
32 = 320 kHz. Figure 40 illustrates the waveform by using
a 6-bit PWM data (3-bit High_Val and 3-bit Low_Val).
%13a = 01 0011 1010B = 314
High_Val = 01001B = 9
Low_Val = 11010B = 26
Voice Processing Controllers
Z89138/Z89139
10 kHz
16 kHz
51
1

Related parts for z89138