Sie sind auf Seite 1von 13

SBC_ARM9 User Manual

Shraddha Engineers. Pune.

SBC ARM9 Microcontroller Board. User Manual.

Document Version 1.0. Revision 0.1.

Copyright2012.Shraddha Engineers.

age 1

SBC_ARM9 User Manual

Section I: Hardware Introduction. The ARM Controller. S C!ARM" oard #eatures. loc$ Diagram.

#unctional descri%tion o& S C!ARM" oard.

Section II: Software. 'sing (eil IDE &or So&t)are Develo%ment. 'sing *aunchPad IDE &or Develo%ment. 'sing the Sam+ A So&t)are &or %rogramming the memor,.

Copyright2012.Shraddha Engineers.

age 2

SBC_ARM9 User Manual

Introduction. Toda, )e see a lot o& ne) and ama-ing gadgets in the mar$et. .e see high end mo/ile %hones0 ta/let PC0 1et/oo$ PC and state o& the art electronic devices. It )ill ama-e us that all these devices are using %rocessors )hich are having ARM Micro%rocessor inside it. ARM micro%rocessor technolog, is the most e&&icient technolog, availa/le toda, &or the small devices mar$et. S C!ARM" Microcontroller (it is s%eci&icall, designed $ee%ing in mind the needs o& students0 to understand and learn the architecture o& the ARM 2 micro%rocessor. The aim o& the microcontroller $it is to ma$e the student understand ho) the ARM" micro%rocessors are designed and used. The S C!ARM" $it has inter&aced the ARM" core /ased S3C4s,stem on chi%50 to various %eri%herals on the /oard. Multi%le %eri%herals are inter&aced to P3RT Pins o& the S3C. Devices li$e *ED6s and *CD0 I7C inter&ace /ased memor, devices0 RTC0 SD8MMC Card inter&ace0 Matri9 (e,%ad0 ADC0 DAC0 gra%hical *CD0 Ste%%er motor0 etc are also inter&aced on the /oard. Di&&erent %eri%herals can /e selected /, using :um%ers so multi%le9ing o& devices has /een %ossi/le. ARM Controller. The ARM Processor is a RISC4Reduced Instruction Set Com%uter5 machine. The RISC instruction set is %rimaril, $no)n &or smaller num/er o& instructions and higher through%ut at a lo)er %o)er. The ARM Architecture is characteri-ed /, the &ollo)ing; 1. A load+store architecture. 7. #i9ed length <7 /it instructions in ARM Mode and 1= /it instructions in T>'M Mode. <. ? stage %i%eline. There are several modes o& o%eration. In each mode there are 1= registers that are accessi/le to the user %rograms. A Current Program Status Register 4CPSR5 is also availa/le )hich contains all the mode /its and the interru%t /it and the condition /its. The modes allo) the user %rogram restricted access to certain resources o& the %rocessor. #ollo)ing are the modes in the ARM Processor. 'ser Mode @ This is the main o%erating mode &or the %rocessor. Program running in this mode can achieve isolation and %rotection &or the resources. #ast Interru%t Processing Mode 4#IA5@ This mode is entered )hen the #ast interru%t is received. This is called a &ast interru%t as it has a dedicated vector address &rom )here the %rogram can immediatel, e9ecute )ithout an, latenc,. 1ormal Interru%t Processing mode 4IRA5@ Interru%t &rom other sources )ill ma$e the %rocessor enter this mode. So&t)are Interru%t Mode@ )hen the %rocessor encounters a So&t)are Interru%t Instruction this mode is entered. So&t)are Interru%ts are a standard )a, to enter the %rivileged mode &rom 'ser Mode. 'nde&ined Instruction mode@ )hen a %rocessor attem%ts to e9ecute a instruction )hich neither its main core or the co+%rocessor can e9ecute then this mode is entered. S,stem mode@ Privileged o%erating s,stem tas$ can /e run &rom this mode. A/ort Mode@ this mode is entered )hen a data &ault is occurred.
Copyright2012.Shraddha Engineers. age !

SBC_ARM9 User Manual

