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.

Can we use timer on interrupt and the main program in AT89S52?

Status
Not open for further replies.

Darth Maul

Junior Member level 1
Joined
Jul 19, 2007
Messages
18
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,281
Location
Yogyakarta, Indonesia
Activity points
1,436
on at89s52, can we use timer on interrupt and the main program itself? what happen if in the main program the timer is still running, and then an interrupt occurs which also need a timer? PS. timer used is T2, T1 is used for baud rate generator.
 

Re: timer use

yes u can use both T1 and T2 at same time.and u can also change interrupt priority register as u want.
 

Re: timer use

timer enabled with interrupt is independent of the code.Any interrupt enabled will be operating will be independent of the code if u want to read more about interrupts try google u will get lot of documents related to interrupt
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top