![]() | ![]() | ![]() |
| | |||||||
| 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 just terminated my program... and have soldered my first test board... but when i put in the PIC i think the OSC of 20Mhz doesn't do his job how could i test that..?? is there a way to test a OSC whit a multimeter..?? i only wanna do a basic test..?? do they fail often..?? can they resist any heat (soldering..) i dunno what i did wrong..?? i used caps on it whit the value 33pF TKS are there more things i need to watch @..?? example the orientation of hte caps (+ or - ) and what about the OSC..???? | |
| |
| | (permalink) |
| Make sure you used the HS oscillator option... 20Mhz doesn't work with XT | |
| |
| | (permalink) |
| i'm using HS option and in the datasheets ihav read that the 33pF should work.. how do i now if i need the rs res to put on it..?? and wich value does i need..?? 3 ohm>>?? TKS | |
| |
| | (permalink) |
| the quality of a cap when it s already soldered..?? maybe to much heat..??? TKS the cpu works..that will say i can program and verify it succesfull.. i also hace the mclr @ 5volts.. TKS but a simple doesn't want to flicker.. | |
| |
| | (permalink) |
| on my osc is printed "Orion 20.000" is that famous..?? TKS | |
| |
| | (permalink) |
| Sorry for my many posts.. but i have got a new idea.. if i put a 16F84a in my socket and put in in a mode that one pin of it gets his internal osc freq.. then i could fuse theother in that way that it graps that signal right..?? TKS | |
| |
| | (permalink) | |
| Quote:
First off you need to make sure it's all connected up correctly, in particular make sure that all Vcc and Vdd connections are made - you have to use them all!. If you have access to a scope, check if it's oscillating - you MUST use a x10 probe, a x1 will stop the oscillator. If you have no hardware problems, and presumably the PIC verified OK after programming?, you may have a software problem. | ||
| |
| | (permalink) |
| don't have a scope... houston we have a problem.. does de osc has polarization like a led..???? and they fail often after soldering..?? and the caps what about them..?? TKS will try to go to another store and buy the same again.. | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| :idea: Put this code into your chip, make sure that port c (or whatever you choose) has bit 0 as an output and bit 1 as an input e.g. MOVLW B'11111110' ;MASK TO MAKE BIT 0 OUTPUT, REST INPUT TRIS PORTC ;TRISTATE PORT C TEST BSF PORTC,0 ;TURN ON PORTC,0 THIS IS AN LED OUTPUT BTFSS PORTC,1 ;IS PORT C HELD HIGH? BCF PORTC,0 ;NO, TURN OFF PORTC,0 THIS IS AN LED OUTPUT GOTO TEST ;LOOP FOREVER Ok, IF the pic is running then when PORTC,1 is high (5V) the led will light, when it is low, it will go out...... You may have to change the ports and I/0 lines to suit your design. Let us know how you get on!
__________________ Regards MATT! | |
| |
| | (permalink) |
| mhhh i think it is dead i'm now at work will tst is a.s.a.p.. what about the configs i use HS (20Mhz cristal..) 33pf TKS | |
| |
| | (permalink) |
| :? hmmm, not sure, I would have used 15pf as a first choice, 33 seems a bit high...... could be wrong tho :wink:
__________________ Regards MATT! | |
| |
| | (permalink) |
| ok well i read in the datasheets that 33 should work (is the upper limit) but i will buy some of 15pf...and try it whit them. is it true that because of higher pf the osc function takes longer to stabilize..and that needs a higher delay time set in the pic..???? TKS | |
| |
| | (permalink) | |
| Quote:
| ||
| |