I have a 24 MHz fast 8051 microcontroller, by ATMEL. It has a machine cycle of 12 clocks. I would like to generate a time delay of 512 microseconds (µs = 10-6). Design your timer without using mode 1. 1. Which Timer and what mode are you going to use? 2. What is the delay count and the base number of your design? 3. Configure and program the TMOD register according to your design. 4. Write the assembly code of your design to program the microcontroller and generate the 512 µs delay!
I have a 24 MHz fast 8051 microcontroller, by ATMEL. It has a machine cycle of 12 clocks. I would like to generate a time delay of 512 microseconds (µs = 10-6). Design your timer without using mode 1. 1. Which Timer and what mode are you going to use? 2. What is the delay count and the base number of your design? 3. Configure and program the TMOD register according to your design. 4. Write the assembly code of your design to program the microcontroller and generate the 512 µs delay!
Introductory Circuit Analysis (13th Edition)
13th Edition
ISBN:9780133923605
Author:Robert L. Boylestad
Publisher:Robert L. Boylestad
Chapter1: Introduction
Section: Chapter Questions
Problem 1P: Visit your local library (at school or home) and describe the extent to which it provides literature...
Related questions
Question
I have a 24 MHz fast 8051 microcontroller, by ATMEL. It has a machine cycle of 12 clocks. I
would like to generate a time delay of 512 microseconds (µs = 10-6). Design your timer
without using mode 1.
1. Which Timer and what mode are you going to use?
2. What is the delay count and the base number of your design?
3. Configure and program the TMOD register according to your design.
4. Write the assembly code of your design to program the microcontroller and generate
the 512 µs delay!

Transcribed Image Text:BIT
IP.7
IP.0
IP.5
IP.4
IP.3
IP.2
IP.1
IP.0
BIT
IE.7
mmmmmm
IE.8
IE.5
IE.4
IE.3
IE.2
IE.1
IE.O
PS
PT1
PX1
MSB
SYMBOL FUNCTION
Reserved.
PTO
PXD
x
-
8051 REFERRENCE MANUAL
ES
ET1
EX1
ΕΤΟ
EXO
SYMBOL
EA
Reserved.
Reserved.
Defines the Serial Port interrupt priority level. PS-1 programs it to the higher priority level.
Defines the Timer 1 interrupt priority level. PT1=1 programs it to the higher priority level.
Defines the External Interrupt 1 priority level. PX1=1 programs it to the higher priority level.
Enables or disables the Timer O interrupt priority level. PTO-1 programs it to the higher priority level.
Defines the External Interrupt 0 priority level. PX0=1 programs it to the higher priority level.
MSB
PS PT1
EA
LSB
PX1 PTO PXO
RESET values of IP and IE = 0000 0000B
Figure 19. Interrupt Priority Register (IP)
x ES ET1 EX1 ETO
LSB
EXO
FUNCTION
Disables all interrupts. If EA=0, no interrupt will be acknowledged. If EA=1, each interrupt
source is individually enabled or disabled by setting or clearing its enable bit.
Reserved.
OUCOSAS
Reserved.
Enables or disables the Serial Port interrupt. If ES=0, the Serial Port interrupt is disabled.
Enables or disables the Timer 1 Overflow interrupt. If ET1=0, the Timer 1 interrupt is disabled.
Enables or disables External Interrupt 1. If EX1-0, External interrupt 1 is disabled.
Enables or disables the Timer 0 Overflow interrupt. If ETO=0, the Timer O interrupt is disabled.
Enables or disables External interrupt 0. If EXD=0, External interrupt 0 is disabled.
Figure 18. Interrupt Enable Register (IE)
BUD0544
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 5 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, electrical-engineering and related others by exploring similar questions and additional content below.Recommended textbooks for you

Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:
9780133923605
Author:
Robert L. Boylestad
Publisher:
PEARSON

Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:
9781337900348
Author:
Stephen L. Herman
Publisher:
Cengage Learning

Programmable Logic Controllers
Electrical Engineering
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education

Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:
9780133923605
Author:
Robert L. Boylestad
Publisher:
PEARSON

Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:
9781337900348
Author:
Stephen L. Herman
Publisher:
Cengage Learning

Programmable Logic Controllers
Electrical Engineering
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education

Fundamentals of Electric Circuits
Electrical Engineering
ISBN:
9780078028229
Author:
Charles K Alexander, Matthew Sadiku
Publisher:
McGraw-Hill Education

Electric Circuits. (11th Edition)
Electrical Engineering
ISBN:
9780134746968
Author:
James W. Nilsson, Susan Riedel
Publisher:
PEARSON

Engineering Electromagnetics
Electrical Engineering
ISBN:
9780078028151
Author:
Hayt, William H. (william Hart), Jr, BUCK, John A.
Publisher:
Mcgraw-hill Education,