VCSBC64XX_HW.pdf – Hardware Documentation VCSBC64XX Smart Cameras
30
6.5 Special VCRT functions for programming VCSBC64XX cameras
This section explains the specifics of programming VCSBC64XX cameras.
6.5.1 General
settings
Programming the VCSBC64XX requires at least the VCRT library version 5.29.6.
To ensure proper functioning of all features of the VCSBC64XX, the following define is needed (has to
be defined BEFORE vcrt.h and register.h.
!
#define
DM648
6.5.2
Compiling and linking with the VCSBC64XX
It is advised to build your C-code as
relocatable code
(standard setting in the VC template Code
Composer project files from VCRT 5.29). In this case VCRT manages the program memory allocation
by itself (see Programming Tutorial for more details).
For customers who prefer absolute linking, please pay attention to the fact that the memory start
address has changed in comparison to previous VC cameras. In your link file, replace the memory
section with this one:
MEMORY
{
PMEM: o = 0E0100000h l = 100000h /* intended for initialization */
BMEM: o = 0E0090000h l = 40000h /* .bss, .system, .stack, .cinit */
}
6.5.3
Image capture with VCSBC64XX cameras
Picture taking with the SBC64XX camera works using the same functions as for other VC Smart
Cameras (tpict(), tenable(), capture_request()…).
The difference is that a second image buffer is allocated at startup, for the image of the second sensor
head. This second buffer is situated directly after the first image buffer in memory.
When a capture function is called, the VCSBC64XX automatically takes two images, synchronously.
This second image buffer is defined by its start address CAPT_START2. This system variable has
been added to VCRT and can be read or modified the same way as CAPT_START (first image
buffer).
©
1996-2011 Vision Components GmbH Ettlingen, Germany