Presentation is loading. Please wait.

Presentation is loading. Please wait.

 The MSP430 is a mixed-signal microcontroller family from Texas Instruments. Built around a 16-bit CPU, the MSP430 is designed for low cost and, specifically,

Similar presentations


Presentation on theme: " The MSP430 is a mixed-signal microcontroller family from Texas Instruments. Built around a 16-bit CPU, the MSP430 is designed for low cost and, specifically,"— Presentation transcript:

1

2  The MSP430 is a mixed-signal microcontroller family from Texas Instruments. Built around a 16-bit CPU, the MSP430 is designed for low cost and, specifically, low power consumption embedded applications.  The MSP430 can be used for low powered embedded devices. The current drawn in idle mode can be less than 1 µA. The top CPU speed is 25 MHz It can be throttled back for lower power consumption.

3 Code Composer Studio is an integrated development environment (IDE) that supports TI's Microcontroller and Embedded Processors portfolio. Code Composer Studio comprises a suite of tools used to develop and debug embedded applications. It includes an optimizing C/C++ compiler, source code editor, project build environment, debugger, profiler, and many other features.

4 We can find all off needed code for Serial Communication on Microsoft msdn website and some of example

5  serialPort.BaudRate: baudrate is the SerialPort class property data communication speed during communication with the system you will control the computer. This feature varies from system to system. I can say that the number of bits sent per second for baud rate, if you contact your system speed means you can send and receive data at 9600 bits per second the computer's serial port is 9600. 19200 so if your system and you do not set this feature if the computer program will not be able to send and receive data in a healthy manner because the default value of this property is 9600.  serialPort.IsOpen: named ISOPEN the SerialPort class open port feature is a feature series that tells the type bool. The program will give an error if you try to open again after the closure before using the port is not necessarily a good idea to check that your use if you have open ports.

6  serialPort.PortName: The Port Name property of the class is the serial port will require a long name. If you use a converter to connect directly to the serial port 'COM1', it changed its name through a converter is "COM5", "COM6" and so on. You can enter your name in the type of string ports.  serialPort.ReadTimeout: Timeout is the SerialPort class Reader feature if you want to wait for the answer for several seconds after the serial port of the device must enter it int milliseconds. If the answer does not come from the desired device for 3 seconds while you should not fail here serialport.readtimeout = 3000.

7  serialPort.DiscardInBuffer(): discardınbuff named SerialPort class function serial port talk to your buffer is the function 's return value and no parameters that are used to clean. Very often you need to use a function that makes data exchange with the system. Sometimes you can use your data during communication but left PORTDIR you receive the correct answers in such a case a second time from both the remaining data and the previous reading device that you try to read data. You therefore have to trade with the right data.  serialPort.DiscardOutBuffer(): The serial port talk discardoutbuff the SerialPort class is your function is a function with no return value and the parameters you should use to clean data in the data sending phase.  serialPort.GetPortNames(): SerialPort class function is a function of the static GetPortNames is telling you the names of the ports available on your computer in the form of a string array. You can use this function if you want to tell your users open ports.

8

9

10

11

12

13  If we click the `bağlanti kes` button :  private void btnDisconnect_Click(object sender, EventArgs e)  {  serialPort1.Close(); //seriport u kapat  btnConnect.Enabled = true; // bağlan butonunu aktif yap  btnDisconnect.Enabled = false; // bağlantı kes butonunu pasif yap  textTemp.Text = initText; //initext leri yaz  textVolt.Text = initText;  progressBar1.Value = 0; // progress barı 0 a düşür  }

14  https://msdn.microsoft.com/en- us/library/ff802693.aspx https://msdn.microsoft.com/en- us/library/ff802693.aspx  https://en.wikipedia.org/wiki/Serial_com munication https://en.wikipedia.org/wiki/Serial_com munication  http://www.ti.com/lit/wp/slay025/slay025.pdf http://www.ti.com/lit/wp/slay025/slay025.pdf

15

16


Download ppt " The MSP430 is a mixed-signal microcontroller family from Texas Instruments. Built around a 16-bit CPU, the MSP430 is designed for low cost and, specifically,"

Similar presentations


Ads by Google