Reply to topic  [ 1 post ] 
ATMega48/88/168/328P Target Board (HCPROT0088 93 & 94) 
Author Message
Site Admin

Joined: Sun Aug 05, 2012 4:02 pm
Posts: 667
Post ATMega48/88/168/328P Target Board (HCPROT0088 93 & 94)
Image
Above images shows completed ZIF Programming bundle with all components soldered. UASASP programmer shown in images is sold separately.




This prototyping/programming board is designed for use with the Atmel ATMega48P, ATMega168P, & ATmega328P microcontrollers. The board has a number of features including a 24x12 0.1" grid prototyping area specifically laid out to match the pin-out of these devices. Additional pads are also provided for optional components such as external crystal, reset button, LED, ICSP headers and these are all connected to the appropriate pads within the prototyping area. The 6 and 10 pin ICSP headers are compatible with most common ICSP programmers such as the USBASP (see HCDVBD0031) and USBTiny (HCARDU0002). For the prototyping and ZIF programming bundles all components are deliberately chosen to be through-hold for easy construction (components in these bundles will require soldering).

This board is available in 3 options:




Bare board (HCPROT0088)

Just the PCB, for use as a basic prototyping board where you can add your own components.


Image


Image . Image





Prototyping bundle (HCPROT0093)

PCB and all components required for prototyping - just add your own microcontroller. This bundle includes the following list of items:


ImageImage


Image

1x PCB
1x 28 Pin IC socket
1x 16MHz crystal
2x 22pF capacitors (for use with crystal)
2x 100nF capacitors
1x Reset switch
1x 10K pullup resistor
2x 680R current limiting resistors for optional LEDs
1x 3mm green (power) LED
1x 3mm red (programming) LED
1x BS170 transistor.
2x 5 pin SIL headers for 10 pin ICSP
2x 3 pin SIL headers for 6 pin ICSP






ZIF Programming bundle (HCPROT0093)

This bundle is a great low cost solution if you often need to program devices for use with other development boards. It includes a hard wearing 28 pin Zero Insertion Force (ZIF) socket that allows target devices to be quickly inserted and removed without exerting mechanical stress on the IC. This bundle includes the following list of items:


ImageImage


Image

1x PCB
1x 28 Pin ZIF IC socket
1x 10 pin IDC header
1x 6 pin IDC header
1x 16MHz crystal
2x 22pF capacitors (for use with crystal)
2x 100nF capacitors
1x Reset switch
1x 10K pullup resistor
2x 680R current limiting resistors for optional LEDs
1x 3mm green (power) LED
1x 3mm red (programming) LED
1x BS170 transistor



FAQ:

Trying to upload to the chip with the ZIF bundle gives the following error: An error occurred while uploading the sketch avrdude: ser_open(): can't open device "\\.\COM5": The system cannot find the file specified.

Programming a chip via the USBasp/Target board has to be done in a slightly different way to programming an Arduino board. As the the chip is blank it doesn't yet contain the Arduino bootloader (a program normally pre-installed into an Arduino that allows it to accept sketches via it's serial port) and as a result you can't upload a sketch via it's serial interface.

To program the ATMega device using the programming bundle you'll first need to tell it which type of external programmer you have. In the menu at the top of the Arduino window go to:

Tools->Programmer

You will then see a list of external programmers. For the USBasp simply select 'USBasp'

Next, as normal, you will need to set the board type:

Tools->Board

This will tell the Arduino IDE what version of bootloader you wish to program into the the device and for what type of device to compile your sketch for. For this you must choose an Arduino board that has the same type of device you're attempting to program. E.g. for an ATMega328 you could choose, Uno, Nano, Pro Mini, etc. If you are just wanting to program the device to use in your own project then I would recommend selecting 'Nano' as the board type and 'ATMega328p' as the processor.

The IDE is now set up and you now have the option of either uploading the Bootloader *OR* your sketch to the device:

To upload the bootloader:

Simply select Tools->Burn bootloader. This will burn the bootloader for whatever board type you have selected. Note that burning the bootloader is only necessary if you are programming the chip to replace a device in an existing Arduino board, or you'll be using the device in you're own project but want the option of uploading sketches via it's serial interface.


To upload a sketch:

Hold down the shift key on your keyboard and then click the upload button (round green icon with right pointing arrow found in the top left corner of the IDE) as normal. Notice as you hover over this button the IDE now says 'Upload using programmer' whilst the shift key is held down. The Arduino IDE should now upload the sketch via the programmer.




Image

Attachment:
ATMega48_88_168_328P_Target_Board_Schematic.pdf



Libraries, example code, and diagrams are provided as an additional free service by Hobby Components and are not sold as part of this product. We do not provide any guarantees or warranties as to their accuracy or fitness for purpose.

Descriptions and diagrams on this page are copyright Hobby Components Ltd and may not be reproduced without permission.


You do not have the required permissions to view the files attached to this post.


Fri Mar 24, 2017 12:14 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Thank you to phpBB.com & phpBB.ro.
Design created by Florea Cosmin Ionut.
© 2011 All contents of this site are © Hobby Components LTD