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

Another question on Engineering

question
Engineering, 03.07.2019 15:10
Heat is added to a piston-cylinder device filled with 2 kg of air to raise its temperature 400 c from an initial temperature of t1 27 cand pressure of pi 1 mpa. the process is isobaric process. find a)-the final pressure p2 b)-the heat transfer to the air.
Answers: 1
question
Engineering, 04.07.2019 18:10
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
question
Engineering, 04.07.2019 18:10
Machinery that is a key part of the process and without which the plant or process cannot function is classifed as: (clo4) a)-critical machinery b)-essential machinery c)-general purpose machinery d)-none of the specified options.
Answers: 1
question
Engineering, 04.07.2019 18:20
Air flows over a heated plate àt a velocity of 50m/s. the local skin factor coefficient at a point on a plate is 0.004. estimate the local heat transfer coefficient at this point.the following property data for air are given: density = 0.88kg/m3 , viscosity 2.286 x 10 ^-5 kgm/s , k = 0.035w/mk ,cp = 1.001kj/kgk. use colburn reynolds analogy.
Answers: 1
You know the right answer?
Problem solving note: in order to get maximum points for each problem, clearly write down the equat...
Questions
question
Mathematics, 22.01.2021 14:50
question
Mathematics, 22.01.2021 14:50
Questions on the website: 13722360