CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

how to show the data on led

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
riya



Joined: 15 Feb 2012
Posts: 10

View user's profile Send private message

how to show the data on led
PostPosted: Wed Feb 15, 2012 5:13 am     Reply with quote

hello,
I am new to this forum. I am doing the project gsm based notice board on led display.
Help me how to start the coding part. I am using pic16f877a
thanks everyone.

How to use Johnson counter to shift the led matrix display?
temtronic



Joined: 01 Jul 2010
Posts: 9243
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Feb 15, 2012 6:43 am     Reply with quote

Start by getting the basic hardware to run right ! Cut code for the basic 'blinking LED' and 'hello World' programs.
Every line of code you cut, you learn.
Be sure to save all versions of your code.Save the old,make a copy, edit the copy,try it, save it, repeat as required until your program does what you want.
riya



Joined: 15 Feb 2012
Posts: 10

View user's profile Send private message

PostPosted: Wed Feb 15, 2012 11:53 pm     Reply with quote

Thank you for the reply.
I tried like this:
Code:

#include<16f877a.h>
#include<stdio.h>
#use delay(clock=20MHZ)
#fuses PROTECT, HS
#use rs232(baud=9600,rcv=PIN_C0,xmit=PIN_C1,stream=GSM)
 
char data[60];
char ch;
int i=0;

void flash_led()
{
  output_high(led);
  delay_ms(1000);
  output_low(led);
  delay_ms(1000);
  output_high(led);
  delay_ms(1000);
  output_low(led);
}
riya



Joined: 15 Feb 2012
Posts: 10

View user's profile Send private message

PostPosted: Thu Feb 16, 2012 1:07 am     Reply with quote

I started the program by flashing the LED.
Now I have to write the main code.
My aim is to send a message from gsm modem that has to be displayed in a bunch of leds.
How to start ?
temtronic



Joined: 01 Jul 2010
Posts: 9243
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Feb 16, 2012 5:37 pm     Reply with quote

Standard 'scientific approach'....break down the project into modules or sections that you can do.
Start by downloading the specs on the gsm modem and get the PIC to talk/rcv from it, verify that command 'x' does what it says....
...maybe display command/results on a terminal program in a PC or on a local LCD( on the PIC project board)
'bunch of LEDs' is vague....how many,arrangement,type,power levels,etc....type of data to be displayed? form(hex,ASCII,??)
riya



Joined: 15 Feb 2012
Posts: 10

View user's profile Send private message

PostPosted: Fri Feb 17, 2012 2:04 am     Reply with quote

My requirement is to display a message in group of leds arranged in a 5*7(5 rows and 7 columns) matrix form. Initially the message is sent from a remote mobile phone to the gsm modem. Now the message is from gsm modem to control unit to led display. The data is displayed in English font. i require small , large font letters(26+26=52) and some special characters.

Thank you
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group