Professional Documents
Culture Documents
1
System is designed and developed for Video Audio Switch (VA Switch) based on
Switching devices and Freescale MCU S12XE series and supported with peripherals
as suggested by ADE. Control signals from MCU would control the switching of Mux,
Mixer and Sync devices.
Video audio switch module can be used to route video and audio from multiple
sources to multiple destinations.
Test system module is designed to provide video, audio and control channel signals
to the Video audio switch,capture and display the switched/buffered video, audio and
control signals from the video audio switch.
System Requirement
1.Windows 7 32 bit
2.2 GB RAM
3. 500 GB HDD
4.Capture Card
Software Requirement
1.Microsoft Dot Net framework 4.0
2.AvSDK Windows driver Installer
3.FTDI driver
The Video-Audio Switch shall be interfaced with AED using RS422 interface. For
communication between VA switch and AED, Packet oriented communication protocol will
be used. In this configuration input connection is fixed, only output connection is fixed;
only output connection will be changed.
Channel attribute: Start bit: 1, Data bit: 8, Stop bit: 1, Parity bit: Nil
1. Capture
2. Configuration
MC9S12XEP100MAG devices is used to control the peripherals of the video audio switch, below
are the features of the MCU
MC9S12XEP100MAG is a 16-Bit device.
Memory Options-1M byte Flash, 4K byte emulated EEPROM and 64K Byte RAM.
Two 16-channel, 12-bit Analog-to-Digital Converters.
Three Serial Peripheral Interface Modules (SPI).
Eight Serial Communication Interfaces (SCI).
Two Inter-IC bus (IIC) Modules.
Low-power wake-up timer (API).etc
Video switch to switch 4 composite video inputs to 8 video outputs in one to one or one to many
configuration and Relay for video bypass in power failure condition.
Audio switch-1 switches 2 inputs to 2 outputs in one to one or one to many configuration.
Audio switch-2 switches 4 inputs to 3 outputs in one to one or one to many configuration, 3
outputs are mixed using the mixer circuit and dual mixed output will be given as output.
HD-SDI video will buffer 1 HD-SDI video input to 4 HD-SDI video output.
Dual RS422 channels are provided for communication.
ADV3229 device can be configured from the MCU over
SPI interface.
ADV3229 device can switch 4 inputs to 4 outputs in one
to one or one to many configuration
Dual ADV3229 devices are used for redundancy
Relay is used to bypass the 1st video input in case of
power failure
ADG16386 is audio cross point switch, device is
controlled from the MCU over GPIO line.
ADG16386 device can switch 2 audio inputs to 2
audio outputs in one to one or one to many
configuration
Audio outputs are buffered using the OPAM.
MAX4550 is audio cross point switch, device
is controlled from the MCU over I2C interface.
MAX4550 device can switch 4 audio inputs to3
audio outputs in one to one or one to many
configuration
Audio outputs are connected to Mixer circuit,
mixed output is given to dual OPAM for
buffering.
One HD-SDI video is buffered to 4 HD-SDI videos.
LMH0384SQ device is used for cable equalization.
LMH0346 device is used for the Re-clocking of the HD-SDI signal.
LMH0307 device is cable driver, used for driving the 4 HD-SDI videos
MCU will control all the devices.
Dual RS422 isolated transceivers are interfaced to MCU for communication with the test system
1:4 TTL buffer is used for the TTL signal buffering, two output of the TTL buffer is given to the
RS422 buffer.
Dual PTT signals are given to the Relay for the switching, Relay is controlled from the MCU over
GPIO lines.
Appendix:page2
As soon as Microcontroller power on ,startup code get start executing and it will call the Main function.
The main Function will initialized the local variable and call the IsSimplePrmCRCCheckSumOK()
functions.
This functions will start the calculations of Firmware CRC by calling _Checksum_CheckAreaCRC32()
functions is CRC32 checksum of an aera and store the value in firmware_crc .This is global variable.
...
After getting Firmware_crc value ,We will do mcu configuration in which we will Initialized all the
PORT and PLL(Clock) settings.
we will Initialized all the peripheral like IIC ,SPI, UART and interrupt will be enabled and timer
function.
...
We are receiving data through UART RS422 and storing in the receiving buffer and after validating
the data, we copying this data to main buffer.
After every 160ms we look for new data is present or not.If it is there then it wil update the switches
accordingly .All audio ,video switches are updated and verified.To updates switches we will use
different protocol like IIC,SPI.Video conifig is communication based on SPI and audio uplink is
GPIO control and downlink is done with IIC protcol.
...
Every 160ms we will send the status of switches to the User/Test sytem over UART RS422.
It will Send the all switch status and software version ,release date ,Cable Driver Output
Termination Fault 1, Cable Driver Output Termination Fault 2, Carrier Detect1. etc.
For more details, refer ADE_VAS_SDD (V0.5).
Packet length of 16 Bytes
16 bytes
o Capture :
· Video/Audio stream capture start
2. Stop Capture
· Stops capturing by de-initialise video channels.
3. Record
· Start recording start storing the received data on HDD (Specified Path).
4. Stop Record
· Stop recording stop storing received data.