PCVisionplus
Hardware Reference
Registers
3–29
Rev 02; February 8, 2002
3.4.2 PTG Vertical 1 (PTGV1) R/W
0
7
BADR2 + 0x08
VTOTAL7
VTOTAL6
VTOTAL5
VTOTAL4
VTOTAL3
VTOTAL2
VTOTAL1
VTOTAL0
8
15
VSEND3
VSEND2
VSEND1
VSEND0
VTOTAL11
VTOTAL10
VTOTAL9
VTOTAL8
PCP_PTGV1_32
16
23
Reserved
Reserved
Reserved
Reserved
VERROR
EDONP
VSYNCPOL
VSEND4
24
31
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
The PTGV1 register defines the vertical timing for the Programmable Timing Generator (PTG).
Bit
Mnemonic
Function
0–11
VTOTAL
Vertical Sync Total
12–16
VSEND
Vertical Sync Low Time
17
VSYNCPOL
Vertical Sync Polarity
18
EDONP
E-Donpisha Mode Enable
19
VERROR
Vertical Error Status
20–31
Reserved
“Don’t care”
3.4.2.1 Vertical Sync Total (VTOTAL) R/W
VTOTAL defines the Programmable Timing Generator (PTG) vertical sync time or total frame time. The 12-bit val-
ue is the total number of half lines in the Vsync duty cycle, including sync low and sync high time. When bit 0 (VTO-
TAL0) is high (even number of 1/2 lines), the PTG timing is non-interlaced. When bit 0 is low (odd number 1/2
lines), the PTG timing is interlaced.
The total number of lines per field for RS170 is 525/2 = 262.5. The total number of lines per field for CCIR is 625/2 =
312.5.
Use the following formula to calculate VTOTAL for interlaced formats:
VTOTAL = (Total number of lines per Field – 0.5) x 2
VTOTAL must be an even number for interlaced frames.
Use the following formula to calculate VTOTAL for Non-interlaced formats:
VTOTAL = (Total number of lines per Frame – 0.5) x 2
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com