{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Use timer to set period for counting when timer

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: pts, read GPIO pin counter velocity = counter ∗ “known distance per click” / “judiciously chosen period” Reset counter Pulse accumulator function Sometimes we need more . . . Options Common function Some microcontrollers have this in a single peripheral device Basically a counter controlled by an outside signal Get a microcontroller with a different mix of I/O Get a microcontroller with expansion capability Signal might enable counter to count at rate of internal clock – to measure time Signal might be the counter’s clock – to measure pulses Parallel memory bus (address and data) exposed to the outside world Serial communication to the outside world ATmega16 has external clock source for timer/counter * . 0 , # The are never enough I/O ports Techniques for creating more ports If signals all in same direction and have a separate guard signal, then able to share without glue logic Example: connect 5 LCD displays to microcontroller port sharing with simple glue logic decoders/multiplexors memory-mapped I/O port expansion units can share connections to RS, RW, and DB but not E changes on E affect display – must guarantee only one is active Direction of ports is important single direction port easier to implement timing important for bidirectional ports 6 ! solution is to insert intervening registers tha...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern