Uploaded by somsawat

code

advertisement
#Timing Script to generate a 2 x 2 synthetic image
Reset
# Wait until "Count" parameter !=0
Start:
Idle; X(100)
Clamp; X(200)
Idle; X(100)
Idle; IF !Count GOTO Start
# End of idle loop
# If we get here then a new frame has been requested
#Instruct the Deinterlacing Engine that we are starting a new frame
Frame
#Next, read out first image line consisting of a bright pixel followed by a medium-brightness pixel
# Instruct the DeInterlacing Engine we are starting a new line
Line
Idle
# Instruct the DeInterlacing Engine we are starting a pixel
Pixel
# Now send out the synthetic video waveform for a bright pixel
R;R(99)
B;B(99)
Idle
# Instruct the DeInterlacing Engine we are starting a pixel
Pixel
# Now send out the synthetic video waveform for a medium-brightness pixel
R;R(99)
M;M(99)
Idle; X(100)
Clamp; X(200)
Idle; X(100)
#Next, read out second image line consisting of a dark pixel followed by a black (bias level) pixel
# Instruct the DeInterlacing Engine we are starting a new line
Line
Idle
# Instruct the DeInterlacing Engine we are starting a pixel
Pixel
# Now send out the synthetic video waveform for a dark pixel
R;R(99)
D;D(99)
Idle
# Instruct the DeInterlacing Engine we are starting a pixel
Pixel
# Now send out the synthetic video waveform for a black pixel
R;R(99)
R;R(99)
Idle; X(100)
Clamp; X(200)
Idle; X(100)
# Decrement Count parameter and return to start
Idle; GOTO Start ; Count--
Download