caramoan tour package

caramoan tour package

caramoan tour package

  • Installing
  • Start
  • Schematic
  • Package Tour
  • C++ Programming
  • Diagram
  • Password
  • Advantages of solar panels
  • Electronic parts store
  • Forum
  • Installing
  • Start
  • Schematic

Author Topic: The AVR32 Tutorials  (Read 3480 times)

Offline motion55

  • Technical People
  • Gas Turbine
  • *****
  • Posts: 2625
  • Pogi/Ganda Points: 480
  • Gender: Male
  • Been at this longer than you've been alive.
The AVR32 Tutorials
« on: November 11, 2014, 10:31:53 AM »
I'd like to start thread about this family of 32-bit MCUs from Atmel. The name implies it is a descendant of the AVR MCUs. I don't think so. The only things it shares with the AVR MCUs are both come from Atmel and you can use the same Atmel Studio IDE with free C/C++ compiler. Otherwise panibagong learning experience.

Arduino chose the ARM Cortex M0 based SAMD21 device instead of the AVR32 for their next generation 32-bit Arduino Zero board. So expect less support from a smaller user base if you plan to use this MCU. Nevertheless there are advantages of the AVR32. Unlike the SAMD21, the AVR32 comes preprogrammed with a bootloader. So you can load your program without a programmer. The AVR32 comes with USB host and device interface and an Ethernet MACB interface. So it is closer than the Arduino Zero to implementing IOT projects.

For the tutorials, I'd will be using eGizmo's coming soon product, the 32-bit AT32UC3C2128C/AT32UC3C264C based Mini board shown in the picture below.



I was told it will be reasonably priced to encourage its use.

What is in it for me? I have been using the AVR32 for about 5-years now. I'd just like to share my experience.



"Set your mind free!"

Philippine Electronics Forum

The AVR32 Tutorials
« on: November 11, 2014, 10:31:53 AM »
  • Package Tour
  • C++ Programming
  • Diagram
  • Password
  • Advantages of solar panels
  • Electronic parts store
  • Forum

Offline Super zHero

  • Hydroelectric
  • ***
  • Posts: 3459
  • Pogi/Ganda Points: 208
  • That's not me but might as well be.
Re: The AVR32 Tutorials
« Reply #1 on: November 11, 2014, 12:01:29 PM »
abang ako dito.....

Offline danny

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 6709
  • Pogi/Ganda Points: 410
  • Gender: Male
Re: The AVR32 Tutorials
« Reply #2 on: November 11, 2014, 12:04:37 PM »
me too 
danny

Offline labgruppen

  • Diesel Generator
  • *
  • Posts: 1109
  • Pogi/Ganda Points: 116
Re: The AVR32 Tutorials
« Reply #3 on: November 11, 2014, 12:21:00 PM »
Subscribing.. Napa wow ako sa avr32 ng e-gizmo nung una kong makita sa website nila.

Offline _basura_man()

  • Diesel Generator
  • *
  • Posts: 1146
  • Pogi/Ganda Points: 48
  • Think outside the box
Re: The AVR32 Tutorials
« Reply #4 on: November 11, 2014, 12:37:12 PM »
thank you sir motion55,subscribing
PICMicro Afficionado

Online zirlou21

  • Size D Battery
  • ******
  • Posts: 382
  • Pogi/Ganda Points: 28
  • Gender: Male
  • I wish there is GOD...
Re: The AVR32 Tutorials
« Reply #5 on: November 11, 2014, 12:39:59 PM »
 :)
Let's doh it.
...NO OFFENSE pls..usapang teknikal lang,walang personalan.....

Offline motion55

  • Technical People
  • Gas Turbine
  • *****
  • Posts: 2625
  • Pogi/Ganda Points: 480
  • Gender: Male
  • Been at this longer than you've been alive.
Re: The AVR32 Tutorials
« Reply #6 on: November 11, 2014, 01:24:25 PM »
I'll start with the hardware. Below is the schematic diagram (click to get the full size) of the Mini board:



It is basically an AT32UC3C264C or AT32UC3C2128C mounted on a small board with connectors to access all pins (breakout), a JTAG connector for debugging and programming and a mini USB (OTG) connector. There is also a 12MHz crystal needed for USB clocking.

The I/O connectors are standard 0.1" pitch connector so you can in turn mount the mini board over a prototyping board for your projects. Unfortunately, the LED on board is permanently powered. Di pwede gamitin sa pinaka unang project na binalak ko which is the LED Blinky.


"Set your mind free!"

Online zirlou21

  • Size D Battery
  • ******
  • Posts: 382
  • Pogi/Ganda Points: 28
  • Gender: Male
  • I wish there is GOD...
