I just installed keil in my computer for ARM. I am beginner for LM3S328. I want to work with LM3S328. I am trying to blink led on LM3S328. I don't have knowledge about LM3S328. I need to connect the LED to one of port pin and after that I have to set pin high then delay then low this process will repeat forever.
Which port of pin should connect to LED ? How to set input / output port and how to set port pin low and high ?
C:
/* Main.c file generated by New Project wizard
*
* Created: Mon Feb 12 2018
* Processor: LM3S328
* Compiler: Keil for ARM
*/
#include <lm3s_cmsis.h>
int main (void)
{
while (1)
{
/* code */
}
return 0;
}
void Delay (unsigned int wait)
{
unsigned int i;
for ( i = 0; i < wait; i++)
{
}
}
Which port of pin should connect to LED ? How to set input / output port and how to set port pin low and high ?
Last edited: