UART BULK data receive and transmit

Status
Not open for further replies.

Venkadesh_M

Advanced Member level 4
Joined
Jun 26, 2013
Messages
1,374
Helped
258
Reputation
516
Reaction score
254
Trophy points
1,363
Location
Coimbatore, India
Visit site
Activity points
8,020
Hi
I am working on LPC2134 NXP ARM controller, my need is a best algorithm for receiving and transmitting(received) bulk data without affecting the program flow with ISR pls give some clues...
 


Code C - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
int max_count(void)
{
int x,i;
int cnt,sn,en,rp,rpsize,*dsn,dsnsize;
 
dsnsize = dsnsize_MEM[0];
 
dsn = malloc(dsnsize);
for(i = 0; i < dsnsize; i++ )
dsn[i] = dsn_MEM[i];
 
rpsize = rptsize_MEM[0];
cnt = 0;
 
for(x = 0; x < rpsize; x++)
{
sn = ssn_MEM [x];
en = esn_MEM [x];
rp = r_MEM   [x];
 
for( i = sn; i<= en; i++)
cnt+= (dsn[i-1]*rp);
}
 
free(dsn);
 
return cnt;
}

 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…