STK6005
clear the interrupt flags and reset INTN output to high.
5.17 GPIO Ports
STK6005 provides four general purpose inputs / outputs. These provide additional
signals to control the various devices in the system. Each GPIO port can be
independently programmed to input or output a direction (SelGPO) or a pulse width
modulation output (SelPWM).
6. REGISTER DEFINITION
6.1 ADC Control
Address
0x10
0x11
0x12
0x13
0x14
0x15
0x16
0x17
0x18
0x19
0x1A
0x1B
0x1C
Bit
[7:0]
[3:0]
[7:0]
[3:0]
[7:0]
[2:0]
[7:0]
[2:0]
[7:5]
[4:0]
[7:4]
[3:0]
[5]
[4]
[3]
[2]
[1]
[0]
[6]
[5]
[4]
[3]
[2]
[1]
[0]
[5]
[4]
[3]
[2]
[1]
[0]
Name
HBP[7:0]
HBP[11:8]
HDISP[7:0]
HDISP[11:8]
VBP[7:0]
VBP[10:8]
VDISP[7:0]
VDISP[10:8]
ClampSTA
ClampPW
MaskBW
MaskFW
EnClamp
SetClamp
MaskSync
MaskExp
EnMaskVS
SetMask
SetICLK
SetIVS
SetIHS
HVMode
SelCSync
EnRGHS
SetRGHS
EnInter
L1Odd
HalfOdd
AdjEvenF
AdjOddF
SelIntF
Initial R/W
Description
0x28 R/W Horizontal back-porch length of input video, unit in
0x1 R/W number of input clocks
0x00 R/W Horizontal display active length of input video, unit in
0x4 R/W number of input clocks
0x23 R/W Vertical back-porch length of input video, unit in number
0x0 R/W of input scan lines
0x00 R/W Vertical display active length of input video, unit in
0x3 R/W number of input scan lines
0x2 R/W Clamp start from RGHS trailing edge ( # of RefCLKs)
0x08 R/W Clamp output pulse width ( # of RefCLKs)
0x4 R/W Backward expansion width of VS mask (# of lines)
0x4 R/W Forward expansion width of VS mask (# of lines)
0 R/W 0/1 : Clamp output low / enable
0
0/1 : to set Clamp output polarity to positive / negative
1
0/1 : MaskVS sync to RGHS leading / trailing edge
1
1 : enable MaskVS expansion
0
0/1 : MaskVS output low / enable
0
0/1 : to set MaskVS output polarity to positive / negative
0 R/W 0/1 : to set input clock polarity to positive / negative
0
0/1 : to set input Vsync polarity to positive / negative
0
0/1 : to set input Hsync polarity to positive / negative
0
1 : VGAHS is composite sync and separates VS from it.
0
1 : to select Csync as Hsync / Vsync input
1
0/1 : RGHS output low / enable
0
0/1 : to set RGHS output polarity to positive / negative
0 R/W 1 : to enable a de-interlace function
1
1 : to indicate that Odd field is a first frame
0
1 : VS active at half of HS period is an Odd field.
0
1 : to delay an active area of even field by 1 line
0
1 : to delay an active area of odd field by 1 line
0
0/1 : YUV field is indicated by Field / HV sync timing.
26
Back to Contents Table