Software

Software on PC that I have developed for use with micro controller development.

Timer 0 Calculator and Code generation

posted Feb 5, 2011, 4:07 PM by Danny Ng   [ updated Feb 8, 2011, 6:33 PM ]

The gadget you added is not valid


A simple gadget is developed for the calculation of PIC18 timer 0 setup and period reload register. The gadget below allow the generation of code to allow the usage of timer 1 to interrupt at the time needed. By keying in the needed time period and oscillator frequency the calculator will calculate the best reload value for timer0. The code generated can be used on the C18 compiler.

Timer 0 Code generation for C18

Add to iGoogle
Please report to me if you have discover any bug on this gadget.

SPTerm (Serial Port Terminal)

posted Dec 17, 2010, 12:16 AM by Danny Ng   [ updated Dec 28, 2011, 5:17 PM ]

The gadget you added is not valid

SPTerm is a terminal use for communication between PC and a serial device. Newer version of window doesn't come with hyper terminal that allow basic serial communication through com port of a PC. SPTerm is developed to help me in part of my work that would need to check the communication with UART devices on my certain projects. The screenshot below show the main window of SPTerm
SPTerm will scan the computer for available com port in the PC. Setting for Stop bit, baud rate, parity and Bits can be selected before opening the connection to the port. When the serial port is open any data that is received will be displayed in the ASCII box while the Hex will be display in the Hex box. The check box Clear to send and Data Set ready shows the status of the 2 pins. Check indicate high on the pin while unchecked means that its low. Data can be send out through the text box at send group either using the ASCII or hex format. Checking request to send and data terminal ready would output high to each of the pins individually.
The screenshot above show an example of sending the data 0xAF 0xAA 0x31 in a loop back configuration. The data is received back and displayed both of the text box. The program SPTerm can be download at http://spterm.codeplex.com/ source code for the project can be obtain through the same place.

Update 29/12/11


1-2 of 2