The ? Stage Pi%eline. There is a ? stage %i%eline in the ARM 2 %rocessor. 1. #etch @ #etch the instruction &rom memor,. 7. Decode @ Decode the instruction . <. E9ecute.@ E9ecute the instruction. B. Memor,@ data memor, access. ?. .rite@ Register .rite /ac$. Due to the ? stage %i%eline the ARM %rocessor is a/le to e&&ectivel, e9ecute 1 instruction &or ever, cloc$ c,cle. Thus it has a ver, high through%ut and %er&ormance. The ARM Processor su%%orts the &ollo)ing Data T,%es. C it signed and unsigned /,te. 1= it signed and unsigned >al& )ord aligned on 7 /,te /oundar,. <7 /it signed and unsigned .ord aligned on B /,te /oundar,. The ARM Processor su%%orts /oth the ID Endian and *ittle Endian Memor, alignment. Features of the AT91SAM9 !" S#C fro$ ATM%&. The AT"1SAM"7=9 microcontrollers are /ased on the 1=8<7 /it ARM" EES+S CP'. The microcontroller su%%orts e9ternal memories such as 1A1D #lash and SDRAM. SRAM &or volatile data storage is also %rovided. Along )ith the core0 man, %eri%herals are also su%%orted on the AP /us. The S3C is %ac$aged in a 70C %in *A#P chi%. (e, #eatures o& the S3C are; ARM"EES+S microcontroller &or ARM and Thum/ Mode )or$ing at 1C0 M>-. Memor, Management 'nit 4MM'5. E9ternal Memor, inter&ace &or 1and #lash0 SDRAM0 Static Memories and Com%act #lash 'S Device and >ost. 108100 M/%s Ethernet MAC Controller. >igh S%eed memor, card inter&ace. T)o Master F Slave SPI. S,nchronous Serial Controller. T)o <7 /it Timer Counter. I7C Inter&ace. Multi%le 'ARTS. B Channel 10 it ADC. T)o B( ,te SRAM and one <7( ,te internal R3M. "= Programma/le I3 lines.
Copyright2012.Shraddha Engineers. age "

SBC_ARM9 User Manual

Features of SBC'ARM9 Microcontroller (oard. The S C!ARM" microcontroller /oard has /een s%eci&icall, designed $ee%ing in mind the needs o& students &or learning the ARM architecture. The /oard gives a com%lete overvie) &or inter&acing various %eri%heral devices )hich are used in the industr, and consumer devices ali$e. A hands+on )ith the /oard )ill develo% in the student the e9%erience to design and im%lement various devices and %roducts /ased on the ARM Microcontroller. #ollo)ing are the &eatures o& the S C!ARM" Microcontroller /oard.

1. 2. !. ". #. $. %. &.
".

ARM"EES+S microcontroller &or ARM and Thum/ Mode )or$ing at 1C0 M>-. ? Volt 3%eration. T)o 'ARTS )ith RS7<7 drivers. 3n+ oard 1=97 character *CD module. 3n+ oard 1= (e, Matri9 (e,%ad. C general %ur%ose *ED6s. RTC )ith I7C inter&ace )ith %o)er /ac$u%. EEPR3M )ith I7C inter&ace. SD8MMC card inter&ace.

10. 10 /it on Chi% ADC inter&aced to E9ternal voltage source.

11. 3%tional 17CG=B gra%hical *CD Dis%la, module.

Copyright2012.Shraddha Engineers.

age #

SBC_ARM9 User Manual

Board Bloc) *ia+ra$.

Ethernet

USB *e,i)e

USB -ost

.nterrupt
Main Board.

Reset

C+M 0

S*RAM A'91SAM92$0 ARM(9 Mi)roController S*RAM

C,U Card.
Copyright2012.Shraddha Engineers. age $

SBC_ARM9 User Manual

Functional *escri-tion of SBC'ARM9 Board. 1. &%*. C general %ur%ose user *ED6s are %rovided on the S C!ARM" oard in common cathode con&iguration.*ED1 thru *EDC are inter&ace to Port P 1= thru P 7<. In order to ma$e the *ED 31 )e have to give *ogic H0I4*3.5.

&%* *ED1 thru *EDC

,ort ,ins P 1= thru P 7<

. .e/-ad. A B9B Matri9 (e,%ad is %rovided on the S C!ARM" /oard. The (e,%ad is inter&aced to the DPI3 %ins o& the %rocessor.

.e/ C3*0 C3*1 C3*7 C3*< R3.0 R3.1 R3.7 R3.<

,ort ,ins P 7B P 7? P 7= P 72 P 7C P 7" P <0 P <1

0. I C Interface. The I7C inter&ace &rom the %rocessor has /een /rought out on the S C!ARM" /oard. The Devices such as EEPR3M 4AT7BC995 and RTC 4MCP2"B115 )ith I7C inter&ace have /een integrated on the /oard.

