Discussion in "Project Doubts" started by    ahmed    Apr 8, 2007.
Sun Apr 08 2007, 05:26 am
#1
hi,
Im doing digital clock with alarm with DS1307 by using AT89s8252 microcontroller .
i have some qouestions ..

1- what is the starting address when i want to programming microcontroller ? ( is it 0000H to 1FFFH for the Code) ???

2- when i program the microcontroller i have black boxs in LCD !!
what is that mean ??? and how i can solve it !!


>> i hope some help
Sun Apr 08 2007, 06:02 am
#2
Ans1: Yes the entry point for any program for 8051 at reset is 00H. So all program starts from 00H. for last address you need to check how many KB of memory a controller got and you can easily get the last address.
as in case of 89C51 its 4K ROM so 00 to FFF
89c52 8K ROM so 00 to 1FFF.
similarly u can find out for other controllers.

Ans2: LCD is not able to receive commands. Its not getting initialized. Please check your connections

Any other questions?
Sun Apr 08 2007, 06:13 am
#3
this is from microcontroller data sheet

(( The Code and Data memory arrays are mapped via separate address spaces in the serial programming mode. In the parallel programming mode, the two arrays occupy one contiguous address space: 0000H to 1FFFH for the Code array and 2000H to 27FFH for the Data array.))

but when i try to program it from 0000h to 1fffh give me error message


note : i use ALL-11 zif socket to program it.
Sun Apr 08 2007, 06:43 pm
#4
I have no idea what is ALL-11, i mean.. is it a name of programmer? if yes then does it support the controller you are using?
i think "AT89s8252" is ISP, so is not difficult to program.
Sun Apr 08 2007, 06:44 pm
#5
hi rickey,

i have ((ID code ERROR)) when i want to program my microcontroller ..
did u know what is the problem ??

Sun Apr 08 2007, 06:48 pm
#6
ALL-11 is name of programmer

and it s support my controller .. but i have ID CODE ERROR ?? when i want to program it ..

did u thik my controller is burn or somethink like that !!
Sun Apr 08 2007, 06:57 pm
#7
Possible reason, Did you connected it in reverse (by mistake?) if not.. then check the connectivity.. maybe, that is not proper... try replacing with a different controller and check, if it is getting programed or use different programmer and see if your IC is getting programmed or not...
Sun Apr 08 2007, 07:02 pm
#8
i will try to change controller .. and see ..


[ Edited Sun Apr 08 2007, 07:03 pm ]
Wed Apr 11 2007, 05:03 am
#9
I too am currently trying to assemble this project and I am having the same trouble..I burnt up the reset pin on the one chip so tried another and same problem..I have a non working circuit I get the black boxes as well. I even rebuilt the circuit twice and still problem exists..

The first memory address to program is the standard beginning address....

I have checked the chip using another programmer and the program is on the chip... I am at a total loss any help greatly appreciated.. Thanks
Wed Apr 11 2007, 10:24 am
#10
Did you check the crystal?
Friends, There is 100% problem in making board, I am not sure whether this is appropriate to say this or not but please you must recheck the things. There are many people who made this project successfully without doing anything other than just making the board and loading the hex file. People have done few additions like, using relays for high voltage switching etc. But I really have no clue why its not working with u.... :-o

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

KevinTab
Sun Apr 28 2024, 05:35 am
Tumergix
Sun Apr 28 2024, 12:59 am
StevenDrulk
Sat Apr 27 2024, 08:47 pm
StephenHauct
Sat Apr 27 2024, 09:38 am
Adamsaf
Sat Apr 27 2024, 07:12 am
Robertphype
Sat Apr 27 2024, 12:23 am
ktaletrryp
Fri Apr 26 2024, 10:55 pm
Robertrip
Fri Apr 26 2024, 11:20 am