PHYSICS Problem ...
Hi, Soucoupe

Originally Posted by
sccoupe
Does that mean that I need to have a 10ms pause after the write instruction to make it wqork correctly?
NOT necessary ... PBP cares for you ...
That means it happens things WHILE Eeprom Writing ...
Ill do some research on what you mean by PULSIN 'swing'.
You only could find that with " rollover" keyword ... old logics users have learnt it was 0 or 1 state ... if number is between ... result woes a bit !!!
For this part, I want to run an engine at a certain rpm and then do a PULSIN to get the time between triggers. When I press a button, I want to save that value to compare later. Then it continuosly does PULSIN and compares the saved value with the new one, if its a smaller value, then the rpm is higher and I turn on a light. If the value is larger then the rpm is slower and the light goes off. My problem SEEMS to be that it doesnt save the value correctly or not at all when power is removed. So even if not real accurate, the value should change.
YOUR problem is the RPM value is slightly changing with time ( due to the combustion engine working principle ...) , despite you think it's a constant speed ... actual value is 1500 +/- 50 rpm. ( Example )
My model plane engines run @ XXXXX rpm ... +/- 100 rpm ...
Sooooo ... PULSIN will return a slightly and slowly changing value AROUND a steady value !!!
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