Google

Thursday, November 29, 2007

MicroC source code

/*Programming:Blink two LEDs
* this example smoothly blinks LEDs on RC1 and RC2 alternatvely
* using PIC CCP module configured as PWM output
*
* source code example for mikroC
* feel free to use this code at your own risks
*
* target : PIC16F877A, 8 Mhz crystal
* HS clock, no watchdog.
*
* easyPIC4 settings :
* LEDs on PORTC enabled
*
*******************************************************************************/

void main()
{
unsigned char dc ;

TRISC = 0 ; // set PORTC as output
PORTC = 0 ; // clear PORTC

/*
* configure CCP module as 4000 Hz PWM output
*/
PR2 = 0b01111100 ;
T2CON = 0b00000101 ;
CCP1CON = 0b00001100 ;
CCP2CON = 0b00111100 ;

for(;;) // forever
{
/*
* PWM resolution is 10 bits
* don't use last 2 less significant bits CCPxCON,
* so only CCPRxL have to be touched to change duty cycle
*/
for(dc = 0 ; dc < 128 ; dc++)
{
CCPR1L = dc ;
CCPR2L = 128 - dc ;
Delay_ms(10) ;
}
for(dc = 127 ; dc > 0 ; dc--)
{
CCPR1L = dc ;
CCPR2L = 128 - dc ;
Delay_ms(10) ;
}
}
}

Monday, November 19, 2007

Moving Message LCD Display System (MMDS) via SMS


The aim of this project is to design Moving Message LCD Display System (MMDS) via SMS entry using Rabbit Core Microcontroller 2000 (RCM2000) and integrate it with Global System for Mobile Communication module (GSM). This project presents an application of an LCD Display module that can display the message display when the message is sent via mobile phone. The system receives message through Short Message Service (SMS). In order to the send SMS to system, SIM card from Hotlink starter pack had been used. In conclusion, the MMDS system can replace the conventional entry method using handheld infra red remote console or keyboard.

Tuesday, November 13, 2007