Electronics - MSP430 - Using P1OUT and P2OUT registers of the LaunchPad to manipulate LEDs with bit shifting

After creating a software to count in binary , let’s see how bit shifting works. In this tutorial we are going to see how to turn on and off a single LED each time we will be using the left bit shifting. But what is interesting, in this video example, it’s that we will be manipulate GPIOs with P1OUT and P2OUT registers. Let’s get started. What do we need? In order to have exactly the same example as in the video, let’s see which electronic stuff we need: ...

May 12, 2013 · Mi-K

Electronics - MSP430 - Using P1OUT pins and LEDs to count in binary

Maybe you’ve always dreamed to understand how to count in binary. What do you think about learning it with a MSP430 LaunchPad and LEDs? If you are still interested, that’s what we are going to see with this tutorial and a video. Let’s get started. What do we need? If you would like to reproduce exactly this example, let’s see which electronic stuff we need: 1 MSP430 LaunchPad with a M430G2553 microcontroller; 9 LEDs (1 green, 4 red and 4 orange); 9 resistors of 330 ohm; 4 breadboards; 28 wires (10 red, 4 tiny and 4 long orange, 8 yellow, 2 black); 1 USB mini cable. Of course, it’s possible to do the same with less parts. ...

May 10, 2013 · Mi-K

Electronics - MSP430 - Switching on a LED with a breadboard

In this MSP430 tutorial we will see how to use the LaunchPad to switch on a LED with a breadboard. It’s an easy tutorial for beginners. Simple, easy and useful. You can watch the result of the tutorial directly with the video below: What we need to achieve this tutorial For our example, we need: one MSP430 LaunchPad board one or two breadboards two wires one resistor (150 ohms) one LED We could do this tutorial without any resistor, but it’s a good practice to use one and it always reduce the current through the LED. ...

May 1, 2013 · Mi-K

Electronics - IAR Systems - Setting up the IAR Embedded Workbench for the STM32L-DISCOVERY board

It’s not essentially easy to set up the IAR Embedded Workbench for a new project. All boards are different and all microcontrollers too. In our case we will be using the STM32L152RBT6 one. So, if you didn’t use neither IAR nor the STM32L-DISCOVERY board, it would be a bit complicated to begin playing with your new toys. Fortunately everything has a solution. So, let’s get started with this new tutorial! ...

April 23, 2013 · Mi-K

Electronics - MSP430 - Managing P1DIR and P1OUT registers to blink the red and green LEDs

This tutorial has to be seen as the most easy code that is possible to do with a MSP430 LaunchPad and then totally adapted for beginners. Indeed, we are going to blink together the red and the green LEDs by explaining what we are doing with the famous P1DIR and P1OUT registers. Ready? So, let’s do it! Explanation Good to know In the MSP430 Launchpad there are a few microcontrollers possible to use. ...

April 21, 2013 · Mi-K

Electronics - MSP430 - Restoring the default software

Once you’ve received your MSP430 board, you couldn’t stop playing with it, clicking on every button, downloading all software you could find. But at a moment, you said to yourself: “Eh, how can I do to restore the default software?” That’s what we’re going to see in this tutorial to restore the demo default software. With IAR Embedded Workbench IDE Go where you installed your IAR IDE. For example, let’s assume this location: ...

April 14, 2013 · Mi-K

Electronics - MSP430 - Using the temperature demo GUI

Without changing anything, it’s possible to check the current temperature with the MSP430 board and the default software. Indeed, Texas Instruments provides a tool to display the temperature on your computer’s screen. So, let’s go and display temperature with the Graphical User Interface (GUI). Installation First of all, we need the Temperature Demo GUI. Two ways are possible. From the TI’s official website You could download it directly from the TI’s website: ...

April 14, 2013 · Mi-K

Electronics - IAR Systems - Enabling the download binary file option to the board

Maybe you tried to compile a project. All was OK. But when you wanted to download the binary into the board, nothing happened. What’s going on?! The debugger has to be configured! Let’s see this in this tutorial to enable the downloading of binary files. Explanation The debugger is not necessarily well configured. So we have to do it. For that, click > Project > Option > Debugger > Setup > Driver > Select your debugger (instead of Simulator). ...

April 13, 2013 · Mi-K

Electronics - IAR Systems - Errors using the Embedded Workbench IDE

Using the IAR Embedded Workbench can be really helpful. But what happens when come errors during development? Let’s try to solve problems encounter with this IDE. Chosen derivative (F20X1_G2X0X_G2X1X) and actual hardware (MSP430G2XX3) do not match This kind of error appers when the IDE is not already setup with the correct microcontroller. In our case, we would like to use the MSP430G2553 microcontroller board in order to compile a project. ...

April 13, 2013 · Mi-K

Electronics - STM32 - Using the ADC peripheral with a potentiometer

ADC is one on the most famous peripheral on a microcontroller. In this tutorial we will see that it’s possible to retrieve data from a potentiometer and send them in an array. You are certainly wondering how to use a such thing on a STM32? That’s a good question. To see this, let’s use the STM32F103ZE-SK board, and guess what? There is already a potentiometer on it! What a wonderful world (that’s what Louis Armstrong would have said) isn’t it? ...

April 12, 2013 · Mi-K