Re: The AVR32 Tutorials
« Reply #7 on: November 11, 2014, 01:32:59 PM »
 :)nice start....
request lang paki number tag each episode so we can not miss a series,thnx
...NO OFFENSE pls..usapang teknikal lang,walang personalan.....

Offline marcelino

  • Global Moderator
  • Solar Power Satellite
  • *****
  • Posts: 6482
  • Pogi/Ganda Points: 297
  • ...keep moving forward! - Robinson's
Re: The AVR32 Tutorials
« Reply #8 on: November 11, 2014, 08:29:34 PM »
Thank you sir.
Although, I have already started with the blinky, I'm also subcribing.
I know I will learn more in here.
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Offline Born2BeWired

  • Technical People
  • Diesel Generator
  • *****
  • Posts: 1567
  • Pogi/Ganda Points: 217
  • Gender: Male
  • De omnibus dubitandum
Re: The AVR32 Tutorials
« Reply #9 on: November 11, 2014, 08:39:31 PM »
Heto na ang pinakahihintay natin! Many thanks sir motion!
Electronics <- Once you got a taste of it, you will never get enough.

Insanity <- Doing the same thing, expecting different results.

"The more I learn, the more I am humbled."

Offline paranz

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4575
  • Pogi/Ganda Points: 178
  • Gender: Male
  • 1/4W resistor specialist
    • RapidSignal Electronics
Re: The AVR32 Tutorials
« Reply #10 on: November 11, 2014, 08:50:09 PM »
seriously subscribing...
PIC16 Programming Tutorial using MPLAB and Hi-Tech C
www.rapidsignalph.com/tutorials/pic16-tutorials

Arduino & gizDuino Tutorials
www.rapidsignalph.com/tutorials/arduino-tutorials

Offline jaagut

  • Diesel Generator
  • *
  • Posts: 1614
  • Pogi/Ganda Points: 254
  • attitude determines altitude.
Re: The AVR32 Tutorials
« Reply #11 on: November 11, 2014, 10:25:01 PM »
Looking forward...
That which is presented without evidence can be dismissed without evidence.

Vocabulary: Pook-sapot = website, Pantablay = charger, Sulatriniko = e-mail, Panghibayo = amplifier, Pang-ulong hatinig = headset, Panginain = browser, Miktinig = microphone

Offline motion55

  • Technical People
  • Gas Turbine
  • *****
  • Posts: 2625
  • Pogi/Ganda Points: 480
  • Gender: Male
  • Been at this longer than you've been alive.
Re: The AVR32 Tutorials
« Reply #12 on: November 12, 2014, 06:00:32 AM »
Salamat sa inyong enthusiasm. I wasn't expecting that.

I'll start with the simplest Blinky project para just to get our feet wet and the next project we'll go straight to making a USB project. Warning: the learning curve for me was steep. That's why if you plan on using the AVR32, you will really need this turtorial.

To be honest, di ko pa nagawa ang mga tutorial materials and so medyo magiging mabagal ang dating posts. I also have a real job you know.

To be able to follow, you will need to install the latest Atmel Studio v6.2 SP1.

http://www.atmel.com/tools/atmelstudio.aspx

Kung mayroon kayong AVR32 device then kailangan din ng FLIP 3.4.7 to use the bootloader.

http://www.atmel.com/tools/flip.aspx

"Set your mind free!"

Offline motion55

  • Technical People
  • Gas Turbine
  • *****
  • Posts: 2625
  • Pogi/Ganda Points: 480
  • Gender: Male
  • Been at this longer than you've been alive.
Re: The AVR32 Tutorials
« Reply #13 on: November 12, 2014, 11:02:06 AM »
Creating a new AVR32 project.

If you installed the latest Atmel Studio 6.2 then we are now ready to create our first AVR32 project. Let's start easy with the Blinky project.

Step 1. Launch Atmel Studio and on the menu select File->New->Project. The New Project dialog will appear. On the dialog, select "GCC C ASF Board Project". Fill in the name "eGizmo_Blinky" for the project and press OK.



Step 2. After choosing "GCC C ASF Board Project", select the device. For the board sample I have, I select the AT32UC3C264C.



The Atmel Studio will then create the project eGizmo_Blink in the desired location. So far this is standard procedure when using the Atmel Studio.

The next step will be to run the ASF Wizard to add the modules you will be using on the project.


"Set your mind free!"

Offline Mayor Johnaray

  • Gas Turbine
  • **
  • Posts: 2267
  • Pogi/Ganda Points: 244
