![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| Hi All , i have a build a new PCB for my 16f877 and all going fine but when i tested any program i got a very strange output. for example i wrote a avery simple program to light up all leds connected to port b but i got a differant output ....... could you please look at the schematic and tell me if i did somethng wrong ? | |
| |
| | (permalink) |
| You show C2 and C3 as electrolytics, they are far, far too small to be that. Otherwise, the program is probably more important than the hardware, and you've not shown us that - or even told what actually happens. | |
| |
| | (permalink) |
| what do you mean by far ?AND how to fix that my program is with PIcbasic so simple : Device =16f877 XTAL =4 HIGH PORTB.4 DELAYMS 1000 LOW PORTB.4 HIGH PORTB.5 DELAYMS 1000 LOW PORTB.5 | |
| |
| | (permalink) |
| here is a photo to this PCB , i have tried to turnoff all the portA analoge by the command : ADCON1=7 but the same proplem i checked each pin of the PIC ports to ensure that i have no interfe and all ports were fine | |
| |
| | (permalink) | |
| Quote:
NOT ALL PORTB pins? I dont use picBasic.
__________________ Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ | ||
| |
| | (permalink) |
| Do you not have to set the pins to be outputs?. | |
| |
| | (permalink) |
| no i didn't , but i can that now in 1 minute | |
| |
| | (permalink) |
| i know that you are no using PICbasic , you are one of the Assembly leaders | |
| |
| | (permalink) | |
| Quote:
Did Nigels suggestion to set PORTB as outputs, work?
__________________ Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ | ||
| |
| | (permalink) |
| o.k now i have some news . i have set all the port to be output , and i tested the same PIC on an old PCB i have and it worked very well. so my problem now is in the new PCB ...... i noticed that i have portd.7 ON all the time but i don't know how it get this 1, even the the pin no.31 is 5volts too, although it's the GND pin in the pic , i used my AVO meter for the third time to check in case i have any interfere but i haven't. do you have any explantion ? | |
| |
| | (permalink) | |
| Quote:
The picture of the board is really too blurred to see, you've focused past it - but it looks very spread out and poorly designed. For example it's best to keep leads to the crystal and capacitors as short as possible, but you have it mounted well away from the PIC. It may well be OK, as long as every thing is connected, but from your post that's obviously not so. | ||
| |
| | (permalink) |
| the pic pin 31 is connected to ground but before that it connected too with the Optocoupler Pc817 pin 2 ( GND ).......is it right ?. now most of my pic ports have 3 volts | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| yes my PCB is double sided......i'm looking now for this positive link | |
| |
| | (permalink) |
| i'm using eagle to draw my Schematics and the use the eagle Autoroute to wire it...... do you think that eagle can do stupid links ?!!! | |
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Title | Starter | Forum | Replies | Latest |
| 555 timer output help for a newbee... | WIZARDSV650S | Electronic Projects Design/Ideas/Reviews | 6 | 6th April 2007 05:04 AM |
| Using PicBasic with Output compare for sounds | mduong77 | Micro Controllers | 7 | 29th March 2007 03:29 AM |
| barcode scanner's output and keyboard output | zhi_yi | General Electronics Chat | 3 | 21st November 2006 05:46 AM |
| Function Generator output driver | evandude | General Electronics Chat | 6 | 31st January 2005 08:49 PM |
| Why the output of ICs doesnt reach 5V?? | StupidDum | General Electronics Chat | 3 | 3rd December 2003 08:29 AM |