|
Microcontroller › 8051 › Re: Project MC012 – Problems with code
just a quick question?
how to modify the present code to display “sec””milisec””milisec”‘milisec” ?
i don’t know about the present code but here i am writing some of the points which might be helpful for you:
1) use timer0, it is a 16 bit counter….
2) as the counter value increases by 1 it counts 1.085us (crystal is 11.0592 MHz)…
1000 micro second will make one mili second….
all d bst…
thnx!
hey guys,
i use kiel compiler to obtain a hex code.
but i wanna be sure about one thing. in the kiel program, when i convert c in hex code, ( this is the adress in program “Project/ Option for Target ‘Target one’/ Xtal (MHz)”) the default value for Xtal is 24 Mhz. In the schematic we use a 12 Mhz crystal. I must to change this value to 12 Mhz, or just leave it at 24 Mhz?
thanks!
I made this project, and is true….it jump aprox one second.
hello Mihal,
i didnt understood yur point…