This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

software development tool

i have to interface keypad and dc motor with lcd using tiva c series. i have seperate codes for both but can't combine them i need help.

  • Your question is too vague. Don't know where to help. Do you have the code that is working individually for the keypad, dc and lcd? First make sure each one is working before integrating them. That is the best advice I have.
  • yes i have individual code for all of them and they are working too...but the main problem is to combine them
  • What is wrong after you combine them? None of them works or some of them works? This is just pat of the software debug, I think you need to spend some efforts into it.

    BTW, what part number is this?
  • Asifa Rafiq said:
    i have to interface keypad and dc motor with lcd using tiva c series.

    That's nice - but as vendor's Charles notes - provides FAR TOO LITTLE information - for anyone (beyond a Tech Psychic) to assist...

    It is assumed that the keypad serves to control the motor's operation - perhaps START/STOP IT - and (maybe) 'Set the Motor's Speed.'    (yet - we should not have to assume - you should present those requirements!)    Exhausting your helpers - is not famed - as working to your best interest.    You might (somewhat) consider that.

    The LCD likely displays motor's speed, direction - possibly position, motor current, even torque (although that - doubtful due to the lack of descriptive info.)

    KISS is clearly what's needed here - you should start with combining those TWO (NOT THREE) Functions - which you believe EASIEST.    Only when those two work well together - should you entertain adding the third function.

    No one here knows - or can properly anticipate - the full demands of your project.    You must think hard - make good effort - and provide that - to gain (effective) assistance.

    It should also be noted - your Subject/Title 'Software Development Tool'  seems to little describe your (real) requirement...

  • I am facing problem in function calling.....when i call function of keypad in code of lcd a lot of errors generate in adding libraries. Same is the case with motor
  • Thankuu for this usefull information. Actually my project is "password based door lock system" i have to enter password using keypad that will displayed on lcd and if the password is correct then dc motor will rotate and the door will unlock. But I cant compile this all although all the codes are working individually
  • Thank you - appreciated - and your "General Objective" is far more understandable. (especially in contrast to the (failed) Subject - "Software Development Tool.")

    I'm afraid that there is no alternative - to your 'Presenting your code' - even if, 'In individual parts' - so that (others) here may attempt to (further) aid & guide you. I am anticipating that you (may) have 3 'separate 'Main" code blocks' - one for each of your 3 programs - is that correct? If so - you must eliminate that duplication - one and only one MAIN - is normal/customary - and very much - required...
  • Yes i know that there should be only one main for all three codes..... but this is the real problem that i don't know how to call all the function and make only one code
  • Thanks to cb1 for the guidance. I will even suggest something like this. Start with the keypad code since it is working by itself. Let's say the motor code has 100 lines. Add a small portion like 10 lines at a time to the keypad code. Run the code and make sure the keypad still works. Keep adding some motor code and run the keypad until it starts to break then you can investigate what caused the failure.
  • yes i can do it i think it will be very helpful... i am using keil for compilation... so what about errors of libraries.Errors generate even if i have added all the libarries
  • So you also have compilation errors? Again, add a small portion of library into your code and compile. Repeat until it starts to not compile and then investigate. According to your earlier description they are compiled fine and run fine individually, right? I have never use Keil myself though.
  • OK thank you so much for your guidence.