Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Answer for Question a, b, and c Please solve by expert and need a clean writing The 8051 has two timers/counters. They can be used

image text in transcribed

Answer for Question a, b, and c Please solve by expert and need a clean writing

The 8051 has two timers/counters. They can be used either as timer to generate a time delay or as counters to count event happening outside the micro-controller. A pulse width modulation (PWM) is commonly used to control speed of DC motor which require the timer delay to generate duty cycle of square wave. [8051 mempunyai dua pemasa / kaunter. Mereka boleh digunakan sama ada sebagai pemasa untuk menjana kelewatan masa atau sebagai kaunter untuk mengira peristiwa yang berlaku di luar pengawal mikro. Modulasi lebar nadi (PWM) biasanya digunakan untuk mengawal kelajuan motor DC yang memerlukan kelewatan pemasa untuk menjana kitaran duti gelombang persegi.] C6CO2PO3 a) Assuming that XTAL = 12 MHz, write assembly language to create a frequency of 500Hz. Use Timer 0 mode 1 to create the delay. [Dengan mengandaikan bahawa XTAL = 11.0592 MHz, menulis bahasa pemasangan untuk mencipta kekerapan 500Hz. Gunakan Mod Pemasa 0 1 untuk mencipta kelewatan] [3 marks/markah] C6 CO2 PO5 b) Design an 8051 embedded system has one output port P2.1 that can control 9V DC motor (fan) and two toggle switches (connected to P1.4 and P1.5). (Include together: 8051 power supply, oscillator, reset button, opto-isolator, transistor, and diode) [Reka bentuk sistem tertanam 8051 mempunyai satu port output P2.1 yang boleh mengawal motor DC 9V (kipas) dan dua suis togol (disambungkan ke P1.4 dan P1.5). (Termasuk bersama: 8051 bekalan kuasa, pengayun, butang set semula, optoisolator, transistor dan diod)] [3 marks/markah] C6 CO2 PO3 c) Write a program in assembly language to generate a square ware on port P2.1 base on two switches (connected to P1.0 and P1.1) as list in Table 1. You must use Timer in your design [Tulis program dalam Bahasa himpunan untuk menghasilkan isyara segiempat pada Port P2.1 berdasarkan 2 suis (disambungkan pada Pl.O dan P1.1) seperti Jadual 1. Timer perlu digunakan dalam rekabentuk ini] Table 1 [Jadual 1] SW1 (P1.0) 0 1 0 1 SW2 (P1.1) 0 0 1 1 Square wave (P2.1) Duty cycle = 0% High Duty cycle =50% High Duty cycle =75% High Duty cycle=100% High [5 marks/markah]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Sham Navathe

4th Edition

0321122267, 978-0321122261

More Books

Students also viewed these Databases questions