General microprocessors
How to measure + and - 5 Volts using PIC microcontroller PIC1F4550
How To to build an ISP for Atmega 128
LED blinking program for Pic microcontroller
version control system for keil & MPLAB.
Microprocessor Simulator on Linux [ Screenshot tour ]
Program for multiplexing of led displays for pic microcontrollers
Few microprocessor tools you might be interested in
Program to initialise the LCD in 4 bit mode using PIC microcontroller
Here is the program for Pulse width modulation PWM on basic for 89s52.
You could generate pwm using the following psedocode
#define high_period
#define low_period
main()
{
!!Code to initiate the timer;
!!Timer counter register value = high_period;
!!set port pin high
!!start timer
while(1);
}
interrupt void time_interrupt_routine(void)
{
if(port pin is high)
!!Timer counter register value = low_period;
else
!!Timer counter register value = high_period;
!!Toggle port pin
!! start timer;
}
Here high_period + low_period gives the time period in terms of clock cycle and
high_period/(high_period + low_period) *100 gives the dutycycle.
