Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top