Hi Dave,
It didnt work, still gives me the same error.
I am just worried that my header it is not correct, it looks like this:
DEFINE OSC 4
@ __config _INTRC_OSC_NOCLKOUT & _WDT_ON &...
Type: Posts; User: gutisie; Keyword(s):
Hi Dave,
It didnt work, still gives me the same error.
I am just worried that my header it is not correct, it looks like this:
DEFINE OSC 4
@ __config _INTRC_OSC_NOCLKOUT & _WDT_ON &...
Hi Dave,
Thanks for your help.
I have tried and it gives me compiling error.
So i commented out the line in the pbp directory as follow, but still gives me error:
else
LIST
if i attache the code it will help i know....:D
LIST
; P12F629.INC Standard Header File, Version 1.04 Microchip Technology, Inc.
NOLIST
; This header file defines...
Hi there,
Thanks Dave for your reply, I am a bit lost, sorry for my incompetence.
Please find the *inc file, below. Could you please tell me which ones I have to ";"?
Also, Dont i have to...
hi Dave,
Excuse my ignorance, what lines do i put in the code exactly?
thanks.
Best regards.
HERE ARE THE CONFIG BITS
http://img217.imageshack.us/img217/6515/configi.png
Thanks.
Hello Dave,
thanks for your reply.
I will post later a capture of the configuration bits.
About the capacitor across, I have allready tried, but nothing.
Regards.
Thanks for your help.
Hello All,
I have put the voltage regulator, configured as a corrent regulator, allowing to pass only 250 mmA to the pic.
Still does not work....if i put the finger on any conection...no...
Hello All,
After trying with different sensor, and switches, I have found out that the reason for the strange behaviour, or mal functioning of the code, it is due to the excess of current supply....
Thanks guys for your reply.
So Alain, telemec?...ummm....I think they dont sell m5 or less like omron...any way...there are a bit expensive.
Could you guys put me a link of a good button for...
Hi Ace,
Thanks for your reply.
The button is pressed by the piston on a gear box. As i said on other post, my actual reading is 15 to 20 cycles per sec. And i need to stop the piston, after 3...
Hi thanks for your response, much appreciated.
The compiler, i use is Pbasic?..with Mplab ide....these are at least the software names.
Do you need a screen capture of the compiling results?
...
hi, the code works fine under slow speed, it will count up to 3 and go off the led for 1 s, then on back again.
Please see actual code.
DEFINE OSC 4
cnt VAR BYTE
delay var...
oooooomg!!!! you did it!!! it works!!!
but i had to change it a bit.
I will post the results later
I am still shaking....:rolleyes::rolleyes:
yes the idea is a proper botton switch, the wired to pull it low it is some thing that i dont understand.
The voltage for the circuitry is 5v....amperes very little, I think is not going to be a...
Hi dave,
Thanks for your help, I will have a look at the links later.
Yes you are right, I am using the internal oscillator at 4 mhz.
The botton is pressed by a piston.
So I need to stop...
Hi Dave, yes thats it.
When I delete the first 2 lines "define ocs" and "@...", both codes compile ok.
Unfortunately, the behaviour is basicaly the same....they start with led off, and it...
Hi guys, thanks again, your are wonderfull!!.
Unfortunately, this code gives me error 118.
Thanks.
Best regards.
Thanks, My circuit is just real pic simulator, so no circuit yet.
but it should be something like a push boton normaly open, and a led with the resistor.
I think it is the ansel thing, to set...
hi guys,
thanks all for your help, but no luck so far, before the last suggested changes, the code will just stay on forever.
Now, with the ANSEL part, just wont compile, it says "syntax error"....
No Dave...no luck....I am going mad!!!....:confused::confused::confused:
Thanks Dave!!! grate stuff!!!
I will post the results later on.
Thanks again. :)
Hi there,
I am new to this worl of pics, and know very little about them. I started this as a new hobby, and got really into it.
At the moment, I am having difficulties to make my pic count...