English
Language : 

MC68HC05BD3 Datasheet, PDF (70/112 Pages) Motorola, Inc – HCMOS microcontroller
sync input. The data can be read to determine if the line frequency is valid and to determine the
video mode. However, the data is not valid if HDET or VDET bit is cleared or HOVER bit is set.
User has to determine whether the incoming signal is separate sync or composite sync. If
composite sync signal is input, the actual number of horizontal lines is the value in LFR plus one;
because the internal line counter that counts the horizontal sync pulses is rising-edge triggering.
If the incoming signal is a composite signal, one horizontal line counting is missed.
8.3.4 Sync Signal Control Register (SSCR)
Address bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
$0011 VSIE
0000 0000
This is a read/write register. Interrupt will be generated at the leading edge of VSYNC if the VSIE
bit is set, I bit in CCR is cleared. The VSYNC interrupt vectors are at $3FF8 and $3FF9, and the
interrupt latch is cleared after the interrupt vectors have been fetched.
VSIE - Vsync Interrupt Enable
This bit enables and disables the Vsync interrupt.
8
1 (set) – Vsync interrupt enabled.
0 (clear) – Vsync interrupt disabled.
8.3.5 Horizontal Sync Period Width Register (HPWR)
Address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
$001E HPWR7 HPWR6 HPWR5 HPWR4 HPWR3 HPWR2 HPWR1 HPWR0
State
on reset
0000 0000
This 8-bit read only register contains the period of incoming horizontal sync signal. It is sampled
by tCYC so the horizontal period is equal to HPWR x 0.5µs if tCYC is at 2MHz. As the incoming
horizontal sync signal is asynchronous to the system clock, the SSP is designed so that the
maximum counting error of HPWR is –2. User should use the LFR to calculate the HSYNC
frequency if very accurate frequency detection is needed. If HPWR overflows, the HDET in
SSCSR will be cleared. Therefore the minimum valid HSYNC is 256tCYC, i.e. 7.8125KHz if tCYC
equals to 2MHz.
Note:
It is not guaranteed that the HPWR counting is correct for the first HSYNC period after
the trailing edge of VSYNC.
MOTOROLA
8-10
SYNC SIGNAL PROCESSOR
TPG
MC68HC05BD3