We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, I am doing a project using 89c51.I hav to activate a motor using a relay and enable reverse relay wen reached end limit.At the same time ll hav to regularly scan three inputs and depending on it activate a voice informer. I wud like to simulate all of this using a simulator , so i need som help on simulation.
hi friend, you can use porteus to simulation the relay and a micerophone. i try same last week but had lots of probs in the compile bcoz it fails with simple code and doesn ot work for complix project like me. i attack files for you to see and use but plz change to work with you're computer.
<<attach c:\my project files\project 47\main.c>>
"you can use porteus to simulation the relay..."
I think you mean Proteus? www.labcenter.co.uk/.../vsm_overview.cfm
"...and a micerophone."
I think you mean microphone?
Note that a microphone is an analogue audio input transducer - I think the OP was after a voice output?
"the compile ... fails with simple code..."
No, the compile fails with incorrect code.
"... and doesn ot work for complix project like me."
If you can't get simple code to compile, how can you expect to do it with complex code?!
"i attack files for you to see"
and how do you suppose that anyone else will be able to see anything on your local hard drive?!
As used by givnology.com/.../pavarottymouse.jpg ?
hi friend, have you fix you're problem? did my asnwer help? no, pleas give more inrofmation or yes, you are welkom.
some of my probs are fixe dbut i had to change the code so compiler did not error me!
worst line was
<code> value = (int) (((float) rite) / (( float) left) * (float) 10.0 ) </code>
bcoz compiler did not want my braket!
Don't blame the compiler when you don't know how and/or when to use brackets properly!
eg, "10.0" is inherently a floating-point number, and does not need an explicit cast!
BTW: floating point is best avoided on an 8051 unless really necessary - and there's nothing in the original post to suggest that it's even remotely necessary here!
did my asnwer help? <code> value = (int) (((float) rite) / (( float) left) * (float) 10.0 ) </code>
bcoz compiler did not want my braket! To "the blind" cant' you see the direction in the "Reply to Message" window as to how to show code? what6 on earth does floats have to do with realys?
to "the deaf hi friend, you can use porteus to simulation the relay and a micerophone. why not use the perfectly adequate (for this) Keil simulator. let alone what does a microphone have to do with your problrm. If you do not know how to use the Keil simulator you have obviously skipped the "getting started guide" and NOBODY is smart enough to do so.
Erik
mr eric mulund,
when you want my help plz ask kindely and do not offand me and make me named with your words.
i only try to help the man with my noledge. see he not say he is wrong! and my help was good for answer.
marash.
He hasn't said that it was any good, either.
It appears that he has lost interest, and hasn't even looked at it!
"my help was good for answer"
I'm not at all sure about that...
he lost interest?
proberbly bcoz some people want to attack my help and not give help to him!
No, people want to correct your errors so that he doesn't get misled into the same mistakes!