Page 1 of 1

QUESTION 2 (8) Write a program in C or Assembly language which will indicate the number of cars driving past a point in

Posted: Sat Nov 27, 2021 10:39 am
by answerhappygod
Question 2 8 Write A Program In C Or Assembly Language Which Will Indicate The Number Of Cars Driving Past A Point In 1
Question 2 8 Write A Program In C Or Assembly Language Which Will Indicate The Number Of Cars Driving Past A Point In 1 (41.97 KiB) Viewed 70 times
QUESTION 2 (8) Write a program in C or Assembly language which will indicate the number of cars driving past a point in 1 hour. At the end of each hour, the number of cars should be sent to an LCD display. Use a function called "void LCD Display(unsigned int CarCount)" You do not need to write the function. The display should only be updated every hour, meaning that a new count will the Initiated again. A sensor connected to P3.4 (Counter O input) will produce a complete pulse every time a car passes the sensing point. Activate Counter 0 in 16-bit mode. Use timer 1 in 16-bit timer mode to generate the time delay.Use a 50 ms delay before roll over. Use interrupts. Assume that the maximum cars passing the sensingpoint in an hour will be 4000. The crystal frequency is 12 MHz.