Embedded icon glad to meet u...
here, first we have to read S3C2440A datasheet.. link is
http://www.ziddu.com/download/18096491/s3c2440a_um_rev014_040712.pdf.html
Each port has configuration for selection port action such as input , output, pin functionality,reserved..
In this mini2440 development board , four led is connected to GPB^5,GPB^4,GPB^6,GPB^5
here, i have done simple blinking via loading inverting data ,
#include <S3C2440.h>
int main (void)
{
int i;
GPBCON |= 0X155555;
GPBDAT |= 0X000007FF;
while (1)
{
GPBDAT |= 0X000007ff;
for (i = 0; i < 200000; i++);
GPBDAT &= ~0X000007ff;
for (i = 0; i < 200000; i++);
}
}
i have attached that source code link ::
http://www.ziddu.com/download/18096659/Test.rar.html
that code work as in KEIL compiler..
under this development board this code only working in NOR mode only..Using command 'd' in BIOS setting..
here, first we have to read S3C2440A datasheet.. link is
http://www.ziddu.com/download/18096491/s3c2440a_um_rev014_040712.pdf.html
Each port has configuration for selection port action such as input , output, pin functionality,reserved..
In this mini2440 development board , four led is connected to GPB^5,GPB^4,GPB^6,GPB^5
here, i have done simple blinking via loading inverting data ,
#include <S3C2440.h>
int main (void)
{
int i;
GPBCON |= 0X155555;
GPBDAT |= 0X000007FF;
while (1)
{
GPBDAT |= 0X000007ff;
for (i = 0; i < 200000; i++);
GPBDAT &= ~0X000007ff;
for (i = 0; i < 200000; i++);
}
}
i have attached that source code link ::
http://www.ziddu.com/download/18096659/Test.rar.html
that code work as in KEIL compiler..
under this development board this code only working in NOR mode only..Using command 'd' in BIOS setting..
No comments:
Post a Comment