Forum Replies Created
-
AuthorPosts
-
G ThomasParticipant
thnx!
G ThomasParticipantjust a quick question?
how to modify the present code to display “sec””milisec””milisec”‘milisec” ?
G ThomasParticipantthnx!
write a new one? wow… okay i’ll try…. i’ll give it a go before I come crawling back for help! i’ll need all the help later tho!
thanks again.
G ThomasParticipantthanks for you time. sorry but i am newbie at all this. thanks
G ThomasParticipantthnx. whats this code then? it does use timer too right?
G ThomasParticipantthank you for your time.
would appreciate help on how to do this:
you can configure timer to get excat time for your stopwatch. through u will even get precise time in msec.
use interrupt pin for start and stop button.
G ThomasParticipantyh was adviced to do that before too…. problem is im not sure how to
G ThomasParticipantis this why thee is a second added on?
void mplex_delay(unsigned int time) // Function to provide a time delay of approximatelty one second using Timer 1
{
int i,j;
for (i=0;i<=time;i++)
for(j=0;j<=50;j++);
}
void digi_out(unsigned int current_num)
{
P2=digi_val[current_num];
mplex_delay(msec);
}
G ThomasParticipant?
G ThomasParticipantIt doesnt work
Still getting a second jump…
Also how do I alter the code to display:
‘sec’ ‘milisec’ ‘milisec’ ‘milisec’ on the 4 7 segments
Instead of :
‘sec’ ‘sec’ milisec’ ‘milisec’
Eg want to display:
1. 275
1 second and 275 milliseconds
G ThomasParticipantHey he means sending the time from microcontroller to Pc.
Also is it possible to control the start from Pc instead manual switch
G ThomasParticipantThank you soo much! Really!
G ThomasParticipanti was using Keil to convert the original C code into hex
G ThomasParticipantthis is the code i have for serial connection. How do i insert this into my main code for controller:
ORG 30HINI:MOV TMOD,#21HMOV TH1,#0A0H ;9600 BAUDMOV SCON,#50H ;8 BIT UART MODEMOV TH0,#HIGH(-50000)MOV TL0,#LOW(-50000)SETB TR1MAIN:JB RI,SERIALJMP MAIN;==================SERIAL:CLR RIMOV A,SBUFJMP MAINthe code for microcontroller is:
G ThomasParticipantThanks for reply.
Quick question how would I go about doing this?:
“ Instead of again and again switching the power supply on and off numerous times before you sucessfully get “000” diplayed on led you can use reset to reset the controller through 9th pin of controller(make it high to reset).”
Sorry just a novice at this!
-
AuthorPosts