subject
Engineering, 24.12.2019 23:31 vhs35

Problem solving note: in order to get maximum points for each problem, clearly write down the equations and the steps that lead to a solution. 1. (20 pts) let us design a stopwatch for a group of super swimmers using the timerl feature of pic18f4580 microcontroller (fosc = 8mhz). the stopwatch can show seconds, tenth second and hun- dredth second. (unfortunately, we don't have enough time to design minutes or more.) the time will be shown on the lcd module which is connected to the portc. (1) the prescaler is 4. calculate the initial value for the register tmri so that the timer overflow flag sets exactly once every 10 milliseconds. (2) define global unsigned char variables secs and msecs, respectively. write a function, deci- mal2ascii), to convert the decimal number into the corresponding ascii codes. in the function, (a) update the initial value in tmr1 register; (b) clear the flag bit; (c) increment the variable msecs. if msecs is larger than 99, clear it and increment the variable secs. if the variable secs is larger than 59, clear all variables; (d) the lcd module will show the time in the format as xx. xxs, for example: 11.75s or 38.54s, etc. write down an algorithm to transfer the values of secs and msecs into ascii digits and store them together with .' and 's' in a 6-element string ascii_time. (define the string as a global vari- able.)

ansver
Answers: 1

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, agpraga23ovv65c
Carbon dioxide gas expands isotherm a turbine from 1 mpa, 500 k at 200 kpa. assuming the ideal gas model and neglecting the kinetic and potential energies, determine the change in entropy, heat transfer and work for each kilogram of co2.
Answers: 2
image
Engineering, 04.07.2019 18:10, tobyhollingsworth178
Which from the following instrument is commonly used to detect the high pitch butzing sound in bearings? [clo4] a)-digital ultrasonic meter b)-infrared camera c)-spectroscopic d)-vibrometer
Answers: 2
image
Engineering, 04.07.2019 18:20, karatsgrande3772
Determine the damped natural frequencies and the steady state response of a decoupled damped forced two degrees of freedom system. 10ä1 + 2q1 20q1 10 cos t; 10q2 +4q2 + 40q2 10 cos t
Answers: 3
image
Engineering, 04.07.2019 18:20, jessie8022
Apiston-cylinder device contains 0.1 m3 of liquid water and 0.9 m3 of water vapor in equilibrium at 800 kpa. heat is transferred at constant pressure until the temperature of water reaches 350 °c. determine (a) the quality of water at the initial state (b) the work associated with this process, (c) the heat associated with this process.
Answers: 2
You know the right answer?
Problem solving note: in order to get maximum points for each problem, clearly write down the equat...

Questions in other subjects: