UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2012. All rights reserved.
User manual
Rev. 1.3 — 6 July 2012
380 of 1269
NXP Semiconductors
UM10503
Chapter 18: LPC43xx Serial GPIO (SGPIO)
Data is shifted in at PIXCLK (pin 8) using HSYNC (pin 9) as qualifier.
The data width is 8 bit and all data slices are shifted 8 bit per clock.
Because an external clock is used as shift clock PRESET and COUNT are not used.
HSYNC and VSYNC are falling edge detected to raise an interrupt and indicate a start of
line or frame. DIN is captured when HSYNC is low. Software should discard not needed
data lines.
Alternatively the embedded codes 0xFF.00.00.YY (line start/end, frame start/end) are
detected with slice A set to match_mode, YY contains the actual code. Note that in
match_mode the shadow buffer is not used. To use the shadow buffer match_mode
should be disabled once an embedded code has been detected.
Eight slices are concatenated giving 8 x 32/8 = 32 shifts until REG need to be shadowed,
hence POS = 0x1F.
The interface is started by starting slices A, I, E, J, C, K, F, L and M by writing
CTRL_ENABLE=0x1F3F.
Table 266. SGPIO setting for camera interface (OUT_MUX_CFG registers)
OUT_MUX_CFGi
A...L
Pin 8
M (i=12)
G (i=6)
P_out_cfg
x
x
x
x
P_oe_cfg
x
x
x
x
GPIO_OUTREG
0
0
0
0
Table 267. SGPIO setting for camera interface (SGPIO_MUX_CFG registers)
SGPIO_MUX_CFGi
A...L
M (i=12)
G (i=6)
ext_clk_enable
1=pin
1=pin
1=pin
clk_source_pin_mode
00=Pin 8
00=Pin 8
00=Pin 8
qualifier_mode
11: external pin
00: enable
00: enable
qualifier_pin_mode
01: Pin 9
x
x
concat_enable
1: yes
0: no
0:; no
concat_order
11: 8 slices concat
x
x
Table 268. SGPIO setting for camera interface (SLICE_MUX_CFG registers)
SLICE_MUX_CFGi
A...L
M (i=12)
G (i=6)
match_mode
0: no
0: no
0: no
clk_capture_mode
1: falling edge
1: falling edge
1: falling edge
clkgen_mode
1: use pin clock
1: use pin clock
1: use pin clock
data_capture_mode
x
01: detect falling edge
01: detect falling edge
parallel_mode
11: 1 byte/clk
x
x
inv_qualifier
1: inverted qualifier
x
x
PRESETi
x
x
x
COUNTi
x
x
x
POS_PRESETi
0x1F
x
x