02.06.2014 Views

Control and Design of Microgrid Components - Power Systems ...

Control and Design of Microgrid Components - Power Systems ...

Control and Design of Microgrid Components - Power Systems ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The DSP is an integrated chip mounted on a board that h<strong>and</strong>les several peripherals for<br />

interfacing with the external world. Figure 6.7 shows the block schematic highlighting these<br />

peripherals:<br />

i) Analog to Digital Conversion (ADC) to import measurement from the outside world as a<br />

string <strong>of</strong> bits stored in a mapped data memory<br />

ii) Crystal oscillator clock that generates the square wave pulses to operate the CPU inside the<br />

integrated circuit<br />

iii) Parallel pins to allow the gate signals to be passed to the signal amplifying board<br />

iv) Digital to Analog Conversion (DAC) that is very useful when debugging the control routine<br />

allowing output signals to be displayed on the oscilloscope<br />

v) Parallel connection to connect to the computer card that sends the compiled code to be<br />

stored in the program memory <strong>of</strong> the integrated circuit<br />

vi) Interrupt request controller to be able to set up priorities in hardware <strong>and</strong> s<strong>of</strong>tware queues<br />

<strong>of</strong> tasks that are waiting to be processed by the DSP<br />

vii) Timer controller that can be used to generate any triangle or square wave that may be<br />

needed<br />

viii) Serial port to allow to exchange values from <strong>and</strong> to the board with the computer<br />

DSP Board<br />

External<br />

Measurements<br />

ADC<br />

IRQ<br />

DAC<br />

Oscilloscope<br />

Probe<br />

Oscillator<br />

Clocks<br />

Integrated<br />

Circuit<br />

Parallel Pins<br />

Inverter<br />

Gates<br />

Executable<br />

from Computer<br />

Debugging Utility<br />

to Computer<br />

Parallel Port<br />

Serial Port<br />

Timer<br />

Module<br />

Figure 6.7 DSP Peripherals.<br />

The DSP is a Motorola DSP56F805EVM board. Internally, this board h<strong>and</strong>les every signal as a<br />

16 bit word, <strong>and</strong> uses the fractional integer Arithmetic Logic Unit (ALU), a mathematical<br />

processor that supports only two kind <strong>of</strong> operations between register values: sum <strong>and</strong><br />

multiplication. The ALU can only represent <strong>and</strong> use numbers between -1 <strong>and</strong> 1, dem<strong>and</strong>ing extra<br />

care when coding the control blocks. Every variable will have to be rescaled so that its value will<br />

never exceed the absolute value <strong>of</strong> unity, not even during overshooting transients. This board<br />

84

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!