![](http://datasheet.mmic.net.cn/220000/VPX3224E_datasheet_15512237/VPX3224E_88.png)
ADVANCE INFORMATION
VPX 322xE
MICRONAS INTERMETALL
88
7.3. Control Interface
7.3.1. Symbols
<
>
aa
dd
Start Condition
Stop Condition
(Sub-)Address Byte
Data Byte
7.3.2. Write Data into I
2
C Register
<86 f2 dd>
write to register OENA
7.3.3. Read Data from I
2
C Register
<86 00 <87 dd>
read Manufacture ID
7.3.4. Write Data into FP Register
<86 35 <87 dd>
<86 37 aa aa>
<86 35 <87 dd>
<86 38 dd dd>
write FP register write address
poll busy bit[2] until it is cleared
write data into FP register
7.3.5. Read Data from FP Register
<86 35 <87 dd>
<86 36 aa aa>
<86 35 <87 dd>
<86 38 <87 dd dd>
read data from FP register
poll busy bit[2] until it is cleared
write FP register read address
poll busy bit[2] until it is cleared
7.3.6. Sample Control Code
A Windows API function set is provided for controlling
the VPX. This API is independent of the actual used ver-
sion of the VPX. It is recommended to control the VPX
via this API, which allows flexible switching between dif-
ferent VPX family members. The API is available on re-
quest. The following code demontrates the usage of the
API to initialize the VPX.
#include <vpx.h>
// VPXAPI support header
VPXInit();
VPXSetVideoSource(VPX_VIN1, VPX_COMPOSITE);
VPXSetVideoWindow(VPX_VIDEO_WINDOW1, 23, 288, 0, 720, 720, 3000, 0);
VPXSetVideoWindow(VPX_VIDEO_WINDOW2, 0, 0, 0, 0, 0, 0, 0);
VPXSetVideoWindow(VPX_VBI_WINDOW, 320, 336, 7, 23, 0, 0, 0);
VPXSetVideoStandard(VPX_PAL);
VPXSetVBIMode(VPX_VBI_SLICED_DATA, VPX_VBI_ACTIVE);
VPXSetVideoAttribute(VPX_VIDEO_WINDOW1, VPX_CONTRAST, 128);
VPXSetVideoAttribute(VPX_VIDEO_WINDOW1, VPX_BRIGHTNESS, 128);
VPXSetVideoAttribute(VPX_VIDEO_WINDOW1, VPX_SATURATION, 128);
VPXSetVideoAttribute(VPX_VIDEO_WINDOW1, VPX_HUE, 128);
VPXSetVideoAttribute(VPX_VIDEO_WINDOW1, VPX_PEAKING, 128);
VPXSetVideoAttribute(VPX_VIDEO_WINDOW1, VPX_CORING, 128);
// initializes the VPX from an INI file