Skip to Content
Embedded Programming with Modern C++ Cookbook
book

Embedded Programming with Modern C++ Cookbook

by Igor Viarheichyk
April 2020
Intermediate to advanced
412 pages
9h 58m
English
Packt Publishing
Content preview from Embedded Programming with Modern C++ Cookbook

8051 microcontroller interrupts

The 8051 microcontroller supports six interrupt sources  reset, two hardware interrupts, two timer interrupts, and a serial communication interrupt:

Interrupt number Description Offset in bytes
Reset 0
0 External interrupt INT0 3
1 Timer 0 (TF0) 11
2 External interrupt INT1 19
3 Timer 1 (TF1) 27
4 Serial  36

The interrupt vector array is located at address 0; each entry except reset is 8 bytes in size. Though a minimal ISR can fit into 8 bytes, normally, the entries contain code that redirects execution to the actual ISR located elsewhere.

The reset entry is special. It is activated by the reset signal and immediately jumps to the address where the main program is located.

8051 defines a ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C++ System Programming Cookbook

C++ System Programming Cookbook

Onorato Vaticone
C++ Cookbook

C++ Cookbook

D. Ryan Stephens, Christopher Diggins, Jonathan Turkanis, Jeff Cogswell

Publisher Resources

ISBN: 9781838821043Supplemental Content