i hope one day i'll be able to do nice schematic like that. I really need to trash my P-Cad and use your software instead![]()
i hope one day i'll be able to do nice schematic like that. I really need to trash my P-Cad and use your software instead![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Hello mister E
I am using PICBASIC COMPILER 1,45 and the following one I cosay does not work, I want to me to ignite the LED in pin2 by 1 minute and as soon as another minute is extinguished and continue the sequence but does not work to me, some suggestion.
I am using a PIC12F675.
Thanks
'code
Symbol Mi = B0
Symbol Se = B1
TOP:
Dir2 = 1 ' make Pins 2 and 1 outputs
Dir1 = 1
Pin2 = 0 ' turn off lamp - off or 1 minute
For Mi = 1 to 1 'minutes
For Se = 1 to 60 ' seconds
Pin1 = 1 ' test LED
Pause 500
Pin1 = 0
Pause 500
Next
Next
Pin2 = 1 ' turn lamp on - on for 1 minute
For Mi = 1 to 1 ' minutes
For Se = 1 to 60 ' seconds
Pin1 = 1
Pause 500
Pin1 = 0
Pause 500
Next
Next
GoTo TOP
Originally Posted by mister_e
Hello leonardo,
I think I understand what you are trying to do... Try this...This is assuming your previous code compiles... I do not have PB, I only have PBP.
Dwayne
Code:'code Symbol Mi = B0 Symbol Se = B1 TOP: Dir2 = 1 ' make Pins 2 and 1 outputs Dir1 = 1 Pin2 = 0 ' turn on lamp - 1 minute For Mi = 1 to 1 'minutes For Se = 1 to 60 ' seconds Pin1 = 1 ' test LED Pause 500 Pin1 = 0 Pause 500 Next Next Pin2 = 1 ' turn lamp on - on for 1 minute For Mi = 1 to 1 ' minutes For Se = 1 to 60 ' seconds Pin1 = 1 Pause 500 Pin1 = 0 Pause 500 Next Next GoTo TOP
Try something like this:
Code:'code Symbol Mi = B0 Symbol Se = B1 TOP: Dir2 = 1 ' make Pins 2 and 1 outputs Dir1 = 1 Pin2 = 0 ' turn off lamp - 1 minute Pin1 = 1' Turn on Lamp For Se = 1 to 60 ' seconds Pause 1000 Next Pin2 = 1 ' turn lamp on - on for 1 minute Pin1=0 'turn Lamp off for 1 minute. For Se = 1 to 60 ' seconds Pause 1000 Next GoTo TOP
Last edited by Dwayne; - 21st September 2005 at 20:22.
Ability to Fly:
Hurling yourself towards the ground, and missing.
Engineers that Contribute to flying:
Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute
Pilots that are Flying:
Those who know their limitations, and respect the green side of the grass...
You need to change their mode as part of your a setup
Try:
poke $19, $7 'to disable comparator mode for pins 0 & 1
See the manual regarding these pins as comparators.
When used as comparators, the 12f629/75 make a great op-amp. It is on or off, no slope, and the turn on can be "smart. I made an "on at dark" light switch that stays on only 4 hours.
AMay
Bookmarks