Try
Code:HIGH GPIO.5 PAUSE 1000 LOW GPIO.5 PAUSE 1000
Try
Code:HIGH GPIO.5 PAUSE 1000 LOW GPIO.5 PAUSE 1000
Dave
Always wear safety glasses while programming.
Ok,
The answer is on page 24 & 30 of the manual ( v 2.60 ...)
instead of
useCode:include "modedefs.bas"
AlainCode:include "bs2defs.bas"
Last edited by Acetronics2; - 29th January 2010 at 13:07.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Thanks for the answer.
But there is no evolution when i use
HIGH GPIO.5
PAUSE 1000
LOW GPIO.5
PAUSE 1000
GPIO 4 and 5 still inactive
A other suggestion ?
Regards.
Bouif2
I tested and the
use of "include "bs2defs.bas"" did not bring live to the pins.
Some other idea.?
Now that I look at the data sheet I see GPIO.4 is analog.
So add
Near the beginning of your code. That will make all pins digital.Code:ANSEL = 0
Other than that I do not see a problem.
How are your configs set and how is it wired?
Dave
Always wear safety glasses while programming.
Thanks Dave for your anwer.
But " ANSEL = 0 " did not bring a amelioration.
Regards.
Bouif2
Yes ...
a ( working ...) typical 12F683 INTOSC Header ...
and NO "Define Osccal" to write ...Code:@ __config _INTRC_OSC_NOCLKOUT &_FCMEN_OFF &_IESO_OFF & _WDT_ON &_PWRTE_ON & _MCLRE_OFF & _CP_OFF OSCCON = %01110111 ' Internal Clock 8 Mhz CMCON0 = 7 VRCON = 0 ADCON0 = 0 ANSEL = 0
You have [no]some[/no] LOTS OF good reading to do, this evening ... BEFORE sleeping.
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks