Society of Robots - Robot Forum
General Misc => Misc => Topic started by: airman00 on January 23, 2009, 08:52:04 AM
-
Enjoy
http://www.societyofrobots.com/member_tutorials/node/290
Comments appreciated
-
great tutorial airman00!
BTW, i'm using vista x64 with the AVRISP mkII and AVRStudio 4.15 without any issues.
-
BTW, i'm using vista x64 with the AVRISP mkII and AVRStudio 4.15 without any issues.
thats strange , I searched the forum and even spoke to some members and they all claimed to be having difficulties
-
i only had difficulties using avrdude with vista x64 because of the libusb drivers that came with winavr. However, the avisp mkii worked perfectly with avrstudio4 with vista.
-
I don't think you can use avrdude and winavr mkII drivers at the same time, one shows up as Jungo, and the other just shows up as USB in your device manager
-
Please mention in your tutorial that you can use the mkII programmer with the 2x5 header that some people originally soldered on their $50 robot board, if they buy or make an adapter:
http://www.sparkfun.com/commerce/product_info.php?products_id=9046
http://www.sparkfun.com/commerce/product_info.php?products_id=8508
http://www.sparkfun.com/commerce/product_info.php?products_id=8535
-
I don't think you can use avrdude and winavr mkII drivers at the same time, one shows up as Jungo, and the other just shows up as USB in your device manager
Yes, I know that. I uninstalled AVRStudio4 and also uninstalled Jungo, and tried to install the libusb, but it didnt let me because the libusb x64 drivers were not Vista signed. :(
-
awesome I like it
-
Now verify that the device selected is indeed your device. Click the "Settings" button right above ISP Frequency, and set your ISP frequency to 125 kHz.
airman00, i'm surprised you are using 125 kHz. It really should be based on speed of your clock right? If your ATmega168 is running at 16 MHz, you can put the ISP to 2.0 MHz which is less than 1/4 of the frequency. I find the 125 kHz is too slow in programming the chip.
It should be set to less than 1/4 of the Microcontroller's frequency , but I've found that around 1/8 of the microcontroller's frequency works best.
Even at 1/8 of the frequency, you can run at 1.0 MHz and still be ok.
-
airman00, i'm surprised you are using 125 kHz. It really should be based on speed of your clock right? If your ATmega168 is running at 16 MHz, you can put the ISP to 2.0 MHz which is less than 1/4 of the frequency. I find the 125 kHz is too slow in programming the chip.
No such thing as too slow for ISP frequency. 125khz will ALWAYS work , so I figured I might as well write 125khz so there won't be any confusion.