In this switch debouncing tutorial part 2 C code debounce algorithms will be looked at further, and their effectiveness. All the software solutions shown will be demonstrated on the MSP430G Launchpad. However the basic principle of operation shown in the examples, can be applied to all microcontrollers, particularly the last example which is based on some code found at Jack Ganssle tutorial, this can be easily implemented on any system using the C language.
Tag Archives: Timer
Microcontroller Timer
Switch Debouncing Tutorial Pt/1
In this switch debouncing tutorial part 1 the cause and effect of switch bounce will be explained and demonstrated, then a cost effective hardware debouncing solution will be discussed, with oscilloscope captures to demonstrate the results. The last section of part 1 will show a simple program based on the MSP430 , this can be used to see the effects of a particular switch connected to the GPIO. Switch deboucing tutorial part 2 of this tutorial will look at further C code debounce algorithms and their effectiveness.
MSP430 Timer PWM Tutorial
In this MSP430 timer PWM tutorial the basic workings of the on board timer peripheral will be explained, along with some C code examples which can be downloadable at the end of the tutorial. Additionally the video below demonstrates the examples ‘A picture paints a thousand words, a video displays a thousand pictures’.
C2000 Solar MPPT tutorial Pt/3
In this third part of the C2000 Solar MPPT Tutorial, the software will be looked at in greater detail. This will entail a look at the Perturb & Observe algorithm, ADC code and timing code to ensure everything operates in a controlled manner.
Stellaris Timer Example
In this Stellaris timer example two timers are used to code a basic frequency counter.