Tsim los ntawm Philips xyoo 1980, I2C (xws li sau I2C) tau dhau los ua ib qho kev sib txuas lus ntau tshaj plaws hauv cov khoom siv hluav taws xob. I2C pab txhawb kev sib txuas lus ntawm cov khoom siv hluav taws xob lossis cov khoom siv sib txuas, txawm tias cov khoom siv nyob rau tib lub PCB lossis txuas nrog cable.
I2C raws tu qauv yog dab tsi?
I2C yog cov txheej txheem sib txuas lus uas tsuas yog xav tau ob kab teeb liab. Nws tau tsim los rau kev sib txuas lus ntawm cov chips ntawm lub rooj tsav xwm luam tawm (PCB). I2C yog Ameslikas tsim rau 100 Kbps kev sib txuas lus. Txawm li cas los xij, cov ntaub ntawv sib kis tau nrawm dua tau tsim nyob rau xyoo dhau los kom ua tiav qhov nrawm mus txog 3.4 Mbit.
Qhov tseem ceeb ntawm I2C yog qhov muaj peev xwm muaj ntau yam ntawm ib lub tsheb npav sib txuas lus nrog ob lub xov hlau, uas ua rau I2C zoo meej rau kev siv yooj yim. Cov txheej txheem I2C tau raug tsim los ua tus qauv tsim, tso cai rau rov qab sib raug zoo ntawm I2C kev siv.
I2C Signals
I2C raws tu qauv siv ob txoj kab kev taw qhia kev sib txuas lus nrog cov khoom siv ntawm lub npav sib txuas lus. Ob lub cim siv yog:
- Serial Data Line (SDL)
- Serial Data Clock (SDC)
Yog vim li cas I2C tuaj yeem siv tsuas yog ob lub teeb liab sib txuas lus nrog ob peb lub peripherals yog nyob rau hauv kev sib txuas lus raws lub npav. Txhua qhov kev sib txuas lus I2C pib nrog qhov chaw nyob 7-ntsis (lossis 10-ntsis) uas hu tawm qhov chaw nyob ntawm lub peripheral.
Qhov no tso cai rau ntau yam khoom siv ntawm lub tsheb npav I2C los ua lub luag haujlwm ntawm cov cuab yeej tseem ceeb raws li qhov xav tau ntawm lub kaw lus hais. Txhawm rau tiv thaiv kev sib tsoo kev sib txuas lus, I2C raws tu qauv suav nrog kev txiav txim siab thiab kev sib tsoo muaj peev xwm tshawb pom, uas tso cai rau kev sib txuas lus zoo raws lub npav.
Txoj txiaj ntsig ntawm I2C
Raws li kev sib txuas lus raws tu qauv, I2C muaj qhov zoo hauv qab no:
- Cov ntaub ntawv sib kis tau yooj yim.
- Kev sib txuas lus ntev dua li SPI.
- Txhua yam khoom siv ntawm lub npav yog tus kheej nyob ntawm tus kheej.
- Devices muaj kev sib raug zoo hauv thawj / theem nrab.
- Nws tsuas yog xav tau ob kab teeb liab xwb.
- Nws muaj peev xwm tuav ntau qhov kev sib txuas lus tseem ceeb los ntawm kev muab kev txiav txim siab thiab kev sib tham sib tsoo.
txwv ntawm I2C
Nrog rau tag nrho cov txiaj ntsig no, I2C kuj muaj qee qhov kev txwv uas yuav xav tau tsim nyob ib puag ncig. Cov kev txwv I2C tseem ceeb tshaj plaws suav nrog:
- Vim tias tsuas yog 7-ntsis (lossis 10-ntsis) muaj rau cov chaw nyob, cov khoom siv ntawm tib lub npav tuaj yeem sib qhia qhov chaw nyob. Qee cov khoom siv tuaj yeem teeb tsa ob peb qhov kawg ntawm qhov chaw nyob, tab sis qhov no ua rau muaj kev txwv ntawm cov khoom siv ntawm tib lub npav.
- Tsuas yog ob peb qhov kev sib txuas lus ceev tsuas yog muaj, thiab ntau yam khoom siv tsis txhawb kev sib kis ntawm qhov nrawm dua. Kev txhawb nqa ib nrab rau txhua qhov ceev ntawm lub tsheb npav yuav tsum tau tiv thaiv kom tsis txhob muaj cov khoom siv qeeb qeeb los ntawm kev ntes ib nrab kis uas yuav ua rau muaj kev ua haujlwm tsis zoo.
- Qhov sib koom ntawm I2C tsheb npav tuaj yeem ua rau tag nrho lub npav dai thaum ib qho khoom siv ntawm lub npav nres ua haujlwm. Kev caij tsheb kauj vab fais fab tuaj yeem rov ua haujlwm tau zoo.
- Vim cov khoom siv teeb tsa lawv tus kheej kev sib txuas lus nrawm, cov khoom siv ua haujlwm qeeb qeeb tuaj yeem ncua sijhawm ua haujlwm ntawm cov khoom siv nrawm dua.
- I2C rub lub zog ntau dua li lwm cov tsheb npav sib txuas lus vim yog qhib-drain topology ntawm cov kab kev sib txuas lus.
- Cov kev txwv ntawm I2C tsheb npav feem ntau txwv cov khoom siv ntawm lub tsheb npav mus txog ib lub kaum os.
I2C daim ntawv thov
I2C yog qhov kev xaiv zoo rau cov ntawv thov uas xav tau tus nqi qis thiab kev siv yooj yim dua li kev kub ceev. Piv txwv li, kev siv ntau ntawm I2C kev sib txuas lus raws tu qauv suav nrog:
- Nyeem qee lub cim xeeb ICs.
- Nkag mus rau DACs thiab ADCs.
- Kev xa tawm thiab tswj cov neeg siv kev coj ua.
- Nyeem kho vajtse sensors.
- Kev sib txuas lus nrog ntau lub micro-controller.