IBM ECS-320A Benutzerhandbuch

Seite von 63
S
ERIAL 
I
NTERFACE 
D
EVELOPERS 
G
UIDE
 
 
1 Introduction 
This guide has been written to help the developer become acquainted with and be able to develop 
around the Serial Interface Protocol requirements for the Embeddable Camera Electronics System 
hardware. 
An overview of the system requirements and a detailed description of the protocol are provided.  This 
guide also provides information on how the Lumitron Operational Manager Application software 
interacts with the ECS-320A hardware during system operation.  This is done to provide examples on 
how the host application can communicate with the camera electronics. 
The interface is based on a product developed by Motorola specifically for DSP integration.  It consists 
of two components one that resides on the DSP (one of the camera electronics software drivers) and 
one that resides on a host (typically a PC).  The protocol software that exists on the host can be 
custom developed, or the developer can integrate the Motorola provided software library.  This 
document will deal only with the communications library provided by Motorola. 
This document has been written with the assumption that the user is knowledgeable about Microsoft 
Windows OS based applications as well as how to create these applications. 
This document is intended to encompass all camera application versions up to v11 b91 but is specific 
to that version.  Earlier versions may not have all the features or commands listed in this document 
and there may be some differences in the data types/locations.  Please contact Lumitron for specifics 
about previous camera software versions.  
2 General Requirements 
Software developed to interface with the camera electronics will need to incorporate the Motorola 
communications library version 1.2.  This is the key component in development of an interface for a 
Windows based application.  The files necessary to build an application can be obtained from 
Motorola.  At the very least these files can be obtained by downloading or ordering (at no cost) the 
entire Motorola software development kit (MSW3SDK000AA: Embedded Software Development Kit for 
56800/56800E), which will contain these files. 
The files are as follows: 
Mcbc12.dll  
Dynamic Link Library 
Mcbc12.lib  
Library File 
Mcbcom.chm 
Compiled HTML help file 
Mcbcom.h   
Header File for library/dll 
Mcberr.h   
Header File with error codes 
Along with the exposed interface provided by Motorola there are various defines, structures, and 
enumerations that are required to correctly transfer data to and from the camera electronics.  This 
information can be obtained from Lumitron and portions of it may be listed in this document. 
Host software requires an IBM PC or PC compatible with an available COM port.  Lumitron’s host 
application was designed for Windows 2000 and a minimum screen size setting of 1024 x 768. 
3 Camera Boot Sequence 
There are always two executables located on the camera electronics.  The first is located in DSP boot 
flash and will be referred to as the “bootloader”.  This code provides a means for the camera to initially 
load or update the second executable (embedded camera application). 
When a power on or reset occurs on the electronics: the DSP, via an interrupt, jumps to the boot flash 
and executes code located there.  This code configures the DSP serial port peripheral registers to be