Serial communication using AT89C52

Status
Not open for further replies.

saurav_sdpl

Full Member level 3
Joined
Sep 29, 2006
Messages
185
Helped
4
Reputation
8
Reaction score
2
Trophy points
1,298
Activity points
2,522
I want to achieve serial comm using at89c52, timer 2, and use timer0 & i for frequency counting.

Plz help me with sample code urgently
saurav[/code]
 

Re: at89c52

Everything is given in the datasheet. Read it carefully especially Timer-2 section.

Anyways this is what you need to do
Load RCAP2H and RCAP2L with proper count
Set RCLK+TCLK = 1 and TR2 = 1 in T2CON


Read Page 10 of datasheet if you have any problem.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…