I just purchased the USB BUB and want to use it to connect to a stand alone AVR project to get reports and send instructions. I have been using the at90s2313, but have migrated it to attiny2313.
1) what drivers or software is needed to use the BUB with windows? I've downloaded VOC and D2XX from FTDI, but this wasn't clear in the instructions . I had previously investigated the FTDI chip so had an idea this was needed.
2) can i set the baud rate of the BUB?
3) can i control the syncronous mode?
4) with just the TX and RX lines being used which is the best mode to use?
5) will i need to use the DTR line?
rep
usb bub setup and software
Re: usb bub setup and software
Hi Repco,
Hope that helps,
Paul
I just purchased the USB BUB and want to use it to connect to a stand alone AVR project to get reports and send instructions. I have been using the at90s2313, but have migrated it to attiny2313.
You want the VCP (virstual com port) drivers at ftdichip.com1) what drivers or software is needed to use the BUB with windows? I've downloaded VOC and D2XX from FTDI, but this wasn't clear in the instructions . I had previously investigated the FTDI chip so had an idea this was needed.
No, you do this on the PC side in serial port settings and on the uC side in your code. The BUB will just pass through the signals that it gets from the end clients.2) can i set the baud rate of the BUB?
There is utility on the FTDI site - something like "MPROG" (may not have that exactly right) that can be used to control a number of paramters about the way the FTDI chip handles data3) can i control the synchronous mode?
default settings will work fine4) with just the TX and RX lines being used which is the best mode to use?
Not if you are just sending and receiving data, it's use is to reset chips when using a bootloader5) will i need to use the DTR line?
Hope that helps,
Paul
Re: usb bub setup and software
that looks good. thanks!
rep
rep
Re: usb bub setup and software
Paul,
Thanks for your previous response. I would like to go deeper.
I have been using AVR studio to compile asm and C code.
BUB offers me the ability to program without needing my STK500.
I can take arduino hex files and load them via ISP and STK. But can not load studio 4 hex files via BUB and arduino. I would like to use the BUB to program via bootloader instead of the STK ISP.
Is there a programing interface/software that would help me do that? avrdude? ?
rep
Thanks for your previous response. I would like to go deeper.
I have been using AVR studio to compile asm and C code.
BUB offers me the ability to program without needing my STK500.
I can take arduino hex files and load them via ISP and STK. But can not load studio 4 hex files via BUB and arduino. I would like to use the BUB to program via bootloader instead of the STK ISP.
Is there a programing interface/software that would help me do that? avrdude? ?
rep
Re: usb bub setup and software
You do need a bootloader of some kind and some kind of software to communicate with it through serial. It's not quite as clean or simple as the ISP upload process. The good news is that you have access to the serial port for debugging though, since the Atmega328 doesn't support JTAG. But you could get a Sanguino if you want to use the same platform (basically) and want JTAG.
The Arduino bootloader is easy to use and AVRdude is what Arduino IDE uses (under the hood) to communicate with the bootloader, so it will definitely work.
Check the build process on this page http://arduino.cc/en/Hacking/HomePage for how the Arduino guys do it, and just emulate the process.
Paul
The Arduino bootloader is easy to use and AVRdude is what Arduino IDE uses (under the hood) to communicate with the bootloader, so it will definitely work.
Check the build process on this page http://arduino.cc/en/Hacking/HomePage for how the Arduino guys do it, and just emulate the process.
Paul
Re: usb bub setup and software
When using AVRdude do you know how the 328 is defined, or should i say which chip is it defined as?
The bootloader is it 328 or 168?
rep
The bootloader is it 328 or 168?
rep
Re: usb bub setup and software
rep:
You may be able to get your answers by using the technique mentioned here:
You may be able to get your answers by using the technique mentioned here:
and here:
Don
Re: usb bub setup and software
Thanks Don,
Paul
Paul