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

Developing windows form based application in Keil

Hi,
I am really new to programming using keil.
I wanted to create a windows form kind of application which takes some parameters from a user and then runs the C code present in the file based on the inputs.

I have the C code files with me, but i am not able to set up a user interface (the form).

Can anyone please help me.

Thanks and Regards,
Siddharth Gupta

Parents
  • Does your 8051 has USB? Or does your 8051 board has a USB-to-serial chip so that the 8051 chip just sees serial data, and the PC sees an extra serial port?

    In case the 8051 board just shows up as another serial port, you will be able to forget everything about USB and concentrate on standard RS232 communication.

    If all you need is to send commands, then you can send each command as a single character:
    'A' -> Read ADC and report value back.
    'B' -> Blink LED.
    'R' -> Reboot.

    If you need to also send parameters to the board, then it would probably be easiest to send each command as one text line followed by a line break.
    "A10\n" -> Read ADC channel 10.
    "A0-7\n" -> Read ADC channels 0 to 7.
    "B,1,100,100\n" -> Blink LED 1 with 100ms on time and 100ms off time.

    If your board does not show up as a standard serial port, then you should have a talk with your teacher about exactly what library code the school is helping out with, since I do not believe that they would expect you to implement all that on your own.

Reply
  • Does your 8051 has USB? Or does your 8051 board has a USB-to-serial chip so that the 8051 chip just sees serial data, and the PC sees an extra serial port?

    In case the 8051 board just shows up as another serial port, you will be able to forget everything about USB and concentrate on standard RS232 communication.

    If all you need is to send commands, then you can send each command as a single character:
    'A' -> Read ADC and report value back.
    'B' -> Blink LED.
    'R' -> Reboot.

    If you need to also send parameters to the board, then it would probably be easiest to send each command as one text line followed by a line break.
    "A10\n" -> Read ADC channel 10.
    "A0-7\n" -> Read ADC channels 0 to 7.
    "B,1,100,100\n" -> Blink LED 1 with 100ms on time and 100ms off time.

    If your board does not show up as a standard serial port, then you should have a talk with your teacher about exactly what library code the school is helping out with, since I do not believe that they would expect you to implement all that on your own.

Children
No data