I want to connect an ATMega328 to get RX TX and RESET to put on another ATMega
Thanks
I want to connect an ATMega328 to get RX TX and RESET to put on another ATMega
Thanks
You can use a Arduino Uno board for that, since it has already the hardware to connect to usb.
The USBasp programmer uses an ATmega chip (I think with a version of V-USB) and a few components to connect to usb, but I don't think it can be programmed as a ftdi.
The question here is - why?
Only an "FTDI" will actually be an "FTDI"; it would be quite difficult for any processor (such as a mega16U2) to masquerade as such.
If then what you actually want is a USB to serial (TTL) converter, then these cost about $1.60 on eBay, so it is very much a complete waste of time doing anything else.
Or just spend a little more for an FTDI module.
Caltoa:
You can use a Arduino Uno board for that, since it has already the hardware to connect to usb.
The USBasp programmer uses an ATmega chip (I think with a version of V-USB) and a few components to connect to usb, but I don't think it can be programmed as a ftdi.
Sorry , but i dont want to buy ftdi , i have a project of a board (Arduino-compatible), and i want to use the ATMega328p , not the ATMega8 or the ATMega16u.
Paul__B:
The question here is - why?Only an "FTDI" will actually be an "FTDI"; it would be quite difficult for any processor (such as a mega16U2) to masquerade as such.
If then what you actually want is a USB to serial (TTL) converter, then these cost about $1.60 on eBay, so it is very much a complete waste of time doing anything else.
Or just spend a little more for an FTDI module.
Sorry , but i dont want to buy ftdi , i have a project of a board (Arduino-compatible), and i want to use the ATMega328p , not the ATMega8 or the ATMega16u (Used in arduino UNO).
Get the ARduino Uno ATMega 16U code used for the UNO, and translate it to the processor you want.
KeithRB:
Get the ARduino Uno ATMega 16U code used for the UNO, and translate it to the processor you want.
Thanks but... Where can i get the code ?
It did not take to much digging on the ARduino site to find this:
mega16u code will not work on a m328 because it has no bult-in usb port. however the usbasp code does not require built-in usb so will work to make a usb/serial converter from a m328 chip.
john1993:
mega16u code will not work on a m328 because it has no bult-in usb port. however the usbasp code does not require built-in usb so will work to make a usb/serial converter from a m328 chip.
Can you send me the usbasp code ?
http://www.fischl.de/usbasp/
The source code of the firmware is in the *.tar.gz file.
If you understand that source code, you are a super-extra-advanced atmega expert.
actually the fischl code and the ebay baitemcu units do not have serial converter routines like found in the ebay lsoft units. i did manage to locate m88 binary couple years ago which was m328 compatible and flashed a few promini boards as usb adapters but stupidly locked the chips. now i would like to get that back but the old links are dead. im told some chinese sites have it but theres a language barrier.
it would be fairly easy for a motivated individual to mod the fischl source but being one of the laziest people on earth, "it aint me babe". if i cant get ready to load hex then those $1 ebay converters will have to do me.
Caltoa:
USBasp - USB programmer for Atmel AVR controllers - fischl.de
The source code of the firmware is in the *.tar.gz file.
If you understand that source code, you are a super-extra-advanced atmega expert.
offtopic: I understand the source code but I still feel like an AVR n00b...
anyway, if you want to make a USB TTL out of ATmega328p, it's totally a waste.
because you're trying to archive something an ATtiny45 can do with a ATmega328P...
the price are like 4 to 6 times more expansive.
its not a waste if you have a mega328 in your hand and dont want to wait 5 weeks for tiny85 or ebay converter from china. or pay $15 for domestic with shipping. heres a simple avr usb/serial converter that uses the same driver as usbasp:
http://code.google.com/p/picoboot/source/browse/trunk/usbdrv/usbdrvasm8.inc