CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

CCS project problem

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
soulraven



Joined: 08 Feb 2009
Posts: 72
Location: campulung muscel

View user's profile Send private message Send e-mail Yahoo Messenger

CCS project problem
PostPosted: Fri Aug 27, 2010 10:12 pm     Reply with quote

I tried to keep an older project, "computer" from board Dacia 1310, only want to add to an identification with iButton using 1wire.
So far all well and good, I did a part of the project, only that I was stuck on some code issues, mention that I'm not very good at programming and C, but as I thought Iara project so far and what I to realize.

- Driver to get in the car, the key is hanging a iButton tag, the engine is stopped. The driver connects iButton tag for a few seconds to be identified for special plug, this time leaving a 1logic.
- The driver starts the car and go.
- If the car is started before your iButton to be identified, then exit left 0logic.
- If the site is iButton identified, but not for five minutes to start the engine, passes out on 0logic.

What I fail to at the moment and I do not know, is how to count timer command 600 seconds and simultaneously verify if the tag is checked or not, the remaining software functions I've done, but I blocked the implementation of the above.
Can you help? I attached the draft scheme Proteus including source code.
Even give me advice or help me and I see my dream come true, then comes the fun of programming and performance wiring.

http://www.dump.ro/fisiere/ibutton-zip/217920/VzGopETJrhKH81p5

sorry for my bad english
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Aug 28, 2010 3:57 pm     Reply with quote

Quote:

What I fail to at the moment and I do not know, is how to count timer
command 600 seconds and simultaneously verify if the tag is checked or not.

See this thread on multi-tasking techniques in a PIC:
http://www.ccsinfo.com/forum/viewtopic.php?t=17189

If that requires too much of a re-write, and you don't want to do it,
then look at my example in the middle of this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=40578
It shows how to break up a large delay into a loop that does many
small delays. Then you poll your device once every pass through the loop.
This method might be faster for your to implement.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group