Download Platform Developer`s Kit: RC10 Manual

Transcript
RC10 Hardware Description
B G B G B G ...
G R G R G R ...
B G B G B G ...
...
i.e. the top-left pixel is covered with a green filter, and so on. In this case, ValuePtr should point to an
lvalue of type "unsigned 10". Capturing only the green pixels provides a reasonable approximation to
a monochrome image.
RGB565 Mode
In RGB565 mode, the camera decodes ("demosaics") the raw values and provides a full colour image in
RGB format. ValuePtr should point to an lvalue of type "unsigned 16". This is formatted as follows:
(*ValuePtr)[15:11]
5-bit Red component
(*ValuePtr)[10: 5]
6-bit Green component
(*ValuePtr)[ 4: 0]
5-bit Blue component
YUV Mode
In YUV mode, the camera decodes the raw values and provides a full colour image in YUV
(luminance-chrominance) format. ValuePtr should point to an lvalue of type "unsigned 8". This is
formatted as per the ITU CCIR656 standard, as pairs of pixels over the course of four reads (Cb, Y0, Cr,
Y1).
4.10 RC10 PSL: Audio Output
The RC10 audio interface allows stereo output at a range of sample rates, and mono or pseudo-stereo
output using the on-board buzzer.
4.10.1 Running the audio interface
macro proc RC10AudioRun (ClockRate);
Arguments
ClockRate
clock rate of the clock domain of call to this macro, in Hz.
Timing
Does not terminate in normal use.
Description
Runs the device management tasks for audio interface. Must always run in parallel with accesses to the
device.
4.10.2 Setting the audio sample rate
macro proc RC10AudioOutSetSampleRate (SampleRateCode);
Page 44
www.celoxica.com