Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a assembler language program for microcontroller 8032-generic. This microcontroller belongs to the C51 family. The code is similar with 8051 microcontroller. ( No other

Create a assembler language program for microcontroller 8032-generic. This microcontroller belongs to the C51 family. The code is similar with 8051 microcontroller.

(No other language like C, C++ or python) I just need a assembler language (low level programming language). I have attached an example of programming language that I seek.

The example code that i attached belongs to a program for led clock. You may use that as reference. Thank you in advance,

image text in transcribed

image text in transcribed image text in transcribed

image text in transcribed image text in transcribed

image text in transcribed image text in transcribed

image text in transcribed image text in transcribed

7. Stopwatch with LED display 7.1. Required Hardware: LED display; pushbuttons 7.2. Requirements 1. Required resolution 0.01s 2. Max measured time 99min99.99s 3. Lap time queue with defined size at compilation time. 4. Push buttons: a. Buttons: START/ STOP; LEAP/RESET 5. Operation overview a. After reset stopper gets in the READY state with a display of 0.00.00 b. START/STOP - starts the time measurement placing in RUN mode c. START/STOP - stops the time measurement placing in STOP mode d. Pressing the LAP button holds on the display moment of pressing while time is counted in the background. User is notified by pulsing point with 1Hz and 50% duty e. In LEAP time mode pressing START/STOP returns to the curren time f. In LEAP time mode pressing LEAP updates the current LEAP time g. In the STOP mode pressing LEAP resets the stopwatch h. In the STOP mode pressing START restarts time measurement i. Suppress printing nonsignificant zeros MOVC A,@A + DPTR MOV @R1,A RET ; Interrupt dedicated to RTC service ; f(TO)=10Hz TO_ISR: MOV TH0,\#10H PUSH PSW PUSH ACC MOV A,R PUSH ACC DJNZ TO_DV,TO_ISR_EX MOV TO_DV,\#10 ; Increment clock time MOV RO,\#CLOCK ACALL CLOCK_INC SETB CL_HC TO_ISR_EX: POP ACC MOV RO,A POP ACC POP PSW RETI ; Interrupt dedicated to display service. LED ; f(T1)=480Hz T1_ISR: ;Adjust timer to 480Hz1280 cycles only!!! MOV TH1,\#251 PUSH PSW PUSH ACC MOV A,R PUSH ACC \( \begin{aligned} \text { T1_ISR_EX: } & \\ \text { POP } & \text { ACC } \\ \text { MOV } & \text { RO, ACC } \\ \text { POP } & \text { ACC } \\ \text { POP } & \text { PSW } \\ \text { RETI } & \end{aligned} \) ; Unused interrupts END

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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions