Stellaris® ARM® Microcontrollers
Forum
Options
Subscribe via RSS
Helpful Stellaris® LM4F Series Links
LM4F Series
Stellaris PinMux Utility
Stellaris® LM4F120 LaunchPad
LM4F MCU Applications
LM4F MCU Video
ARM Cortex-M4F Whitepaper
Stellaris MCU Brochure
LM4F232 Eval Kit
General IO need help
General IO need help
Posted by
kafix
on
Oct 26 2006 20:12 PM
Prodigy
50
points
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.
Report Abuse
Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.