The Godfather talking
This is god damn my place! Capisci?
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 28, 2024, 12:26:18 12:26


Login with username, password and session length


Pages: [1]
Print
Author Topic: [help] rx tx pins in usbasp  (Read 7742 times)
0 Members and 1 Guest are viewing this topic.
rahuljin
Newbie
*
Offline Offline

Posts: 17

Thank You
-Given: 3
-Receive: 21


« on: March 27, 2009, 08:07:43 08:07 »

hello,

i want to make a simple and cheap usb programmer for avr. so i think about usbasp. my problem is that what is the purpose of the rx and tx pin when all the necessary pins like miso, mosi, reset, sck, gnd and Vcc.

also, will it be able to verify the data writtern on microcontroller.

rahul
Logged
microkid
Active Member
***
Offline Offline

Posts: 129

Thank You
-Given: 45
-Receive: 23


« Reply #1 on: March 27, 2009, 01:59:32 13:59 »

tx and rx pins are not necessary and they are not used in usbasp

usbasp is able to verify the data written in the micro

Best of luck, u have choosen a good programmer

MicroKid
Logged

Never Never Never giveup
rahuljin
Newbie
*
Offline Offline

Posts: 17

Thank You
-Given: 3
-Receive: 21


« Reply #2 on: March 29, 2009, 02:25:11 14:25 »

i build the programmer but it is not working.
i have checked the fuse bits of atmega8 and using a 12 mhz crystal. every connection is OK as per the site. i install the driver libusb_0.1.12.1 since i am using the latest version of winavr and the usb is recogonised as usbasp.
the change the programmer to usbasp and port to usb. when i tried the program the microcontroller atmega16, this error shows up -----

avrdude: error: programm enable: target doesn't answer. 1
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

i am using a 8mhz crystall with the atmega16 and it is working fine with the paraller port programmer.
please help.
the usb wire lenght is less than a meter and the wire from programmer is about 10cm.
also, checked the programmer by providing the power to the target board externally.
Logged
microkid
Active Member
***
Offline Offline

Posts: 129

Thank You
-Given: 45
-Receive: 23


« Reply #3 on: March 29, 2009, 04:19:18 16:19 »

Hai

As you say the programmer is recogonised, then there would be no problem with usbasp.

And as atmega16 is working with PP programmer, The only problem would be your connections to target

Another thing try using slow clk option

MicroKid
Logged

Never Never Never giveup
rahuljin
Newbie
*
Offline Offline

Posts: 17

Thank You
-Given: 3
-Receive: 21


« Reply #4 on: March 29, 2009, 05:31:58 17:31 »

this is how i connect the programmer's atmega8 and target atmega16 ----

atmega8                          atmega16
mosi (pin 17)  -------->   mosi (pin 6)
miso (pin 18)  -------->   miso(pin 7)
sck (pin 19)   -------->   sck (pin 8 )
oc1b (pin 16) -------->   reset(pin 9)

is it correct ?

update : there was a mirror solder mistake of mine. got it now  Cool

i also emailed fischl about the rx and tx. he told me that they are for some debugging which is the part of some other project.
« Last Edit: March 30, 2009, 02:13:29 14:13 by rahuljin » Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC