bit0 and bit1 are aliases to bits in the B0 byte variable
So when you do something like ...It will get locked in the loop forever, because Bit1 can never change.Code:chk4: peek portA,B3 if Bit1 = 0 then fire4 goto chk4
hth,
bit0 and bit1 are aliases to bits in the B0 byte variable
So when you do something like ...It will get locked in the loop forever, because Bit1 can never change.Code:chk4: peek portA,B3 if Bit1 = 0 then fire4 goto chk4
hth,
DT
Hi Darrel and thankyou very much for the reply.
Can I ask Darrel how I should fix thiss problem,what should I type instead.
Please forgive my uninformed aproach to all this but its all quite new to me and Ive only had myself as a teacher so there are some serious gaps for me,but I love it all the same.
All the very best
O.T.
Last edited by opticaltrigger; - 20th January 2010 at 02:20.
Thanks very much Darrel for helping me with that.
I just fired it up with the amended B0s and worked exactly as it should do straight away.I wish I could tell you how excited I feel seing it work.Its my first proper program for doing a job.
If I lived closer I would buy you a beer Darrel.Thanks so much.
Im going to swap the LEDs for transistors tomorow and see how it all gets on runing proper ignition coils and making sparks at the spark plugs.
One last thing if I may.As said its my first proper program so I have no bench mark to go by in terms of its efficiency,and I noticed that you had mentioned BASIC PRO might be better.My question is does the code look ok or do you see a way it could be better,or perhaps is it as good as can be with ordinary BASIC?
I want to try and get it to run as fast as possible really.
Any comments would be great but once again thankyou very much for helping me with it Darrel.
Best regards
O.T.
Last edited by opticaltrigger; - 20th January 2010 at 22:45.
And if we ever meet face to face, I will have you buy me that beer.
Well now that you put it that way ... That's the strangest distributor I've ever seen.
When it comes to regular PicBasic ... If it does exactly what you wanted it to do, then it's the perfect program.One last thing if I may.As said its my first proper program so I have no bench mark to go by in terms of its efficiency,and I noticed that you had mentioned BASIC PRO might be better.My question is does the code look ok or do you see a way it could be better,or perhaps is it as good as can be with ordinary BASIC?
You seem to be on the right track, so I'm sure you'll get the "Perfect" program for the next step too.
Best regards,
DT
Well now that you put it that way ... That's the strangest distributor I've ever seen.
Yeah,it does look kinda strange.
I removed the rotor arm and put the segmented wheel in its place,the wheel itself is made from the cylinder head off a radio controled nitro car engine.
Thanks again for your help with it.
Best regards
O.T.
Hi, OT
I do not want to bash ...
But using Pure Basic to trigger your coils did not need to have killed this poor engine head ... Generally speaking, only asm interrupts can do the job ...
as your four cylinders ( do not joke ... it's not a flat 8 ??? ) distributor never will have enough accuracy in machining to give precise and separate advance values for the sparks ...
I send you an example vor a V twin engine ( site has halas been modified ... no more download ! )
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