Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 7 How fast can you go!! The aim is to see how many button pushes you can press in 5 seconds. The momentary button

Problem 7

How fast can you go!!

The aim is to see how many button pushes you can press in 5 seconds. The momentary button PA0 is the push button, PA1 is reset button.

To start, push PA0 and keep pushing until the display stops responding, (after 5 seconds) Every downward press should increment the count displayed on PORTC ( note make sure a button release is not counted)

After 5 seconds, stop counting and wait for the reset button to be pressed then clear the count and display.

appear on PORTC, after 5 seconds, the will not incrementThe

use the delay function _delay_ms(1) to time 5 seconds;

NB, in order to use the momentary buttons on the application board, set PE1 to 0, PE0 to 1. Note the button is active low.

PORTC display the numbers

PINA0 start

PINA0 reset

please use AtmelStudio to do structure diagram, C codes, State machine diagram and its C code

Thanks

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

Recommended Textbook for

Databases And Information Systems 1 International Baltic Conference Dbandis 2020 Tallinn Estonia June 19 2020 Proceedings

Authors: Tarmo Robal ,Hele-Mai Haav ,Jaan Penjam ,Raimundas Matulevicius

1st Edition

303057671X, 978-3030576714

Students also viewed these Databases questions

Question

b. Where did they come from?

Answered: 1 week ago