The invention relates to a controller for excitation output by waveform self-defining based on an AVALON
bus and a control method thereof, and belongs to the field of excitation output control. The existing controller for controlling peripherals in FPGA (
field programmable gate array) has the defects of troublesome control process, easy mistaking, difficult adjusting, poor flexibility and universality, and long design time. The method comprises the following steps of enabling a
microprocessor to store the setting number of waveform generation channels, waveform
data information and a series of waveform discrete point values into an RAM (
random access memory); starting a DA (digital to analog) conversion controller, repeatedly reading the waveform
data information in the RAM, and respectively writing into corresponding registers; configuring the waveform
data information under the mutual action of time interval controllers; starting a DA
chip to convert and generate an expected task waveform. The method has the characteristics that the method is applied into the
system for providing the excitation output, and the DA conversion
chip with an SPI (serial
peripheral interface) and a PIO (parallel input and output) interface is controlled to generate the waveform excitation output meeting the expectation of a user; the actual application value is high, the flexibility and convenience in use are realized, the universality is strong, and the like.