The rectangular wave generator,whose duty ratio could be controlled by SOPC,is created by VHDL language in the FPGA chip.The rectangular wave is filtered to be the DC signal to demonstrate the position of the ball in the screen of oscilloscope.The MCS-51 is used to change the direction of the ball movement by serial communication with SOPC.%在FPGA芯片内部产生一个占空比可调的方波发生器,通过内置SOPC对占空比进行控制。输出两路方波波形通过低通滤波器,得到幅度可控的直流信号用于控制示波器上X轴和Y轴的位置。预设小球轨迹从而对小球的抛射轨迹进行设计。
展开▼