Sunteți pe pagina 1din 22

AVR Prog MKII

MANUAL

AVR Prog MKII manual www.and-tech.eu

1. Programming in BASCOM and AVRDUDE a) Driver in !a""a!ion #) Con$ig%ra!ion 1. BASCOM '. AVRDUDE '. Programming in AVR S!%dio a) Driver in !a""a!ion #) Con$ig%ra!ion 3. *irm+are %,da!e -. Programmer in!er$a.e a) ISP .onne.!or #) 0PI and PDI .onne.!or .) 1%m,er and LED d) Boo!"oader #%!!on 2. Environmen! ,ro!e.!ion

3 3 & & ( 1) 1) 11 13 1/ 1/ 1/ 1/ 1( ')

A00EN0ION33 AVRISP m4II ,rogrammer i .om,a!i#"e +i!5 BASCOM and AVR DUDE environmen!. I$ 6o% +an! !o % e !5i ,rogrammer +i!5 AVR S!%dio7 6o% need !o %,da!e i! $irm+are 8in !r%.!ion in .5a,!er 39 *irm+are %,da!e)

AVR Prog MKII manual www.and-tech.eu

1. Programming in BASCOM
a) Driver in !a""a!ion A00EN0ION33 Be$ore 6o% .onne.! ,rogrammer !o .om,%!er 7 in !a"" AVR1%ngoUSB driver $ir !. "in49 5!!,9::+++.and;!e.5.,":MKII:AVR1%ngoUSB.e<e To connect programmer to computer, mini U ! ca"le i# needed $widel% u#ed with mo"ile de&ice# and camera#'. It i# recommended to u#e 1.(m long ca"le or #horter. To connect programmed circuit with programmer, I)*-1+ ca"le i# needed $pin# order on programmer'. A,ter %ou connect programmer, #%#tem #hould ,ind and in#tall appropriate dri&er#. I, I n#tallation# i# #ucce##,ul, de&ice -ungo $with AVRI P m.II and /in)ri&er' #hould "e a&aila"le in de&ice manager.

Picture 1 A00EN0ION33 =5en ,rogrammer i in !a""ed %..e $%""67 green LED diode 5o%"d !%rn on. I$ no!7 .onne.! ,rogrammer dire.!"6 !o PC or "a,!o, +i!5o%! >UB or do.4 !a!ion . In ome .a e 7 ,rogrammer doe n?! +or4 ,ro,er"6 +i!5 !5e e devi.e .

AVR Prog MKII manual www.and-tech.eu

Plea#e download Li#U #Do!Ne!@Se!%,.'.'./. "in49 http122www.and-tech.pl2MKII23i"U#")ot4et5 etup.2.2.(.e6e A,ter %ou accept licence agreement and cho#e in#tallation path, %ou #hould #ee window pre#ented in Picture 2. *hec. onl% ,ir#t po#ition 7 Runtime Files and click Next.

Picture 2 *hec. Instalall libusb-win32 with filter capabilitied? a# in Picture 0 and clic. Next.

AVR Prog MKII manual www.and-tech.eu

Picture 3

Picture !

tart 9ilter /i:ard. It i# a&aila"le in the ,ollowing path1 tart ;Program% ;3i"U#")ot4et ;li"U#"win02 ;9ilter /i:ard.

Picture AVR Prog MKII manual www.and-tech.eu

<

In window In#tall2Remo&e )e&ice 9ilter$#' choo#e ,ir#t option1 Install a de"ice filter- Picture =.

Picture # 4ow, plea#e ,ind de&ice AVRI P m.II, a# in Picture >.

Picture $ I, in#tallation i# #ucce##,ul, the ,ollowing window appear#1

Picture % Programmer i# in#talled correctl%. AVR Prog MKII manual www.and-tech.eu

#) Con$ig%ra!ion 1. BASCOM A00EN0ION33 AVR Prog MKII i %,,or!ed #6 BASCOM '.) and 5ig5er. I$ 6o% +or4 +i!5 o"der ver ion ,"ea e % e addi!iona" ,rogram AVRDUDE. /e need to con,igure programmer to ma.e it wor. with !A *?M en&ironment. Plea#e, #tart !A *?M and ,ind programmer #etting# $?ption# ;Programmer'. 4ow ,ind &'(pr)* Pr)*rammer + ,-RI'P mkII in the ,ollowing li#t $Picture @'.

Picture 0 *hec. U ! and clic. ./.

AVR Prog MKII manual www.and-tech.eu

>

Picture 11 *lic. Pr)*ram chip ic)n in )rder t) pr)*ram circuit.

Picture 11

AVR Prog MKII manual www.and-tech.eu

Picture 12 Flash2 33PR.42 5)ck and Fuse b))kmarks sh)w state )f 93A A, BBPR?M memor% and ,u#e "it# a,ter #ending current program to proce##or. !utton1 - identi,ie# proce##or - chec.# i, proce##orC# memor% i# empt% - era#e# proce##orC# memor% and #end# new program

AVR Prog MKII manual www.and-tech.eu

'. AVRDUDE In order to u#e AVR)U)B en&ironment, plea#e download avrd%de;2./;+3'@avrd%de; AUI@1.).2 "in49 5!!,9::+++.and;!e.5.,":MKII:avrd%de;2./.Bi, A,ter %ou e6tract it, turn on graphical u#er inter,ace1 a"rdude-6&I.exe and then choo#e ,rom li#t Pr)*rammer7 ,tmel ,-R I'P mkII 8a"rispmkII9, ,rom li#t P)rt7 - usb and ,rom :e"ice ; choo#e model o, proce##or, %ou want to program.

Picture 13

AVR Prog MKII manual www.and-tech.eu

1+

'. Programming in AVR S!%dio


a) Driver in !a""a!ion A00EN0ION33 Be$ore 6o% .onne.! ,rogrammer !o .om,%!er 7 in !a"" AVR1%ngoUSB driver $ir !. "in49 5!!,9::+++.and;!e.5.,":MKII:AVR1%ngoUSB.e<e To connect programmer to computer, mini U ! ca"le i# needed $widel% u#ed with mo"ile de&ice# and camera#'. It i# recommended to u#e 1.(m long ca"le or #horter. To connect programmed circuit with programmer, I)*-1+ ca"le i# needed $pin# order on programmer'. A,ter %ou connect programmer, #%#tem #hould ,ind and in#tall appropriate dri&er#. I, in#tallation# i# #ucce##,ul, de&ice -ungo $with AVRI P m.II and /in)ri&er' #hould "e a&aila"le in de&ice manager.

A00EN0ION33 =5en ,rogrammer i in !a""ed %..e $%""67 green LED diode 5o%"d !%rn on. I$ no!7 .onne.! ,rogrammer dire.!"6 !o PC or "a,!o, +i5o%! >UB or do.4 !a!ion . In ome .a e 7 ,rogrammer doe n?! +or4 ,ro,er"6 +i!5 !5e e devi.e .

#) Con$ig%ra!ion AVR Prog MKII manual www.and-tech.eu 11

To con,igure AVR Prog MKII, plea#e #tart AVR tudio. ProgrammerC# option# are a&aila"le in Tool#-;AVR Programming. $Picture 18'.

Picture 1 9rom <))l list ch))se ,-RI'P mkII. 3i#t :e"ice #peci,ie# model o, proce##or , which %ou want to program and "utton ,ppl= sa"es settin*s.

Picture 1#

AVR Prog MKII manual www.and-tech.eu

12

Read butt)ns read I) and &oltage o, programmed proce##or.

Picture 1$ To program proce##or, ,ind Memor% "oo.mar. 7 Picture 1>.

Picture 1%

AVR Prog MKII manual www.and-tech.eu

10