I C ,ins SDA 8 T.D SC* 8 T.C(

,ort ,ins PA7< PA7B

Copyright2012.Shraddha Engineers.

age %

SBC_ARM9 User Manual

". S*MMC Interface.

The SDMMC inter&ace &rom the %rocessor is availa/le on the S C!ARM" /oard. S*MMC ,ins SD!CMD SD!C*( CD .P SD!D0 SD!D1 SD!D7 SD!D< ,ort ,ins PA1 4MCCD 5 PAC 4MCC(5 PA7 PA" PA0 4MCD 05 PA? 4MCD 15 PAB 4MCD 75 PA< 4MCD <5

1. UARTS 2C#M " and C#M 13. T)o 'ART inter&aces &rom the %rocessor are availa/le &or the user on the S C!ARM" /oard. UART ,ins C3M0!T9D C3M0!R9D C3M1!T9D C3M1!R9D ,ort ,ins P 1? 4DT9D5 P 1B 4DR9D5 P = 4T9D05 P 2 4R9D05

!. %4ternal Interru-t. In order to im%lement and test the e9ternal interru%t &eature o& the %rocessor a S)itch /utton 4S.15 has /een im%lemented on the S C!ARM" /oard. %4ternal Interru-t ,in EGT!I1T0 5. ,ort ,in PC1?

#n Chi- A*C. The %rocessor on the S C!ARM" contains a 10 /it ADC . The /oard has %rovided the user )ith 7 channels. Analog voltage is %rovided using %otentiometers P1 and P7. A*C ,ins AD0 AD1 ,ort ,ins PC0 PC1

Copyright2012.Shraddha Engineers.

age &

SBC_ARM9 User Manual

6.

USB Interface. The %rocessor on the S C!ARM" has a on chi% 'S controller and driver inter&ace. The S C!ARM" has connected this inter&ace to a 'S device connector 4'S + connector5 and >ost Connector. *e7ice Interface.

t,%e

USB Pins /BUS *0 *(


Host Interface.

Port Pins C# ** **M

USB Pins -*MA -* A -*MB -* B

Port Pins -*MA -* A -*MB -* B

". &C* Interface. A *CD Inter&ace 4C1C5 is availa/le on the S C!ARM" /oard. LCD Connector Pins 1C*_*0 1C*_*1 1C*_*2 1C*_*! 1C*_*" 1C*_*# 1C*_*$ 1C*_*% 1C*_CS1 1C*_CS2 1C*_RS' 1C*_E2 1C*_B1 1C*_R3 1C*_*. Port Pins A$ A% B$ B% B& B9 B10 B11 C$ C% C& C9 C" C10 C11

Copyright2012.Shraddha Engineers.

age 9

SBC_ARM9 User Manual

Section II: Software.

1.

Usin+ .eil I*% for Software *e7elo-$ent.

#or the develo%ment o& %rograms &or the S C!ARM" /oard (eil uVisionB IDE can /e used. It is a integrated develo%ment environment )hich allo)s the user to develo% the %rograms &or the selected microcontroller and also %rovides a simulation environment )here the user can dr, test the develo%ed %rograms. #ollo)ing are the ste%s )hich are to /e &ollo)ed &or develo%ing %rograms in the (eil uVision B IDE. Buildin+ a new -ro8ect in .eil for SBC'ARM9. i. Create a new -ro8ect.

3%en the (eil uVisionB IDE . Select ,ro8ect Ta/. Select 9ew u:ision ,ro8ect. Save the Pro:ect in the desired &older. Ma$e sure the e9tension &or the &ile is .u7-ro8.

ii. Select tar+et *e7ice. Select target device as ATME*l+J AT"1SAM"7=0. A&ter ,ou select the Target Device0 the IDE )ill as$ i& the de&ault startu% code &or the selected device should /e included in the %ro:ect. Select 9#. The /lan$ %ro:ect )ill /e created and read, to use. iii. Tar+et Settin+s for SBC'ARM9. Select ,ro8ect Ta( ; < #-tions for Tar+et =Tar+et 1>. Tar+et Ta( Gtal &reKuenc, @ 70 MhCode Deneration @ ARM Mode. IR3M @ on+chi%@Start 4091000005 and Si-e4 09C000 5. IRAM @on+chi%@ Start 4097000005 and Si-e 40910005.

&istin+ Ta(. Select all *istings. User Ta(.

Run User Programs Before Compilation of a C, C++ File 4rite in the 5o6 Run 718 at91sam9260 NOFPUT

Run User Programs After Build/Rebuild 3rite in the 5o6 Run71 and 'i)9 the 5o68 fromelf.exe !in o "L#L.!in $L
Copyright2012.Shraddha Engineers. age 10

SBC_ARM9 User Manual

C?C@@ Ta( Preprocessor Symbols De&ine @at91sa$9 !" 9#F,UT Select Ena/le ARM8Thum/ Inter)or$ing in Misc Controls@ F gnu

ASM Ta( Select Ena/le ARM8Thum/ Inter)or$ing &in)er Ta(. 'nselect 'se Memor, *a,out &rom Target Dialog. In Scatter #ile @ select sdra$.sct &ile &rom ,our &older 4availa/le in e9am%les %rovided /, us5.

In Misc Controls @ +;entr/ resetHandler

i7. 9ew source and header files. Select #ile +J 1e) and save the &ile it in the allocated &older. I& it is a C &ile save the &ile )ith e9tension filena$e.c and li$e)ise &or .h &iles. In the %ro:ect )indo) Right Clic$ on Source ArouSelect Add Files to Source +rou-1. Select the desired &iles and clic$ Add.

7. Co$-ile the ,ro8ect. Select Pro:ect Ta/. Select and Clic$ Build Tar+et. Chec$ the uild 3ut%ut )indo) &or result and errors. I& the /uild is success&ul then the BI9 &ile )ill /e created.

Copyright2012.Shraddha Engineers.

age 11

SBC_ARM9 User Manual

2.

Usin+ &aunch,ad I*% for Software *e7elo-$ent. #or the develo%ment o& %rograms &or the S C!ARM" /oard (eil *aunchPad IDE can /e

used. It is a integrated develo%ment environment )hich allo)s the user to develo% the %rograms &or the selected microcontroller and also %rovides a environment )here the user can develo% the a%%lication %rograms &or Em/edded *inu9. #ollo)ing are the ste%s )hich are to /e &ollo)ed &or develo%ing %rograms in the *aunchPad IDE. Buildin+ a new -ro8ect in &aunch,ad I*% for SBC'ARM9.

*ou5le Cli)9 the 1aun)h ad .*E to start . 'o )reate a Ne% Pro&ect go to ro:e)t ; 2e4 ; C ro:e)t A pro:e)t )on<iguration 4indo4 4ill open. =ill in the ro:e)t 2a>e. Sele)t 'arget as '()9. Sele)t /ariant as 'T91S')9260. Sele)t +perating Syste> as None. *+m,ortant Note -+f .o/ are 0e1elo,in2 ,ro&ect for Lin/x OS select OS as Lin/x3 Sele)t Build +ptions as SD(').

Cli)9 Next an0 t4en Finis4. A ne4 pro:e)t 4ill 5e )reated.


Addin+ a new C Source File : Do to #ile Ta/ 1e) C Source. Addin+ a new HeaderFile @ Do to #ile Ta/ 1e) >eader #ile.

Com%iling the Pro:ect@ Right Clic$ and select the Pro:ect &rom the C8CLL Pro:ects Ta/. Select uild Con&iguration as Release. Then Clic$ on Build ,ro8ect. If the -ro8ect is co$-iled successfull/ then the (in file will (e +enerated in the Release Folder.
Copyright2012.Shraddha Engineers. age 12

SBC_ARM9 User Manual

7. Usin+ the Sa$;BA Software for -ro+ra$$in+ the $e$or/. #ollo)ing are the ste%s to do)nload the /inar, &ile generated /, (eil or *aucnh%ad So&t)are into the SDRAM o& the oard using SAM+ A Connect the Board to the ,C usin+ the serial ca(le and USB Ca(le2USB *e7ice Connector C913. 1. Dou/le clic$ the SAM+ A e9e . 7. In the Select the Connection ta/ select BUSBBARM" <. Select the oard as AT"1SAM"7=0+E(.

The SAM+ A inter&ace )ill o%en. Clic$ Connect utton. 7. Do to the SAM+ A Inter&ace S*RAM Ta(. In the Scripts section select %na(le S*RAM . Clic$ E9ecute. Do to the Download/ Upload File Section and Select the .Bin &ile to /e do)nloaded. and clic$ Send File. <. A&ter the #ile is Success&ull, do)nloaded go the SAM+ A %rom%t and t,%e +o "4 """"""". C. The -ro+ra$ will +et e4ecuted.

Copyright2012.Shraddha Engineers.

age 1!

Das könnte Ihnen auch gefallen