Archive for the ‘Coding’ Category.
December 17, 2012, 10:03 pm
I upgraded my Code Composer Studio (CCS) to 5.2.1 a few days ago. An interesting thing I found out was that while building existing Lauchpad projects, I was receiving a “program will not fit into available memory” error: Continue reading ‘“Program Will Not Fit Into Available Memory” Error In CCS’ »
November 15, 2012, 6:18 pm
Based on some user feedback, I have updated the Hex/Bin/Dec converter and calculator I created a couple of years ago. Added features include shortcut to clear all fields and additional calculations besides bits manipulations. Continue reading ‘Hex/Bin/Dec Converter And Calculator — Updated’ »
October 30, 2012, 11:01 am
I have created a dedicated page for the MCP2210 library documentations. An link to the reference can also be found on the side navigation pane. The Doxygen generated project documentation can be viewed directly here. Continue reading ‘MCP2210 Library Reference’ »
October 22, 2012, 6:00 am
During the past few weeks, I have shown many examples (see 1, 2, 3, 4) of using the open source MCP2210 Library with SPI devices under Linux. In this post, I will conclude this series with one more example: interfacing MCP3204 with MCP2210. With this example, I will have covered all the devices included on the evaluation board, which represents most of the scenarios you will run into. Other SPI devices can be controlled similarly using the methods illustrated in this series. Continue reading ‘MCP2210 Library — MCP3204 SPI ADC’ »
October 15, 2012, 7:42 pm
So far, I have shown examples of using the open source MCP2210 library with MCP2210 GPIO, MCP23S08 and TC77 temperature sensor. In this post, I will show an example of interfacing the chip with an SPI EEPROM using the library. Continue reading ‘MCP2210 Library — SPI EEPROM’ »
October 10, 2012, 8:32 pm
A couple of weeks ago, I showed an example of using the open source MCP2210 Library I created earlier to communicate with the MCP23S08 port expander under Linux. In this post, I will provide another example of using the library with the TC77 temperature sensor included on the MCP2210 evaluation board. Continue reading ‘MCP2210 Library — SPI Example Using TC77’ »
October 1, 2012, 7:15 pm
I made a few minor tweaks to the open source MCP2210 library during the past few days, and had also updated the documentation. In my previous post, I illustrated how to manipulate the GPIO pins using this library and today I will show you an example of communicating with a MCP23S08 8 bit IO port expander using SPI. Continue reading ‘MCP2210 Library — SPI Example Using MCP23S08’ »
September 27, 2012, 7:02 pm
After a couple of weeks’ coding and testing, I finally finished the initial version of the MCP2210 C++ library for Linux. This library utilizes functions from Signal 11‘s HID API (hidraw) to communicate over the USB HID interface. Continue reading ‘MCP2210 Library’ »
September 9, 2012, 7:59 pm
This post is programming related and has nothing to do with electronics. I have not written anything programming related topics lately, but this one is worth sharing as it is related to an rather obscure error. Continue reading ‘COMException (0×80072020)’ »
December 17, 2011, 2:13 pm
A while back, I created an Arduino plugin for NetBeans so that I could use the full-fledged NetBeans IDE for all my Arduino projects. The approach I took was using the NetBeans project sample module method. Under the hood though, it is nothing more than a makefile and an source file template. Continue reading ‘Makefile for Arduino 1.0’ »
November 14, 2011, 9:25 pm
Alexa is a great tool for gathering your website’s statistics. Using its traffic rank moving average, you can see how your content affects your site’s popularity over time. Continue reading ‘Simple Alexa Ranking Script’ »
September 1, 2011, 7:36 pm
DS28EC20 is a 20Kb 1-Wire EEPROM chip from Maxim. Like all other 1-wire devices, only a single pin is needed for both power and communication. In this blog posting, I will show you how to how to communicate with DS28EC20 using the popular Arduino platform. Continue reading ‘Interfacing DS28EC20 with Arduino’ »
November 9, 2010, 3:30 pm
When working with micro-controller projects, it is often necessary to perform calculations in binary and hexadecimal forms. While almost all calculator tools (such as calc under Windows and gcalctool in Linux) can handle such tasks, they are designed for general purpose calculations and not geared specifically towards working with digital circuits. Continue reading ‘Hex/Bin/Dec Converter And Calculator’ »
August 19, 2010, 7:37 pm
One of my recent projects was to build a POV display device. There are already many microcontroller based POV devices out there, but most of those I have seen use around eight LEDs and have fixed font types. So I thought of developing something that is larger (e.g. using more LEDs) and more flexible (e.g. can display both text and images). Continue reading ‘POV And POV Image Encoder’ »
April 10, 2010, 8:14 pm
I was inspired by Paul’s 7 segment display and decided to build one myself. He used 4 common cathode 7 segment displays. In his original schematics, all the segments within a display shared one current limiting resistor which unfortunately affect the display brightness when different numbers of segments are lit. I happened to have two common anode dual 7 segment displays (QDSP-G545) so I decided to use them and four 74HC595 shift registers to build a four 7-seg display. Realizing that other people might be using either common anode or common cathode displays, I also built a library that can be used for either case. Continue reading ‘4 Digit 7 Segment Display Using Arduino’ »