this paper discusses how to effectively utilize the embedded processor by stretching it to the...

4
7/23/2019 This paper discusses how to effectively utilize the embedded processor by stretching it to the different application… http://slidepdf.com/reader/full/this-paper-discusses-how-to-effectively-utilize-the-embedded-processor-by-stretching 1/4  DIGITAL SIGNAL PROCESSING ON EMBEDDED PROCESSORS   M.SANDEEP SARMA : ELECTRONICS & INSTRUMENTATION DEPARTMENT GITAM UNIVERSITY VISAKHAPATNAM, INDIA sandytasks@!a"#$%! K$V$RAVI KUMAR: EIE DEPT$  GITAM UNIVERSITY  VISAKHAPATNAM  k'(kak)@!a"#$%! *$RA+ESH KUMAR: EIE DEPT$  GITAM UNIVERSITY  VISAKHAPATNAM (a-s./0((a12@!a"#$%! P$H$S$T$MURTHY EIE DEPT$  GITAM UNIVERSITY  VISAKHAPATNAM  t-a30s.a@(-d"44!a"#$%!  Abstract  —This paper discusses how to effectively utilize the embedded processor by stretching it to the different applications and thereby obtaining the important qualities of digital electronics we strive for i.e. improving performance and power with cutting down the price. With the advent of System on Chip (SoC! we are able to integrate many functional bloc"s on a single chip! but by ma"ing the SoC to e#ecute different applications also leads to the hardware optimization thereby meeting the above digital electronics requirements. $n this paper we discuss how to run different filters to remove the electrical interferences! baseline wandering and algorithms to detect the %&S pea" i.e. performing 'igital Signal rocessing applications on the Corte# )* microcontroller! which is an embedded processor not designed mainly for signal processing applications.  Keywords— Embedded Systems; D!ta" S!#a" Process#!;  MATLAB; Corte$; ECG %E"ectrocardo!ram&'  I#trod(cto# In t."s D""ta# 5(#d, -'-(y day "n t.- )(%-ss 4 "!)('"n t.- )-(4(!an%- 4 t.- d-'"%- 5- st("'- 4( )t"!"6"n t.- -7"st"n t-%.n"80-s, !-t.ds ( t-%.n#"-s t (-d0%- t.- s4t5a(- '-(.-ad and t (-d0%- t.- .a(d5a(-$ Many d"44-(-nt )t"!"6"n t-%.n"80-s a(- ad)t-d 5."#- %d"n t.- s4t5a(- 5."%. %an -44"%"-nt#y (-d0%- t.- %d- #-nt. and t.0s (-s0#t"n "n t.- (-d0%t"n 4 t.- '-(.-ad )('"d-d  /y t.- %d-$ R-d0%t"n "n t.- .a(d5a(- %an /- /ta"n-d -'-n /y "!)#-!-nt"n !(- n0!/-( 4 40n%t"ns n t.- -7"st"n %.")$ Tday t.- t(-nd "s t )-(4(! /t. t.- D""ta# S"na# P(%-ss"n 9DSP and t.- M"%(%nt(##-( )-(at"ns n t.- s"n#- -!/-dd-d )(%-ss($ T.- )(-s-nt )(a%t"%- "s t .a'- a D""ta# S"na# P(%-ss( and t.- M"%(%nt(##-( "nt-(4a%-d t-t.-( t )-(4(! t.- 40n%t"na#"ty 4 an a))#"%at"n, 5.-(- t.- D""ta# s"na# )(%-ss"n and t.- %(- !"%(%nt(##-( )-(at"ns a(- "nd"'"d0a##y )-(4(!-d /y (-s)-%t"'- %nt(##-(s, /0t d0- t t.- "nt-(4a%- /-t5--n t.-! 5- n--d t %!)(!"s- n t.- )-(4(!an%-$ *0t 5"t. t.- (-%-nt ad'an%-!-nts "n t.- Syst-! n C.") t-%.n#"-s 5- %an "n%()(at- a))#"%at"n;s)-%"4"% D""ta# S"na# P(%-ss(s 5"t. ARM %(-s n t.- d"- 4 SCs t 44#ad t.- data "$-$ d-!and-d 4(! t.- CPU "n (d-( t )t"!"6- )5-( %ns0!)t"n and )-(4(!an%-$ T."s t-%.n"80- 4 )-(4(!"n d"44-(-nt )-(at"ns #"k- s"na#  )(%-ss"n and %(- !"%(%nt(##-( )-(at"ns n a s"n#- -!/-dd-d )(%-ss( 9C(t-7 M< "n t."s )a)-( "s /-st s0"ta/#- t t.- a))#"%at"ns 5.-(- s!- /as"% s"na#  )(%-ss"n "s (-80"(-d 5"t. n n--d 4 st("n-nt %!)0tat"ns$ T.0. t."s )a)-( d"s%0ss-s n#y a/0t "n%()(at"n D""ta# S"na# )(%-ss"n a))#"%at"ns n C(t-7 M< !"%(%nt(##-( "n )(%-ss"n t.- ECG s"na#, t.- %nt(##-( C(t-7 M< %an /- 40(t.-( 0s-d t t(ans!"t t.- ECG )(%-ss-d data /y 0s"n t.- %(- %nt(##-( )-(at"ns$ D-s"n"n a nt%. 4"#t-( .-#)s t '-(%!- t.- -#-%t("%a# #"n- "nt-(4-(-n%- n t.- s"na#$ H".;4(-80-n%y %!)n-nts 5."%. a(- )(d0%-d /y %.-st and -7t(-!"ty !0s%#-s %an /- (-!'-d /y "!)#-!-nt"n a #5 )ass =IR 4"#t-($ ECG SIGNAL >ITH AND >ITHOUT NOISE

