Datasheet

The ADC controller provides options to average the internal
temperature results. The device provides 1, 8, 16, and 32
samples averaging configurations for the internal temperature.
The ADC related SFRs are accessed in Module 1 and
Module 4. For further detailed information regarding ADC can
be found in the ADC section of the DS4830A User’s Guide.
PWM Outputs
The device provides 10 independently configurable PWM
outputs. Each PWM output’s resolution can be config-
ured from 7-bit to 16-bit independently. The PWM outputs
are configured using three SFRs: PWMCN, PWMDATA,
and PWNSYNC. Using PWMCN and PWMDATA, indi-
vidual PWM channels can be programmed for unique Duty
Cycles (DCYCn), configurations (PWMCFGn) and delays
(PWMDLYn) where n represents the PWM channel number.
The PWM clock can be obtained from the core clock,
peripheral clock or an external clock depending on
CLK_SEL bits programmed in individual PWMCFG
registers. The PWMCFGn register also enables/disables
the corresponding PWM output and selects the PWM
polarity. The user can set the duty cycle and the frequen-
cy of each PWM output individually by configuring the cor-
responding DCYCn register and the PWMCFGn register.
The device allows delta sigma dithering for each PWM
channel. The PWM outputs can be configured to be
output on an alternate location using the configuration
register. PWMDLY is a 16-bit register for providing start-
ing delay on different PWM channels, and can be used to
create multiphase PWM operation.
Different channels can be synchronized using the
PWMSYNC register. Doing so effectively brings the chan-
nels in phase by restarting the channels that are to be
synchronized. The PWM SFRs are accessed in Module 5.
Detailed information regarding the PWM block can be
found in the DS4830A User’s Guide.
Figure 11 shows how the PWM outputs can be used
to control a TEC. Refer to Application Note AN5424:
Thermoelectric Cooler Control Using the DS4830 Optical
Microcontroller for further detailed information.
Figure 11. TEC Application
DS4830A Optical Microcontroller
www.maximintegrated.com
Maxim Integrated
25
TEC
P
N
P
N
CURRENT
MONITOR
THERMAL
FEEDBACK
VOLTAGE
MONITOR
VREF
PWM0
PWM1
PWM8
PWM9
CLKIN
DS4830A
16-BIT PWM
16-BIT PWM
16-BIT PWM
16-BIT PWM
ADC REFERENCE
ADC
DS1088EX
133MHz CLOCK
V
CC
Q
BH
Q
AH
Q
BL
Q
AL
SIDE B SIDE A
R
SENSE
V
A
V
B
L
A
L
B
C
B
C
A
R
R
TH