Skip to main content

Chapter 9 · Watch, then practise

Microcontrollers in Embedded Systems

Use a concrete 8051-family device to connect CPU execution with timers, serial I/O and interrupt-driven peripherals.

3 questions · 3 with related videos. Matches are based on playlist titles; broader background matches are labeled.

What to study

  • 8051-family integration
  • Timer and counter modes
  • Interrupt configuration
  • Device-specific datasheets

Chapter playlists

Choose a playlist

PORT 3 of 8051

EnggClasses · 2:28 · Background lecture

Choose a video · 2 lectures

These 8051 port lessons illustrate device hardware. They do not compare every compatible variant; consult the actual part datasheet as the answer explains.

1. Read the device rather than the family name

Why is “8051-compatible” insufficient to determine available hardware?

It identifies an architecture family, not identical peripherals or memory sizes. The documented A/T89C51AC2 includes flash, RAM, EEPROM, timers and UART with device-specific capacities and controls. Select registers and limits from the exact device datasheet rather than assuming all 8051 variants match.

Electronic Basics #30: Microcontroller (Arduino) Timers

GreatScott! · 9:19 · Background lecture

The supplementary microcontroller-timer lesson provides counter background using Arduino hardware; apply the stated 8-bit reload arithmetic independently.

2. Timer reload reasoning

An 8-bit up-counter reloads 156 after overflow. How many ticks occur per period?

It takes 256 − 156 = 100 timer ticks to overflow. If the actual timer input is 1 MHz, the nominal period is 100 µs. That frequency is an assumption: derive it from the selected clock and prescaler in the target datasheet.

Electronic Basics #30: Microcontroller (Arduino) Timers

GreatScott! · 9:19 · Background lecture

Choose a video · 2 lectures

Timers and input capture provide background on timing and external signals; the titles do not verify the exact timer-versus-event-counter comparison.

3. Timer versus counter

How does timer operation differ from external-event counting?

A timer increments from a defined clock so its count measures elapsed time. A counter increments from external events on an input. Mode configuration selects the source and behavior; overflow flags and interrupts let software respond without continuously polling the count.

References