Upload: jared-barnett

Post on 11-Feb-2018

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: This paper discusses how to effectively utilize the embedded processor by stretching it to the different applications and thereby obtaining the important qualities of digital electronics

7/23/2019 This paper discusses how to effectively utilize the embedded processor by stretching it to the different application…

http://slidepdf.com/reader/full/this-paper-discusses-how-to-effectively-utilize-the-embedded-processor-by-stretching 1/4

 DIGITAL SIGNAL PROCESSING ON EMBEDDED PROCESSORS 

  M.SANDEEP SARMA: ELECTRONICS & INSTRUMENTATION DEPARTMENT

GITAM UNIVERSITYVISAKHAPATNAM, INDIA

sandytasks@!a"#$%!

K$V$RAVI KUMAR:EIE DEPT$

  GITAM UNIVERSITY  VISAKHAPATNAM

  k'(kak)@!a"#$%!

*$RA+ESH KUMAR:EIE DEPT$

  GITAM UNIVERSITY  VISAKHAPATNAM

(a-s./0((a12@!a"#$%!

P$H$S$T$MURTHYEIE DEPT$

  GITAM UNIVERSITY  VISAKHAPATNAM

  t-a30s.a@(-d"44!a"#$%!

 Abstract  —This paper discusses how to effectively utilize the

embedded processor by stretching it to the differentapplications and thereby obtaining the important qualities of 

digital electronics we strive for i.e. improving performance and

power with cutting down the price. With the advent of System

on Chip (SoC! we are able to integrate many functional bloc"s

on a single chip! but by ma"ing the SoC to e#ecute different

applications also leads to the hardware optimization thereby

meeting the above digital electronics requirements. $n this

paper we discuss how to run different filters to remove the

electrical interferences! baseline wandering and algorithms to

detect the %&S pea" i.e. performing 'igital Signal rocessing

applications on the Corte# )* microcontroller! which is an

embedded processor not designed mainly for signal processing

applications.

 Keywords— Embedded Systems; D!ta" S!#a" Process#!;

 MATLAB; Corte$; ECG %E"ectrocardo!ram&'

 I#trod(cto#

In t."s D""ta# 5(#d, -'-(y day "n t.- )(%-ss 4 "!)('"nt.- )-(4(!an%- 4 t.- d-'"%- 5- st("'- 4( )t"!"6"n t.--7"st"n t-%.n"80-s, !-t.ds ( t-%.n#"-s t (-d0%- t.-s4t5a(- '-(.-ad and t (-d0%- t.- .a(d5a(-$ Many

d"44-(-nt )t"!"6"n t-%.n"80-s a(- ad)t-d 5."#- %d"nt.- s4t5a(- 5."%. %an -44"%"-nt#y (-d0%- t.- %d- #-nt.and t.0s (-s0#t"n "n t.- (-d0%t"n 4 t.- '-(.-ad )('"d-d /y t.- %d-$ R-d0%t"n "n t.- .a(d5a(- %an /- /ta"n-d

-'-n /y "!)#-!-nt"n !(- n0!/-( 4 40n%t"ns n t.--7"st"n %.")$ Tday t.- t(-nd "s t )-(4(! /t. t.- D""ta#

S"na# P(%-ss"n 9DSP and t.- M"%(%nt(##-( )-(at"nsn t.- s"n#- -!/-dd-d )(%-ss($ T.- )(-s-nt )(a%t"%- "s t.a'- a D""ta# S"na# P(%-ss( and t.- M"%(%nt(##-( "nt-(4a%-d t-t.-( t )-(4(! t.- 40n%t"na#"ty 4 ana))#"%at"n, 5.-(- t.- D""ta# s"na# )(%-ss"n and t.- %(-!"%(%nt(##-( )-(at"ns a(- "nd"'"d0a##y )-(4(!-d /y

(-s)-%t"'- %nt(##-(s, /0t d0- t t.- "nt-(4a%- /-t5--n t.-!5- n--d t %!)(!"s- n t.- )-(4(!an%-$*0t 5"t. t.- (-%-nt ad'an%-!-nts "n t.- Syst-! n C.")t-%.n#"-s 5- %an "n%()(at- a))#"%at"n;s)-%"4"% D""ta#S"na# P(%-ss(s 5"t. ARM %(-s n t.- d"- 4 SCs t

44#ad t.- data "$-$ d-!and-d 4(! t.- CPU "n (d-( t)t"!"6- )5-( %ns0!)t"n and )-(4(!an%-$

T."s t-%.n"80- 4 )-(4(!"n d"44-(-nt )-(at"ns #"k- s"na# )(%-ss"n and %(- !"%(%nt(##-( )-(at"ns n a s"n#-

-!/-dd-d )(%-ss( 9C(t-7 M< "n t."s )a)-( "s /-sts0"ta/#- t t.- a))#"%at"ns 5.-(- s!- /as"% s"na# )(%-ss"n "s (-80"(-d 5"t. n n--d 4 st("n-nt%!)0tat"ns$ T.0. t."s )a)-( d"s%0ss-s n#y a/0t"n%()(at"n D""ta# S"na# )(%-ss"n a))#"%at"ns nC(t-7 M< !"%(%nt(##-( "n )(%-ss"n t.- ECG s"na#,

t.- %nt(##-( C(t-7 M< %an /- 40(t.-( 0s-d t t(ans!"t t.-ECG )(%-ss-d data /y 0s"n t.- %(- %nt(##-( )-(at"ns$D-s"n"n a nt%. 4"#t-( .-#)s t '-(%!- t.- -#-%t("%a# #"n-"nt-(4-(-n%- n t.- s"na#$ H".;4(-80-n%y %!)n-nts5."%. a(- )(d0%-d /y %.-st and -7t(-!"ty !0s%#-s %an /-(-!'-d /y "!)#-!-nt"n a #5 )ass =IR 4"#t-($

ECG SIGNAL >ITH AND >ITHOUT NOISE

Page 2: This paper discusses how to effectively utilize the embedded processor by stretching it to the different applications and thereby obtaining the important qualities of digital electronics

7/23/2019 This paper discusses how to effectively utilize the embedded processor by stretching it to the different application…

http://slidepdf.com/reader/full/this-paper-discusses-how-to-effectively-utilize-the-embedded-processor-by-stretching 2/4

I$ MODELLING

 A. Step to run a DSP

application on an Embedded

 Processor:

 

In t."s )a)-(, 5- /s-('- t.- (-s0#ts 4 t.- #5 )ass =IR 

4"#t-( st-) /y st-) (".t 4(! t.- !at.-!at"%a# ana#ys"s t t.-4"na# ARM C(t-7 M< %!)at"/#- %d-$

 B. Why to Model a FR !ilter:

T.- )5-(40# d-s"n a#("t.!s -7"st-d .as !ad- =IR 4"#t-(st /- -7t-ns"'-#y 0s-d a#n 5"t. t.- "n.-(-nt sta/"#"ty t.-y/ta"n-d 5.-n "!)#-!-nt-d "n nn;(-%0(s"'- 4(!$ T.-t.-( (-asns a(- t.at 5- %an atta"n #"n-a( ).as- 5"t. -as-and t.-"( 4a%"#- -7t-ns"/"#"ty t !0#t";(at- %as-s a#n 5"t.

t.- a!)#- .a(d5a(- s0))(t -7"st-d 4( t.-!$T.- a!a6"n )()-(ty 4 =IR 4"#t-(s "s #"n-a( ).as- "$-$ t.- ).as- "s #"n-a( 40n%t"n 4 t.- 4(-80-n%y$ T.- ).as-d"st(t"n %an /- -#"!"nat-d /y d-#ay"n s"na#s 4 a##4(-80-n%"-s 5"t. t.- sa!- a!0nt 4 t"!-$ In !any a0d"s"na# )(%-ss"n a))#"%at"ns t.- %n%-)t 4 #"n-a( ).as- "s

st("%t#y ad)t-d$

II$ IMPLEME

 NTATION

".  Mathematical analysis: #o

 !ind out the !ilter "oe!!icients

and !ilter lenth

="0(- ? s.5s t.- /as"% /#%k d"a(a! 4( a =IR 4"#t-( 4 #-nt. N$ T )-(at- n t.- )("( "n)0t sa!)#-s 5-"nt(d0%- t.- d-#ays$ T.- 0t)0t y9n at any t"!- n "s t.-

s0!!at"n 4 a## t.- d-#ay-d sa!)#-s !0#t")#"-d /ya))()("at- %-44"%"-nts /$  $

z-1

+

z-1

z-1

+ +

z-1

y(n)

x(n)

x xxxb

0  b

1  b

2  b

N-1

="0(- ?

T.- )(%-ss 4 s-#-%t"n t.- 4"#t-(s #-nt. and %-44"%"-nts "s%a##-d 4"#t-( d-s"n$ T.- a# "s t s-t t.s- )a(a!-t-(s s0%.t.at %-(ta"n d-s"(-d #5 )ass /and )a(a!-t-(s 5"## (-s0#t4(! (0nn"n t.- 4"#t-($ >- .a'- %ns"d-(-d < as t.- 4"#t-( 

(d-( "n t."s )a)-( and "t 'a("-s d-)-nd"n n t.- d-s"(-d

 )(%-ss"n n t.- s"na#$T.- d"44-(-nt"a# -80at"n 4( t.- 4"n"t- "!)0#s- (-s)ns- "s"'-n as

 y [n ]=∑k =0

 N −1

bk . x [n−k ] .

In t.- )(%-ss 4 4"nd"n t.- syst-! (-s)ns- "4 5- (-)#a%-7Bn 5"t. Bn t.-nẟ

 y [n ]=b0ẟ [n ]+b

1ẟ [n−1 ]+b

2ẟ [n−2 ]+…+bk ẟ[n− N ]

,

 y [n ]=b0ẟ [n ]+b

1ẟ [n−1 ]+b

2ẟ [n−2 ]+…+bk ẟ [n− N  ]

$

="na##y, 5- 4"nd t.- %-44"%"-nts t /- /2  . B2,/?  . B? and /k   . Bk$

 D.  Per!ormin% so!t computin%

usin% MA#&AB:

In t.- /-#5 )s-0d %d-, 5- .a'- add-d t5 s"n0s"da#s"na#s 4 ? kH6 and 2H6 4(-80-n%"-s 5"t. a (and! n"s-s"na# and t.- (-s0#t-d s"na# "s )(%-ss-d t.(0. a =IR 4"#t-("n 40n%t"n$ NN 1222F4( k ?:NN

71k st-)9.s"n?F

-n-(at- 1K H6 s"n- 5a'-2 st-)9.s"n1F -n-(at- 2H6 s"n- 5a'-  n? (andn9s"6-97?k,s"n#-s8(t9$2F -n-(at- n"s-s"na#

0? 71kJ72Jn?Fy? -734"(%!s"s3t0t3!#90?Fst-)9.s,B0?,y?F-nd=IR 4"#t-( 40n%t"n -734"(%!s"s3t0t3!#90? (d-( "s s-t t <and 5n t 2$<< and t.-s- 'a#0-s %an /- 'a("-d 5"t. 0( 

d-s"(-d (-s)ns-$ *-#5 "s t.- %d"n 4( t.- 40n%t"n40n%t"n y? -734"(%!s"s3t0t3!#90? )-(s"st-nt .F"4 "s-!)ty9.

Mat.-!at"%a# ana#ys"s: T 4"nd 0t t.-C-44"%"-nts$

P-(4(!"n S4t C!)0t"n: Us"n S"na#P(%-ss"n t#s #"k- MATLA*$

Insta##"n .a(d5a(- )a%ka-s: 4(! Mat.5(ks$

Cd- Cn'-(s"n t-%.n"80-s t t.- (-80"(-dHa(d5a(-$

C!)"#"n, L"nk"n, E7-%0t"n and D0!)"n

0s"n (-s)-%t"'- Int-(at-d D-'-#)!-ntEn'"(n!-nt

Page 3: This paper discusses how to effectively utilize the embedded processor by stretching it to the different applications and thereby obtaining the important qualities of digital electronics

7/23/2019 This paper discusses how to effectively utilize the embedded processor by stretching it to the different application…

http://slidepdf.com/reader/full/this-paper-discusses-how-to-effectively-utilize-the-embedded-processor-by-stretching 3/4

.ds)$=IR="#t-(9N0!-(at(,4"(?9<,2$<<F-ndy? st-)9., 0?F

-nd

=IGURE 1: SPECTRUM ANALYER PLOTTING INPUT SIGNALS ONCHANNEL ? AND =ILTERED OUTPUT ON CHANNEL 1

A4t-( (0nn"n t.- %d- "n MATLA*, t.- 0t)0t %an /-

/s-('-d n t.- s)-%t(0! ana#y6-( as s.5n "n 4"0(- 1 andt.- (d-( 4 t.- 4"#t-( %an /- !d"4"-d 0nt"# t.- d-s"(-d

(-s)ns- "s /s-('-d n t.- s)-%t(0! ana#y6-($

 E.  nstallin% 'ard(are

 Pac$a%es !rom Math Wor$s:

DSP Syst-! T#/7 S0))(t Pa%ka- "s a'a"#a/#- 4( ARMC(t-7 M P(%-ss(s and "t )('"d-s O)t"!"6-d C %d--n-(at"n 4( ARM C(t-7M )(%-ss(s 4(! Syst-!

/-%ts 5"t. MATLA* Cd-( and E!/-dd-d Cd-( ands0))(ts 4"7-d;)"nt data ty)- s0))(t 4( =IR 4"#t-(, "nARM C(t-7;M s0))(t )a%ka-$

 F. "ode con)ersion techni*ues

to the re*uired hard(are:

A4t-( n%- t.- d-s"(-d (-s)ns- "s /ta"n-d n t.- s)-%t(0!ana#y6-( 5"t. t.- %d-, 5- %an %n'-(t t.- %d- "nt t.-n-%-ssa(y 4(!at /y !d"4y"n t.- .a(d5a(- %n4"0(at"nss.5n "n 4"0(- < t.at "!)#"-s s-#-%t"n ty)- 4 t.-!"%(%nt(##-( n 5."%. t.- %n'-(t-d %d- "s t /-d0!)-d$

=IGURE <: TA* IN >HICH SPECI=ICATIONS TO *E ENTERED IN

CONVERTING THE CODE

=IGURE : TA* IN >HICH THE CONVERTED CODE IS AVAILA*LE

>ITH HEADER =ILES$

+.  Final e,ecution on an

 Embedded 'ard(are:

T.- -n-(at-d %d- %an /- %!)"#-d and -7-%0t-d n ARMC(t-7;M ta(-t /y 0s"n a 0s-( s-#-%t-d Int-(at-dD-'-#)!-nt En'"(n!-nt, 4( -7a!)#-, ARM KEIL0V"s"n IDE$

III$ CONCLUSIO

 N

>- 4a"# t -44-%t"'-#y 0t"#"6- t.- .a(d5a(- "n !any (-a#;t"!-syst-!s$ *0t "t 50#d .-#) 0s t a%."-'- 4-5 d""ta#-#-%t(n"%s Cnst(a"nts #"k- )-(4(!an%- and )5-($ T.-t.-!- 4 t."s )a)-( %n%-nt(at-s n .5 t "n%()(at- aD""ta# S"na# P(%-ss"n a))#"%at"n n a %(- M"%(;%nt(##-( as "t "s (-80"(-d t )(%-ss D""ta# s"na#s "n !any

a))#"%at"ns$ T."s )a)-( d"s%0ss-s and !ak-s "t %ns)"%00s5"t. ECG s"na# )(%-ss"n a))#"%at"n t.0. "t %an /-st(-t%.-d t any a))#"%at"ns 5.-(- t.- D""ta# S"na#P(%-ss"n "s (-80"(-d$

R E=ERENCES

Page 4: This paper discusses how to effectively utilize the embedded processor by stretching it to the different applications and thereby obtaining the important qualities of digital electronics

7/23/2019 This paper discusses how to effectively utilize the embedded processor by stretching it to the different application…

http://slidepdf.com/reader/full/this-paper-discusses-how-to-effectively-utilize-the-embedded-processor-by-stretching 4/4

B? IEEE TRANSACTIONS ON IN=ORMATION TECHNOLOGY IN*IOMEDICINE, VOL$ , NO$ ?, MARCH 122$

B1 IEEE TRANSACTIONS ON IN=ORMATION TECHNOLOGY IN*IOMEDICINE, VOL$ ?, NO$ , SEPTEM*ER 12?2$

B< IEEE TRANSACTIONS ON IN=ORMATION TECHNOLOGY IN*IOMEDICINE, VOL$ ?, NO$ <, MAY 12?2$

B .tt):QQ"n$!at.5(ks$%!Q$