datasheetbank_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

SAA5563PS/NNNN View Datasheet(PDF) - Philips Electronics

Part Name
Description
View to exact match
SAA5563PS/NNNN Datasheet PDF : 101 Pages
First Prev 31 32 33 34 35 36 37 38 39 40 Next Last
Philips Semiconductors
Enhanced TV microcontrollers with
On-Screen Display (OSD)
Preliminary specification
SAA55xx
15.2 Tuning Pulse Width Modulator (TPWM)
The device has a single 14-bit PWM that can be used for
Voltage Synthesis Tuning. The method of operation is
similar to the normal PWM except that the repetition period
is 42.66 µs.
15.2.1 TPWM CONTROL
Two SFRs are used to control the TPWM, they are TDACL
and TDACH. The TPWM is enabled by setting the TPWE
bit in the TDACH SFR. The most significant bits TD<13:7>
alter the high period between 0 and 42.33 µs. The 7 least
significant bits TD<6:0> extend certain pulses by a further
0.33 µs. e.g. if TD<6:0> = 01H then 1 in 128 periods will
be extended by 0.33 µs, if TD<6:0> = 02H then
2 in 128 periods will be extended.
The TPWM will not start to output a new value until TDACH
has been written to. Therefore, if the value is to be
changed, TDACL should be written before TDACH.
15.3 Software ADC (SAD)
Four successive approximation Analog-to-Digital
Converters can be implemented in software by making use
of the on-board 8-bit Digital-to-Analog Converter and
Analog Comparator.
15.3.1 SAD CONTROL
The control of the required analog input is done using the
channel select bits CH<1:0> in the SAD SFR, this selects
the required analog input to be passed to one of the inputs
of the comparator. The second comparator input is
generated by the DAC whose value is set by the bits
SAD<7:0> in the SAD and SADB SFRs. A comparison
between the two inputs is made when the start compare
bit ST in the SAD SFR is set, this must be at least one
instruction cycle after the SAD<7:0> value has been set.
The result of the comparison is given on VHI one
instruction cycle after the setting of ST.
15.3.2 SAD INPUT VOLTAGE
The external analog voltage that is used for comparison
with the internally generated DAC voltage does not have
the same voltage range. The DAC has a lower reference
level of VSSA and an upper reference level of VSSP.
The resolution of the DAC voltage with a nominal value is
3.3256 13 mV. The external analog voltage has a lower
value equivalent to VSSA and an upper value equivalent to
VDDP Vtn, where Vtn is the threshold voltage for an
NMOS transistor. The reason for this is that the input pins
for the analog signals (P3.0 to P3.3) are 5 V tolerant for
normal port operations, i.e. when not used as analog input.
To protect the analog multiplexer and comparator circuitry
from the 5 V, a series transistor is used to limit the voltage.
This limiting introduces a voltage drop equivalent to Vtn
(0.6 V) on the input voltage. The maximum value of Vin is
0.75 V, therefore for worst case calculations, the
maximum input to the SAD should be calculated as
VDD(min) = 0.75 V. Therefore, for an input voltage in the
range VDDP to VDDP Vtn the SAD returns the same
comparison value.
15.3.3 SAD DC COMPARATOR MODE
The SAD module incorporates a DC Comparator mode
which is selected using the DC_COMP control bit in the
SADB SFR. This mode enables the microcontroller to
detect a threshold crossing at the input to the selected
analog input pin (P3.0/ADC0, P3.1/ADC1, P3.2/ADC2 or
P3.3/ADC3) of the software ADC. A level sensitive
interrupt is generated when the analog input voltage level
at the pin falls below the analog output level of the SAD
DAC.
This mode is intended to provide the device with a
wake-up mechanism from Power-down or Idle mode when
a key-press on the front panel of the TV is detected.
The following software sequence should be used when
utilizing this mode for Power-down or Idle mode:
1. Disable INT1 using the IE SFR.
2. Set INT1 to level sensitive using the TCON SFR.
3. Set the DAC digital input level to the desired threshold
level using SAD/SADB SFRs and select the required
input pin (P3.0/ADC0, P3.1/ADC1, P3.2/ADC2 or
P3.3/ADC3) using CH<1:0> in the SAD SFR.
4. Enter DC Compare mode by setting the DC_COMP
enable bit in the SADB SFR.
5. Enable INT1 using the IE SFR.
6. Enter Power-down/Idle mode. Upon wake-up the SAD
should be restored to its conventional operating mode
by disabling the DC_COMP control bit.
2000 Feb 23
37
 

Share Link: 

datasheetbank.com [ Privacy Policy ] [ Request Datasheet ] [ Contact Us ]