Digital Input Interrupts and 7-Segment Display

 

Download Project 

 

This example project demonstrates how to use digital input interrupts and a 7-segment display using CASP.

 

Target

Arduino Uno is used in this project. However, any supported micro-controller board can be used.

 

Description

A push button switch is connected to pin-2 of the target board. A 7-segment LED display is also connected from pin-3 to pin-9 as shown in the circuit diagram. A model is developed to count number of times the push button is pressed and display on the 7-segment display. After 15 counts, the count will restart from zero. The output of the counter block is also send to the serial port. User can see the counter value from the ‘Configure Simulation Hardware’ interface window by clicking on Simulation->Configure Simulation IO menu item from the CASP main tool bar. Please go through the individual block parameters used in the model along with respective documentation for better understanding.

 

Circuit Diagram

 

Model

Screen shot of the Configure Simulation Hardware window

 

References

Please go through our video tutorials, tutorial projects and CASP main documentation for getting started with CASP.