3. *irm+are %,da!e
,-RI'P mkII i# originall% compati"le with BASCOM and AVR DUDE. I$ 6o% % e !5e e ,rogramme 7 ,"ea e omi! !5i .5a,!er. I, %ou want to ma.e programmer compati"le with AVR tudio, %ou need to update it# ,irmware according to thi# in#truction. To update the ,irmware %ou will need a cop% o, program 93IP1 "in49 http122www.and-tech.pl2MKII29lipIn#taller-0.8.<.1+=.e6e and new ,irmware1 1+111=5AVRI P5#tudio.:ip "in49 http122www.and-tech.pl2MKII21+111=5AVRI P5#tudio.:ip Plea#e ,ollow #tep "% #tep to get the new ,irmware uploaded to %our target programmer u#ing 93IP. To put the AVRPR?D MKII into )9U "ootloader mode, pu#h "ootloader "utton. The green led #hould go out indicating it i# in "ootloader mode. 4ew hardware #hould "e ,ound.

Picture 10

Plea#e choo#e1 Install fr)m a list )r specific l)cati)n 8,d"anced9 and ,ind the ,ollowing
AVR Prog MKII manual www.and-tech.eu

18

path1 *12Program 9ile# 2 Atmel 2 9lip 0.8.0 2 u#". - Picture 2+

Picture 21

*lic. ./ and #tart 93IP program.

AVR Prog MKII manual www.and-tech.eu

1<

*lic. on the CchipC icon or C)e&ice--; electC menu option and #elect the de&ice ,rom the menu $at@+u#"1=2' 7 Picture 22.

Picture 22

*lic. on the CU ! ca"leC icon and #elect CU !C ,rom the menu and connect to the de&ice.

AVR Prog MKII manual www.and-tech.eu

1=

*lic. .pen.

Picture 2!

3oad the new he6 ,ile ,rom the C3?A) he6 ,ileC icon or ,rom the C9ile--;3?A) ABE ,ileC menu. *lic. on the CRU4C "utton in the lower le,t corner.

AVR Prog MKII manual www.and-tech.eu

1>

)?4BF Gour programmer #hould "e up to date now.

*lic. 'tart ,pplicati)n to re#tart programmer.

A00EN0ION33 I$ 6o% +an! 6o%r ,rogrammer !o +or4 again +i!5 BASCOM and AVR DUDE7 $o""o+ !5i in !r%.!ion again7 #%! % e !5e $o""o+ing $irm+are9 1+111=5AVRI P5a&rdude.he6 "in49 http122www.and-tech.pl2MKII21+111=5AVRI P5a&rdude.:ip

AVR Prog MKII manual www.and-tech.eu

1(

-. Programmer in!er$a.e
a) ISP .onne.!or Programmer i# eHuipped with 1+-pin I P connector $#tandard KA4)A'. Picture 20 pre#ent# pin# order.

#) 0PI and PDI .onne.!or econd 1+-pin I P connector con#i#t# o, TPI connector $,or Attin% programming' and P)I $,or At6mega programming'.

.) 1%m,er and LED diode

Picture 2%

AVR Prog MKII manual www.and-tech.eu

1@

1%m,er 9 U !-P?/BR 7 #uppl% programmed circuit ,rom programmer <& 7 #uppl% programmed circuit with <V 0.0& 7 #uppl% programmed circuit with 0,0V LED diode 9 RBA)G 7 programmer turn on and read% !U G 7 programmer "u#% $wor.ing' d) Boo!"oader #%!!on

Thi# "utton put# AVR Prog MKII into )9U "ootloader mode 7 the green led goe# out

Picture 20

AVR Prog MKII manual www.and-tech.eu

2+

2. Environmen! ,ro!e.!ion
The cro##ed-out wheeled "in mean# that within the Buropean Union the product mu#t "e ta.en to #eparate collection at the product end-o,-li,e. Thi# applie# to %our de&ice "ut al#o to an% enhancement# mar.ed with thi# #%m"ol. )o not di#po#e o, the#e product# a# un#orted municipal wa#te.

AVR Prog MKII manual www.and-tech.eu

21

NO0E AVRPROA MKII i# powered "% LU*A "i#rar6, which i# currentl% relea#ed under the MIT licence $http122www.,ourwalledcu"icle.com23U9A.php'.

AVR Prog MKII manual www.and-tech.eu

22

S-ar putea să vă placă și