CAN-bus to RS232 message debugger CAN bus to RS232, software included for PIC 16F1937 device.
Design, Development, Program. With passion. Copyright EDL-Tech 2010-2018

The consept of this project

This CAN to RS232 system is easy to use and gives user extensive access to see a bit deeper into their CAN based system. CAN to RS board can be implemented onto client’s own software or be used as debugging tool. The software has easy to use protocol and the can bus speed and filters can be changed on the go. This way, user can capture specific messages directly to their RS232 terminal. To archieve this, a powerful 8 bit PIC microcontroller is used with Microchip’s CAN communication chips. Code will be available soon with demostrationg video. Flowcode sources will be available soon.
CAN-bus to RS232 message debugger CAN bus to RS232, software included for PIC 16F1937 device.
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.