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.
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.
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’.
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.