English / Myanmar

Blind Love: a Myanmar Song

July 19th, 2010

This is another Myanmar song. I liked it very much. I have played and sung it with my guitar many times. When I was a second year student, a senior student, Ko Pyi Moe, called me to join their music band called “Polar Star”. That is why, I even got a chance to sing it on stage at some ceremonies. Please enjoy the original song by Htoo Eain Thin! Thanks to my younger brother, Ther Nge, for his sharing and all his effort to convert these long lost songs from tape to digital format.

Read the rest of this entry »

Random Password Generator

July 12th, 2010

I have a few nagging computer user accounts that regularly ask me to change password. Some of them even remember history of about ten old passwords to prevent me from using them again.

Read the rest of this entry »

Common Interrupt Pitfalls

June 18th, 2010

I just want to share some interesting facts that I found in SDCC Compiler User Guide.
From my experience, I think these facts are very important to keep in mind of a firmware programmer. Last time, I got an experience that my program executed wrongly even though I could not find any fault in my program. Suddenly, I remembered stack overflow problem and the program worked correctly after I changed the stack size.

Read the rest of this entry »

Circular Buffered UART Com Module for 8051 Microcontroller

June 10th, 2010

A lot of embedded systems uses UART communication. That is why, I would like to share a circular buffered UART comm module here. I have developed the module for 8051 microcontroller but it can easily be modified for other microcontrollers as well.

Read the rest of this entry »

Soft-Timer Module for 8051 Microcontroller

June 10th, 2010

Almost every embedded system uses timers in their firmware. 8051 microcontroller has only two or three hardware timers, and generally, it is not enough to use hardware for all the timers your system needs to have.
Furthermore, not all timers need to have hard timing requirement. For example, blinking an LED indicator every second is accurate enough if the timing error is less than a few millisecond.
That is why, I normally use software to implement all the timers that have soft timing requirement. Here, I would like to share a soft-timer module that I developed for 8051 microcontroller but it can easily be modified for other microcontrollers as well.

Read the rest of this entry »

Forgetting: a Myanmar Song

May 29th, 2010

Let me share one of my favorite songs when I was a teenager :)
Thanks to my younger brother, Ther Nge, for his sharing and all his effort to convert these long lost songs from tape to digital format.

Read the rest of this entry »

Using SPI on Low-End Microcontroller

May 26th, 2010

SPI is a simple and efficient inter-IC communication bus. A lot of peripheral chips such as Real Time Clock and EEPROM come with SPI or I2C bus. If there is no special reason, I prefer to use SPI than I2C because it is faster and simpler. It is also very easy to emulate in software.

Read the rest of this entry »

Astable Multivibrator using Op-amp

May 24th, 2010

One of my friends wanted to calculate the oscillation frequency of an op-amp circuit. He had measured the output frequency of the circuit and it was 109 kHz. He asked my help to derive the relation between the oscillation frequency and its passive components. Although I have been away from analog circuits for a long time, I agreed to have a look. Then, he took the picture of circuit diagram using his hand phone and sent to me using MMS.

Read the rest of this entry »

Choosing a name for our daughter

May 3rd, 2010

Here are a few things that we considered when we were choosing a name for our newborn baby. Most of the idea is inspired from the book ‘Conception, pregnancy and birth’ by Dr. Miriam Stoppard.

Read the rest of this entry »

C Programming on Windows

April 30th, 2010

Some of my friends who started learning C programming have asked me which IDE is good to use on Windows.
For me, I personally like to use Microsoft Visual Studio Express which is available for free at http:// www.microsoft.com /express/

Dev-C++ from Bloodshed is also a popular one and it can be downloaded from http:// www.bloodshed.net/ devcpp.html.

Read the rest of this entry »

Myanmar Calendar

March 27th, 2010

Just for fun, I have modified Myanmar calendar C program that I wrote in 1997 as a PHP web page.

Read the rest of this entry »

Mahar Bote -Basic Myanmar Astrology

March 27th, 2010

Thiri has got a method from her old colleague to calculate Myanmar astrology called “Mahar Bote” of a person.

Read the rest of this entry »

VB2005 Timers

February 2nd, 2010

There are several types of timers offered by the .NET Framework. Inside Windows Forms applications, you can use the System.Windows.Forms.Timer control.
You can use either the System.Threading.Timer class or the System.Timers.Timer class if your application doesn’t have a user interface.

Read the rest of this entry »

Protecting Flash Memory of a Fujitsu MCU

December 11th, 2009

I had a requirement to protect flash memory of Fujitsu MB95F128JB MCU but I could not find any satisfactory hardware/software tool to protect it.

Read the rest of this entry »

Using vsftpd

October 14th, 2009

vsftpd is a GPL licensed FTP server for UNIX systems, including Linux. The following is an example to allow a group of users to have read and write access.

Read the rest of this entry »

Multidrop network for RS232

October 9th, 2009

I got a requirement to communicate one master device and eight slave devices. I intended to use RS485 half-duplex communication for this system but all devices happened to have only RS232 interfaces.

Read the rest of this entry »

Using Samba and SWAT

September 27th, 2009

Samba uses the Session Message Block (SMB) protocol to enable the Windows operating system to access Linux files.

Read the rest of this entry »

CRC Calculation in VB and C

September 25th, 2009

Just to share a few software modules that were written in Visual Basic 2005 and C for the calculation of CRC -Cyclic Redundancy Check.

Read the rest of this entry »

Installing and Using Eclipse CDT and SDCC

August 21st, 2009

Using Eclipse C/C++ Development Tooling – CDT- and SDCC -Small Device C Compiler- to develop firmware for 8051 microcontrollers is discussed.

Read the rest of this entry »

SDCC – Small Device C Compiler

August 18th, 2009

SDCC – Small Device C Compiler – is a free open source C compiler software for 8051 and a few other microcontrollers.

Read the rest of this entry »