Re: The AVR32 Tutorials
« Reply #14 on: November 12, 2014, 11:54:43 AM »
Subs UP!

Offline >>>^¿¿¿^<<<

  • Solar Power Satellite
  • *****
  • Posts: 12393
  • Pogi/Ganda Points: 624
  • ¿¿¿
Re: The AVR32 Tutorials
« Reply #15 on: November 12, 2014, 11:56:40 AM »
subs..
http://www.elab.ph/forum/index.php?topic=41860.0 My DIY transformer... ? ? ? Test Build Uli
http://www.elab.ph/forum/index.php?topic=33717  I2c / spi programmer
http://www.elab.ph/forum/index.php?topic=37150.0 Lcr esr makikigulo rin ba kayo ??? Test Build
http://www.elab.ph/forum/index.php?topic=29963.0 Esr collection na malamig
http://www.elab.ph/forum/index.php?topic=25854.0 Basic C++ Programming Tutorials by Prof Asimo
We only live once,treasure those we love, make friends not enemies and keep our family closer. And we will be at peace.

Offline akhen

  • Diesel Generator
  • *
  • Posts: 1305
  • Pogi/Ganda Points: 47
  • Gender: Female
  • "Learning is good but application is 100x better!"
Re: The AVR32 Tutorials
« Reply #16 on: November 12, 2014, 12:18:15 PM »
Wow. Subscribing...

Online glutnix_neo

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 6423
  • Pogi/Ganda Points: 208
  • Gender: Female
  • I kick ass
    • Underground Workbench
Re: The AVR32 Tutorials
« Reply #17 on: November 12, 2014, 12:25:12 PM »
subs lang...
Peace again. Amen!

Offline motion55

  • Technical People
  • Gas Turbine
  • *****
  • Posts: 2625
  • Pogi/Ganda Points: 480
  • Gender: Male
  • Been at this longer than you've been alive.
Re: The AVR32 Tutorials
« Reply #18 on: November 12, 2014, 01:14:49 PM »
Using the ASF Wizard

Pagkatapos ma-create ang project, take time to examine the contents.



Sa kanan ay ang "Solution Explorer".  Although wala pang magagawa ang project in terms of execution, mayroon na ring organization at file structure ang project. The center, pwede mo makita ang contents ng code. In this case it's the main.c file. Except for the call to board_init() wala pang laman. Katunayan, walang laman din si board_init() at this point. If you build (compile) this project, it will compile without errors.

Remember na si Microsoft gumawa nitong IDE. Kung gusto mo dagdagan o bawasan ng files, cut n paste from Windows Explorer to the Solution Explorer will work. Try to remember this para maintindihan paano ko nag-add nag-bawas ng files. Another way is the ASF Wizard. The wizard will allow you to automatically add code developed by Atmel that can utilize the features of the MCU. Sure pwede ka sumulat ng sariling mong code to access the registers directly to operate the peripherals. Pero kung may deadline kang hinahabol just use it. Pag-aralan mo na lang later ang code pagkatapos nasubmit mo na sa prof o boss mo ang project.

Let's now use the ASF (Atmel Software Framework) Wizard. Sa menu select ASF->ASF Wizard.

On the left box, you can select the modules that you will need. Walang kaso if you select modules that you don't need. Pwede kumain lang ng space sa MCU pero kung kakasya ba walang kaso. Besides the linker might remove unused modules. Let's add the ff. for Blinky.

1. Delay routines (service)
2. IOPORT - General pupose I/O (service)

Sa tutuo lang ngayon ko pa lang din gagamitin ang IOPORT. I used to use "GPIO - General purpose Input/Output (driver)". ASF is an evolving framework. May bagong nadadagdag with every version upgrade. Usually it's for improvement. I am gambling it is in this case. After adding eto ang result.



Take note that if you compile the code at this point mag-eeror. Clearly may kailangan ayusin.
"Set your mind free!"

Offline marcelino

  • Global Moderator
  • Solar Power Satellite
  • *****
  • Posts: 6482
  • Pogi/Ganda Points: 297
  • ...keep moving forward! - Robinson's
Re: The AVR32 Tutorials
« Reply #19 on: November 12, 2014, 01:27:30 PM »



Take note that if you compile the code at this point mag-eeror. Clearly may kailangan ayusin.

This is where it becomes more interesting. :)
(at least for me ;D ;D ;D)
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Philippine Electronics Forum

Re: The AVR32 Tutorials
« Reply #19 on: November 12, 2014, 01:27:30 PM »
  • Installing
  • Start
  • Schematic
  • Package Tour
  • C++ Programming
  • Diagram
  • Password

 

Privacy Policy

Contact Us: elabph@yahoo.com