Digital clock code for SDCC and Using DS89C450 as Replacement for AT89C52
Discussion in "Project Addition or Changes" started by Arun Kumar V Feb 2, 2007.
Fri Feb 02 2007, 12:49 pm
Hello Ajay(Rickey)
iam a great Fan of You, Really i have built all your Clock Projects and guess what, they all are huge success!
A BIG THNAK YOU !
Infact, my first Micro-Project was your RTC CLOCK!
i am novice when it comes to Programming, but good at Analog Electronics.
recently i got DS89C450 Samples form Maxim, i have made the Serial Link Programmer and it works well.
i loaded "your" Clock.Hex and programmed the Chip.
but when i run it , IT DOES NOTHING.
i am sure that the source file needs little Modification.
the line # include may have to be changed , i believe!
can you suggest the MOD
thank you
arun (Hi-tech city)
iam a great Fan of You, Really i have built all your Clock Projects and guess what, they all are huge success!
A BIG THNAK YOU !
Infact, my first Micro-Project was your RTC CLOCK!
i am novice when it comes to Programming, but good at Analog Electronics.
recently i got DS89C450 Samples form Maxim, i have made the Serial Link Programmer and it works well.
i loaded "your" Clock.Hex and programmed the Chip.
but when i run it , IT DOES NOTHING.
i am sure that the source file needs little Modification.
the line # include
can you suggest the MOD
thank you
arun (Hi-tech city)
Fri Feb 02 2007, 02:49 pm
as such there is no hardware related code.. just simple 8051 compliant code. if you ask me.. it can work on any 8051... are you able to program it correctly?
and which clock are you working on now??
how you get samples? i tried but i never got samples.. what is Hi-Tech City?
and which clock are you working on now??
how you get samples? i tried but i never got samples.. what is Hi-Tech City?
Fri Feb 02 2007, 06:19 pm
Hello Rickey,
thankx for quick reply.
hi-tech city is another name for HYDERABAD, A.P
there is no problem in burning the Clock.hex Prog into the DS89C450 & no error messages during programming. verify is also OK.
these Dallas MCUs are supposed to enhance speed by 10x, (33MHz)
is it the cystal freq.and MCU operating Freq are not in syn.
should i change the 11.0529 MHz crystal in your circuit to some other Freq.
i think the MCU is executing the program at very high speed. iam just guessing
your are the EXPERT- to figure it out.
Arun
thankx for quick reply.
hi-tech city is another name for HYDERABAD, A.P
there is no problem in burning the Clock.hex Prog into the DS89C450 & no error messages during programming. verify is also OK.
these Dallas MCUs are supposed to enhance speed by 10x, (33MHz)
is it the cystal freq.and MCU operating Freq are not in syn.
should i change the 11.0529 MHz crystal in your circuit to some other Freq.
i think the MCU is executing the program at very high speed. iam just guessing
your are the EXPERT- to figure it out.
Arun
Fri Feb 02 2007, 06:38 pm
yes.. clock speed is problem. because its software implemented protocol so... you should give time for transition setup time so that RTC sense the change in level. change back the crystal frequency to 11.0592 MHz. anywways there is no point in running our code fast because time has to change after 1 sec.. so doesnt matter that much. speed matters where you have to take care of many things
Fri Feb 02 2007, 06:50 pm
So rickey, there is no way we can make DS89C450 work with your clock project ?
iam total newbie to Micros.
any help would be appreciated
arun
iam total newbie to Micros.
any help would be appreciated
arun
Fri Feb 02 2007, 10:46 pm
just replace the crystal you are using with crystal of frequency 11.0592Mhz. thats all.
Sat Feb 03 2007, 12:48 pm
Hello Rickey,
iam working on your Simple Clock Project (16X2 LCD and WITHOUT DS1307).
i am using the same Xtal which you have mentioned i,e 11.0592MHz with DS89C450, but no luck.
the LCD is BLANK. when use AT89S52 it operates nicely.
DS89C450 is the World's Fastest 8051 Micro, it operates on 1 Clock cycle as compared to 12 Clock Cycles of normal 8051 family . it carries out 33 MIPS(Million Instruction Per Second) the data sheet says that the Ultra hi speed can be brought to 12 cycles (Like normal 8051) by changing CKCON register to Divide by 12 (of Xtal Freq.)
can we change the Header line in the C code with DS89C450 line from Keil library.
please check out this attachement !
iam sure you can figure out how to change CKCON to divide by 12
thankx
arun
iam working on your Simple Clock Project (16X2 LCD and WITHOUT DS1307).
i am using the same Xtal which you have mentioned i,e 11.0592MHz with DS89C450, but no luck.
the LCD is BLANK. when use AT89S52 it operates nicely.
DS89C450 is the World's Fastest 8051 Micro, it operates on 1 Clock cycle as compared to 12 Clock Cycles of normal 8051 family . it carries out 33 MIPS(Million Instruction Per Second) the data sheet says that the Ultra hi speed can be brought to 12 cycles (Like normal 8051) by changing CKCON register to Divide by 12 (of Xtal Freq.)
can we change the Header line in the C code with DS89C450 line from Keil library.
please check out this attachement !
iam sure you can figure out how to change CKCON to divide by 12
thankx
arun
Sat Feb 03 2007, 12:57 pm
here is the header line from Keil
http://www.keil.com/dd/docs/c51/dallas/ds89c4xx.h
and PDF document about DS89C450
arun
http://www.keil.com/dd/docs/c51/dallas/ds89c4xx.h
and PDF document about DS89C450
arun
Sat Feb 03 2007, 01:25 pm
OMG that fast
lol! ok tell me how to get the sample.. i wanna use this... its really teasing me a lot. 1 clock.. oooo...
yes it is possible to take it back to 12 clock cycle. but if you ask me. I better say.. dont use it for this purpose make something better with this...
Dont forget to tell me HOW TO GET THE SAMPLES PM me please...
lol! ok tell me how to get the sample.. i wanna use this... its really teasing me a lot. 1 clock.. oooo...
yes it is possible to take it back to 12 clock cycle. but if you ask me. I better say.. dont use it for this purpose make something better with this...
Dont forget to tell me HOW TO GET THE SAMPLES PM me please...
Sun Feb 04 2007, 01:28 pm
Hello Rickey
can you tell me what changes are to be made in the clock c. file
I don't have Keil, SDCC i'll try to download.
but you don't have to wait till i download SDCC,
you can goahead with the MOD instructions.
arun
can you tell me what changes are to be made in the clock c. file
I don't have Keil, SDCC i'll try to download.
but you don't have to wait till i download SDCC,
you can goahead with the MOD instructions.
arun
Powered by e107 Forum System