Keil Logo Arm Logo

8051 Timer 0 Mode 1 Example Program

This example program shows how to configure timer/counter 0 as a 16-bit timer. An interrupt service routine (ISR) is invoked each time the timer overflows (goes from 0xFFFF to 0x0000). In the ISR, the overflow_count variable increments.

To test this program...

  1. Start the debugger.
  2. Set a breakpoint on the overflow_count++ line in the ISR.
  3. Run the program.

Each time the interrupt routine is invoked, the debugger stops running the program. Position the cursor over the overflow_count variable to view its current value.

8051_TIMER0.ZIP (8.7K)
Monday, November 27, 2000

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

ARM’s Privacy Policy has been updated. By continuing to use our site, you consent to ARM’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.

Acquisition of ARM Holdings plc. by SoftBank Group Corp.

We are pleased to inform you that on 5 September 2016, SoftBank Group Corp. acquired ARM Holdings Plc. ARM will continue to operate as an independent business within the SoftBank group.

Any current agreements between ARM Ltd (or other ARM group companies, as applicable) you / your company remain in effect as between the parties, and the parties will continue to be bound by and perform the obligations in such agreements. If you have any queries please direct these to ARMSoftbank-Notifications@arm.com.