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.

TM4c123GXL interface with vb.net through COM Port

Other Parts Discussed in Thread: ENERGIA

Hello..

           i am new here and i am interested to design the interface for the TM4c123GXL.

            i design a very simple program in the Keil and download into the board and everything is 

            working fine.

           Goal:

                     design the software in vb.net or c# .in this vb.net i am interested to get the information of the 

                     GPIO port pins information.and i also want to control these GPIO ports Pins  through vb.net.

                      i don't know is this possible or not in TM4c123GXL.

                     i only know this if i get the data in com Port then i can manage these things.

                     but how i can read/write the specific pin....

                     is there any library to manage this kind of things....so please guide me ...

Thank you 

  • Muhammad Shabbir said:

    I design a very simple program in Keil - download to the board - everything is working fine.

    If that's a correct statement - you have some understanding of the Keil IDE and loading a program w/in the MCU.

    VB.net is advantaged for your application as it includes near direct, Serial Port, read/write capability.  (i.e. near direct reflects "Windows compliance" - earlier - even more expensive, similar programs did not support serial (nor parallel) port access.)

    In the simplest implementation you'd have code which would transact w/your serial port - and once that data is acquired - additional code could, "read/write" (most) any, other MCU pins.  (i.e. not those dedicated to the serial port, nor JTAG etc.)

    There is a complication - if yours is a launchpad/similar - the main serial port is much reserved for debug/programming of the MCU.  However that's not stated in your introduction.  Assume then that your PC source (contains VB.net) and outputs via a standard USB port.  One usual method would emply a USB to TTL/CMOS converter cable or board.  (firm FTDI is one, providing firm)  Avoid use of USB to RS232 converter as that requires an RS232 level shifter.   RS232 levels will likely damage your MCU.

    Your program code - loaded into the MCU via Keil (some way/how - yet unstated) must then create and load the earlier described serial port management code.  This code reads/writes to the serial port - that data then passing thru the Serial TTL/CMOS > USB converter - destined for your PC, VB program.

    There are code examples here illustrating the UART set-up and configuration - these a bit demanding - you must get these right.  Avoid use of PF0 and PD7 - both have "traps" for the new/unwary.

    Many code examples provide great detail - you'll benefit greatly by making the time/effort to read/review.  Rush is your enemy here - even learning "where things are" may take a few days...

  • i mean...i load the program into the MCU...

    so please Check my goal..i need information for interface,,,,

    how MCU communicate to the vb.net command.

    because MCU also respond to the putty software...so i need same information...i need some library or what ?

  •  HI, your post is unreadable and impossible figure what you want..

     I can extrapolate you are try rebuild something is the arduino interface controlling the mcu from external software. That was a completely useless, can be better on a TIVA but I fear require more knwledge and also more fluent english or at almost thing exposed in a less disconnected sentences.

  • Muhammad Shabbir said:

    i mean...i load the program into the MCU...

     Right this was the only understandable.

    Muhammad Shabbir said:
    so please Check my goal..i need information for interface,,,,

     Which one??? Only you know in your mind or expressed in a spaghetti like form.

    Muhammad Shabbir said:
    how MCU communicate to the vb.net command.

     Thru serial port?? On your first post launchpad 123 series was mentioned.

    Protocol? Speed ? parameter? transmit, receive what?

    Muhammad Shabbir said:
    because MCU also respond to the putty software...

     Ok PuTTY is a communication software, respond again what and why? Command, protocol, language?

    Muhammad Shabbir said:
    .so i need same information...i need some library or what ?

     We don't know, what are in your mind to do and you are asking to us to do for you?

     Library to do communication, protocol, encryption?

     Please try not in a second, reflect about all question I posed to you and answer in a clean ordinate and simple manner. Just few word in a line  if English is not your mother language.

  • i make image for better understanding..

    i want to achieve to control the GPIO port pin in vb.net.

    Roberto Romano, you understand exactly, what i need.

  • Perhaps you can re-read the first post here - in answer to your requirement...   Much of what you seek has been detailed...

    [edit]  Oh well....  (after read of op's 18:13 "non-responsive" post)  cb1 sont departez...

  • Muhammad Shabbir said:
    Roberto Romano, you understand exactly, what i need.

     I think you mean understood... What I got from a seems to..

    Muhammad Shabbir said:
    i want to achieve to control the GPIO port pin in vb.net.

     GPIO remain fixed IN or OUT or need be configured from external too?

     Yes it is not a so complex task but in first you need enforce your language knowledge then you still have to answer all what I asked on preceding point by point comment on your post.

     Remember We cannot do for you, Energia is supported and maybe someone of Arduino group can suggest something better on Hobby side.

  • Roberto Romano said:
    GPIO remain fixed IN or OUT or need be configured from external too?

    1- Switch is connected to the GPIO_PortB_Pin_0 as input

    2- one LED is Connected to the GPIO_PortB_Pin_1 as Output.

    i write program and load to the MCU.

    so when i pressed the Switch, LED Turn ON.

    when Released the LED Turn OFF.

    this is done. Now on the Programming side 

    the purpose of VB.Net program is to work like HMI.

    when i pressed the swith then i want to moniter the LED Status menas   GPIO_PortB_Pin_1 status in the VB.net Applicaion

    or may be i will send some command and then the LED should be Turn ON.

    sending some command means to write value in the address of the Specific Port Pin.

    i need to implement in the TM4c123GXL  Board, not on arduino

  • Hi Muhammad,

         It will help if you study how the uart_echo works. You, can then modify it to turn LED's on and off.

    -kel

  • i am interested exactly in same topic if you achieve something please share and i will do so