This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

GUI software and c167cr uC interface suggestion

Hi all,

My team is working on a project for our university that includes the use of a touch screen system to control a laser light system.

I just need some suggestion on what software to use best to program a GUI and that the c167cr will also recognize when sending data to the uC on run-time. Thanks.

Parents
  • As far as the microcontroller is concerned, this is purely an RS232 serial coms excercise - it makes no difference to the microcontroller whether the other end of the link is driven by a GUI or whatever else.

    Presumably, you want a press on a button to send a 'command' to the microcontroller?
    Will the microcontroller also need to return 'responses' to the PC?

    Again, you need to devise some sort of protocol to convey these commands and (possibly) responses between the PC and the microcontroller.

Reply
  • As far as the microcontroller is concerned, this is purely an RS232 serial coms excercise - it makes no difference to the microcontroller whether the other end of the link is driven by a GUI or whatever else.

    Presumably, you want a press on a button to send a 'command' to the microcontroller?
    Will the microcontroller also need to return 'responses' to the PC?

    Again, you need to devise some sort of protocol to convey these commands and (possibly) responses between the PC and the microcontroller.

Children
  • Yess. That's exactly what I want the microcontroller to do: act on a command and response back. I guess my problem is devising that protocol. Any suggestions? Thanks.

  • "I guess my problem is devising that protocol. Any suggestions?"

    You need to start thinking!

    Think about:

    * What commands does the PC need to send to the microcontroller?

    * What parameters/data/options will each command require?

    * What responses does the microcontroller need to send to the PC?

    * What parameters/data/options will each response require?

    * What are the timing constraints?

    * Will you encode the messages in some binary format, or use plain ASCII text?

  • Thanks for those suggestions. I'll definitely think about those.

    I know this question has nothing to do with this thread, but is there any feature in keil that lets me know the microcontroller's control cycle time usage when I'm executing blocks of code? Thanks.