Researches
The following research results are free to use as long as this web site (http://winnyefanho.net) is cited.
Fast Logarithm Converter for Fixed-point Numbers without Look-up Table
A fast algorithm computes the logarithm value to base 2 of any fixed-point
numbers. The input value must be positive while the output value is a signed
fixed-point number. Unlike the commonly used methods, look-up table is not
required to reduce ROM size. It is suitable for being implemented by hardware
in integrated circuits, or, by software in DSP or different kinds of MCU in
which the ROM size is limited.
Midpoint Ellipse Algorithm
Midpoint ellipse algorithm is a method for drawing ellipses
in computer graphics. This method is modified from Bresenham's algorithm.
The advantage of this modified method is that only addition operations
are required in the program loops. This leads to simple and fast implementation
in all processors.
Solution to Saturn Puzzler
Saturn Puzzler is a 3-D puzzle
produced by Mag-Nif. Here is the solution.
Data Compression Algorithm for Hand-held PDA
This paper presents a lossless data compression technique
for the personal digital assistant (PDA). The requirements of compression
method for PDA are mainly high compression performance and fast decompression
speed. A new compression algorithm named statistical Lempel-Ziv
(SLZ) is proposed. This compression algorithm may be viewed as a variant
of LZ77 in conjunction with statistical method. In addition, a prefix entropy
coding scheme is designed in order to eliminate the look-up table for decoding.
An Experiment on Transmission Line Effect
It is an experiment suitable for electronic engineering undergraduates.
The aim is to investigate the characteristics of a low-loss transmission
line. The characteristic impedance of the transmission line
under test is obtained by the experiment. The capacitance and inductance
per unit length can also be found. The students are required to understand
the physical meanings of voltage reflection coefficient, voltage
standing wave ratio, etc.
Freeware Download
Calendar with holidays
It is a general calendar that supports Julian calendar from 1-Mar-4 A.D to 4-Oct-1582 and Gregorian calendar from 15-Oct-1582 to 31-Mar-4000 A.D. It is so interesting that 10 days from 5 to 14 in October 1582 were missing. It was the month of change over from Julian calendar to Gregorian calendar in order to cancel the 10-day error due to Julian calendar.
This calendar also displays the holidays in the days that they fall on. A special feature of this calendar is that it can show the date of Easter in each year.
Coil Calculator version 1.2
This program is used to design wire wound inductors working at radio frequencies. The coil parameters are basically calculated by the well-known theoretical equation:
L = µAN2 / l. This equation is valid when the coil is infinitely long. In practical cases, the inductance of a coil with finite length
may be obtained by applying a correction factor to the equation. This has been done by Nagaoka in 1909. This program makes use of an approximation to the Nagaoka
inductance given by Lundin in 1985 and calculates the inductance to less than 1% error. This program also gives you the values of resonant capacitance and Q factor.
They are useful for designing tank circuits in radio applications.
References:
1. Lundin, R., "A Handbook Formula for the Inductance of a Single-Layer Circular Coil," Proc. IEEE, Vol. 73, Issue 9, pp. 1428-1429, Sept. 1985.
2. Nagaoka, H., "The Inductance Coefficients of Solenoids," J. Coll. Sci., vol. 27, pp. 18-33, 1909.
Grandate version 1.0
Conversion from Gregorian date to Chinese date
It is a simple utility program to do date conversion from Gregorian date to Chinese date.
For example, the Gregorian date of "8 Apr 2001" is input, the program will give you the equivalent Chinese date "15th day of the 3rd month in the year of Xin Si".
The 15th day represents that the moon is full on that night. The year of "Xin Si" implies the year of Snake.
The program supports the dates ranging from 3-Feb-1840 to 31-Dec-2050.
This program can also be downloaded from Simtel or Driver Guide
Master Mind version 1.0
Do you remember the era of 8088 computer platform running MS-DOS? This game was developed in that era.
The game itself is nothing special. I just want to show how efficient assembly programming is.
This program was written fully in assembly language. The program size was only 4 kilobytes.