free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

Go to page  1 [2] 3 4
Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
Ajay
Tue Mar 18 2008, 12:35PM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3753
Thanked 696 times in 655 posts
your connections are not seem to be fine..

plz post your circuit cannot understand what are you saying..
and yes you need max232 for connecting PIC to PC.



www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


turker1
Tue Mar 18 2008, 12:50PM

 User Offline
Registered Member #6471
Joined: Wed Mar 05 2008, 11:52PM

Posts: 69
Thanked 0 times in 0 posts
circuit in attach.
i did as circuit. but with my code (i gave it) it doesnt work.
sometimes some character comes. but characters > $%&
i want to send only "1".



electronic lover
Back to top


Ajay
Tue Mar 18 2008, 01:08PM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3753
Thanked 696 times in 655 posts
what is crystal frequency you are using? and baud?

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


turker1
Tue Mar 18 2008, 01:11PM

 User Offline
Registered Member #6471
Joined: Wed Mar 05 2008, 11:52PM

Posts: 69
Thanked 0 times in 0 posts
i selected intrc. 4 mhz and my c program too. and i tried 9600. but nothing happened. then i select 2400 only hyperterminal. some different characters came.
i used for loop. so it must come every loop. but that characters comes sometimes.and isnt "1"

[ Edited Tue Mar 18 2008, 01:12PM ]

electronic lover
Back to top


shyam
Tue Mar 18 2008, 10:08PM

 User Offline

Registered Member #2984
Joined: Mon Aug 06 2007, 11:33AM

Posts: 723
Thanked 107 times in 103 posts
r u using CCS PCM compiler?? the cod eseems that way...
while burning to the chip did u check the correct configuration... ??
i mean oscillator type and WD..

your problem can be due to enabled watch dog or wrong choice of oscillator...


lProgress is not made by early risers or hard workers, but by LAZY people, trying to find easier ways to do the same........
Back to top


turker1
Wed Mar 19 2008, 06:06AM

 User Offline
Registered Member #6471
Joined: Wed Mar 05 2008, 11:52PM

Posts: 69
Thanked 0 times in 0 posts
i selected intrc clkout. wihch setting i must enable?
wdt,mclr, etc.

electronic lover
Back to top


turker1
Wed Mar 19 2008, 07:05AM

 User Offline
Registered Member #6471
Joined: Wed Mar 05 2008, 11:52PM

Posts: 69
Thanked 0 times in 0 posts
and i connected lcd.but in lcd screen (2x16) there are 16 small box. the program and connection true.my program:
CODE:
#if defined(__PCM__)
#include <16F628.h>
#use delay(clock=4000000)
#define use_portb_lcd TRUE //lcd bilgisi için port b'yi kullanıyoruz
#include <LCD.C>
int tamsayi=1; // tamsayi adında tamsayı tipinde bir değişken tanımlıyoruz ve değerini 1 olarak başlangıçta veriyoruz.
void main()
{
   lcd_init(); //lcd ekranımızı kuruyoruz
   printf(lcd_putc,”Cevizimiz:\n%d”,tamsayi); //Ekrana “Cevizimiz:” yazar ve alt satıra giderek sonuc değişkenini yazar.
   bas:
   goto bas;
}


but didnt work. i select intrc clkout. what is problem?
i cant connect to pc and cant working with lcd

electronic lover
Back to top


Ajay
Wed Mar 19 2008, 09:54AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3753
Thanked 696 times in 655 posts
you are using LCD in 4-bit mode.. and you did not specify it anywhere...


www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


shyam
Wed Mar 19 2008, 10:20AM

 User Offline

Registered Member #2984
Joined: Mon Aug 06 2007, 11:33AM

Posts: 723
Thanked 107 times in 103 posts
hey are using an lcd library or have u made that lcd_init() by ur own??
if u made it feel free to share with us we will not misuse it

lProgress is not made by early risers or hard workers, but by LAZY people, trying to find easier ways to do the same........
Back to top


turker1
Wed Mar 19 2008, 11:02AM

 User Offline
Registered Member #6471
Joined: Wed Mar 05 2008, 11:52PM

Posts: 69
Thanked 0 times in 0 posts
my connection is same in the picture. shyam and ajay please help. it doesnt work. only 16 box appear what is problem. how can i set 4 bit mode ajay?

electronic lover
Back to top


Go to page  1 [2] 3 4  

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems