Propeller Manual

Table Of Contents
VCFG – Assembly Language Reference
VCFG
Register: Video configuration register.
DAT
Label Condition Instruction VCFG, SrcOperand Effects
DAT
Label Condition Instruction DestOperand, VCFG Effects
Label is an optional statement label. See Common Syntax Elements, page 250.
Condition is an optional execution condition. See Common Syntax Elements, page 250.
Instruction is the desired assembly instruction. VCFG may be used in either the
assembly instruction’s DestOperand
or SrcOperand fields.
SrcOperand is a constant expression used by Instruction to operate on, and optionally
write to, the
VCFG register in DestOperand.
DestOperand is a constant expression indicating the register that is operated on, and
optionally written to, using the value of
VCFG in SrcOperand.
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.
The following code sets the Video Configuration register to enable video in composite mode
1 with four colors, baseband chroma (color) enabled, on pin group 1, lower 4 pins (which is
pins P11:8).
mov vcfg, VidCfg
VidCfg long %0_10_1_0_1_000_00000000000_001_0_00001111
See Registers, page 338, and the Spin language VCFG section, page 213, for more information.
Page 366 · Propeller Manual v1.1