Forum Replies Created
-
AuthorPosts
-
balaji.nParticipant/*hi shylaja ref the code *//*program for lcd interfacing programed by balaji any bug report [email protected]*/#include <reg51.h>sfr ldata = 0x90; //P1=LCD data pinssbit rs = P2^0;sbit rw = P2^1;sbit en = P2^2;sbit busy = P1^7;void lcdcmd(unsigned char value);void MSDelay(unsigned int itime);void lcddata(unsigned char value);void lcdready();void lcdstring(char *string);void main(){lcdcmd(0x38);lcdcmd(0x0E);lcdcmd(0x01);lcdcmd(0x06);lcdcmd(0x80); //line 1, position 6while(1){lcdcmd(0x80);lcdstring(” welcmoe”);}}void lcdcmd(unsigned char value){lcdready(); //check the LCD busy flagldata = value; //put the value on the pinsrs = 0;rw = 0;en = 1; //strobe the enable pinMSDelay(1);en = 0;return;}void lcddata(unsigned char value){lcdready(); //check the LCD busy flagldata = value; //put the value on the pinsrs = 1;rw = 0;en = 1; //strobe the enable pinMSDelay(1);en = 0;return;}void lcdready(){busy = 1; //make the busy pin at inputrs = 0;rw = 1;while(busy==1){ //wait here for busy flagen = 0; //strobe the enable pinMSDelay(1);en = 1;}}void MSDelay(unsigned int itime){unsigned int i, j;for(i=0;i<itime;i++)for(j=0;j<1275;j++);}void lcdstring(char *string){while(*string++)lcddata(*string);}balaji.nParticipant
hi shresthi ,
please post the heart beat hardware and software coding ,if have problem in sim 300 module pleaes check sim300 using RS232 follow the bellow test for check a sim 300 module
1.connect the RS232 to computer
2.open hyberterminal
3.set com porty
4.set the baudrate 9600
5.flo control bit none
6.harware control none
7.chack these command AT
8.sim300 replay OK
THAT MEANS SIM 300 IS WORKING
May 11, 2013 at 12:13 pm in reply to: DESIGN OF BI-DIRECTIONAL CONVERTER FOR FAST BATTERY CHARGING #9713balaji.nParticipanthi jefriy
please tell abot more think about the project
balaji.nParticipanthi bozambo
you just study about serial communication ,we connect the sim300 module
using serial communication and also we should access the sim 300 using AT COMMANDS
u search in google “siim300 at commands” refer the document and easily connect the sim300 module
if i add the example at command for calliing
ATD=9876543210; and ENTER
it just for calling only
balaji.nParticipanthi ravi
u dont get the output in gps , first find out the hardware or software problem
so u also postthe details of gps module and software source code
i just post most ocuurable mistakes
1.please check the gps and microcontroller ground must be shorted
2.check the baud rate calue
3.check for spreg resister value for the baudrate
4.programing delay is one of major problem in these type os gps project
please check all those thinks
balaji.nParticipantdear friends
I agree with the ajiseh commants using rectifier circuit
but in adc0804 module is 8 bit only so we should uptain the output for every 0.90volt per digitel reading so u want to more accurcy u try with 10 bit adc or otherwise use a pic micro controller its have inbuild 10 bit adc
balaji.nParticipantplease define in
sbit its a small leters
s its a small or caps letters
P1.2 is must be a caps letter only
and not placd . and used ^ this symbol only
sbit s =P1^0;
balaji.nParticipanthello ajish
i read your post its smart idea ,its a usefull for make my projects is very compact one.
balaji.nParticipant/*LCD DRIVER*/
//PROGRAMED BY BALAJI ANY BUG REPORT:mail id:[email protected]
#include<reg51.h> //HEADER FILE IN KEIL 3
#define S P3 //DEFINE PORT HEREsbit rs=P2^0; //PLEASE SELECT CONTROL BIT FOR LCD
sbit rw= P2^1;
sbit en=P2^2;void cmdwrite(int value); //FUNCTION FOR COMMAND WRITE
void datawrite(int value); //FUNCTION FOR DATAWIRTE
void delay(int itime); //FUNCTION FOR DELAYvoid main()
{
S=0X00; //PORT CONFIGURE AS THE OUTPUT
cmdwrite(0x38);
cmdwrite(0x0E);
cmdwrite(0X01);
cmdwrite(0X06);
cmdwrite(0X84);
datawrite(0x41);//PASSING THE VALUE FOR DISPLAY THE CHAR A
datawrite(0x42);}
void cmdwrite(int value)
{
S=value;
rs=0;
rw=0;
en=1;
delay(1);
en=0;
}
void datawrite(int value)
{
S=value;
rs=1;
rw=0;
en=1;
delay(1);
en=0;
}
void delay(int itime) //USER DEFINED DELAY
{
int i,j;
for(i=0;i<itime;i++) //IF U WANT TO MORE DELAY CHANGE THE PASSING THE VALUE
for(j=0;j<1275;j++);
}balaji.nParticipanthello
i just raed your commands , I already finish this project with 6 seven segment display
i just add the 6 display in one 8051 port i didn,t know about hardware circuit so didn’t give the proper solution
i just give one idea
add the display all in parallel in one port and connect common pin of the display (commaon anode or cathode)
to control bit(like use sbit) to connect another port
we should programing flows thorugh 6 data of display in one port for control the common display control bit,if u want to more details contact my mail id:[email protected]
-
AuthorPosts