Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

89c51 Quartz Crystal and Burning problem

Status
Not open for further replies.

muhammad shoaib

Newbie level 4
Joined
Nov 14, 2011
Messages
6
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,329
Hi folks
Assalamualaikum wrwb
Peace mercy and blessings of A L L A H be upon you

Well I am stuck in a problem. I am new to the IC but i know how to use it.
I have

1. AT89C51 Microcontroller
2. 11.0592 MHz Quartz Crystal
3. 33pF Capacitors
4. IC Burner
5. Serial to USB converter [RS232 signal converter]

Scenario:

1. I burn a Hex file with verification error notice via EZDL.
2. I put the IC on the breadboard with the required connections with Vcc, gnd and all the stuff correctly
3. I put the Quartz 11.0592 MHz Clock on the pins XTAL1 and XTAL2.

Problems

1. The Program that I originally wrote is not written on IC. The default program of counter runs on IC
2. The Clock does not run until I touch it with my finger i.e. It is having earth problem in some way. I tried to ground the wire with aluminium foil but it also does not work. The clock is sometimes shivering and sometimes get fast, slow. It gets stable as soon as i touch it with my finger.

I will really appreciate the help here.
 

I think this meight help you.....

Check the following things-

1) First see that your IC is getting detected in the EZDL
2) If yes....burn your code.....at that time ....it will try to initially erase the IC....
3) If your erase memeory completes properly then your code will get written properly....If this don't happen then there is problem with PC (EZDL) to micro-controller communication....Please use normal serial port instead of the USB to serial code or install the proper pro-life driver for your USB to Serial ....Check communication using terminal of your own PC with the help of other USB to serial convertor and DB9 female and female connector combination...
4)If you r code get burn on chip correctly and it is failing in Varifying it then you need to check the .hex file and it format....intel hex file format is avalible on net .....

good luck
 

Hi peace be on you

IC is detected properly as 89c51
It gets erased properly
It gets written properly
It gets verification error

The default program in IC is a counter at Port 0. The counter is running when i touch the Quartz one leg with finger.

---------- Post added at 16:59 ---------- Previous post was at 16:56 ----------

The IC is Atmel 89c51. And I don't know how to check HEX file format.
Secondly I have tested the serial to usb cable with its tester program. It is working very fine there. By Joing the transmission and receiving pins with a wire.

The main problem is the hardware Quartz Oscillation
 

Once u have written your program,try reading the ROM of the chip..there must be a command in the software that ypu are using.
If your read data and the HEX file data are the same then,code has been written,or else,it will read all data as FFFFFF.......
which means that data has not been written.
If you have created a HEX file from embedded C then data will not be written from the start location,it will be written from somewhere in between.Please keep a check on this.
 

Ok let me try on this one. In the mean time please help me sorting out this Clock problem
 
I had faced this problem when there was loop connnection of the comport and also once if the all IC pins are not properly tuching to the IC bases.....I think you need to check for the second possiblily....Just try the things shown in figure may work out for you

Good Luck IC_positions.PNG
 

If pressing the IC in its base and setting as shown above does not work, try replacing 33 pf capacitors, I experienced lo capacitance capacitors failure.
A R Khan
 

    V

    Points: 2
    Helpful Answer Positive Rating
yes i faced the same problem once..i was very upset and my all hard work would be in vain.if i on my last try would not change the cap..i used 30 pf replacement of 33.
and my hardware worked supebly.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top