22.1I2C-bus characteristics
23QUALITY AND RELIABILITY
23.1Group A
23.2Group B
23.3Group C
24APPLICATION INFORMATION
25ELECTROMAGNETIC COMPATIBILITY
(EMC) GUIDELINES
26PACKAGE OUTLINE
27SOLDERING
27.1Introduction to soldering through-hole mount
packages
27.2Soldering by dipping or by solder wave
27.3Manual soldering
27.4Suitability of through-hole mount IC packages
for dipping and wave soldering methods
28DEFINITIONS
29LIFE SUPPORT APPLICATIONS
30PURCHASE OF PHILIPS I2C COMPONENTS
1999 Oct 272
Page 3
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
1FEATURES
• Single-chip microcontroller with integrated On-Screen
Display (OSD)
• Versions available with integrated data capture
• One Time Programmable (OTP) memory for both
program Read Only Memory (ROM) and character sets
• Single power supply: 3.0 to 3.6 V
• 5 V tolerant digital inputs and I/O
• 29 I/O lines via individual addressable controls
• Programmable I/O for push-pull, open-drain and
quasi-bidirectional
• Two port lines with 8 mA sink (at <0.4 V) capability, for
direct drive of Light Emitting Diode (LED)
• Single crystal oscillator for microcontroller, OSD and
data capture
• Power reduction modes: Idle and Power-down
• Byte level I2C-bus with dual port I/O
• Pin compatibility throughout family
• Operating temperature: −20 to +70 °C.
SAA55xx
2GENERAL DESCRIPTION
The SAA55xx standard family of microcontrollers are a
derivative of the Philips industry-standard 80C51
microcontroller, and are intended for use as the central
control mechanism in a television receiver. They provide
controlfunctionsforthetelevisionsystem,OSD,andsome
versions include an integrated data capture and display
function.
The data capture hardware has the capability of decoding
and displaying both 525 and 625-line World System
Teletext (WST), Video Programming System (VPS) and
Wide Screen Signalling (WSS) information. The same
displayhardwareisusedbothforTeletext and OSD, which
means that the display features available give greater
flexibility to differentiate the TV set.
The SAA55xx standard family offers a range of
functionality from non-text, 16-kbyte program ROM and
256-byte Random Access Memory (RAM), to a 10-page
text version, 64-kbyte program ROM and 1.2-kbyte RAM.
3QUICK REFERENCE DATA
SYMBOLPARAMETERMIN.TYP.MAX.UNIT
Supply
V
DDX
I
DDP
I
DDC
I
DDC(id)
I
DDC(pd)
I
DDC(stb)
I
DDA
I
DDA(id)
I
DDA(pd)
I
DDA(stb)
f
xtal
T
amb
T
stg
any supply voltage (VDDto VSS)3.03.33.6V
periphery supply current1−−mA
core supply current−1518mA
Idle mode core supply current−4.66mA
Power-down mode core supply current−0.761mA
Standby mode core supply current−5.116.50mA
analog supply current−4548mA
Idle mode analog supply current−0.871.0mA
Power-down mode analog supply current−0.450.7mA
Standby mode analog supply current−0.951.20mA
crystal frequency−12−MHz
operating ambient temperature−20−+70°C
storage temperature−55−+125°C
CVBS02331IComposite video input. A positive-going 1 V
CVBS12432I
SYNC_FILTER2534ICVBS sync filter input. This pin should be connected to
IREF2635IReference current input for analog circuits, connected
FRAME2741ODe-interlace output synchronized with the VSYNC
VPE2842IOTP programming voltage
SDIP52LQFP100
1311−core ground
2230−analog ground
PIN
TYPEDESCRIPTION
alternative functions.
P2.0/TPWM is the output for the 14-bit high precision
PWM and P2.1/PWM0 to P2.7/PWM6 are the outputs
for the 6-bit PWMs 0 to 6.
alternative functions.
P3.0/ADC0 to P3.3/ADC3 are the inputs for the
software ADC facility and P3.4/PWM7 is the output for
the 6-bit PWM7. P3.5 to P3.7 have no alternative
functions and are only available with the LQFP100
package.
P0.5 and P0.6 have 8 mA current sinking capability for
direct drive of LEDs.
(peak-to-peak) input is required; connected via a
100 nF capacitor.
V
via a 100 nF capacitor.
SSA
to V
pulse to produce a non-interlaced display by
adjustment of the vertical deflection circuits.
via a 24 kΩ resistor.
SSA
1999 Oct 278
Page 9
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
SAA55xx
On-Screen Display (OSD)
SYMBOL
SDIP52LQFP100
COR2943OOpen-drain, active LOW output which allows selective
V
DDA
3145−+3.3 V analog power supply
B3246OPixel rate output of the BLUE colour information.
G3347OPixel rate output of the GREEN colour information.
R3448OPixel rate output of the RED colour information.
VDS3552OVideo/data switch push-pull output for dot rate fast
HSYNC3653ISchmitt triggered input for a TTL-level version of the
VSYNC3755ISchmitt triggered input for a TTL-level version of the
V
V
SSP
DDC
3812, 60−periphery ground
3963−+3.3 V core power supply
OSCGND4069−crystal oscillator ground
XTALIN4170I12 MHz crystal oscillator input
XTALOUT4271O12 MHz crystal oscillator output
RESET4373IIf the reset input is HIGH for at least 2 machine cycles
V
DDP
4475−+3.3 V periphery power supply
P1.0/INT14576I/OPort 1. 8-bit programmable bidirectional port with
P1.1/T04678I/O
P1.2/INT04779I/O
P1.3/T14880I/O
P1.6/SCL04981I/O
P1.7/SDA05082I/O
P1.4/SCL15183I/O
P1.5/SDA15284I/O
VPE_2−62IOTP programming voltage
n.c.−3, 7 to 10,14, 15,
PIN
19 to 21, 23, 26, 27, 33,
36 to 40, 49 to 51,
56 to 58, 61, 64 to 68,
72, 74, 77, 85 to 92, 99
TYPEDESCRIPTION
contrast reduction of the TV picture to enhance a
mixed mode display.
blanking.
horizontal sync pulse; the polarity of this pulse is
programmable by register bit TXT1.H POLARITY.
vertical sync pulse; the polarity of this pulse is
programmable by register bit TXT1.V POLARITY.
(24 oscillator periods) while the oscillator is running,
the device is reset; this pin should be connected to
V
via a capacitor.
DDP
alternative functions.
P1.0/INT1 is external interrupt 1 which can be
triggered on the rising and falling edge of the pulse.
P1.1/T0 is the counter/Timer 0. P1.2/INT0 is external
interrupt 0. P1.3/T1 is the counter/Timer 1. P1.6/SCL0
is the serial clock input for the I
2
C-bus and P1.7/SDA0
is the serial data port for the I2C-bus. P1.4/SCL1 is the
serial clock input for the I2C-bus. P1.5/SDA1 is the
serial data port for the I2C-bus.
−not connected
1999 Oct 279
Page 10
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
7MICROCONTROLLER
The functionality of the microcontroller used on this device
is described here with reference to the industry standard
80C51 microcontroller. A full description of its functionality
can be found in
Microcontrollers”
7.1Microcontroller features
• 80C51 microcontroller core standard instruction set and
timing
• 1 µs machine cycle
• Maximum 64K × 8-bit Program ROM
• Maximum of 1.2K × 8-bit Auxiliary RAM
• InterruptControllerforindividualenable/disable with two
level priority
• Two 16-bit Timer/Counter registers
• Watchdog Timer
• Auxiliary RAM page pointer
• 16-bit Data pointer
• Idle and Power-down modes
• 29 general I/O lines
• Eight 6-bit Pulse Width Modulator (PWM) outputs for
control of TV analog signals
• One 14-bit PWM for Voltage Synthesis Tuner (VST)
control
• 8-bit Analog-to-Digital Converter (ADC) with
4 multiplexed inputs
• 2 high current outputs for directly driving LEDs
• I2C-bus byte level bus interface with dual ports.
“Handbook IC20, 80C51-Based 8-bit
.
SAA55xx
8MEMORY ORGANIZATION
The device has the capability of a maximum of 64-kbyte
Program ROM and 1.2-kbyte Data RAM internally.
8.1Security bits - program and verify
SAA55xx devices have a set of security bits allied with
each section of the device, i.e. Program ROM, Character
ROM and Packet 26 ROM. The security bits are used to
prevent the ROM from being overwritten once
programmed, and also the contents being verified once
programmed. The security bits are one-time
programmable and cannot be erased.
The SAA55xx memory and security bits are structured as
shown in Fig.4. The SAA55xx security bits are set as
shown in Fig.5 for production programmed devices and
are set as shown in Fig.6 for production blank devices.
8.2RAM organisation
The internal Data RAM is organised into two areas, Data
memory and Special Function Registers (SFRs) as shown
in Fig.7.
8.3Data memory
The Data memory is 256 × 8-bit and occupies the address
range 00H to FFH when using indirect addressing and
00H to 7FH when using direct addressing. The SFRs
occupy the address range 80H to FFH and are accessible
using direct addressing only.
The lower 128 bytes of Data memory are mapped as
shown in Fig.8.
The lowest 24 bytes are grouped into 4 banks of
8 registers, the next 16 bytes above the register banks
form a block of bit addressable memory space.
1999 Oct 2710
The upper 128 bytes are notallocated for any special area
or functions.
Page 11
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
handbook, full pagewidth
MEMORY
PROGRAM ROM
USER ROM
(64K x 8-BIT)
CHARACTER ROM
USER ROM
(9K x 12-BIT)
PACKET 26 ROM
USER ROM
(4K x 8-BIT)
SECURITY BITS INTERACTION
USER ROM PROGRAMMING
(ENABLE/DISABLE)
USER ROM PROGRAMMING
(ENABLE/DISABLE)
USER ROM PROGRAMMING
(ENABLE/DISABLE)
(ENABLE/DISABLE)
(ENABLE/DISABLE)
(ENABLE/DISABLE)
SAA55xx
VERIFY
VERIFY
VERIFY
GSA030
handbook, full pagewidth
MEMORY
PROGRAM ROM
CHARACTER ROM
PACKET 26 ROM
Fig.4 Memory and security bit structures.
SECURITY BITS SET
USER ROM PROGRAMMING
(ENABLE/DISABLE)
DISABLEDENABLED
DISABLEDENABLED
DISABLEDENABLED
VERIFY
(ENABLE/DISABLE)
MBK954
Fig.5 Security bits for production devices.
1999 Oct 2711
Page 12
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
handbook, full pagewidth
MEMORY
PROGRAM ROM
CHARACTER ROM
PACKET 26 ROM
SECURITY BITS SET
USER ROM PROGRAMMING
(ENABLE/DISABLE)
ENABLEDENABLED
ENABLEDENABLED
ENABLEDENABLED
SAA55xx
VERIFY
(ENABLE/DISABLE)
MBK955
Fig.6 Security bits for production blank devices.
handbook, halfpage
upper 128 bytes
lower 128 bytes
DATA
MEMORY
FFH
accessible
by indirect
addressing
only
80H
7FH
accessible
by direct
and indirect
addressing
00H
SPECIAL
FUNCTION
REGISTERS
accessible
by direct
addressing
only
MBK956
Fig.7 Internal Data memory.
1999 Oct 2712
Page 13
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
handbook, halfpage
R7
R0
R7
R0
R7
7FH
30H
2FH
20H
1FH
18H
17H
10H
0FH
SAA55xx
bit-addressable space
(bit addresses 00H to 7FH)
4 banks of 8 registers
(R0 to R7)
R0
R7
R0
08H
07H
0
MGM677
Fig.8 Lower 128 bytes of internal RAM.
1999 Oct 2713
Page 14
This text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here in
_white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here inThis text is here in
white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader. white to force landscape pages to be ...
1999 Oct 2714
8.4SFR memory
The Special Function Register (SFR) space is used for port latches, timer, peripheral control, acquisition control, display control. These registers can
only be accessed by direct addressing. Sixteen of the addresses in the SFR space are both bit and byte addressable. The bit addressable SFRs are
those whose address ends in 0H or 8H. A summary of the SFR map in address order is shown in Table 2.
A description of each of the SFR bits is shown in Table 3 which presents the SFRs in alphabetical order.
P07 to P00Port 0 I/O register connected to external pins
Port 1 (P1)
P17 to P10Port 1 I/O register connected to external pins
Port 2 (P2)
P27 to P20Port 2 I/O register connected to external pins
Port 3 (P3)
P37 to P30Port 3 I/O register connected to external pins; P37 to P35 are only available with
the LQFP100 package
C-bus interrupt
1999 Oct 2717
Page 18
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
SAA55xx
On-Screen Display (OSD)
BITFUNCTION
Port 0 Configuration A (P0CFGA) and Port 0 Configuration B (P0CFGB)
P0CFGA<7:0> and P0CFGB<7:0> These two registers are used to configure Port 0 pins. For example, the
configuration of Port 0 pin 3 is controlled by setting bit 3 in both P0CFGA and
P0CFGB. P0CFGB<x>/P0CFGA<x>:
00 = P0.x in open-drain configuration
01 = P0.x in quasi-bidirectional configuration
10 = P0.x in high-impedance configuration
11 = P0.x in push-pull configuration
Port 1 Configuration A (P1CFGA) and Port 1 Configuration B (P1CFGB)
P1CFGA<7:0> and P1CFGB<7:0> These two registers are used to configure Port 1 pins. For example, the
configuration of Port 1 pin 3 is controlled by setting bit 3 in both P1CFGA and
P1CFGB. P1CFGB<x>/P1CFGA<x>:
00 = P1.x in open-drain configuration
01 = P1.x in quasi-bidirectional configuration
10 = P1.x in high-impedance configuration
11 = P1.x in push-pull configuration
Port 2 Configuration A (P2CFGA) and Port 2 Configuration B (P2CFGB)
P2CFGA<7:0> and P2CFGB<7:0> These two registers are used to configure Port 2 pins. For example, the
configuration of Port 2 pin 3 is controlled by setting bit 3 in both P2CFGA and
P2CFGB. P2CFGB<x>/P2CFGA<x>:
00 = P2.x in open-drain configuration
01 = P2.x in quasi-bidirectional configuration
10 = P2.x in high-impedance configuration
11 = P2.x in push-pull configuration
Port 3 Configuration A (P3CFGA) and Port 3 Configuration B (P3CFGB)
P3CFGA<7:0> and P3CFGB<7:0> These two registers are used to configure Port 3 pins. For example, the
configuration of Port 3 pin 3 is controlled by setting bit 3 in both P3CFGA and
P3CFGB. P3CFGB<x>/P3CFGA<x>:
00 = P3.x in open-drain configuration
01 = P3.x in quasi-bidirectional configuration
10 = P3.x in high-impedance configuration
11 = P3.x in push-pull configuration
1999 Oct 2718
Page 19
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
SAA55xx
On-Screen Display (OSD)
BITFUNCTION
Power Control Register (PCON)
ARDauxiliary RAM disable bit, all MOVX instructions access the external data
memory
RFIdisable ALE during internal access to reduce radio frequency interference
WLEWatchdog Timer enable
GF1general purpose flag 1
GF0general purpose flag 0
PDPower-down mode activation bit
IDLIdle mode activation bit
Program Status Word (PSW)
Ccarry bit
ACauxiliary carry bit
F0flag 0
RS1 to RS0register bank selector bits RS<1:0>:
00 = Bank 0 (00H to 07H)
01 = Bank 1 (08H to 0FH)
10 = Bank 2 (10H to 17H)
11 = Bank 3 (18H to 1FH)
OVoverflow flag
Pparity bit
Pulse Width Modulator 0 Control Register (PWM0)
PW0Eactivate this PWM and take control of respective port pin (logic 1)
PW0V5 to PW0V0pulse width modulator high time
Pulse Width Modulator 1 Control Register (PWM1)
PW1Eactivate this PWM (logic 1)
PW1V5 to PW1V0pulse width modulator high time
Pulse Width Modulator 2 Control Register (PWM2)
PW2Eactivate this PWM (logic 1)
PW2V5 to PW2V0pulse width modulator high time
Pulse Width Modulator 3 Control Register (PWM3)
PW3Eactivate this PWM (logic 1)
PW3V5 to PW3V0pulse width modulator high time
Pulse Width Modulator 4 Control Register (PWM4)
PW4Eactivate this PWM (logic 1)
PW4V5 to PW4V0pulse width modulator high time
1999 Oct 2719
Page 20
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
SAA55xx
On-Screen Display (OSD)
BITFUNCTION
Pulse Width Modulator 5 Control Register (PWM5)
PW5Eactivate this PWM (logic 1)
PW5V5 to PW5V0pulse width modulator high time
Pulse Width Modulator 6 Control Register (PWM6)
PW6Eactivate this PWM (logic 1)
PW6V5 to PW6V0pulse width modulator high time
Pulse Width Modulator 7 Control Register (PWM7)
PW7Eactivate this PWM (logic 1)
PW7V5 to PW7V0pulse width modulator high time
ROM Bank (ROMBK)
STANDBYstandby activation bit
2
C-bus Slave Address Register (S1ADR)
I
ADR6 to ADR0I
GCenable I
2
C-bus Control Register (S1CON)
I
CR2 to CR0clock rate bits; CR<2:0>:
ENSIenable I
STASTART flag. When this bit is set in slave mode, the hardware checks the I
STOSTOP flag. If this bit is set in a master mode a STOP condition is generated. A
2
C-bus slave address to which the device will respond
2
C-bus general call address (logic 1)
000 = 100 kHz bit rate
001 = 3.75 kHz bit rate
010 = 150 kHz bit rate
011 = 200 kHz bit rate
100 = 25 kHz bit rate
101 = 1.875 kHz bit rate
110 = 37.5 kHz bit rate
111 = 50 kHz bit rate
2
C-bus interface (logic 1)
2
C-bus
and generates a START condition if the bus is free or after the bus becomes free.
If the device operates in master mode it will generate a repeated START
condition.
STOP condition detected on the I
2
C-bus clears this bit. This bit may also be set
in slave mode in order to recover from an error condition. In this case no STOP
condition is generated to the I2C-bus, but the hardware releases the SDA and
SCL lines and switches to the not selected receiver mode. The STOP flag is
cleared by the hardware.
1999 Oct 2720
Page 21
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
SAA55xx
On-Screen Display (OSD)
BITFUNCTION
SISerial Interrupt flag. This flag is set and an interrupt request is generated, after
any of the following events occur:
• A START condition is generated in master mode
• The own slave address has been received during AA = 1
• The general call address has been received while S1ADR.GC and AA = 1
• A data byte has been received or transmitted as selected slave
• A STOP or START condition is received as selected slave receiver or
transmitter.While the SI flag is set, SCL remains LOW and the serial transferis
suspended. SI must be reset by software.
AAAssert Acknowledge flag. When this bit is set, an acknowledge is returned
after any one of the following conditions:
• Own slave address is received
• General call address is received (S1ADR.GC = 1)
• A data byte is received, while the device is programmed to be a master receiver
• A data byte is received, while the device is selected slave receiver.
When the bit is reset, no acknowledge is returned. Consequently, no interrupt is
requested when the own address or general call address is received.
2
I
C-bus Data Register (S1DAT)
DAT7 to DAT0I
2
C-bus Status Register (S1STA)
I
STAT4 to STAT0I
Software ADC Register (SAD)
VHIanalog input voltage greater than DAC voltage (logic 1)
CH1 to CH0ADC input channel select bits; CH<1:0>:
(1)
ST
SAD7 to SAD44 MSBs of DAC input word
Software ADC Control Register (SADB)
DC_COMPenable DC comparator mode (logic 1)
SAD3 to SAD04 LSBs of SAD value
Stack Pointer (SP)
SP7 to SP0stack pointer value
2
C-bus data
2
C-bus interface status
00 = ADC3
01 = ADC0
10 = ADC1
11 = ADC2
initiate voltage comparison between ADC input channel and SAD value
1999 Oct 2721
Page 22
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
SAA55xx
On-Screen Display (OSD)
BITFUNCTION
Timer/Counter Control Register (TCON)
TF1Timer 1 overflow flag. Set by hardware on timer/counter overflow. Cleared by
hardware when processor vectors to interrupt routine.
TR1Timer 1 run control bit. Set/cleared by software to turn timer/counter on/off.
TF0Timer 0 overflow flag. Set by hardware on timer/counter overflow. Cleared by
hardware when processor vectors to interrupt routine.
TR0Timer 0 run control bit. Set/cleared by software to turn timer/counter on/off.
IE1Interrupt 1 Edge flag. Both edges generate flag. Set by hardware when external
interrupt edge detected. Cleared by hardware when interrupt processed.
IT1Interrupt 1 type control bit. Set/cleared by software to specify edge/LOW level
triggered external interrupts.
IE0Interrupt 0 Edge l flag. Set by hardware when external interrupt edge detected.
Cleared by hardware when interrupt processed.
IT0Interrupt 0 type flag. Set/cleared by software to specify falling edge/LOW level
triggered external interrupts.
14-bit PWM MSB Register (TDACH)
TPWEactivate this 14-bit PWM (logic 1)
TD13 to TD86 MSBs of 14-bit number to be output by the 14-bit PWM
14-bit PWM LSB Register (TDACL)
TD7 to TD08 LSBs of 14-bit number to be output by the 14-bit PWM
Timer 0 High byte (TH0)
TH07 to TH008 MSBs of Timer 0 16-bit counter
Timer 1 High byte (TH1)
TH17 to TH108 MSBs of Timer 1 16-bit counter
Timer 0 Low byte (TL0)
TL07 to TL008 LSBs of Timer 0 16-bit counter
Timer 1 Low byte (TL1)
TL17 to TL108 LSBs of Timer 1 16-bit counter
Timer/Counter Mode Control (TMOD)
GATEgating control Timer/Counter 1
TCounter/Timer 1 selector
C/
M1 to M0mode control bits timer/counter 1; M<1:0>:
00 = 8-bit timer or 8-bit counter with divide-by-32 prescaler
01 = 16-bit time interval or event counter
10 = 8-bit time interval or event counter with automatic reload upon overflow;
reload value stored in TH1
11 = stopped
GATEGating control Timer/Counter 0
C/
TCounter/Timer 0 selector
1999 Oct 2722
Page 23
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
SAA55xx
On-Screen Display (OSD)
BITFUNCTION
M1 to M0mode control bits timer/counter 0; M<1:0>:
00 = 8-bit timer or 8-bit counter with divide-by-32 prescaler
01 = 16-bit time interval or event counter
10 = 8-bit time interval or event counter with automatic reload upon overflow;
reload value stored in TH0
11 = one 8-bit time interval or event counter and one 8-bit time interval counter
Text Register 0 (TXT0)
X24 POSNstore packet 24 in extension packet memory (logic 0) or page memory (logic 1)
DISPLAY X24display X24 from page memory (logic 0) or extension packet memory (logic 1)
AUTO FRAMEFRAME output switched off automatically if any video displayed (logic 1)
DISABLE HEADER ROLLdisable writing of rolling headers and time into memory (logic 1)
DISPLAY STATUS ROW ONLYdisplay row 24 only (logic 1)
DISABLE FRAMEFRAME output always LOW (logic 1)
VPS ONenable capture of VPS data (logic 1)
INV ONenable capture of inventory page in block 8 (logic 1)
Text Register 1 (TXT1)
EXT PKT OFFdisable acquisition of extension packets (logic 1)
8-BITdisable checking of packets 0 to 24 written into memory (logic 1)
ACQ OFFdisable writing of data into Display memory (logic 1)
X26 OFFdisable automatic processing of X/26 data (logic 1)
FULL FIELDacquire data on any TV line (logic 1)
FIELD POLARITYVSYNC pulse in second half of line during even field (logic 1)
H POLARITYHSYNC reference edge is negative going (logic 1)
V POLARITYVSYNC reference edge is negative going (logic 1)
Text Register 2 (TXT2)
ACQ BANKselect acquisition Bank 1 (logic 1)
REQ3 to REQ0page request
SC2 to SC0start column of page request
Text Register 3 (TXT3)
PRD4 to PRD0page request data
Text Register 4 (TXT4)
OSD BANK ENABLEalternate OSD location available via graphic attribute, additional 32 locations
WESTeastern language selection of character codes A0H to FFH (logic 1)
DISABLE DOUBLE HEIGHTdisable normal decoding of double height characters (logic 1)
B MESH ENABLEenable meshing of black background (logic 1)
C MESH ENABLEenable meshing of coloured background (logic 1)
TRANS ENABLEdisplay black background as video (logic 1)
SHADOW ENABLEdisplay shadow/fringe (default SE black) (logic 1)
1999 Oct 2723
Page 24
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
SAA55xx
On-Screen Display (OSD)
BITFUNCTION
Text Register 5 (TXT5)
BKGND OUTbackground colour displayed outside teletext boxes (logic 1)
BKGND INbackground colour displayed inside teletext boxes (logic 1)
COR OUTCOR active outside teletext and OSD boxes (logic 1)
COR INCOR active inside teletext and OSD boxes (logic 1)
TEXT OUTtext displayed outside teletext boxes (logic 1)
TEXT INtext displayed inside teletext boxes (logic 1)
PICTURE ON OUTvideo displayed outside teletext boxes (logic 1)
PICTURE ON INvideo displayed inside teletext boxes (logic 1)
Text Register 6 (TXT6)
BKGND OUTbackground colour displayed outside teletext boxes (logic 1)
BKGND INbackground colour displayed inside teletext boxes (logic 1)
COR OUTCOR active outside teletext and OSD boxes (logic 1)
COR INCOR active inside teletext and OSD boxes (logic 1)
TEXT OUTtext displayed outside teletext boxes (logic 1)
TEXT INtext displayed inside teletext boxes (logic 1)
PICTURE ON OUTvideo displayed outside teletext boxes (logic 1)
PICTURE ON INvideo displayed inside teletext boxes (logic 1)
Text Register 7 (TXT7)
STATUS ROW TOPdisplay memory row 24 information above teletext page (on display row 0)
(logic 1)
CURSOR ONdisplay cursor at position given by TXT9 and TXT10 (logic 1)
REVEALdisplay characters in area with conceal attribute set (logic 1)
BOTTOM/
DOUBLE HEIGHTdisplay each character as twice normal height (logic 1)
BOX ON 24enable display of teletext boxes in memory row 24 (logic 1)
BOX ON 1 to 23enable display of teletext boxes in memory row 1 to 23 (logic 1)
BOX ON 0enable display of teletext boxes in memory row 0 (logic 1)
Text Register 8 (TXT8)
FLICKER STOP ONdisable ‘Flicker Stopper’ circuitry (logic 1)
DISABLE SPANISHdisable special treatment of Spanish packet 26 characters (logic 1)
PKT 26 RECEIVED
WSS RECEIVED
WSS ONenable acquisition of WSS data (logic 1)
CVBS1/
TOPdisplay memory rows 12 to 23 when DOUBLE HEIGHT height bit is set (logic 1)
(2)
(2)
CVBS0select CVBS1 as source for device (logic 1)
packet 26 data has been processed (logic 1)
WSS data has been processed (logic 1)
1999 Oct 2724
Page 25
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
SAA55xx
On-Screen Display (OSD)
BITFUNCTION
Text Register 9 (TXT9)
CURSOR FREEZElock cursor at current position (logic 1)
CLEAR MEMORY
A0access extension packet memory (logic 1)
R4 to R0
Text Register 10 (TXT10)
C5 to C0
Text Register 11 (TXT11)
D7 to D0data value written or read from memory location defined by TXT9, TXT10 and
Text Register 12 (TXT12)
625/525 SYNC525-line CVBS signal is being received (logic 1)
SPANISHSpanish character set present (logic 1)
ROM VER3 to ROM VER0mask programmable identification for character set
VIDEO SIGNAL QUALITYacquisition can be synchronized to CVBS (logic 1)
Text Register 13 (TXT13)
VPS RECEIVEDVPS data (logic 1)
PAGE CLEARINGsoftware or power-on page clear in progress (logic 1)
525 DISPLAY525-line synchronisation for display (logic 1)
525 TEXT525-line WST being received (logic 1)
625 TEXT625-line WST being received (logic 1)
PKT 8/30packet 8/30/x(625) or packet 4/30/x(525) data detected (logic 1)
FASTEXTpacket x/27 data detected (logic 1)
Text Register 14 (TXT14)
PAGE3 to PAGE0current display page
Text Register 15 (TXT15)
BLOCK3 to BLOCK0current micro block to be accessed by TXT9, TXT10 and TXT11
Text Register 17 (TXT17)
FORCE ACQ1 to FORCE ACQ0FORCE ACQ<1:0>:
FORCE DISP1 to FORCE DISP0FORCE DISP<1:0>:
(3)
(4)
(1)
clear memory block pointed to by TXT15 (logic 1)
current memory row value
current memory column value
TXT15
00 = automatic selection
01 = force 525 timing, force 525 teletext standard
10 = force 625 timing, force 625 teletext standard
11 = force 625 timing, force 525 teletext standard
00 = automatic selection
01 = force display to 525 mode (9 lines per row)
10 = force display to 625 mode (10 lines per row)
11 = not valid (default to 625 mode)
1999 Oct 2725
Page 26
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
SAA55xx
On-Screen Display (OSD)
BITFUNCTION
SCREEN COL2 to SCREEN COL0 Definescolour to be displayedinstead of TV picture and black background; these
bits are equivalent to the RGB components. SCREEN COL<2:0>:
NOT3 to NOT0national option table selection, maximum of 31 when used with EAST/
BS1 to BS0basic character set selection
Text Register 19 (TXT19)
TENenable twist character set (logic 1)
TC2 to TC0language control bits (C12, C13 and C14) that has twisted character set
TS1 to TS0twist character set selection
Text Register 20 (TXT20)
OSD LANG ENABLEenable use of OSD LAN<2:0> to define language option for display, instead of
C12, C13 and C14
OSD LAN2 to OSD LAN0alternative C12, C13 and C14 bits for use with OSD menus
Text Register 21 (TXT21)
2
I
C PORT 1enable I2C-bus Port 1 selection (P1.5/SDA1 and P1.4/SCL1) (logic 1)
2
C PORT 0enable I2C-bus Port 0 selection (P1.7/SDA0 and P1.6/SCL0) (logic 1)
I
Text Register 22 (TXT22)
GPF7 to GPF6reserved
GPF5standard device (logic 0)
GPF410 pages available (logic 1)
GPF3PWM0, PWM1, PWM2 and PWM3 outputs routed to Port 2.1 to Port 2.4
respectively (logic 1)
GPF2reserved
GPF1text acquisition available (logic 1)
GPF0reserved
Watchdog Timer (WDT)
WDV7to WDV0Watchdog Timer period
WEST bit
1999 Oct 2726
Page 27
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
BITFUNCTION
Watchdog Timer Key (WDTKEY)
WKEY7 to WKEY0
Wide Screen Signalling 1 (WSS1)
WSS<3:0> ERRORerror in WSS<3:0> (logic 1)
WSS3 to WSS0signalling bits to define aspect ratio (group 1)
Wide Screen Signalling 2 (WSS2)
WSS<7:4> ERRORerror in WSS<7:4> (logic 1)
WSS7 to WSS4signalling bits to define enhanced services (group 2)
Wide Screen Signalling 3 (WSS3)
WSS<13:11> ERRORerror in WSS<13:11> (logic 1)
WSS13 to WSS11signalling bits to define reserved elements (group 4)
WSS<10:8> ERRORerror in WSS<10:8> (logic 1)
WSS10 to WSS8signalling bits to define subtitles (group 3)
XRAMP
XRAMP7 to XRAMP0internal RAM access upper byte address
(5)
Watchdog Timer Key
SAA55xx
Notes
1. This flag is set by software and reset by hardware.
2. This flag is set by hardware and must be reset by software.
3. Valid range TXT mode 0 to 24.
4. Valid range TXT mode 0 to 39.
5. Must be set to 55H to disable Watchdog Timer when active.
1999 Oct 2727
Page 28
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
SAA55xx
On-Screen Display (OSD)
8.5Character set feature bits
Features available on the SAA55xx devices are reflected in a specific area of the character ROM. These sections of the
character ROM are mapped to two Special Function Registers: TXT22 and TXT12. Character ROM address 09FEH is
mapped to SFR TXT22 as shown in Table 4. Character ROM address 09FFH is mapped to SFR TXT12 as shown in
Table 6.
Table 4 Character ROM - TXT22 mapping
U = used; X = reserved
MAPPED ITEMS11109876543210
Character ROM
address 09FEH
Mapped to TXT22−−−−76543210
Table 5 Description of Character ROM address 09FEH bits
BIT NUMBERFUNCTION
0reserved; normally set to logic 1
11 = Text Acquisition available
2reserved
31 = PWM0, PWM1, PWM2 and PWM3 output routed to Port 2.1 to Port 2.4 respectively
41 = 10 page available
50 = standard device
6 to 11reserved; normally set to logic 1
XXXXXXUUUXUX
0 = Text Acquisition not available
0 = PWM0, PWM1, PWM2 and PWM3 output routed to Port 3.0 to Port 3.3 respectively
0 = 6 page available
Table 6 Character ROM - TXT12 mapping
U = used; X = reserved
MAPPED ITEMS11109876543210
Character ROM
address 09FFH
Mapped to TXT12−−−−−−−65432
Table 7 Description of Character ROM address 09FFH bits
BIT NUMBERFUNCTION
41 = Spanish character set present
0 to 3, 5 to 11reserved; normally set to logic 1
1999 Oct 2728
XXXXXXXUXXXX
0 = no Spanish character set present
Page 29
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
8.6External (auxiliary) memory
The normal 80C51 external memory area has been
mappedinternallytothedevice,thismeansthatthe MOVX
instruction accesses memory internal to the device.
handbook, halfpage
7FFFH
SAA55xx
8.6.1AUXILIARY RAM PAGE SELECTION
The Auxiliary RAM page pointer is used to select one of
the 256 pages within the Auxiliary RAM, not all pages are
allocated, refer to Fig.10 for further detail. A page consists
of 256 consecutive bytes.
FFFFH
4800H
47FFH
TEXT PAGES
2000H
1FFFH
500H
4FFH
0000H
(1) Amount of Data RAM depends on the device.
(2) Amount of Display RAM depends on the device.
DISPLAY RAM
FOR
DATA RAM
(1)
(2)
8C00H
87FFH
DISPLAY REGISTERS
87F0H
871FH
8700H
Fig.9 Auxiliary RAM allocation.
CLUT
GSA031
upper 32 kbyteslower 32 kbytes
1999 Oct 2729
Page 30
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
handbook, full pagewidth
MOVX @ Ri,A
MOVX A, @ Ri
FFH
00H
FFH
00H
FFH
00H
FFH
00H
SFR XRAMP = FFH
SFR XRAMP = FEH
SFR XRAMP = 01H
SFR XRAMP = 00H
SAA55xx
FFFFH
FF00H
FEFFH
FE00H
MOVX @ DPTR,A
MOVX A, @ DPTR
01FFH
0100H
00FFH
0000H
MBK958
Fig.10 Indirect addressing of Auxiliary RAM.
9POWER-ON RESET
An automatic reset can be obtained when VDDis turned on
by connecting the RESET pin to V
through a
DDP
10 µF capacitor, providing the VDD rise time does not
exceed 1 ms, and the oscillator start-up time does not
exceed 10 ms.
To ensure correct initialisation, the RESET pin must be
held high long enough for the oscillator to settle following
power-up, usually a few ms. Once the oscillator is stable,
a further 24 clocks are required to generate the reset (two
machine cycles of the microcontroller). Once the above
reset condition has been detected an internal reset signal
is triggered which remains active for 2048 clock cycles.
1999 Oct 2730
Page 31
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
10 REDUCED POWER MODES
Thereare two power saving modes, Idleand Power-down,
incorporated into the 10 page devices. There is an
additional Standby mode incorporated into the 1 page
devices. When utilizing any mode, power to the device
(V
DDP,VDDC
saving is achieved by clock gating on a section by section
basis.
10.1Idle mode
During Idle mode, Acquisition, Display and the Central
ProcessingUnit(CPU)sectionsofthedevicearedisabled.
The following functions remain active:
• Memory interface
• I2C-bus interface
• Timer/Counters
• Watchdog Timer
• Pulse Width Modulators.
To enter Idle mode the IDL bit in the PCON register must
be set. The Watchdog Timer must be disabled prior to
entering the Idle mode to prevent the device being reset.
Once in Idle mode, the crystal oscillator continues to run,
but the internal clock to the CPU, Acquisition and Display
are gated out. However, the clocks to the Memory
interface, I2C-bus interface, Timer/Counters, Watchdog
Timer and Pulse Width Modulators are maintained.
The CPU state is frozen along with the status of all SFRs,
internal RAM contents are maintained, as are the device
output pin values.
Sincethe output values on Red Green Blue (RGB) and the
Video Data Switch (VDS) are maintained the display
output must be disabled before entering this mode.
There are three methods to recover from Idle mode:
• Assertionof an enabled interrupt will cause the IDLbitto
be cleared by hardware, thus terminating Idle mode.
The interrupt is serviced, and following the instruction
RETI, the next instruction to be executed will be the one
after the instruction that put the device into Idle mode.
• A second method of exiting the Idle mode is via an
interrupt generated by the SAD DC Compare circuit.
When the device is configured in this mode, detection of
ananalogthreshold at the input to the SAD may be used
to trigger wake-up of the device i.e. TV Front Panel
Key-press. As above, the interrupt is serviced, and
following the instruction RETI, the next instruction to be
executedwillbetheonefollowingthe instruction that put
the device into Idle mode.
andV
)shouldbemaintained, since power
DDA
SAA55xx
• The third method of terminating Idle mode is with an
external hardware reset. Since the oscillator is running,
the hardware reset need only be active for two machine
cycles (24 clocks at 12 MHz) to complete the reset
operation. Reset defines all SFRs and Display memory
to an initialized state, but maintains all other RAM
values. Code execution commences with the Program
Counter set to ‘0000’.
10.2Power-down mode
In Power-down mode the crystal oscillator is stopped.
The contents of all SFRs and Data memory are
maintained,However,thecontentsoftheAuxiliary/Display
memoryarelost.Theportpinsmaintain the values defined
bytheir associated SFRs. Since the outputvalues on RGB
and VDS are maintained the display output must be made
inactive before entering Power-down mode.
The Power-down mode is activated by setting the PD bit in
the PCON register. It is advised to disable the Watchdog
Timer prior to entering power-down.
There are three methods of exiting power-down:
• An external interrupt provides the first mechanism for
waking from power-down. Since the clock is stopped,
externalinterruptsneedstobesetlevel sensitive prior to
entering power-down. The interrupt is serviced, and
following the instruction RETI, the next instruction to be
executed will be the one after the instruction that put the
device into Power-down mode.
• A second method of exiting power-down is via an
interrupt generated by the SAD DC Compare circuit.
When the device is configured in this mode, detection of
a certain analog threshold at the input to the SAD may
be used to trigger wake-up of the device i.e. TV Front
Panel Key-press. As above, the interrupt is serviced,
andfollowingtheinstructionRETI,thenextinstructionto
be executed will be the one following the instruction that
put the device into power-down.
• The third method of terminating the Power-down mode
is with an external hardware reset. Reset defines all
SFRs and Display memory, but maintains all other RAM
values. Code execution commences with the Program
Counter set to ‘0000’.
1999 Oct 2731
Page 32
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
10.3Standby mode
This mode is only available on 1 page devices. When
Standby mode is entered both Acquisition and Display
sections are disabled. The following functions remain
active:
• 80C51 core
• Memory interface
• I2C-bus interface
• Timer/Counters
• Watchdog Timer
• Software ADC
• Pulse Width Modulators.
To enter Standby mode, the STANDBY control bit in the
ROMBK SFR (bit 7) must be set. It can be used in
conjunction with either Idle or Power-down modes to
switch between power saving modes. This mode enables
the 80C51 core to decode either IR remote commands or
receive I2C-bus commands without the device being fully
powered.
The Standby state is maintained upon exit from either the
Idle mode or Power-down mode. No wake-up from
Standby is necessary as the 80C51 core remains
operational.
Since the output values on RGB and VDS are maintained
the display output must be disabled before entering this
mode.
SAA55xx
11.2.1OPEN-DRAIN
The open-drain configuration can be used for bidirectional
operation of a port. It requires an external pull-up resistor,
the pull-up voltage has a maximum value of 5.5 V, to allow
connection of the device into a 5 V environment.
The I2C-bus ports (P1.4,P1.5, P1.6 and P1.7) can only be
configured as open-drain.
11.2.2QUASI-BIDIRECTIONAL
The quasi-bidirectional configuration is a combination of
open-drain and push-pull. It requires an external pull-up
resistortoV
from LOW-to-HIGH is output from the device, the pad is
put into push-pull configuration for one clock cycle
(166 ns) after which the pad goes into open-drain
configuration. This configuration is used to speed up the
edges of signal transitions. This is the default mode of
operation of the pads after reset.
11.2.3HIGH-IMPEDANCE
The high-impedance configuration can be used for input
only operation of the port. When using this configuration
the two output transistors are turned off.
11.2.4PUSH-PULL
The push-pull configuration can be used for output only.
In this mode the signal is driven to either 0 V or V
which is nominally 3.3 V.
(nominally3.3 V).Whena signal transition
DDP
DDP
,
11 I/O FACILITY
11.1I/O ports
The SAA55xx devices have 29 I/O lines, each is
individually addressable, or form three parallel 8-bit
addressable ports which are Port 0, Port 1 and Port 2.
Port 3 has 5-bit parallel I/O only.
11.2Port type
All individual ports can be programmed to function in one
of four I/O configurations: open-drain, quasi-bidirectional,
high-impedance and push-pull. The I/O configuration is
selected using two associated Port Configuration
Registers:PnCFGA and PnCFGB (where n = port number
0, 1, 2 or 3); see Table 3.
1999 Oct 2732
11.3Port alternate functions
Ports 1, 2 and 3 are shared with alternative functions to
enable control of external devices and circuitry.
The alternative functions are enabled by setting the
appropriate SFR and also writing a logic 1 to the port bit
that the function occupies.
11.4LED support
Port pins P0.5 and P0.6 have a 8 mA current sinking
capability to enable LEDs in series with current limiting
resistors to be driven directly, without the need for
additional buffering circuitry.
Page 33
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
12 INTERRUPT SYSTEM
Thedevice has six interrupt sources,each of which can be
enabled or disabled. When enabled each interrupt can be
assigned one of two priority levels. There are four
interrupts that are common to the 80C51, two of these are
external interrupts (EX0 and EX1) and the other two are
timer interrupts (ET0 and ET1). In addition to the
conventional 80C51 interrupts, one application specific
interrupt is incorporated internal to the device which has
following functionality:
• Display Busy interrupt (EBUSY). An interrupt is
generatedwhen the display enters either aHorizontal or
Vertical Blanking Period. i.e. Indicates when the
microcontroller can update the Display RAM without
causing undesired effects on the screen. This interrupt
can be configured in one of two modes using the
Memory Mapped Register (MMR) Configuration
(address 87FFH, bit TXT/V):
– Text Display Busy. An interrupt is generated on each
active horizontal display line when the Horizontal
Blanking Period is entered
– Vertical Display Busy. An interrupt is generated on
each vertical display field when the Vertical Blanking
Period is entered.
SAA55xx
If requests of the same priority level are received
simultaneously, an internal polling sequence determines
which request is serviced. Thus, within each priority level
there is a second priority structure determined by the
polling sequence as defined in Table 8.
The processor acknowledges an interrupt request by
executinga hardware generated LCALL to the appropriate
servicing routine. The interrupt vector addresses for each
source are shown in Table 8.
12.4Level/edge interrupt
PRIORITY
WITHIN LEVEL
INTERRUPT
VECTOR
12.1Interrupt enable structure
Each of the individual interrupts can be enabled or
disabled by setting or clearing the relevant bit in the
Interrupt Enable Register (IE). All interrupt sources can
also be globally disabled by clearing the EA bit (IE.7).
12.2Interrupt enable priority
Each interrupt source can be assigned one of two priority
levels. The interrupt priorities are defined by the Interrupt
Priority Register (IP). A low priority interrupt can be
interrupted by a high priority interrupt, but not by another
low priority interrupt. A high priority interrupt can not be
interruptedby any other interrupt source. If two requests of
different priority levels are received simultaneously, the
request with the highest priority level is serviced.
The external interrupt can be programmed to be either
level-activatedor transition-activated by setting or clearing
the IT0/IT1 bits in the Timer Control SFR (TCON).
Table 9 External interrupt activation
ITxLEVELEDGE
0active LOW −
1−INT0 = negative edge
INTI = positive and negative edge
The external interrupt INT1 differs from the standard
80C51 interrupt in that it is activated on both edges when
in edge sensitive mode. This is to allow software pulse
width measurement for handling remote control inputs.
1999 Oct 2733
Page 34
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
handbook, full pagewidth
EX0
ET0
EX1
ET1
ES2
SAA55xx
highest priority level 1
L1H1highest priority level 0
H2
L2
H3
L3
H4
L4
H5
L5
EBUSY
interrupt
source
source
enable
SFR IE<0:6
global
>
enable
SFR IE.7
priority
control
SFR IP<0:6
Fig.11 Interrupt structure.
lowest priority level 1
H6
lowest priority level 0
L6
GSA033
>
1999 Oct 2734
Page 35
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
13 TIMER/COUNTER
Two 16-bit timers/counters are incorporated Timer 0 and
Timer 1.Bothcanbe configured to operate as either timers
or event counters.
In Timer mode, the register is incremented on every
machine cycle. It is therefore counting machine cycles.
Since the machine cycle consists of twelve oscillator
periods, the count rate is1⁄12f
In Counter mode, the register is incremented in response
toanegativetransitionatitscorrespondingexternalpin T0
or T1. Since the pins T0 and T1 are sampled once per
machine cycle, it takes two machine cycles to recognise a
transition, this gives a maximum count rate of
1
⁄24f
= 0.5 MHz.
osc
There are six Special Function Registers used to control
the timers/counters. These are: TCON, TMOD, TL0, TH0,
TL1 and TH1.
Thetimer/counterfunctionisselectedby control bits C/Tin
the Timer Mode SFR (TMOD). These two Timer/Counters
havefouroperating modes, which are selected by bit-pairs
(M1 and M0) in TMOD. Detail of the modes of operation is
given in
Microcontrollers”
“Handbook IC20, 80C51-Based 8-bit
.
= 1 MHz.
osc
SAA55xx
The 8-bit timer is incremented every ‘t’ seconds where:
1
t12 2048
14.1Watchdog Timer operation
The Watchdog operation is activated when the WLE bit in
the Power Control SFR (PCON) is set. The Watchdog can
be disabled by software by loading the value 55H into the
Watchdog Key SFR (WDTKEY). This must be performed
before entering Idle or Power-down mode to prevent
exiting the mode prematurely.
Once activated the Watchdog Timer SFR (WDT) must be
reloaded before the timer overflows. The WLE bit must be
set to enable loading of the WDT SFR, once loaded the
WLE bit is reset by hardware, this is to prevent erroneous
software from loading the WDT SFR.
The value loaded into the WDT defines the Watchdog
Interval (WI).
WI256 WDT–()t×256 WDT–()2.048 ms×==
The range of intervals is from WDT = 00H which gives
524 ms to WDT = FFH which gives 2.048 ms.
-------f
osc
12 2048
1
---------------------12 10
×
2.048 ms=××=××=
6
TL0 and TH0 are the actual Timer/Counter registers for
Timer 0. TL0 is the low byte and TH0 is the high byte.
TL1 and TH1 are the actual Timer/Counter registers for
Timer 1. TL1 is the low byte and TH1 is the high byte.
14 WATCHDOG TIMER
The Watchdog Timer is a counter that once in an overflow
state forces the microcontroller into a reset condition.
The purpose of the Watchdog Timer is to reset the
microcontroller if it enters an erroneous processor state
(possibly caused by electrical noise or RFI) within a
reasonable period of time. When enabled, the Watchdog
circuitry will generate a system reset if the user program
failstoreloadthe Watchdog Timer within a specified length
of time known as the Watchdog Interval (WI).
The Watchdog Timer consists of an 8-bit counter with an
11-bit prescaler. The prescaler is fed with a signal whose
frequency is1⁄12f
(1 MHz for 12 MHz oscillator).
osc
15 PULSE WIDTH MODULATORS
The device has eight 6-bit Pulse Width Modulated (PWM)
outputs for analog control of e.g. volume, balance, bass,
treble, brightness, contrast, hue and saturation. The PWM
outputs generate pulse patterns with a repetition rate of
21.33 µs, with the high time equal to the PWM SFR value
multiplied by 0.33 µs. The analog value is determined by
the ratio of the high time to the repetition time, a DC
voltage proportional to the PWM setting is obtained by
means of an external integration network (low-pass filter).
15.1PWM control
The relevant PWM is enabled by setting the PWM enable
bitPWxEinthePWMx Control Register (where x = 0 to 7).
The high time is defined by the value PWxV<5:0>.
1999 Oct 2735
Page 36
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
15.2Tuning 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 the repetition period is
42.66 µs.
15.2.1TPWM CONTROL
TwoSFRs are used to controlthe 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.
TheTPWMwillnotstarttooutputanewvalue until TDACH
has been written to. Therefore, if the value is to be
changed, TDACL should be written before TDACH.
15.3Software ADC (SAD)
Four successive approximation Analog-to-Digital
Converterscanbeimplementedin software by making use
of the on-board 8-bit Digital-to-Analog Converter and
Analog Comparator.
15.3.1SAD CONTROL
SAA55xx
The resolution of the DAC voltage with a nominal value is
3.3
⁄
≈ 13 mV. The external analog voltage has a lower
256
value equivalent to V
V
− Vtn,whereVtnisthethresholdvoltageforanN type
DDP
Metal Oxide Semiconductor 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
andcomparator 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.
Therefore, for an input voltage in the range V
V
− Vtn the SAD returns the same comparison value.
DDP
15.3.3SAD 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-upmechanism from Power-down or Idle mode when
a key-press on the front panel of the TV is detected.
and an upper value equivalent to
SSA
DDP
to
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.2SAD 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 V
and an upper reference level of V
SSA
SSP
.
The following software sequence should be used when
utilizing this mode for Power-down or Idle:
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 or Idle mode. Upon wake-up the
SAD should be restored to its conventional operating
mode by disabling the DC_COMP control bit.
1999 Oct 2736
Page 37
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
ADC0
ADC1
ADC2
ADC3
CH<1:0
SAD<3:0
SADB<3:0
V
DDP
>
>
>
handbook, halfpage
SAA55xx
MUX
4 : 1
VHI
8-BIT
DAC
MBK960
Fig.12 SAD block diagram.
1999 Oct 2737
Page 38
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
16 I2C-BUS SERIAL I/O
The I2C-bus consists of a serial data (SDA) line and a
serial clock (SCL) line. The definition of the I2C-bus
protocol can be found in the document
howto use it (including specification)”
be ordered using the code 9398 393 40011.
The device operates in four modes:
• Master transmitter
• Master receiver
• Slave transmitter
• Slave receiver.
The microcontroller peripheral is controlled by the Serial
Control SFR (S1CON) and its status is indicated by the
Status SFR (S1STA). Information is transmitted/received
to/from the I2C-bus using the Data SFR (S1DAT) and the
Slave Address SFR (S1ADR) is used to configure the
slave address of the peripheral.
The byte level I2C-bus serial port is identical to the I2C-bus
serial port on the P8xCE558, except for the clock rate
selection bits CR<2:0> in S1CON. The operation of the
subsystem is described in detail in the
sheet”
.
16.1I
Two I2C-bus ports are available SCL0/SDA0 and
SCL1/SDA1. The selection of the port is done using
TXT21.I2C PORT 0 and TXT21.I2C PORT 1. When the
port is enabled, any information transmitted from the
device goes onto the enabled port. Any information
transmitted to the device can only be acted on if the port is
enabled.
If both ports are enabled then data transmitted from the
device is seen on both ports, however data transmitted to
the device on one port can not be seen on the other port.
2
C-bus port selection
“The I2C-bus and
.Thisdocument may
“P8xCE558 data
SAA55xx
17.1Memory structure
The memory is partitioned into two distinct areas, the
dedicated Auxiliary RAM area, and the Display RAM area.
The Display RAM area when not being used for Data
Capture or display, can be used as an extension to the
auxiliary RAM area.
17.1.1A
The Auxiliary RAM is not initialised at power-up.
The contents of the Auxiliary RAM are maintained during
Idle mode, but are lost if Power-down mode is entered.
17.1.2DISPLAY RAM
The Display RAM is initialised on power-up to a value
of 20H throughout. The contents of the Display RAM are
maintained when entering Idle mode.If Idle mode isexited
using an interrupt then the contents are unchanged, if Idle
mode is exited using a reset then the contents are
initialised to 20H.
17.2Memory mapping
ThededicatedAuxiliaryRAMareaoccupiesamaximumof
8 kbytes, with an address range from 0000H to 1FFFH.
The Display RAM occupies a maximum of 10 kbytes with
an address range from 2000H to 47FFH for TXT mode
(see Fig.13).
17.3Addressing memory
The memory can be addressed by the microcontroller in
two ways, either directly using a MOVX command, or via
Special Function Registers depending on what address is
required.
The Display memory in the range 2000H to 47FFH can
either be directly accessed using the MOVX, or via the
Special Function Registers.
UXILIARY RAM
17 MEMORY INTERFACE
The memory interface controls access to the embedded
Dynamic Random Access Memory (DRAM), refreshing of
the DRAM and page clearing. The DRAM is shared
between Data Capture, display and microcontroller
sections. The Data Capture section uses the DRAM to
store acquired information that has been requested.
The display reads from the DRAM information and
converts it into RGB values. The microcontroller uses the
DRAM as embedded auxiliary RAM.
1999 Oct 2738
17.3.1TXT DISPLAY MEMORY SFR ACCESS
The Display memory when in TXT mode (see Fig.14) is
configured as 40 columns wide by 25 rows and occupies
1K × 8 bits of memory. There can be a maximum of
10 display pages. Using TXT15.BLOCK<3:0>, the
required display page can be selected to be written to.
The row and column within that block is selected using
TXT9.R<4:0> and TXT10.C<5:0>. The data at the
selected position can be read or written using
TXT11.D<7:0>.
Page 39
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
Whenever a read or write is performed on TXT11, the row
values stored in TXT9 and column value stored in TXT10
are automatically incremented. For rows 0 to 24 the
column value is incremented up to a maximum of 39, at
which point it resets to ‘0’ and increments the row counter
value. When row 25 column 23 is reached the values of
the row and column are both reset to zero.
Writing values outside of the valid range for TXT9 or
TXT10 will cause undetermined operation of the
auto-incrementing function for accesses to TXT11.
17.3.2TXT DISPLAY MEMORY MOVX ACCESS
It is important for the generation of OSD displays, that use
this mode of access, to understand the mapping of the
MOVX address onto the display row and column value.
This mapping of row and column onto address is shown in
Table 10. The values shown are added onto a base
addressfor the required memory block (see Fig.13) to give
a 16-bit address.
17.4Page clearing
Pageclearingisperformedonrequestfromeitherthe Data
Capture block, or the microcontroller under the control of
the embedded software.
At power-on and reset the whole of the page memory is
cleared.The TXT13.PAGE CLEARING bit will beset while
this takes place.
SAA55xx
When this occurs, the space code (20H) is written into
every location of rows 1 to 23 of the basic page memory,
the appropriate packet 27 row of the extension packet
memory and the row where teletext packet 24 is written.
This last row is either row 24 of the basic page memory, if
the TXT0.X24 POSN bit is set, or row 0 of the extension
packet memory, if the bit is not set. Page clearing takes
place before the end of the TV line in which the header
arrived which initiated the page clear.
This means that the 1 field gap between the page header
and the rest of the page which is necessary for many
teletext decoders is not required.
17.4.2SOFTWARE PAGE CLEAR
The software can also initiate a page clear, by setting the
TXT9.CLEAR MEMORY bit. When it does so, every
location in the memory block pointed to by
TXT15.BLOCK<3:0> is cleared to a space code (20H).
The CLEAR MEMORY bit is not latched so the software
does not have to reset it after it has been set.
Only one page can be cleared in a TV line so if the
software requests a page clear it will be carried out on the
nextTV line on which the Data Capture hardware does not
force the page to be cleared. A flag, TXT13.PAGE
CLEARING, is provided to indicate that a software
requested page clear is being carried out. The flag is set
when a logic 1 is written into the TXT9.CLEAR MEMORY
bit and is reset when the page clear has been completed.
17.4.1DATA CAPTURE PAGE CLEAR
When a page header is acquired for the first time after a
new page request or a page header is acquired with the
erase (C4) bit set the page memory is ‘cleared’ to spaces
before the rest of the page arrives.
Table 10 Column and row to MOVX address (lower 10bits of address)
Standard TV microcontrollers with
On-Screen Display (OSD)
handbook, full pagewidth
0203010
Row 0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
control data
active position TXT9.R<4:0> = 01H, TXT10.C<5:0> = 0AH, TXT11 = 43H
C
9023
10
Column
SAA55xx
39
non-displayable data
(byte 10 reserved)
MBK962
Fig.14 TXT memory map.
1999 Oct 2741
Page 42
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
18 DATA CAPTURE
The Data Capture section takes in the analog Composite
Video and Blanking Signal (CVBS), and from this extracts
the required data, which is then decoded and stored in
memory.
The extraction of the data is performed in the digital
domain. The first stage is to convert the analog CVBS
signal into a digital form. This is done using an ADC
sampling at 12 MHz. The data and clock recovery is then
performed by a Multi-Rate Video Input Processor
(MulVIP). From the recovered data and clock the following
data types are extracted: WST Teletext (625/525), VPS
and WSS. The extracted data is stored in either memory
(DRAM) via the Memory interface or in SFR locations.
18.1Data Capture features
• Two CVBS inputs
• Video Signal Quality detector
• Data Capture for 625-line WST
• Data Capture for 525-line WST
• Data Capture for VPS data (Programme Delivery
Control (PDC) system A)
SAA55xx
• Data Capture for Wide Screen Signalling (WSS) bit
decoding
• Automatic selection between 525 WST/625 WST
• Automatic selection between 625 WST/VPS on line 16
of Vertical Blanking Interval (VBI)
• Real-time capture and decoding for WST Teletext in
hardware, to enable optimized microprocessor
throughput
• Up to 10 pages stored on-chip
• Inventory of transmitted Teletext pages stored in the
Transmitted Page Table (TPT) and Subtitle Page Table
(SPT)
• Automatic detection of FASTEXT transmission
• Real-time packet 26 engine in hardware for processing
accented, G2 and G3 characters
• Signal quality detector for WST/VPS data types
• Comprehensive Teletext language coverage
• Full Field and Vertical Blanking Interval (VBI) data
capture of WST data.
handbook, full pagewidth
CVBS0CVBS1
CVBS
SWITCH
CVBS
ADC
>
data<7:0
DATA SLICER
AND
CLOCK RECOVERY
TTDTTC
ACQUISITION
FOR
WST/VPS/WSS
output data to memory interface and SFRs
Fig.15 Data capture block diagram.
SYNC
SEPARATOR
VCS
ACQUISITION
TIMING
GSA032
SYNC_FILTER
1999 Oct 2742
Page 43
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
18.1.1CVBS SWITCH
The CVBS switch is used to select the required analog
input depending on the value of TXT8.CVBS1/CVBS0.
18.1.2ANALOG-TO-DIGITAL CONVERTER
The output of the CVBS switch is passed to a
differential-to-single-ended converter, although in this
device it is used in single-ended configuration with a
reference. The analog output of the differential amplifier is
converted into a digital representation by a full flash ADC
with a sampling rate of 12 MHz.
18.1.3MULTI-RATE VIDEO INPUT PROCESSOR
The multi-rate video input processor is a Digital Signal
Processor designed to extract the data and recover the
clock from a digitised CVBS signal.
18.1.4DATA STANDARDS
The data and clock standards that can be recovered are
shown in Table 11.
Table 11 Data slicing standards
DATA STANDARD
625 WST6.9375
525 WST5.7272
VPS5.0
WSS5.0
18.1.5DATA CAPTURE TIMING
The Data Capture timing section uses the synchronisation
information extracted from the CVBS signal to generate
the required horizontal and vertical reference timings.
The timing section automatically recognises and selects
the appropriate timings for either 625 (50 Hz)
synchronisation or 525 (60 Hz) synchronisation. A flag
TXT12.VIDEO SIGNAL QUALITY is set when the timing
section is locked correctly to the incoming CVBS signal.
When TXT12.VIDEO SIGNAL QUALITY is set another
flag TXT12.525/625 SYNC can be used to identify the
standard.
18.1.6ACQUISITION
The acquisition sections extracts the relevant information
from the serial stream of data from the MulVIP and stores
it in memory.
CLOCK RATE
(MHz)
SAA55xx
18.1.6.1Making a page request
A page is requested by writing a series of bytes into the
TXT3.PRD<4:0> SFRwhichcorrespondstothe number of
the page required. The bytes written into TXT3 are stored
in a RAM with an auto-incrementing address. The start
address for the RAM is set using the TXT2.SC<2:0> to
define which part of the page request is being written, and
TXT2.REQ<3:0> is used to define which of the 10 page
requests is being modified. If TXT2.REQ<3:0> is greater
than 09H, then data being written to TXT3 is ignored.
Table 12 shows the contents of the page request RAM.
Up to 10 pages of teletext can be acquired on the 10 page
device, when TXT1.EXT PKT OFF is setto logic 1, and up
to 9 pages can be acquired when this bit is set to logic 0.
Fora20 pagedevicethe10 pageacquisitionchannelsare
banked, the bank being selected using TXT2.ACQ BANK.
If the ‘DO CARE’ bit for part of the page number is set to
logic 0 then that part of the page number is ignored when
the teletext decoder is deciding whether a page being
received off air should be stored or not. For example, if the
‘DO CARE’ bits for the four subcode digits are all set to
logic 0 then every subcode version of the page will be
captured.
Table 12 The contents of the Page request RAM
START
COLUMN
0DO CARE
1DO CARE
2DO CARE
3DO CARE
4DO CARE
5DO CARE
6DO CARE
7XXXE1E0
PRD4PRD3 PRD2 PRD1 PRD0
HOLD MAG2 MAG1 MAG0
Magazine
PT3PT2PT1PT0
Page Tens
PU3PU2PU1PU0
Page Units
XXHT1HT0
Hour Tens
HU3HU2HU1HU0
Hours
Units
XMT2MT1MT0
Minutes
Tens
MU3MU2MU1MU0
Minutes
Units
1999 Oct 2743
Page 44
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
When the HOLD bit is set to a logic 0 the teletext decoder
will not recognise any page as having the correct page
number and no pages will be captured. In addition to
providing the user requested hold function this bit should
beused to prevent the inadvertent captureof an unwanted
page when a new page request is being made.
For example, if the previous page request was for
page 100 and this was being changed to page 234, it
would be possible to capture page 200 if this arrived after
only the requested magazine number had been changed.
TheE1andE0bitscontroltheerrorcheckingwhichshould
be carried out on packets 1 to 23 when the page being
requested is captured. This is described in more detail in
Section 18.1.6.3.
For a multi-page device, each packet can only be written
into one place in the teletext RAM so if a page matches
more than one of the page requests the data is written into
theareaofmemorycorrespondingtothelowestnumbered
matching page request.
At power-up each page request defaults to any page, hold
on and error check Mode 0.
18.1.6.2Rolling headers and time
When a new page has been requested it is conventional
for the decoder to turn the header row of the display green
and to display each page header as it arrives until the
correct page has been found.
Whena page request is changed(i.e. when the TXT3 SFR
is written to) a flag (PBLF) is written into bit 5, column 9,
row 25 of the corresponding block of the page memory.
The state of the flag for each block is updated every TV
line, if it is set for the current display block, the acquisition
section writes all valid page headers which arrive into the
display block and automatically writes an alphanumeric
green character into column 7 of row 0 of the displayblock
every TV line.
SAA55xx
When a requested page header is acquired for the first
time, rows 1 to 23 of the relevant memory block are
cleared to space, i.e. have 20H written into every column,
before the rest of the page arrives. Row 24 is also cleared
if the TXT0.X24 POSN bit is set. If the
TXT1.EXT PKT OFF bit is set the extension packets
corresponding to the page are also cleared.
The last 8 characters of the page header are used to
provideatimedisplayandarealwaysextractedfromevery
valid page header as it arrives and written into the display
block.
TheTXT0.DISABLE HEADER ROLL bit preventsanydata
being written into row 0 of the page memory except when
a page is acquired off air i.e. rolling headers and time are
not written into the memory. The TXT1.ACQ OFF bit
prevents any data being written into the memory by the
teletext acquisition section.
When a parallel magazine mode transmission is being
received only headers in the magazine of the page
requested are considered valid for the purposes of rolling
headersand time. Only one magazine is used evenifdon’t
care magazine is requested. When a serial magazine
mode transmission is being received all page headers are
considered to be valid.
18.1.6.3Error checking
Before teletext packets are written into the page memory
they are error checked. The error checking carried out
dependson the packet number, the bytenumber, the error
check mode bits in the page request data and the
TXT1.8-BIT bit.
If an uncorrectable error occurs in one of the Hamming
checked addressing and control bytes in the page header
or in the Hamming checked bytes in packet 8/30, bit 4 of
the byte written into the memory is set, to act as an error
flag to the software. If uncorrectable errors are detected in
any other Hamming checked data the byte is not written
into the memory.
1999 Oct 2744
Page 45
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
(1) If ‘X24 POSN’ bit = 1.
(2) VPS data block 9, unused in blocks 0 to 8.
(3) Byte 10 reserved.
Fig.17 Packet storage locations.
1999 Oct 2746
Page 47
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
18.1.6.4Teletext memory organisation
The teletext memory is divided into 2 banks of 10 blocks.
Normally, when the TXT1.EXT PKT OFF bit is logic 0,
each of blocks 0 to 8 contains a teletext page arranged in
the same way as the basic page memory of the page
device and block 9 contains extension packets. When the
TXT1.EXT PKT OFF bit is logic 1, no extension packets
are captured and block 9 of the memory is used to store
another page. The number of the memory block intowhich
a page is written corresponds to the page request number
which resulted in the capture of the page.
Extension Packet Block (9)
handbook, full pagewidth
Row
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Packet X/24 for page in block 0
Packet X/27/0 for page in block 0
Packet 8/30/0.1
Packet 8/30/2.3
Packet X/24 for page in block 1
Packet X/27/0 for page in block 1
Packet X/24 for page in block 2
Packet X/27/0 for page in block 2
Packet X/24 for page in block 3
Packet X/27/0 for page in block 3
Packet X/24 for page in block 4
Packet X/27/0 for page in block 4
Packet X/24 for page in block 5
Packet X/27/0 for page in block 5
Packet X/24 for page in block 6
Packet X/27/0 for page in block 6
Packet X/24 for page in block 7
Packet X/27/0 for page in block 7
Packet X/24 for page in block 8
Packet X/27/0 for page in block 8
Packet 8/30/4-15
VPS Data
(2)
9230
10
SAA55xx
Packet 0, the page header, is split into two parts when it is
writtenintothetextmemory.Thefirst8 bytesoftheheader
contain control and addressing information. They are
Hamming decoded and written into columns 0 to 7 of
row 25. Row 25 also contains themagazine number of the
acquired page and the PLBF flag but the last 14 bytes are
unused and may be used by the software, if necessary.
(1)
(1)
(1)
(1)
(1)
(1)
(1)
(1)
(1)
GSA002
(1) If ‘X24 POSN’ bit = 0.
(2) Byte 10 reserved.
Fig.18 Extension packet storage locations.
1999 Oct 2747
Page 48
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
SAA55xx
On-Screen Display (OSD)
18.1.6.5Row 25 data contents
The Hamming error flags are set if the on-board 8/4
Hamming checker detects that there has been an
uncorrectable (2-bit) error in the associated byte. It is
possible for the page to still be acquired if some of the
page address information contains uncorrectable errors if
thatpartof the page request was a ‘don’t care’. There is no
error flag for the magazine number as an uncorrectable
error in this information prevents the page being acquired.
The interrupt sequence (C9) bit is automatically dealt with
by the acquisition section so that rolling headers do not
contain a discontinuity in the page number sequence.
Table 13 The data in row 25 of the basic page memory
The magazine serial (C11) bit indicates whether the
transmission is a serial or a parallel magazine
transmission. This affects the way the acquisition section
operates and is dealt with automatically.
The newsflash (C5), subtitle (C6), suppress header (C7),
inhibit display (C10) and language control (C12 to 14) bits
are dealt with automatically by the display section.
The update (C8) bit has no effect on the hardware.
The remaining 32 bytes of the page header are parity
checked and written into columns 8 to 39 of row 0. Bytes
which pass the parity check have the MSB set to a logic 0
and are written into page memory. Bytes with parity errors
are not written into the memory.
1999 Oct 2748
Page 49
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
18.1.6.6Inventory page
Ifthe TXT0.INV ON bit is a logic 1, memoryblock 8 is used
as an inventory page.The inventory page consists of two
tables: the Transmitted Page Table (TPT) and the Subtitle
Page Table (SPT).
In each table, every possible combination of the page tens
and units digit, 00H to FFH, is represented by a byte.
Eachbitofthese bytes corresponds to a magazinenumber
so each page number, from 100H to 8FFH, is represented
by a bit in the table.
Bytes in the table
handbook, full pagewidth
row n
n + 1
column
0
x00
x20
x01
x21
x02
x22
x03
x23
81624 3239
x0f
x04
x24
x05
x25
x06
x26
x07
x27
x08
x28
x09
x29
x0a
x2a
x0b
x2b
x0c
x2c
x0d
x2d
x0e
x2e
x2f
x10
x30
SAA55xx
The bit for a particular page in the TPT is set when a page
header is received for that page. The bit in the SPT is set
whenapageheaderforthepageisreceivedwhichhas the
‘subtitle’ page header control bit (C6) set. The bit for a
particular page in the TPT is set when a page header is
received for that page. The bit in the SPT is set when a
page header for the page is received which has the
‘subtitle’ page header control bit (C6) set.
x1f
x11
x31
x12
x32
x13
x33
x14
x34
x15
x35
x16
x36
x17
x37
x18
x38
x19
x39
x1a
x3a
x1b
x3b
x1c
x3c
x1d
x3d
x1e
x3e
x3f
n + 6
xc0
xc1
n + 7
xe0
xe1
bits in each byte
xc2
xe2
xc3
xe3
xc4
xe4
xc5
xe5
xc6
xe6
xc7
xe7
xc8
xe8
bit
7
7xx
xc9
xe9
xca
xea
xcb
xeb
6xx
xcc
xec
xcd
xed
xce
xee
5xx
xfef
xd0
xf0
xd1
xf1
4xx
xd2
xf2
xd3
xf3
xd4
xf4
3xx
xd5
xf5
xcf
Fig.19 Transmitted/subtitle page organisation.
xd6
xd7
xd8
xf6
xf7
xf8
2xx1xx
xd9
xf9
xda
xfa
xdb
xfb
xdc
xfc
xdd
xfd
8xx
xdf
xde
xff
xfe
0
MGD160
1999 Oct 2749
Page 50
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
Standard TV microcontrollers with
On-Screen Display (OSD)
18.1.6.7Packet 26 processing
One of the uses of packet 26 is to transmit characters
whichare not in the basic teletext character set.Thefamily
automatically decodes packet 26 data and, if a character
corresponding to that being transmitted is available in the
character set, automatically writes the appropriate
character code into the correct location in the teletext
memory. This is not a full implementation of the packet 26
specification allowed for in level 2 teletext, and so is often
referred to as level 1.5.
By convention, the packets 26 for a page are transmitted
before the normal packets. To prevent the default
character data overwriting the packet 26 data the device
incorporates a mechanism which prevents packet 26 data
from being overwritten. The mechanism is disabled when
the Spanish national option is detected as the Spanish
transmission system sends even parity (i.e. incorrect)
characters in the basic page locations corresponding to
the characters sent via packet 26 and these will not
overwrite the packet 26 characters anyway. The special
treatment of Spanish national option is prevented if
TXT12.ROM VER3 is logic 0 or if the TXT8.DISABLE
SPANISH is set.
Packet 26 data is processed regardless of the
TXT1.EXT PKT OFF bit, but setting theTXT1.X26 OFF
disables packet 26 processing.
The TXT8.PKT26 RECEIVED bit is set by the hardware
whenever a character is written into the page memory by
thepacket 26decodinghardware.Theflagcanbe reset by
writing a logic 0 into the SFR bit.
SAA55xx
18.3VPS acquisition
When the TXT0.VPS ON bit is set, any VPS data present
on line 16, field 0 of the CVBS signal at the input of the
teletext decoder is error checked and stored in row 25,
block 9 of the basic page memory. The device
automatically detects whether teletext or VPS is being
transmitted on this line and decodes the data
appropriately.
Each VPS byte in the memory consists of 4 biphase
decoded data bits (bits 0 to 3), a biphase error flag (bit 4)
and three logic 0s (bits 5 to 7).
The TXT13.VPS RECEIVED bit is set by the hardware
whenever VPS data is acquired.
Full details of the VPS system can be found in the
“Specification of the Domestic Video Programme Delivery
Control System (PDC); EBU Tech. 3262-E”.
18.4WSS acquisition
The Wide Screen Signalling data transmitted on line 23
gives information on the aspect ratio and display position
of the transmitted picture, the position of subtitles and on
the camera/film mode. Some additional bits are reserved
for future use. A total of 14 data bits are transmitted.
All of the available data bits transmitted by the Wide
Screen Signalling signal are captured and stored in SFRs
WSS1,WSS2 and WSS3. The bitsare stored as groups of
related bits, and an error flag is provided for each group to
indicate when a transmission error has been detected in
one or more of the bits in the group.
18.1.7WST ACQUISITION
The family is capable of acquiring Level 1.5 625-line and
525-line World System Teletext.
18.2Broadcast service data detection
Whenapacket 8/30isdetected,orapacket 4/30whenthe
device is receiving a 525 line transmission, the
TXT13. PKT 8/30 flag is set. The flag can be reset by
writing a 0 into the SFR bit.
row 25
column
0
teletext page
header data
9
1011
VPS
byte 11
1213 1415 1617 1819 2021 2223
VPS
byte 12
handbook, full pagewidth
Fig.21 VPS data storage.
1999 Oct 2751
Wide screen signalling data is only acquired when the
TXT8.WSS ON bit is set.
The TXT8.WSS RECEIVED bit is set by the hardware
wheneverwidescreen signalling data is acquired. The flag
can be reset by writing a logic 0 into the SFR bit.
VPS
byte 13
VPS
byte 14
VPS
byte 15
VPS
byte 4
VPS
byte 5
MBK964
Page 52
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
19 DISPLAY
The display section is based on the requirements for a
Level 1.5 WST Teletext. There are some enhancements
for use with locally generated OSDs.
The display section reads the contents of the Display
memory and interprets the control/character codes. From
this information and other global settings, the display
produces the required RGB signals and Video/Data (Fast
Blanking) signal for a TV signal processing device.
The display is synchronised to the TV signal processing
device by way of horizontal and vertical sync signals
provided by external circuits (Slave Sync mode). From
these signals all display timings are derived.
19.1Display features
• Teletext and Enhanced On-Screen Display (OSD)
modes
SAA55xx
• Level 1.5 WST features
• Single/Double/Quadruple Width and Height for
characters
• Variable flash rate controlled by software
• Fixed character matrix (H × V) 12 × 10
• Soft colours using Colour Look Up Table (CLUT) with
4096 colour palette
• Fringing (Shadow) selectable from N-S-E-W direction
• Fringe colour selectable
• Meshing of defined area
• Contrast reduction of defined area
• Cursor
• 1 WST Character set (G0/G2) in single device (e.g.
Latin or Cyrillic or Greek or Arabic)
• G1 Mosaic graphics, Limited G3 Line drawing
characters.
handbook, full pagewidth
address
data
control
to memory interface
from memory interface
MICROPROCESSOR
INTERFACE
address
data
CHARACTER
ROM
AND
DRCs
address
data
data
address
CLKVSYNC
HSYNC
DISPLAY
TIMING
FUNCTION
REGISTERS
address
DISPLAY DATA
ADDRESSING
data
DATA
BUFFER
CHARACTER
FONT
ADDRESSING
MBK965
PARALLEL/SERIAL
CONVERTER
AND FRINGING
ATTRIBUTE
HANDLING
CLUT RAM
DACDACDAC
GBFBR
Fig.22 Display block diagram.
1999 Oct 2752
Page 53
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
19.2Display mode
Thedisplayisconfigured as WST with additional serial and
global attributes. The display is configured as a fixed
25 rows with 40 characters per row.
19.3Display feature descriptions
19.3.1FLASH
Flashing causes the foreground colour pixel to be
displayed as the background pixels.The flash frequency is
controlled by software setting and resetting the MMR
Status (see Table 24) at the appropriate interval.
This attribute is set by the control character ‘flash’ (08H)
(see Fig.26) and remains valid until the end of the row or
until reset by the control character ‘steady’ (09H).
19.3.2BOXES
Two types of boxes exist, the Teletext box and the
OSD box. The Teletext box is activated by the ‘start box’
control character (0BH), two start box characters are
required to begin a Teletext box, with the box starting
between the two characters. The box ends at the end of
the line or after a ‘end box’ control character.
SAA55xx
Any two consecutive combination of ‘double width’ or
‘double size’ (0EH/BEH/0FH/BFH) activates quadruple
width characters, provided quadruple width characters are
enabled by TXT4.QUAD WIDTH ENABLE.
Threeverticalsizesareavailablenormal (×1), double (×2),
quadruple (×4). The control characters ‘normal size’
(0CH/BCH) enable normal size, the ‘double height’ or
‘double size’ (0DH/BDH/0FH/BFH) enable double height
characters. Quadruple height characters are achieved by
using double height characters and setting the global
attributes TXT7.DOUBLE HEIGHT (expand) and
TXT7.BOTTOM/TOP.
If double height characters are used in Teletext mode,
single height characters in the lower row of the double
height character are automatically disabled.
19.3.4COLOURS
19.3.4.1Colour Look Up Table (CLUT)
ACLUT with 16 colour entries is provided. The colours are
programmable out of a palette of 4096 (4 bits per
R, G and B).TheCLUTisdefinedbywriting data to a RAM
that resides in the MOVX address space of the 80C51.
OSD boxes are started using size implying OSD control
characters (BCH, BDH, BEH and BFH). The box starts
after the control character (‘set after’) and ends either at
the end of the row or at the next size implying OSD
character (‘set at’). The attributes flash, Teletext box,
conceal, separate graphics, twist and hold graphics are all
reset at the start of an OSD box, as they are at the start of
the row. OSD boxes are only valid in TV mode which is
defined by TXT5 = 03H and TXT6 = 03H.
19.3.3SIZE
The size of the characters can be modified in both the
horizontal and vertical directions.
Three horizontal sizes are available normal (×1),
double (×2), quadruple (×4). The control characters
‘normal size’ (0CH/BCH) enables normal size, the ‘double
width’ or ‘double size’ (0EH/BEH/0FH/BFH) enables
double width characters.
Table 14 CLUT colour values
RED<3:0>
(B11 TO B8)
0000000000000
0000000011111
............
11111111000014
11111111111115
19.3.5F
The foreground colour is selected via a control character
(see Fig.26). The colour control characters take effect at
the start of the next character (set-after) and remain valid
until the end of the row, or until modified by a control
character. Only 8 foreground colours are available.
The TEXT foreground control charactersmap to the CLUT
entries as shown in Table 15.
GRN<3:0>
(B7 TO B4)
OREGROUND COLOUR
BLUE<3:0>
(B3 TO B0)
COLOUR
ENTRY
1999 Oct 2753
Page 54
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
19.3.6BACKGROUND COLOUR
The control character new background (1DH) is used to
change the background colour to the current foreground
colour. The selection is immediate (set at) and remains
valid until the end of the row or until otherwise modified.
DEFINED
COLOUR
CLUT ENTRY
SAA55xx
19.3.7FRINGING
Thedisplayof fringing is controlled by the TXT4.SHADOW
bit.
When set all the alphanumeric characters being displayed
are shadowed, graphics characters are not shadowed.
19.3.8MESHING
The attribute effects the background colour being
displayed. Alternate pixels are displayed as the
background colour or video. The structure is offset by
1 pixel from scan line to scan line, thus achieving a
checkerboarddisplay of the background colour and video.
TXT: There are two meshing attributes one that only
affectsblackbackgroundcoloursTXT4.B MESH ENABLE
and a second that only affects backgrounds other than
black TXT4.C MESH ENABLE. A black background is
defined as CLUT entry 8, a non-black background is
defined as CLUT entry 9 to 15.
The TEXT background control characters map to the
CLUT entries as shown in Table 16.
19.3.9CURSOR
The cursor operates by reversing the background and
foreground colours in the character position pointed to by
the active cursor position. The cursor is enabled using
TXT7.CURSOR ON. When active, the row the cursor
appears on is defined by TXT9.R<4:0> and the column is
defined by TXT10.C<5:0>. The position of the cursor can
be fixed using TXT9.CURSOR FREEZE.
The valid range for row positioning is 0 to 24. The valid
range for column is 0 to 39.
1999 Oct 2754
Page 55
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
handbook, full pagewidth
Fig.23 South and south-west fringing.
handbook, full pagewidth
SAA55xx
MBK972
Fig.24 Meshing and meshing/fringing (south + west).
handbook, full pagewidth
ABC DEF
Fig.25 Cursor display.
1999 Oct 2755
MBK973
MBK971
Page 56
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
19.4Character and attribute coding
The character coding is in a serial format, with only one
attribute being changed at any single location. The serial
attributes take effect either at the position of the attribute
(setat), or at the followinglocation (set after). The attribute
remains effective until either modified by new serial
attributes or until the end of the row.
The attributes have individual codes which are defined in
the basic character table (see Fig.26).
1999 Oct 2756
Page 57
This text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here in
_white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here inThis text is here in
white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader. white to force landscape pages to be ...
1999 Oct 2757
B
b
7
I
b
T
S
b3b2b1b
0 0 0 0
0 0 1 0
0 1 0 1
1 0 0 0
0
0
6
b
5
b
0
0
0
4
r
o
w
0
column
0122a33a4566a77a88a9a9C
alpha
black
alpha
red
alpha
green
alpha
yellow
alpha
blue
alpha
magenta
alpha
cyan
alpha
white
flash
graphics
graphics
graphics
green
graphics
yellow
graphics
graphics
magenta
graphics
graphics
conceal
display
0
10 0 0 1
2
30 0 1 1
40 1 0 0
5
60 1 1 0
70 1 1 1
8
0
black
red
blue
cyan
white
0
0
0
1
nat
opt
nat
opt
0
1
0
0
0
1
1
0
1
0
nat
opt
0
0
1
1
0
1
nat
opt
0
1
1
0
1
0
1
1
OSD
1
0
0
OSD
OSD
OSD
OSD
OSD
OSD
OSD
OSD
OSD
OSD
OSD
OSD
OSD
OSD
OSD
OSD
OSD
OSD
1
0
0
0
OSD
OSDOSD
OSDOSD
OSDOSD
OSDOSD
OSDOSD
OSDOSD
OSDOSD
OSDOSD
1
0
1
A
1
0
1
B
back-
ground
black
back
ground
red
back-
ground
green
back-
ground
yellow
back-
ground
blue
back-
ground
magenta
back-
ground
cyan
back-
ground
white
1
1
0
0
1
E/W = 0E/W = 1
1
1
1
1
1
0
1
1
1
1
1
0
DEF
1
1
1
1
1
0
1
1
1
1
0
DEF
1
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
normal
height
double
height
double
width
double
size
contiguous
graphics
separated
graphics
black
back -
ground
new
back -
ground
hold
graphics
release
graphics
91 0 0 1steady
A1 0 1 0end box
B1 0 1 1start boxtwist
C1 1 0 0
D1 1 0 1
E1 1 1 0
F1 1 1 1
nat
character dependent on the language of page, refer to National Option characters
opt
customer definable On-Screen Display character
OSD
OSD
OSD
OSD
OSD
OSD
OSD
OSD
OSDOSD
OSDOSD
OSDOSD
OSDOSD
OSDOSD
OSDOSD
OSDOSD
OSD
OSD
nat
opt
nat
opt
nat
opt
nat
opt
nat
opt
Fig.26 TXT basic character set (Pan-European).
nat
opt
nat
opt
nat
opt
nat
opt
OSD
OSD
OSD
OSD
OSD
handbook, full pagewidth
normal
size
OSD
double
height
OSD
double
width
OSD
double
size
OSD
MBK974
SAA55xx
Page 58
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
19.5Screen and global controls
A number of attributes are available that affect the whole
display region, and cannot be applied selectively to
regions of the display.
19.5.1DISPLAY MODES
The display mode is controlled by the bits in the TXT5 and
TXT6. There are three control functions: Text on,
Background on and Picture on. Separate sets of bits are
used inside and outside teletext boxes so that different
display modes can be invoked. TXT6 is used if the
newsflash (C5) or subtitle (C6) bits in row 25 of the basic
pagememory are set, otherwise TXT5 is used. This allows
the software to set up the type of display required on
newsflash and subtitle pages (e.g. text inside boxes,
TV picture outside) this will be invoked without any further
software intervention when such a page is acquired.
When teletext box control characters are present in the
display page memory, the appropriate box control bit must
be set, TXT7.BOX ON 0, TXT7.BOX ON 1 − 23 or
TXT7.BOX ON 24. This allows the display mode to be
different inside the Teletext box compared to outside.
These bits are present to allow boxes in certain areas of
the screen to be disabled.
SAA55xx
The use of teletext boxes for OSD messages has been
superseded in this device by the OSD box concept, but
these bits remain to allow teletext boxes to be used, if
required.
19.6Screen colour
Screen colour is displayed from 10.5 to 62.5 ms after the
active edge of the HSYNCinput and on TV lines 23 to 310
inclusive, for a 625-line display, and lines 17 to 260
inclusive for a 525-line display.
The register bits TXT17.SCREEN COL<2:0> can be used
to define a colour to be displayed in place of TV picture
and the black background colour. If the bits are all set to
zero, the screen colour is defined as ‘transparent’ and
TV picture and background colour are displayed as
normal. Otherwise the bits define CLUT entries 9 to 15.
19.7Text display control
The display is organised as a fixed size of 25 rows
(0 to 24) of 40 columns (0 to 39), This is the standard size
for teletext transmissions. The control data in row 25 isnot
displayed but is used to configure the display page
correctly.
Table 17 TXT display control bits
PICTURE ONTEXT ONBACKGROUND ONEFFECT
00XText mode, black screen
010Text mode, background always black
011Text mode
10XVideo mode
110Mixed text and TV mode
111Text mode, TV picture outside text area
1999 Oct 2758
Page 59
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
handbook, full pagewidth
Row 0
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
1
2
3
4
5
6
7
8
9
0
control data
9023
10
SAA55xx
39
non-displayable data
byte 10 reserved
MBK968
Fig.27 TXT text area.
1999 Oct 2759
Page 60
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
19.8Display positioning
The display consists of the screen colour covering the
whole screen and the text area that is placed within the
visible screen area.
handbook, full pagewidth
horizontal
sync
delay
horizontal sync
screen colour
offset = 8 µs
SCREEN COLOUR AREA
SAA55xx
The screen colour extends over a large vertical and
horizontal range so that no offset is needed. The text area
is offset in both directions relative to the vertical and
horizontal sync pulses.
6 lines
offset
TEXT AREA
text
vertical
offset
vertical
sync
0.25 character
offset
text area start
text area end
Fig.28 Display area positioning.
56 µs
MGL150
1999 Oct 2760
Page 61
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
19.8.1SCREEN COLOUR DISPLAY AREA
This area is covered by the screen colour. The screen
colour display area starts with a fixed offset of 8 µs from
the leading edge of the horizontal sync pulse in the
horizontal direction. A vertical offset is not necessary.
Table 18 Screen colour display area
VECTORDESCRIPTION
HorizontalStart at 8 µs after leading edge of
horizontal sync for 56 µs.
VerticalLine 9, field 1 (321, field 2) to leading
edge of vertical sync (line numbering
using 625 standard).
19.8.2TEXT DISPLAY AREA
The text area can be defined to start with an offset in both
the horizontal and vertical direction.
Table 19 Text display area
VECTORDESCRIPTION
HorizontalUp to 40 full sized characters per row.
Start position setting from 8 to 64
characters from the leading edge of
horizontal sync. Fine adjustment in
quarter characters.
Vertical256 lines (nominal 41 to 297). Start
position setting from leading edge of
vertical sync, legal values are 4 to 64
lines. (line numbering using
625 standard).
SAA55xx
Note that the Text Position Vertical Register should not be
set to 00H as the Display Busy interrupt is not generated
in these circumstances.
19.9Character set
A set can consist of alphanumeric characters as required
by WST Teletext or customer definable OSD characters.
Two character sets can be displayed at once. These are
the basic G0 set or the alternate G2 set (Twist Set).
The basic set is selected using TXT18.BS<1:0>.
The alternate/twist character set is defined by
TXT19.TS<1:0>. Since the alternate character set is an
option it can be enabled or disabled using TXT19.TEN,
and the language code that is defined for the alternate set
is defined by TXT19.TC<2:0>.
19.10 Display synchronization
The horizontal and vertical synchronizing signals from the
TV deflection are used as inputs. Both signals can be
inverted before being delivered to the Phase Selector
section.
SFRs bits TXT1.HPOLARITY and TXT1.VPOLARITY
control the polarity.
Alinelocked12 MHz clock is derived from the 12 MHz free
running oscillator by the Phase Selector. This line locked
clock is used to clock the whole of the Display block.
The horizontal and vertical sync signals are synchronized
with the 12 MHz clock before being used in the Display
section.
19.11 Video/data switch (fast blanking) polarity
The horizontal offset is set in the MMR Text Area Start.
The offset is done in full width characters using TAS<5:0>
and quarter characters using HOP<1:0> for fine setting.
The values 00H to 08H for TAS<5:0> will result in a
corrupted display.
The width of the text area is defined in the MMR Text Area
End by setting the end character value TAE<5:0>. This
number determines where the background colour of the
textareawillendifsettoextendtotheendoftherow.It will
alsoterminatethecharacterfetch process thus eliminating
the necessity of a row end attribute. This entails however
writing to all positions.
The vertical offset is set in the MMR Text Position Vertical
Register. The offset value VOL<5:0> is done in number of
TV scan lines.
1999 Oct 2761
The polarity of the Video/data (fast blanking) signal can be
inverted. The polarity is set with the VDSPOL bit in the
MMR RGB Brightness.
Standard TV microcontrollers with
On-Screen Display (OSD)
19.12 Video/data switch adjustment
To take into account the delay between the RGB values
and the VDS signal due to external buffering, the VDS
signal can be moved in relation to the RGB signals.
The VDSsignalcanbesettobeeitheraclockcycle before
or after the RGB signal, or coincident with the RGB signal.
This is done using VDEL<2:0> in the MMR Configuration.
19.13 RGB brightness control
A brightness control is provided to allow the RGB upper
output voltage level to be modified. The nominal value is
1 V into a 15 Ω resistor, but can be varied between
0.7 and 1.2 V.
The brightness is set in the RGB Brightness Register.
Table 21 RGB brightness
BRI3 TO BRI0RGB BRIGHTNESS
0000lowest value
......
1111highest value
SAA55xx
20 MEMORY MAPPED REGISTERS (MMR)
The memory mapped registers are used to control the
display. The registers are mapped into the microcontroller
MOVX address space, starting at address 87F0H and
extending to 87FFH.
Table 22 MMR address summary
REGISTER
NO.
187F1HText Position Vertical
287F2HText Area Start
387F3HFringing Control
487F4HText Area End
787F7HRGB Brightness
The
COR output of the device is activated (i.e. pulled LOW).
This output is intended to act on the TVs display circuits to
reduce contrast of the video when it is active. The result of
contrast reduction is to improve the readability of the text
in a mixed teletext and video display.
The bits in the TXT5 and TXT6 SFRs allow the display to
be set up so that, for example, the areas inside teletext
boxes will be contrast reduced when a subtitle is being
displayed but that the rest of the screen will be displayed
as normal video.
VOL5 to VOL0display start vertical offset from VSYNC (lines)
Text Area Start
HOP1 to HOP0fine horizontal offset in quarter of characters
TAS5 to TAS0text area start
Fringing Control
FRC3 to FRC0fringing colour, value address of CLUT
FRDNfringe in north direction (logic 1)
FRDEfringe in east direction (logic 1)
FRDSfringe in south direction (logic 1)
FRDWfringe in west direction (logic 1)
Text Area End
TAE5 to TAE0text area end, in full characters
RGB Brightness
VDSPOLVDS polarity
0 = RGB (1), Video (0)
1 = RGB (0), Video (1)
BRI3 to BRI0RGB brightness control
1999 Oct 2763
Page 64
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
REGISTERFUNCTION
Status read
BUSYaccess to display memory could cause display problems (logic 1)
FIELDeven field (logic 1)
FLRactive flash region background only displayed (logic 1)
Status write
FLRactive flash region background colour only displayed (logic 1)
HSYNC Delay
HSD6 to HSD0HSYNC delay, in full size characters
VSYNC Delay
VSD6 to VSD0VSYNC delay in number of 8-bit 12 MHz clock cycles
Configuration
VDEL2 to VDEL0pixel delay between VDS and RGB output
000 = VDS switched to video, not active
001 = VDS active one pixel earlier then RGB
010 = VDS synchronous to RGB
100 = VDS active one pixel after RGB
TXT/VBUSY signal switch; horizontal (logic 1)
SAA55xx
1999 Oct 2764
Page 65
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
SAA55xx
On-Screen Display (OSD)
21 LIMITING VALUES
In accordance with Absolute Maximum Rating System (IEC 134).
SYMBOLPARAMETERCONDITIONSMIN.MAX.UNIT
V
DDX
V
I
V
O
I
O
I
IOK
T
amb
T
stg
Note
1. This maximum value refers to 5 V tolerant I/Os and may be 6 V maximum but only when VDD is present.
22 CHARACTERISTICS
VDD= 3.3 V ± 10%; VSS=0V; T
SYMBOLPARAMETERCONDITIONSMIN.TYP.MAX.UNIT
supply voltage (all supplies)−0.5+4.0V
input voltage (any input)note 1−0.5VDD+ 0.5 or 4.1V
output voltage (any output)note 1−0.5VDD+ 0.5V
output current (each output)−±10mA
DC input or output diode current−±20mA
operating ambient temperature−20+70°C
storage temperature−55+125°C
= −20 to +70 °C; unless otherwise specified.
amb
Supplies
V
DDX
I
DDP
I
DDC
I
DDC(id)
I
DDC(pd)
I
DDC(stb)
I
DDA
I
DDA(id)
I
DDA(pd)
I
DDA(stb)
Digital inputs
RESET
V
IL
V
IH
V
hys
I
LI
R
pd
any supply voltage (VDD to VSS)3.03.33.6V
periphery supply currentnote 11−−mA
core supply current−1518mA
Idle mode core supply current−4.66mA
Power-down mode core supply
−0.761mA
current
Standby mode core supply
−5.116.50mA
current
analog supply current−4548mA
Idle mode analog supply current−0.871mA
Power-down mode analog
−0.450.7mA
supply current
Standby mode analog supply
−0.951.20mA
current
LOW-level input voltage−−1.34V
HIGH-level input voltage1.49−5.5V
hysteresis voltage of Schmitt
output current (black Level)V
output current (maximum
Intensity)
= 3.3 V−10−+10µA
DDA
V
DDA
= 3.3 V
6.06.677.3mA
Intensity level
code = 15 dec
output current (70% of full
Intensity)
V
= 3.3 V
DDA
Intensity level
4.24.75.1mA
code = 0 dec
load resistor to V
SSA
resistor
−150−Ω
tolerance 5%
load capacitance−−15pF
storage capacitor to ground−100−nF
sync filter level voltage for
0.350.550.75V
nominal sync amplitude
LOW-level input voltageV
SSA
HIGH-level input voltage−−V
−−V
DDA
V
input capacitance−−10pF
1999 Oct 2768
Page 69
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
SAA55xx
On-Screen Display (OSD)
SYMBOLPARAMETERCONDITIONSMIN.TYP.MAX.UNIT
XTALOUT
C
O
Crystal specification; notes 2 and 3
f
xtal
C
L
C
1
R
r
C
osc
C
0
T
xtal
X
j
X
d
Notes
1. Peripheral current is dependent on external components and voltage levels on I/Os.
2. Crystal order number 4322 143 05561.
3. If the 4322 143 05561 crystal is not used, then the formulae in the crystal specification should be used. Where
CIO= 7 pF, the mean of the capacitances due to the chip at XTALIN and at XTALOUT. C
of the stray capacitances due to the external circuit at XTALIN and XTALOUT. The maximum value for the crystal
holder capacitance is to ensure start-up, C
4. C
5. C
=2CL−CIO− C
osc(typ)
=35−1⁄2(C
0(max)
output capacitance−−10pF
nominal frequencyfundamental
−12−MHz
mode
crystal load capacitance−-30 pF
crystal motional capacitanceT
resonance resistanceT
capacitors at XTALIN, XTALOUT T
crystal holder capacitanceT
=25°C−−20fF
amb
=25°C−−60Ω
amb
=25°C−note 4−pF
amb
=25°C−−note 5pF
amb
temperature range−20+25+85°C
adjustment toleranceT
=25°C−−±50 × 10
amb
drift−−±100 × 10
is a value for the mean
ext
may need to be reduced from the initially selected value.
osc
ext
osc+CIO+Cext
)
−6
−6
1999 Oct 2769
Page 70
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
22.1I2C-bus characteristics
2
Table 25 I
SYMBOLPARAMETER
f
SCL
t
BUF
t
HD;STA
t
LOW
t
HIGH
t
SU;STA
t
HD;DAT
t
SU;DAT
t
r
t
f
t
SU;STO
C
b
C-bus characteristics
SCL clock frequency0400kHz
bus free time between a STOP and START condition1.3−µs
hold time (repeated) START condition. After this period, the
first clock pulse is generated.
LOW period of the SCL clock1.3−µs
HIGH period of the SCL clock0.6−µs
set-up time for a repeated START condition0.6−µs
data hold time; notes 1 and 200.9µs
data set-up time, note 3100−ns
rise time of both SDA and SCL signals20300ns
fall time of both SDA and SCL signals20300ns
set-up time for STOP condition0.6−µs
capacitive load for each bus line−400pF
SAA55xx
FAST-MODE I
MIN.MAX.
0.6−µs
2
C-bus
UNIT
Notes
1. A device must internally provide a hold time of at least 300 ns for the SDA signal (referred to the V
IL(min)
of the SCL
signal) in order to bridge the undefined region of the falling edge of SCL.
2. The maximum f
3. A fast-mode I2C-bus device can be used in a standard mode I2C-bus system but the requirement t
has only to be met if the device does not stretch the LOW period t
HD;DAT
of the SCL signal.
LOW
SU;DAT
must then be met. This will automatically be the case if the device does not stretch the LOW period of the SCL signal.
If such a device does stretch the LOW period of the SCL signal, it must output the next data bit to the SDA line
t
r(max)+tSU;DAT
= 1000 + 250 +1250 ns (according to the standard mode I2C-bus specification) before the SCL line
is released.
≥250 ns
1999 Oct 2770
Page 71
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
23 QUALITY AND RELIABILITY
This device will meet Philips Semiconductors General Quality Specification for Business group
Standard TV microcontrollers with
On-Screen Display (OSD)
25 ELECTROMAGNETIC COMPATIBILITY (EMC)
GUIDELINES
Optimization of circuit return paths and minimisation of
commonmode emission will be assisted by using a double
sided Printed-Circuit Board (PCB) with low inductance
ground plane.
Onasinglesided printed-circuit board a local groundplane
under the whole Integrated Circuit (IC) should be present
as shown in Fig.30. This should be connected by the
widest possible connection back to the printed-circuit
board ground connection, and bulk electrolytic decoupling
capacitor. It should preferably not connect to other
grounds on the way, and nowire links should be presentin
this connect. The use of wire links increases ground
bounce by introducing inductance into the ground.
The supply pins can be decoupled at the pin to the ground
plane under the IC. This is easily accomplished using
surface mount capacitors, which are more effective than
leaded components at high frequency.
SAA55xx
Using a device socket will unfortunately add to the area
and inductance of the external bypass loop.
A ferrite bead or inductor with resistive characteristics at
high frequencies may be utilised in the supply line close to
the decoupling capacitor to provide a high impedance.
To prevent pollution by conduction onto the signal lines
(which may then radiate) signals connected to the V
supply via a pull-up resistor should not be connected to
the IC side of this ferrite component.
OSCGND should be connected only to the crystal load
capacitors and not to the local or circuit ground.
Physical connection distances to associated active
devices should be short.
Output traces should be routed with close proximity to
mutually coupled ground return paths.
DD
handbook, full pagewidth
under-IC GND plane
GND connection
note: no wire links
other
GND
connections
+3.3 V
GND
electrolytic decoupling capacitor (2 µF)
SSP
DDP
V
DDC
V
V
V
SSC
V
V
SSA
ferrite beads
DDA
Fig.30 Power supply connections for EMC.
SM decoupling capacitors (10 to 100 nF)
under-IC GND plane
IC
MBK979
1999 Oct 2773
Page 74
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
1. Plastic or metal protrusions of 0.25 mm maximum per side are not included.
OUTLINE
VERSION
SOT247-1
IEC JEDEC EIAJ
REFERENCES
1999 Oct 2774
EUROPEAN
PROJECTION
ISSUE DATE
90-01-22
95-03-11
Page 75
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
LQFP100: plastic low profile quad flat package; 100 leads; body 14 x 14 x 1.4 mm
c
y
X
75
76
51
50
Z
E
A
SAA55xx
SOT407-1
100
1
DIMENSIONS (mm are the original dimensions)
mm
A
max.
1.6
UNIT
pin 1 index
e
A1A2A3bpcE
0.20
1.5
0.05
1.3
b
0.25
w M
p
D
H
D
0.28
0.18
0.16
0.12
e
H
E
E
w M
b
p
26
25
Z
D
0510 mm
(1)
(1)(1)(1)
D
14.1
14.1
13.9
13.9
v M
A
B
v M
B
scale
eH
H
E
D
16.25
16.25
0.5
15.75
15.75
A
2
A
LL
p
0.75
0.45
A
1
detail X
0.120.10.21.0
Z
D
1.15
0.85
L
(A )
3
L
p
Zywvθ
E
1.15
0.85
o
7
o
0
θ
Note
1. Plastic or metal protrusions of 0.25 mm maximum per side are not included.
OUTLINE
VERSION
SOT407-1
IEC JEDEC EIAJ
REFERENCES
1999 Oct 2775
EUROPEAN
PROJECTION
ISSUE DATE
95-12-19
97-08-04
Page 76
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
27 SOLDERING
27.1Introduction to soldering through-hole mount
packages
This text gives a brief insight to wave, dip and manual
soldering.Amorein-depthaccountofsoldering ICs can be
found in our
Packages”
Wave soldering is the preferred method for mounting of
through-hole mount IC packages on a printed-circuit
board.
27.2Soldering by dipping or by solder wave
The maximum permissible temperature of the solder is
260 °C; solder at this temperature must not be in contact
with the joints for more than 5 seconds.
27.4Suitability of through-hole mount IC packages for dipping and wave soldering methods
DBS, DIP, HDIP, SDIP, SILsuitablesuitable
“Data Handbook IC26; Integrated Circuit
(document order number 9398 652 90011).
PACKAGE
Thetotalcontacttimeofsuccessivesolderwavesmust not
exceed 5 seconds.
The device may be mounted up to the seating plane, but
the temperature of the plastic body must not exceed the
specified maximum storage temperature (T
printed-circuit board has been pre-heated, forced cooling
may be necessary immediately after soldering to keep the
temperature within the permissible limit.
27.3Manual soldering
Apply the soldering iron (24 V or less) to the lead(s) of the
package, either below the seating plane or not more than
2 mm above it. If the temperature of the soldering iron bit
is less than 300 °C it may remain in contact for up to
10 seconds. If the bit temperature is between
300 and 400 °C, contact may be up to 5 seconds.
SOLDERING METHOD
DIPPINGWAVE
(1)
SAA55xx
). If the
stg(max)
Note
1. For SDIP packages, the longitudinal axis must be parallel to the transport direction of the printed-circuit board.
1999 Oct 2776
Page 77
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
SAA55xx
On-Screen Display (OSD)
28 DEFINITIONS
Data sheet status
Objective specificationThis data sheet contains target or goal specifications for product development.
Preliminary specificationThis data sheet contains preliminary data; supplementary data may be published later.
Product specificationThis data sheet contains final product specifications.
Limiting values
Limiting values given are in accordance with the Absolute Maximum Rating System (IEC 134). Stress above one or
more of the limiting values may cause permanent damage to the device. These are stress ratings only and operation
of the device at these or at any other conditions above those given in the Characteristics sections of the specification
is not implied. Exposure to limiting values for extended periods may affect device reliability.
Application information
Where application information is given, it is advisory and does not form part of the specification.
29 LIFE SUPPORT APPLICATIONS
These products are not designed for use in life support appliances, devices, or systems where malfunction of these
products can reasonably be expected to result in personal injury. Philips customers using or selling these products for
use in such applications do so at their own risk and agree to fully indemnify Philips for any damages resulting from such
improper use or sale.
30 PURCHASE OF PHILIPS I
Purchase of Philips I
components in the I2C system provided the system conforms to the I2C specification defined by
Philips. This specification can be ordered using the code 9398 393 40011.
2
C COMPONENTS
2
C components conveys a license under the Philips’ I2C patent to use the
1999 Oct 2777
Page 78
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
SAA55xx
NOTES
1999 Oct 2778
Page 79
Philips SemiconductorsPreliminary specification
Standard TV microcontrollers with
On-Screen Display (OSD)
SAA55xx
NOTES
1999 Oct 2779
Page 80
Philips Semiconductors – a w orldwide compan y
Argentina: see South America
Australia: 3 Figtree Drive, HOMEBUSH, NSW 2140,
United States: 811 East Arques Avenue, SUNNYVALE, CA 94088-3409,
Tel. +1 800 234 7381, Fax. +1 800 943 0087
Uruguay: see South America
Vietnam: see Singapore
Yugoslavia: PHILIPS, Trg N. Pasica 5/v, 11000 BEOGRAD,
Tel. +381 11 62 5344, Fax.+381 11 63 5777
For all other countries apply to: Philips Semiconductors,
International Marketing & Sales Communications, Building BE-p, P.O. Box 218,
5600 MD EINDHOVEN, The Netherlands, Fax. +31 40 27 24825
The information presented in this document does not form part of any quotation or contract, is believed to be accurate and reliable and may be changed
without notice. No liability will be accepted by the publisher for any consequence of its use. Publication thereof does not convey nor imply any license
under patent- or other industrial or intellectual property rights.
1999
Internet: http://www.semiconductors.philips.com
68
Printed in The Netherlands545004/01/pp80 Date of release: 1999 Oct 27Document order number: 9397 750 05048
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.