2. First program - Blink On this tutorial we will familiarize ourselves with the construction of software and introduce us to the “delay” and “forever loop”.
Design, Development, Program. With passion. Copyright EDL-Tech 2010-2016

The basic start

TIPS: You can select any micro you want, but it is always easiest to start small. You can zoom in by using CTRL and your mouse wheel. You can change colors of your led using Properties. Start by opening new Flowchart, select the 16F88 as target chip. Add input LED to your dashboard. To make led show up “bigger” use zoom control to see it better. Now try changing the LED color using properties window. Click on the led so it becomes selected and look on the properties: Click on the Color under simulation and select LED a color you want. Now you have selected your shiny new led a shiny new color, but it is not doing anything, so lets fix that! Look at your LED properties again: Ha-Ha! You see that “Unconnected” text over there? That needs to be changed. Click on it and select port B0 pin to be used for our led! “Why port B0?” you ask? Youre welcome to use anything, but i want you to use the port B0 for this tutorial. You can play with this later. So to get your led lit up, we need to set the Port B0 to state 1, ON. Microcontroller output pins can have two states: 0 and 1. So we start by adding our Flowchart one item, Output. The output needs to be set, so we doubleclick on it and see its properties: Select port B and single pin: 0. Into the value you just write 1. Now you can hit that “play” button on simulation controls! But wait what? Our simulation ends in no time. And our LED is now lit! Woho! But we want it to blink! So we add another output state, 0 PortB0. “Now were talking” and you hit that Play again. But what, now the simulation ends and the LED is still on... There is small mistake. We need to add DELAY for our program run. So drag that delay to icon to these two position and set them to be 500ms using their properties! Now when you run the simulation, the LED blinks, finally! But wait, we would want it to blink    forever? Add a loop to your program. And drag all other icons into it. Hit that blink... i mean play button. Now our led will blink until the world ends. Now this tutorial comes to end..... But wait! No project is complete without good working prototype! Take out your eBlocks and make sure you have clock crystal onboard, and hit that send to chip button! Check that you have HS as your oscillator source under “Build--->Project options, Chip Config”. Attach that LED board to PortB and apply power and USB connection. Now hit that microcontroller image and wait... And your LED blinks! So... You’ve come long way Flowcode - trainee, and i just know it, the embedded world will not eat you... Yet. Now continue to the next tutorial or stay there and watch your magnificient LED blinking.
2. First program - Blink On this tutorial we will familiarize ourselves with the construction of software and introduce us to the “delay” and “forever loop”.
Design, Development, Program. With passion. Copyright EDL-Tech 2010-2015

The basic start

TIPS: You can select any micro you want, but it is always easiest to start small. You can zoom in by using CTRL and your mouse wheel. You can change colors of your led using Properties. Start by opening new Flowchart, select the 16F88 as target chip. Add input LED to your dashboard. To make led show up “bigger” use zoom control to see it better. Now try changing the LED color using properties window. Click on the led so it becomes selected and look on the properties: Click on the Color under simulation and select LED a color you want. Now you have selected your shiny new led a shiny new color, but it is not doing anything, so lets fix that! Look at your LED properties again: Ha-Ha! You see that “Unconnected” text over there? That needs to be changed. Click on it and select port B0 pin to be used for our led! “Why port B0?” you ask? Youre welcome to use anything, but i want you to use the port B0 for this tutorial. You can play with this later. So to get your led lit up, we need to set the Port B0 to state 1, ON. Microcontroller output pins can have two states - 0 and 1. So we start by adding our Flowchart one item, Output. The output needs to be set, so we doubleclick on it and see its properties: Select port B and single pin: 0. Into the value you just write 1. Now you can hit that “play” button on simulation controls! But wait what? Our simulation ends in no time. And our LED is now lit! Woho! But we want it to blink! So we add another output state, 0 PortB0. “Now were talking” and you hit that Play again. But what, now the simulation ends and the LED is still on... There is small mistake. We need to add DELAY to our program run. So drag that delay to icon to these two position and set them to be 500ms using their properties! Now when you run the simulation, the LED blinks, finally! But wait, we would want it to blink    forever? Add a loop to your program. And drag all other icons into it. Hit that blink... i mean play button. Now our led will blink until the world ends. Now this tutorial comes to end..... But wait! No project is complete without good working prototype! Take out your eBlocks and make sure you have clock crystal onboard, and hit that send to chip button! Check that you have HS as your oscillator source under “Build--->Project options, Chip Config”. Attach that LED board to PortB and apply power and USB connection. Now hit that microcontroller image and wait... And your LED blinks! So... You’ve come long way Flowcode - trainee, and i just know it, the embedded world will not eat you... Yet. Now continue to the next tutorial or stay there and watch your magnificient LED blinking.