Saturday, 4 February 2012
Friday, 3 February 2012
Tuesday, 31 January 2012
Saturday, 28 January 2012
Thursday, 26 January 2012
Tuesday, 24 January 2012
Purchase of ARM 9 Development board
Embedded icon recommend BEST purchase is BUY ARM development board from
http://www.amp-tronics.com/
info@amp-tronics.com
http://www.amp-tronics.com/
info@amp-tronics.com
Thursday, 5 January 2012
ARM9 S3C2440 -- Tutorial - 1
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..
Welcome to ARM9 (S3C2440A)
Hi friends ,
here i have done it Blinking LED in S3c2440 development board.. also declare serial received character display at 115200 baud rate..
The source code as:: (any doubt contact me)
#include "def.h"
#include "option.h"
#include "2440addr.h"
#include "2440lib.h"
#include "2440slib.h"
//================================
void dely(U32 tt)
{
U32 i;
for(;tt>0;tt--)
{
for(i=0;i<10000;i++){}
}
}
int Main()
{
U8 key=14,ch,c;
U32 val;int pclk,baud;
U8 m, p, s;
U32 mpll_val=0;
int data;
mpll_val = (92<<12)|(1<<4)|(1);
ChangeMPllValue((mpll_val>>12)&0xff, (mpll_val>>4)&0x3f, mpll_val&3);
ChangeClockDivider(key, 12);
MMU_DisableICache();
MMU_DisableDCache();
val = rMPLLCON;
m = (val>>12)&0xff;
p = (val>>4)&0x3f;
s = val&3;
baud=115200;
pclk = PCLK;
rUFCON0 = 0x0;
rUMCON0 = 0x0;
rULCON0 = 0x3;
rUCON0 = 0x245; // Control register
rUBRDIV0=( (int)(pclk/16./baud+0.5) -1 ); //Baud rate divisior register 0
rGPBCON = 0x155555;
data = 0x06;
while(1)
{
rGPBDAT = (data<<5);
//dely(1200);
data =~data;
while(!(rUTRSTAT0 & 0x1));
c = RdURXH0();
while(!(rUTRSTAT0 & 0x2)); //Wait until THR is empty.
//ch=c+0x30;
WrUTXH0(c);
}
}
here i have done it Blinking LED in S3c2440 development board.. also declare serial received character display at 115200 baud rate..
The source code as:: (any doubt contact me)
#include "def.h"
#include "option.h"
#include "2440addr.h"
#include "2440lib.h"
#include "2440slib.h"
//================================
void dely(U32 tt)
{
U32 i;
for(;tt>0;tt--)
{
for(i=0;i<10000;i++){}
}
}
int Main()
{
U8 key=14,ch,c;
U32 val;int pclk,baud;
U8 m, p, s;
U32 mpll_val=0;
int data;
mpll_val = (92<<12)|(1<<4)|(1);
ChangeMPllValue((mpll_val>>12)&0xff, (mpll_val>>4)&0x3f, mpll_val&3);
ChangeClockDivider(key, 12);
MMU_DisableICache();
MMU_DisableDCache();
val = rMPLLCON;
m = (val>>12)&0xff;
p = (val>>4)&0x3f;
s = val&3;
baud=115200;
pclk = PCLK;
rUFCON0 = 0x0;
rUMCON0 = 0x0;
rULCON0 = 0x3;
rUCON0 = 0x245; // Control register
rUBRDIV0=( (int)(pclk/16./baud+0.5) -1 ); //Baud rate divisior register 0
rGPBCON = 0x155555;
data = 0x06;
while(1)
{
rGPBDAT = (data<<5);
//dely(1200);
data =~data;
while(!(rUTRSTAT0 & 0x1));
c = RdURXH0();
while(!(rUTRSTAT0 & 0x2)); //Wait until THR is empty.
//ch=c+0x30;
WrUTXH0(c);
}
}
Sunday, 1 January 2012
ARM 9 PROJECT
Shortly We will discuss about ARM9 with S3C2440A processor development board... Share your ideas and opinion ...
Subscribe to:
Posts (Atom)