8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

Go to page  1 [2]
Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
rahuljin
Mon Jun 30 2008, 09:19AM
 User Offline
Registered Member #3897
Joined: Fri Sep 07 2007, 01:19PM

Posts: 84
Thanked 0 times in 0 posts
used and tested ??? how ??

i made the programmer without buffer chip. is it ok ??

Back to top


pdi33
Mon Jun 30 2008, 11:37AM

 User Online
Registered Member #1329
Joined: Mon Jun 04 2007, 09:28AM

Posts: 548
Thanked 109 times in 105 posts
hi rahul,
the programmer without the buffer is o.k. but not safe as far as long term is concerned.
As far as the AVRstudio programmer is concerned, the hardware seems to be the same for the AVRISP programmer. Just go to Tools ->Program AVR -> connect and select 'STK500 or AVRISP' , the com port u have connected ur programmer and press 'connect'.

P.S. i personally use the ponyprog and have not tried the AVRstudio to program it.(as yet)

* inspired to develop,developing to inspire *
Back to top


rahuljin
Mon Jun 30 2008, 12:07PM
 User Offline
Registered Member #3897
Joined: Fri Sep 07 2007, 01:19PM

Posts: 84
Thanked 0 times in 0 posts
thanks. one last think i want to ask. i get this circuit for test board, but it is active low. what is mean by active low and how i can make it active high. when i try to run a simple led program, opposite things happen. i programmer for 1 led to get on but other seven get ON and that one turns off.


Back to top


pdi33
Mon Jun 30 2008, 12:23PM

 User Online
Registered Member #1329
Joined: Mon Jun 04 2007, 09:28AM

Posts: 548
Thanked 109 times in 105 posts
. I did not understand what u men when u said that the circuit was active low.maybe u meant the reset was active low. this means that the reset is asserted when a low signal (0v) is given to that pin.Similarly, the reset of 89xx uC is active high. hope u got the idea.

well,about the LED problem, i think u have connected the anode of LED to Vcc and the cathode to the port pin, right?.just connect the anode to the port pin and the cathode to ground and u will get the right output.


[ Edited Mon Jun 30 2008, 12:26PM ]

* inspired to develop,developing to inspire *
Back to top


rahuljin
Mon Jun 30 2008, 07:28PM
 User Offline
Registered Member #3897
Joined: Fri Sep 07 2007, 01:19PM

Posts: 84
Thanked 0 times in 0 posts
thanks. i get it now. the pins r in opposite direction so opposite output. i will correct it. so thats it for now and for this thread.
Back to top


rahuljin
Sat Jul 05 2008, 07:16AM
 User Offline
Registered Member #3897
Joined: Fri Sep 07 2007, 01:19PM

Posts: 84
Thanked 0 times in 0 posts
i have a new problem. i added the resistor and capacitor(for reset) in the programmer so that i can test my codes in programmer without removing microcontroller, now it is not working. what if i dont use the capacitor ?
and how to use external oscillator ? i hav a 8 mhz crystal oscillator.
Back to top


pdi33
Sat Jul 05 2008, 09:08AM

 User Online
Registered Member #1329
Joined: Mon Jun 04 2007, 09:28AM

Posts: 548
Thanked 109 times in 105 posts
hi rahul,
check ur reset pin if if is being pulled low by the programmer hardware. better remove the programmer connection from the reset pin and check the circuit. the circuit shown by u in the previous post seems to be perfectly alright except just try reducing the reset resistor value to say 10k instead of 100k aand capacitor to 10u instead of 0.1u..
as for ur second doubt, u can change the oscillator mode by changing the cksel fuses of the microcontroller. If u r using ponyprog, first read the fuses, then modify them acordingly and then write the modified value.
here is the screen shot of the fuse bit programming box of ponyprog:(click the button circled to bring up this box.





[ Edited Sat Jul 05 2008, 09:18AM ]

* inspired to develop,developing to inspire *
Back to top


pdi33
Sat Jul 05 2008, 09:16AM

 User Online
Registered Member #1329
Joined: Mon Jun 04 2007, 09:28AM

Posts: 548
Thanked 109 times in 105 posts
here is the fuse selection table for external crystal connection for various frequencies:




* inspired to develop,developing to inspire *
Back to top


rahuljin
Sat Jul 05 2008, 10:29AM
 User Offline
Registered Member #3897
Joined: Fri Sep 07 2007, 01:19PM

Posts: 84
Thanked 0 times in 0 posts
ground and reset r shorted. is it correct ??

can i just put the oscillator in programmer but use the internal oscillator ?

[ Edited Sat Jul 05 2008, 10:38AM ]
Back to top


pdi33
Sat Jul 05 2008, 10:44AM

 User Online
Registered Member #1329
Joined: Mon Jun 04 2007, 09:28AM

Posts: 548
Thanked 109 times in 105 posts

reset is not shorted to gnd. it is connected to gnd via a reset capacitor.

o.k......... yes, that is the mistake in ur previous circuit.remove the short between the reset and gnd. that would certainly reset the uC continuosly.

and yes, u can physically connect the crystal to the uC but still use the internal oscillator.

[ Edited Sat Jul 05 2008, 10:47AM ]

* inspired to develop,developing to inspire *
Back to top


Go to page  1 [2]  

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems