Propeller Manual

Table Of Contents
2: Spin Language Reference – VCFG
VCFG
Register: Video Configuration Register.
((PUB PRI))
VCFG
Returns: Current value of cog’s Video Configuration Register, if used as a source variable.
Explanation
VCFG is one of two registers (VCFG and VSCL) that affect the behavior of a cog’s Video
Generator. Each cog has a video generator module that facilitates transmitting video image
data at a constant rate. The
VCFG register contains the configuration settings of the video
generator, as shown in Table 2-17.
Table 2-17: VCFG Register
VCFG Bits
31 30..29 28 27 26 25..23 22..12 11..9 8 7..0
- VMode CMode Chroma1 Chroma0 AuralSub - VGroup - VPins
In Propeller Assembly, the VMode field through AuralSub fields can conveniently be written
using the
MOVI instruction, the VGroup field can be written with the MOVD instruction, and the
VPins field can be written with the
MOVS instruction.
VMode
The 2-bit VMode (video mode) field selects the type and orientation of video output, if any,
according to Table 2-18.
Table 2-18: The Video Mode Field
VMode Video Mode
00 Disabled, no video generated.
01 VGA mode; 8-bit parallel output on VPins7:0
10 Composite Mode 1; broadcast on VPins 7:4, baseband on VPins 3:0
11 Composite Mode 2; baseband on VPins 7:4, broadcast on VPins 3:0
Propeller Manual v1.1 · Page 213