Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 2nd February 2005, 02:48 AM   (permalink)
Default Programming in circuit

The pins used for programming on an ATmega32...can I leave LED's and other devices plugged into those ports while programming? The reason I ask is because I want to use the outputs and plan on programming the chip many times even after inserting into my circuit.
~Mike
__________________
All Electronic components run on smoke. Let the smoke out and it no longer works.
~Tim Baker (Electronics Instructor at John A. Logan College)
MrMikey83 is offline  
Old 2nd February 2005, 06:53 PM   (permalink)
Default

I tried programming with an LCD display connected to Port B and it doesn't see the chiip. So I guess the answer is no.
~Mike
__________________
All Electronic components run on smoke. Let the smoke out and it no longer works.
~Tim Baker (Electronics Instructor at John A. Logan College)
MrMikey83 is offline  
Old 2nd February 2005, 07:36 PM   (permalink)
Default

you need to design an isolation circuit. if your oins are outputs, use a diode before the rest of the circuit, if they are inputs, a high value resistor works welll. as long as you isolate the pins it should have no trouble programing
The Real MicroMan is offline  
Old 2nd February 2005, 09:52 PM   (permalink)
Default

I'm going to use PortB for an LCD output and the pins connected to the programming pins are the data pins. These pins would be outputs from the AVR so I should use diodes.
~Mike
__________________
All Electronic components run on smoke. Let the smoke out and it no longer works.
~Tim Baker (Electronics Instructor at John A. Logan College)
MrMikey83 is offline  
Old 4th February 2005, 01:22 AM   (permalink)
Default

Killed it today. I tried connecting an input and uppon trying to program it wouldn't recognize the chip. I disconnected the input and tried to prog and still no luck. Replaced chip and it worked so I guess the old one if fubar. I still have 3 more so hopefully I dont screw up too many more times.
~Mike
__________________
All Electronic components run on smoke. Let the smoke out and it no longer works.
~Tim Baker (Electronics Instructor at John A. Logan College)
MrMikey83 is offline  
Old 4th February 2005, 03:32 PM   (permalink)
Default

Resistors are also often used to protect the controller and programmer from each other. A resistor in series with the programming signal keeps the uC from pulling too much current if the programmer and the uC are in contention. If the programming speed isn't too fast the resistor doesn't cause any problems with programming.

I'll bet Atmel has an app not on this very problem.
bmcculla is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 03:31 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker