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 24th September 2007, 04:22 AM   (permalink)
Default Microcontroller Dead?

There seems to be something wrong with one the dsPIC's i have... The programmer seems to read and write to the controller successfully without any problem but the chip doesn't seem to work at all in a circuit. Is it dead or is something else wrong with my circuit (which was working fine previously)?
baberjaved is offline  
Old 24th September 2007, 04:35 AM   (permalink)
Default

You have provided absolutly no information on what is going on with your circuit or chip or changes you've made to hardware or code. In short, no one can answer your question.
__________________
"Because I be what I be. I would tell you what you want to know if I
could, mum, but I be a cat, and no cat anywhere ever gave anyone a
straight answer, har har."
Sceadwian is offline  
Old 24th September 2007, 06:55 AM   (permalink)
Smile i am sure..

hi..

i am sure.. the circuit might be having some problem...

some pin is not getting voltage or other may not be grounded...

but.. try to reset it again and again.. till it works..

it it doesnt works then.. surely..

the microcontroller is having some problem...

Remember.. " ever thought of programmer having a problem ? .. but very less chances are there "

Regards,

Simran..
__________________
Simran..
8051 Specialist..
simrantogether is offline  
Old 24th September 2007, 11:36 AM   (permalink)
Default

Quote:
Originally Posted by simrantogether

" ever thought of programmer having a problem ? .. but very less chances are there "

Regards,

Simran..
The odds are are higher then you would think.
3v0 is online now  
Old 24th September 2007, 01:55 PM   (permalink)
Default

Quote:
Originally Posted by 3v0
The odds are are higher then you would think.
is it ...?

thanks..
__________________
Simran..
8051 Specialist..
simrantogether is offline  
Old 24th September 2007, 04:08 PM   (permalink)
Default

The microcontroller works fine when i debug it in my development board using ICD but it doesn't work when i plug it into my own circuit.... Maybe's its coz of a faulty cap or something.. how do i check

Can anyone give a schematic just required to run the PIC Mcu.. is it same for all of them? Also what should be the values of the capacitors used in the circuit.. do they matter?
baberjaved is offline  
Old 24th September 2007, 04:16 PM   (permalink)
Default

Quote:
Originally Posted by baberjaved
The microcontroller works fine when i debug it in my development board using ICD but it doesn't work when i plug it into my own circuit.... Maybe's its coz of a faulty cap or something.. how do i check

Can anyone give a schematic just required to run the PIC Mcu.. is it same for all of them? Also what should be the values of the capacitors used in the circuit.. do they matter?
I've not used dsPIC's, but there are 16F examples in my tutorial hardware.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 25th September 2007, 05:18 PM   (permalink)
Default

I believe microchip has some examples on their website. Check there.
Ambient is offline  
Old 25th September 2007, 05:55 PM   (permalink)
Default

Quote:
Originally Posted by baberjaved
The microcontroller works fine when i debug it in my development board using ICD but it doesn't work when i plug it into my own circuit.... Maybe's its coz of a faulty cap or something.. how do i check

Can anyone give a schematic just required to run the PIC Mcu.. is it same for all of them? Also what should be the values of the capacitors used in the circuit.. do they matter?
Post your schematic.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now  
Old 25th September 2007, 08:40 PM   (permalink)
Default

Heres what i am doin
Attached Images
File Type: jpg pic.JPG (17.5 KB, 25 views)
baberjaved is offline  
Old 26th September 2007, 12:50 AM   (permalink)
Default

I assume you program it out of circuit as MCLR is tied to power.

Which dsPIC is it, is the powersupply well regulated and filtered?

Post the pinnumbers too.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now  
Old 26th September 2007, 11:33 AM   (permalink)
Default

Quote:
Originally Posted by baberjaved
The microcontroller works fine when i debug it in my development board using ICD but it doesn't work when i plug it into my own circuit.... Maybe's its coz of a faulty cap or something.. how do i check

Can anyone give a schematic just required to run the PIC Mcu.. is it same for all of them? Also what should be the values of the capacitors used in the circuit.. do they matter?
It might just be me, but alot of the problems I seem to experience when working with pics (not dsPIc),
comes from faulty wiring or dodgy chinese breadboards!

When the pic doesnt seem to be working, I make a simple circuit (and firmware) to test whether or not the pic is working at all.

I.e pulse one of the ports, and nothing more. This allows you to scope the port and see if your pic is executing instructions properly.

Last edited by HerbertMunch; 26th September 2007 at 11:07 PM.
HerbertMunch is offline  
Old 26th September 2007, 03:47 PM   (permalink)
Default

Quote:
Originally Posted by HerbertMunch
It might just be me, but alot of the problems I seem to experience when working with pics (not dsPIc),
comes from faulty wiring or dodgy chinese breadboards!

When the pic doesnt seem to working, I make a simple circuit (and firmware) to test whether or not the pic is working at all.

I.e pulse one of the ports, and nothing more. This allows you to scope the port and see if your pic is executing instructions properly.
Good advice. The "blink an LED on and off" should always be the first program attempted to validate any new programmer/development board/etc. Just too many things that can be wrong with a new unproven set-up to jump straight to a more complex application program.

Lefty
__________________
Measurement changes behavior
Leftyretro is offline  
Old 26th September 2007, 07:34 PM   (permalink)
Default

Quote:
Originally Posted by Leftyretro
Good advice. The "blink an LED on and off" should always be the first program attempted to validate any new programmer/development board/etc. Just too many things that can be wrong with a new unproven set-up to jump straight to a more complex application program.

Lefty
indeed. reduce the amount of variables.
HerbertMunch is offline  
Old 26th September 2007, 07:58 PM   (permalink)
Default

Quote:
Originally Posted by baberjaved
Heres what i am doin
Please understand. you are telling general things. till now you have not indicated any Chip number. For any dsPIC there is a datasheet that fully describes how to use it. i suggest that you may download the concerned datasheet and have a detailed study.

Meantime try to put the hardware schematic that you are using for your design -- also please indicate whether you have a PCB layout or used a general purpose Board-- or a breadboard. because thease issues do matter. clocke oscillation methodology is important subject matter and Microchip themselves have published specific articles and dedicated subsections for each chip in their datasheets.

for example , breadboarded circuit would behave erratic at these frequencied -perhaps same may be the case with dsPIC.
__________________
Regards,
Sarma.
mvs sarma is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
stk500 clock source atmel microcontroller hani_a General Electronics Chat 5 2nd January 2008 06:19 AM
microcontroller selection ssylee Micro Controllers 11 9th June 2007 05:23 AM
TCP implementation using microcontroller chintan_jagani Micro Controllers 5 19th September 2006 01:46 AM
Programming the Mini-Max 8051 microcontroller blimon Micro Controllers 8 13th July 2005 03:42 AM
Connection of Siemens c167 microcontroller to peripherals. Roslan Electronic Projects Design/Ideas/Reviews 3 23rd March 2004 07:52 PM



All times are GMT. The time now is 06:50 PM.


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

eXTReMe Tracker