Discussion in "PIC Microcontroller Discussion" started by    turker1    Mar 16, 2008.
Wed Mar 19 2008, 01:05 am
#11
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.
Wed Mar 19 2008, 01:20 am
#12
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".

Wed Mar 19 2008, 01:38 am
#13
what is crystal frequency you are using? and baud?
Wed Mar 19 2008, 01:41 am
#14
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 Wed Mar 19 2008, 01:42 am ]
Wed Mar 19 2008, 10:38 am
#15
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...
Wed Mar 19 2008, 06:36 pm
#16
i selected intrc clkout. wihch setting i must enable?
wdt,mclr, etc.
Wed Mar 19 2008, 07:35 pm
#17
and i connected lcd.but in lcd screen (2x16) there are 16 small box. the program and connection true.my program:
#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
Wed Mar 19 2008, 10:24 pm
#18
you are using LCD in 4-bit mode.. and you did not specify it anywhere...
Wed Mar 19 2008, 10:50 pm
#19
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
Wed Mar 19 2008, 11:32 pm
#20
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?

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Robertphype
Sat Apr 27 2024, 12:23 am
ktaletrryp
Fri Apr 26 2024, 10:55 pm
Robertrip
Fri Apr 26 2024, 11:20 am
ArnoldDiant
Fri Apr 26 2024, 03:53 am
RodneyKnorb
Thu Apr 25 2024, 07:08 pm
Williamjef
Thu Apr 25 2024, 02:08 pm
SamuelSmise
Thu Apr 25 2024, 09:56 am
DustinErele
Thu Apr 25 2024, 08:44 am