RTC6 boards
Doc. Rev. 1.0.21 en-US
10 RTC6 Commands
585
Ctrl Command read_mcbsp
Function Returns the most recent input value that has been fully copied to an internal memory
location by the McBSP interface.
Call
mcbsp_value = read_mcbsp( No )
Parameters
No
Number of the internal memory location whose input value should be queried.
As an unsigned 32-bit value.
0 Memory location for Processing-on-the-fly applications and for
set_mcbsp_in input with coding Bit #31 = 0.
1 Memory locations for Online Positioning and for set_mcbsp_in input.
2 Wie 1.
3 Memory location for set_mcbsp_in input with coding Bit #31 = 1.
For set_multi_mcbsp_in, the following applies: memory locations 0 through
3 are continuously written to as a ring buffer.
Only the 2 least significant bits are evaluated.
Result Input value.
As a signed 32-bit value.
Comments • For information on the McBSP interface and the related memory locations, see also
Chapter 4.6.6 ”McBSP/ANALOG Socket Connector”, page 84.
• The interpretation as
– one signed or unsigned 32-bit data word
– two signed 16-bit data words
– two signed 15-bit data words
is the responsibility of the user:
– For Processing-on-the-fly applications (
No
= 0) see Chapter 8.6
”Processing-on-the-fly”, page 242 and Chapter 9.3.4 ”Synchronization and
Online Positioning by McBSP Signals”, page 300.
– For “Local Online Positioning“ (
No
= 1…2) see Chapter 8.3.1
”“Local Online Positioning“”, page 228.
– For “Global Online Positioning“ (
No
= 1…2) see Chapter 8.3.2
”“Global Online Positioning“”, page 231.
– For set_mcbsp_in input (
No
= 0…3) see Section ”Correction via McBSP Interface
with Additional McBSP Input”, page 246 and Section ”Correction via
McBSP Interface with Additional McBSP Input”, page 248.
– For set_multi_mcbsp_in, see page 702.
• After load_program_file, the input values at the McBSP interface are transferred to
location 0 (default) even if no Processing-on-the-fly correction is activated.
• The McBSP interface ignores the first FrameSync signal after a load_program_file or
mcbsp_init. That is, data provided is not transmitted, see page 86.