Programming The ATmega162 Microcontroller

Discuss x0x construction and related issues

Moderators: Altitude, adafruit_support_bill, adafruit, phono, mome rath

Programming The ATmega162 Microcontroller

Postby O.W » Tue May 01, 2012 6:08 am

Hi,

I'm new to programming, but I want to know how to program the Hex file onto the ATmega162. I have a PICKIT2 and a demo-board, could I use this?

If not, could someone please suggest the hardware and software that I would require in order to program my own ATmega162's with the Hex file?

Any help would be greatly appreciated!

Thanks!
O.W
 
Posts: 10
Joined: Thu Apr 12, 2012 6:07 pm

Re: Programming The ATmega162 Microcontroller

Postby antto » Tue May 01, 2012 10:02 am

i'm not an electronics guy, neither am i a microcontroller geek
but as a "mortal" :wink: i managed to reprogram my x0xb0x quite easily
what i have:
1) WinAVR (IDE + AVRGCC compiler)
2) c0ntr0l app (to flash firmware)

that's assuming your x0x DOES have the bootloader on it
We are here too: irc.freenode.net >>> #x0xb0x
..:: c0nb0x v1.00 ::.. viewtopic.php?f=7&t=29282 (new control app - win/osx)
VCO Tuning: viewtopic.php?f=12&t=24759 (do it the EASY way)
User avatar
antto
 
Posts: 978
Joined: Thu Apr 15, 2010 2:21 pm

Re: Programming The ATmega162 Microcontroller

Postby Altitude » Tue May 01, 2012 10:28 am

PICkit is for MicroChip PIC micros, the x0x uses Atmel AVR so that is no good.

I recommend the Atmel programmer (AVRisp mk2) http://www.mouser.com/ProductDetail/Atm ... VpH%252b5O

You can use AVRdude (which comes with WinAVR) or Atmel's software (AVR studio)
User avatar
Altitude
 
Posts: 912
Joined: Wed May 11, 2005 4:17 pm

Re: Programming The ATmega162 Microcontroller

Postby O.W » Wed May 02, 2012 11:16 am

Thank you for the replies!

Do I need a demo board with the AVRisp mk2, or any other hardware?

I don't actually have a x0x but I want to program the chip with the firmware before I begin building one.
O.W
 
Posts: 10
Joined: Thu Apr 12, 2012 6:07 pm

Re: Programming The ATmega162 Microcontroller

Postby guest » Wed May 02, 2012 10:26 pm

you need to connect the isp to the micro
and supply 5v to the micro
but you can just do that on a protoboard
guest
 
Posts: 3119
Joined: Fri Feb 17, 2006 4:35 am

Re: Programming The ATmega162 Microcontroller

Postby O.W » Thu May 03, 2012 4:22 am

Do you know of any schematics for the protoboard?
O.W
 
Posts: 10
Joined: Thu Apr 12, 2012 6:07 pm

Re: Programming The ATmega162 Microcontroller

Postby Altitude » Thu May 03, 2012 6:43 am

Just go off the data sheet for the 162, all the pins are labeled. The only parts you need are the resonator
User avatar
Altitude
 
Posts: 912
Joined: Wed May 11, 2005 4:17 pm


Return to Making x0x

Who is online

Users browsing this forum: No registered users and 2 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [103]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[109]
 
Wireless[14]
Cables[61]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]