Im new to the stellaris and ARM. Im an electronic engineering student at Pennsylvania college of technology. We work alot with the motorola 68HC12. Im trying to figure out how to enable some ports as general Output port. I want to have 8 or 10 outputs. That i can assign values to with some code to use with an external DAC. Im confused on how to just assign ports to outputs that i can just dump bit information to. Here is some example code of basically what i want to do.

void irqInterrupt()
{
PORTA=arrayOfWaveformData[arrayCount];
arrayCount++;
if (arrayCount == 32)
{
arrayCount = 0;
}
}

Were irqInterrupt() would be an ISR triggered by the system clock and the array would be 8 or 10 bit data (waveform data) and PORTA would be an 8 or 10 bit output port. Therefore every clock cycle the 8 or 10 bits of data would be dumped to the coresponding pins. That i could then wire to and external DAC.

Anyone with any code or information on how i could do something like this please reply or e-mail me at:

admin@tek-dynamik.net

Any help would be greatly appreciated.