Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

UART BULK data receive and transmit

Status
Not open for further replies.

Venkadesh_M

Advanced Member level 4
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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top