Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 16th July 2009, 07:31 PM   #46
Default

Since the LED is flashing why would you assume the 16F877 is broken?
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com/
blueroomelectronics is offline  
Old 16th July 2009, 07:36 PM   #47
Default

Quote:
why it does not function with the lcd 2x16 ?
I told you when you first posted your osc is not working right . Your using a 20mzh crystal on the bread board that don't always work as planned. You posted a picture where it made a bunch of squares but no words I have had that happen it was the OSC not coming to speed change your code to use the 4mhz crystal and the lcd will work
on your 16f877

Last edited by be80be; 16th July 2009 at 07:38 PM.
be80be is offline  
Old 16th July 2009, 07:40 PM   #48
Default

the 16f877 does not function with my lcd 2x16

to see the post at the beginning.

with the moin 10 programs tested, no n' functioned with the 16f877,

the lcd is good since it was tested with the 16f84 and it functions perfectly

be80be -->
but j' board makes test with the lcd and the 16f877 with quartz of 4mhz and without quartz I n' board ever have any favorable result
__________________
paris (france)

Last edited by seti75; 16th July 2009 at 07:45 PM.
seti75 is offline  
Old 16th July 2009, 07:45 PM   #49
Default

Quote:
Originally Posted by seti75 View Post
the 16f877 does not function with my lcd 2x16

to see the post at the beginning.

with the moin 10 programs tested, no n' functioned with the 16f877,

the lcd is good since it was tested with the 16f84 and it functions perfectly
Your using a 4 mhz crystal with the 16f84 Your using a 20 mhz crystal with the 16f877
When you tested the blink code what crystal did you use
be80be is offline  
Old 16th July 2009, 07:54 PM   #50
Default

4mhz flash led 16f877 ..... ..ok
4mhz lcd 16f84.................... ..ok
4mhz and 16f877 and lcd ....... not good
20mhz and 16f877 and lcd ......not good
__________________
paris (france)
seti75 is offline  
Old 16th July 2009, 08:02 PM   #51
Default

This is how I do it. In this pic look at how the crystal resonator is placed

They don't work good with jumper

Last edited by be80be; 16th July 2009 at 08:34 PM.
be80be is offline  
Old 16th July 2009, 08:13 PM   #52
Default

The original schematic used a 20Mhz xtal...
__________________
Eccentric millionaire financed by 'er indoors
Chippie is offline  
Old 16th July 2009, 08:31 PM   #53
Default

chippie I no what it used did you look at the picture that OP posted the 20mhz crystal is hooked to the 16f877 with jumpers. The chips not osculating is what's wrong
This is OP board look at osc

Last edited by be80be; 16th July 2009 at 08:46 PM.
be80be is offline  
Old 16th July 2009, 08:44 PM   #54
Default

Quote:
Originally Posted by be80be View Post
chippie I no what it used did you look at the picture that OP posted the 20mhz crystal is hooked to the 16f877 with jumpers. The chips not osculating is what's wrong
Ah..sorry didnt realise you knew about the xtal....but yeah agree his setup isnt v.good

Scoping the pins should tell whats going on...
__________________
Eccentric millionaire financed by 'er indoors
Chippie is offline  
Old 17th July 2009, 12:16 AM   #55
Default

Before opening the post (1) first one, I had made this alarm
At the beginning the problém was the same ! Nothing on the lcd.
It is for that that I post Voila the position of the quartz, and it was the Same thing

my alarm Imageshack - quartz
__________________
paris (france)

Last edited by seti75; 17th July 2009 at 12:17 AM.
seti75 is offline  
Old 17th July 2009, 01:13 AM   #56
Default

Quote:
It is for that that I post Voila the position of the quartz, and it was the Same thing
It's still the Osc not working I have had it happen. It's up to you to fix it.
I have changed crystals and it worked fine. If I could fly over I bet I'd have it running
in a sec.
be80be is offline  
Old 17th July 2009, 02:40 AM   #57
Default

The blinking a led with the Watchdog Timer on a 16f877 will not tell you if the crystal
is working
Quote:
The Watchdog Timer is a free running on-chip RC oscillator
which does not require any external components.
This RC oscillator is separate from the RC oscillator of
the OSC1/CLKIN pin. That means that the WDT will
run, even if the clock on the OSC1/CLKIN and OSC2/
CLKOUT pins of the device has been stopped, for
example, by execution of a SLEEP instruction
be80be is offline  
Old 18th July 2009, 12:54 AM   #58
Default

be80be , thank
I thank all for your help .
I leave this project because it will never work! One friends think that the program b' is not good.
This program was on a French forum, but the one that he proposed it was not on his (her,its) program,
the electronique pratique (review) practical do not propose any more the program.

If you know an alarm with a lcd and the same possibility that that her(it) thank you for me proposed.
I leave , the program which made me lose a lot of time(weather), if a person want to make tries...

program ---> Free - Envoyez vos documents

Imageshack - sanstitre1txf

Imageshack - sanstitre3p

Imageshack - sanstitre4i
Imageshack - sanstitre5c
__________________
paris (france)
seti75 is offline  
Old 18th July 2009, 03:21 AM   #59
Default

Was this a school project?
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com/
blueroomelectronics is offline  
Old 18th July 2009, 04:03 AM   #60
Default

Well seti75 it's up[ to you but I don't think your problem is as hard to fix as you think.
You can't test the oscillator with the code from blueroomelectronics He was using the wdt it would still blink if you pulled the crystal out and threw it away.I still say it's in that 20 mhz crystal your using
be80be is offline  
Reply

Tags
alarm, house

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Old unconnected house alarm (accenta 6) Myrmidon General Electronics Chat 2 27th January 2009 03:23 PM
House Alarm slickonez99 Electronic Projects Design/Ideas/Reviews 33 24th December 2008 04:39 AM
Nokia gsm connected to house alarm cctv Electronic Projects Design/Ideas/Reviews 3 6th October 2006 11:36 PM
Need help with burglar alarm for a model house. rancid rock Electronic Projects Design/Ideas/Reviews 27 15th March 2006 07:55 AM



All times are GMT. The time now is 05:19 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker