新聞中心

        EEPW首頁 > 電源與新能源 > Serial interface

        Serial interface

        ——
        作者: 時間:2007-04-27 來源: 收藏

        If you send bits one at a time, you are using serial communication. If you send one extra bit for each 8 bits to make sure your data got there intact, it is called a parity bit.  Bit parity can be odd or even.  It is even, if you assign 0 to the parity bit when the sum of the 8 bits is a even number.  In this case, you assign 1 to the parity bit when the sum is an odd number.  The parity is odd, if the logics is reversed.  After the byte has arrived, the system will sum 8 bits and check if it matches the even-or-oddness predicted by the parity bit.

        Two common connector type are used for serial communication: the 9-pin connector DB9 and ( less often) 25-pin DB25 connector,which is essentially the same. A serial port male connector looks like this:  

        				---------------------
        				   o o o o o o    /
        				     o o o o     /
        				   --------------
        				

        The heart of the serial communication technology is the UART (Universal Asynchronous Receiver/Transmitter), which converts parallel streams of data into a single sequence. As soon as the CPU sends the bits to the UART, it is free for another job, and the UART will convert the data into a single sequence and send the bits one at a time over the serial cable using the internal clock to define the time interval for the next bit to be sent. The UART will also send the start bit, the stop bit, and the parity bit (if necessary). 

        Modern PCs can exchange data over the serial port at rates up to 115 KB/s, but this will translate into a maximum data rate of about only 11.5 KB/s without parity and 10.5 KB/s with parity due to the serial communication protocol overhead.



        關鍵詞: interface Serial

        評論


        相關推薦

        技術專區

        關閉
        主站蜘蛛池模板: 怀集县| 连平县| 尚志市| 马山县| 耒阳市| 蛟河市| 苗栗市| 茶陵县| 沙田区| 建平县| 波密县| 准格尔旗| 吴川市| 绿春县| 申扎县| 青海省| 塔城市| 闽侯县| 舒兰市| 巴林右旗| 阜宁县| 通许县| 江阴市| 调兵山市| 苗栗市| 崇信县| 武定县| 建瓯市| 延寿县| 家居| 九龙坡区| 东乡县| 河北省| 灌阳县| 宝坻区| 玉山县| 华坪县| 通州市| 汝阳县| 偃师市| 民县|