Cov txheej txheem:

DIY Serial Line Coding Converters: 15 Cov Kauj Ruam
DIY Serial Line Coding Converters: 15 Cov Kauj Ruam

Video: DIY Serial Line Coding Converters: 15 Cov Kauj Ruam

Video: DIY Serial Line Coding Converters: 15 Cov Kauj Ruam
Video: #Kan saaf karne ka Sahi Tarika kya hai?shot video#sana shaikh 2024, Kaum ib hlis
Anonim
DIY Serial Line Coding Converters
DIY Serial Line Coding Converters

Kev sib txuas lus cov ntaub ntawv tau dhau los ua qhov chaw nyob hauv ntau daim ntawv thov kev lag luam, thiab ntau txoj hauv kev muaj los tsim ib qho kev sib txuas lus cov ntaub ntawv sib txuas. Nws yog qhov yooj yim los siv ib qho ntawm cov txheej txheem txheej txheem xws li UART, I2C lossis SPI. Ib qho ntxiv, ntau lwm txoj cai muaj nyob rau ntau daim ntawv thov xws li CAN, LIN, Mil-1553, Ethernet lossis MIPI. Lwm qhov kev xaiv los lis cov ntaub ntawv tseem ceeb yog siv cov kev cai tshwj xeeb. Cov txheej txheem no feem ntau yog ua raws kab lej. Feem ntau hom kab ntawm kab ntawv yog NRZ, Manchester code, AMI thiab lwm yam. [Configurable Protocol Decoding of Manchester thiab NRZ-Encoded Signals, Teledyne Lecroy Whitepape].

Piv txwv ntawm cov txheej txheem tshwj xeeb suav nrog DALI rau kev tswj hwm lub tsev teeb pom kev zoo, thiab PSI5 uas yog siv los txuas cov ntsuas hluav taws xob rau cov tswj hauv kev siv tsheb. Ob qho piv txwv no yog ua raws li kev teev npe ntawm Manchester. Ib yam li ntawd, SENT cov txheej txheem tau siv rau tsheb sib txuas-rau-tus tswj kev sib txuas, thiab CAN npav feem ntau siv los pab kev sib txuas lus ntawm microcontrollers thiab lwm yam khoom siv hauv kev siv tsheb yog ua raws NRZ kev nkag siab. Ib qho ntxiv, ntau lwm cov txheej txheem nyuaj thiab tshwj xeeb tau ua thiab tau tsim los siv cov phiaj xwm Manchester thiab NRZ.

Txhua tus lej kab ntawv muaj nws tus kheej qhov txiaj ntsig. Hauv cov txheej txheem ntawm kev xa xov ntawm lub teeb liab binary nrog ib lub cable, piv txwv li, kev sib txawv tuaj yeem tshwm sim uas tuaj yeem txo qis los ntawm kev siv AMI code [Petrova, Pesha D., thiab Boyan D. Karapenev. "Synthesis thiab simulation ntawm binary code hloov pauv." Kev Sib Txuas Xov Tooj Hauv Hnub Nyoog Satellite, Kev Siv Cable thiab Kev Tshaj Tawm, 2003. TELSIKS 2003. 6th International Conference on. Vol. 2. IEEE, 2003]. Dhau li, qhov bandwidth ntawm AMI teeb liab qis dua qhov sib npaug RZ hom ntawv. Ib yam nkaus, Manchester txoj cai tsis muaj qee qhov tsis xws uas muaj nyob hauv NRZ txoj cai. Piv txwv li, siv Manchester txoj cai ntawm kab ntawv tshem tawm DC cov khoom, muab lub sijhawm rov qab los, thiab muab qib sib piv ntawm kev tiv thaiv lub suab nrov [Hd-6409 Renesas Datasheet].

Yog li ntawd, kev siv hluav taws xob ntawm cov txheej txheem kab lej hloov pauv yog pom tseeb. Hauv ntau daim ntawv thov uas cov kab kab ncaj qha lossis siv ncaj qha, kev hloov pauv ntawm binary code yog qhov tsim nyog.

Hauv Cov Lus Qhia no, peb nthuav qhia yuav ua li cas kom paub ntau txoj kab kev hloov pauv siv tus nqi qis Dialog SLG46537 CMIC.

Hauv qab no peb piav qhia cov kauj ruam xav tau nkag siab yuav ua li cas GreenPAK nti tau raug tsim los tsim cov kab hloov pauv hloov pauv. Txawm li cas los xij, yog tias koj tsuas yog xav kom tau txais txiaj ntsig los ntawm kev ua haujlwm, rub tawm GreenPAK software los saib qhov ua tiav GreenPAK Tsim Cov Ntaub Ntawv. Ntsaws GreenPAK Kev Txhim Kho Khoom Siv rau koj lub khoos phis tawj thiab ntaus qhov program los tsim cov cai IC rau cov kab ntawv hloov pauv tus lej.

Kauj Ruam 1: Cov Qauv Hloov Pauv

Hloov Cov Qauv
Hloov Cov Qauv
Hloov Cov Qauv
Hloov Cov Qauv
Hloov Cov Qauv
Hloov Cov Qauv
Hloov Cov Qauv
Hloov Cov Qauv

Kev tsim cov kab ntawv hloov pauv kab hauv qab no tau muab rau hauv Cov Lus Qhia no:

● NRZ (L) to RZ

Kev hloov pauv los ntawm NRZ (L) rau RZ yog qhov yooj yim thiab tuaj yeem ua tiav los ntawm kev siv ib leeg THIAB rooj vag. Daim duab 1 qhia txog tus qauv rau kev hloov pauv no.

Z NRZ (L) to RB

Rau kev hloov pauv ntawm NRZ (L) rau RB, peb yuav tsum ua tiav peb qib kev xav (-1, 0, +1). Rau lub hom phiaj no, peb ntiav 4066 (plaub -ob tog sib piv sib hloov) los muab kev hloov pauv bipolar los ntawm 5 V, 0 V, thiab -5 V. Digital logic tau siv los tswj kev hloov pauv ntawm peb qib kev nkag siab los ntawm kev xaiv 4066 qhib cov tswv yim. 1E, 2E thiab 3E [Petrova, Pesha D., thiab Boyan D. Karapenev. "Synthesis thiab simulation ntawm binary code hloov pauv." Kev Sib Txuas Xov Tooj Hauv Hnub Nyoog Satellite, Kev Siv Cable thiab Kev Tshaj Tawm, 2003. TELSIKS 2003. 6th International Conference on. Vol. 2. IEEE, 2003].

Logic tswj tau ua raws li hauv qab no:

Q1 = Teeb liab & Clk

Q2 = NQA

Q3 = Clk & Teeb liab '

Kev hloov pauv tag nrho cov phiaj xwm tau qhia hauv daim duab 2.

Z NRZ (L) to AMI

NRZ (L) rau AMI kev hloov pauv kuj tseem siv 4066 IC txij li AMI code muaj 3 qib kev xav. Cov txheej txheem kev tswj hwm lub ntsiab lus tau piav qhia nyob rau hauv Table 1 sib xws rau kev hloov pauv tag nrho cov qauv qhia hauv daim duab 3.

Cov txheej txheem logic tuaj yeem sau raws li hauv qab no:

Q1 = (Teeb liab & Clk) & Q

Q2 = (Teeb liab & Clk) '

Q3 = (Teeb liab & Clk) & Q '

Qhov twg Q yog qhov tso tawm ntawm D-Flip flop nrog cov kev hloov pauv hauv qab no:

Qnext = Teeb liab & Qprev ' + Teeb liab' & Qprev

● AMI to RZ

Rau AMI rau RZ kev hloov pauv ob lub diodes tau siv los faib cov teeb liab nkag mus rau qhov zoo thiab qhov tsis zoo. Kev hloov pauv op-amp (lossis transistor-based logic Circuit) tuaj yeem ua haujlwm los hloov qhov tsis zoo sib cais ntawm lub teeb liab. Thaum kawg, qhov hloov pauv no tau dhau mus rau OR lub rooj vag nrog rau lub teeb liab zoo kom tau txais lub teeb liab xav tau hauv RZ hom ntawv raws li qhia hauv daim duab 4.

● NRZ (L) mus rau Split-phase Manchester

Kev hloov pauv los ntawm NRZ (L) mus rau Split-phase Manchester yog qhov ncaj raws li qhia hauv daim duab 5. Lub teeb liab nkag nrog rau lub moos teeb liab tau dhau mus rau NXOR lub rooj vag kom tau txais cov teeb liab tso tawm (raws li GE Thomas 'convention). XOR lub qhov rooj kuj tseem tuaj yeem siv tau kom tau txais tus lej Manchester (raws li IEEE 802.3 cov rooj sib tham) [https://en.wikipedia.org/wiki/Manchester_code].

● Split-phase Manchester rau Split-phase Mark code

Kev hloov pauv los ntawm Split-phase Manchester mus rau Split-phase Mark code tau qhia hauv daim duab 6. Lub tswv yim thiab lub moos teeb liab tau dhau los ntawm AND rooj vag rau moos D-flip flop.

D-flip yog tswj hwm los ntawm cov kab zauv hauv qab no:

Qnext = Q '

Cov teeb liab tso tawm tau txais raws li hauv qab no:

Cov zis = Clk & Q + Clk 'Q'

● Ntau Kab Code Hloov pauv

Siv cov kev hloov pauv saum toj no ib tus tuaj yeem yooj yim tau txais cov qauv rau ntau kab lej. Piv txwv li, NRZ (L) mus rau Split-phase Manchester code hloov pauv thiab Split-phase Manchester Code rau Split-phase Mark code hloov pauv tuaj yeem ua ke kom ncaj qha tau txais NRZ (L) rau Split-phase Mark code.

Kauj ruam 2: GreenPAK Designs

Cov phiaj xwm hloov pauv uas tau hais los saum toj no tuaj yeem siv tau yooj yim hauv GreenPAK ™ tus tsim qauv nrog rau qee yam khoom siv sab nrauv ntxiv. SLG46537 muab cov peev txheej txaus los ua cov qauv tsim. GreenPAK kev hloov pauv hloov pauv tau muab rau hauv qhov kev txiav txim ib yam li ua ntej.

Kauj Ruam 3: NRZ (L) rau RZ hauv GreenPAK

NRZ (L) rau RZ hauv GreenPAK
NRZ (L) rau RZ hauv GreenPAK

GreenPAK Tsim rau NRZ (L) rau RZ hauv Daim Duab 7 zoo ib yam li qhia hauv Kauj Ruam 1 tshwj tsis yog tias muaj ib qho DLY thaiv ntxiv. Qhov thaiv no yog nyob ntawm yeem tab sis muab qhov tsis sib xws rau qhov ua tsis raug ntawm lub moos thiab cov cim qhia tawm.

Kauj Ruam 4: NRZ (L) rau RB hauv GreenPAK

NRZ (L) to RB in GreenPAK
NRZ (L) to RB in GreenPAK

GreenPAK tsim rau NRZ (L) rau RB tau qhia hauv daim duab 8. Daim duab qhia pom yuav ua li cas txuas cov txheej txheem kev xav hauv CMIC kom ua tiav lub hom phiaj tsim hauv qib 1.

Kauj Ruam 5: NRZ (L) rau AMI hauv GreenPAK

NRZ (L) to AMI in GreenPAK
NRZ (L) to AMI in GreenPAK

Daim duab 9 qhia txog kev teeb tsa GreenPAK CMIC rau kev hloov pauv los ntawm NRZ (L) rau AMI. Cov txheej txheem no nrog rau cov koom haum pabcuam sab nraud muab rau hauv Kauj Ruam 1 tuaj yeem siv rau qhov kev xav tau hloov pauv

Kauj Ruam 6: AMI rau RZ hauv GreenPAK

AMI to RZ in GreenPAK
AMI to RZ in GreenPAK

Hauv daim duab 10 GreenPAK tsim rau AMI rau RZ kev hloov pauv tau qhia. GreenPAK CMIC teeb tsa hauv txoj hauv kev no nrog rau op-amp thiab diodes tuaj yeem siv tau kom tau txais cov zis xav tau.

Kauj Ruam 7: NRZ (L) mus rau Split-phase Manchester hauv GreenPAK

NRZ (L) rau Split-phase Manchester hauv GreenPAK
NRZ (L) rau Split-phase Manchester hauv GreenPAK

Hauv daim duab 11 lub NXOR lub rooj vag tau ua haujlwm hauv GreenPAK tsim kom tau txais NRZ (L) mus rau Split-phase Manchester hloov pauv.

Kauj Ruam 8: Sib cais-theem Manchester mus rau Split-theem Mark Code hauv GreenPAK

Split-phase Manchester mus rau Split-phase Mark Code hauv GreenPAK
Split-phase Manchester mus rau Split-phase Mark Code hauv GreenPAK

Hauv daim duab 12 GreenPAK tsim rau Split-phase Manchester rau Split-phase Mark code tau muab. Kev tsim rau kev hloov pauv tau ua tiav thiab tsis muaj cov khoom siv sab nraud xav tau rau txheej txheem hloov dua siab tshiab. DLY blocks yog xaiv tau rau tshem tawm cov teeb meem tshwm sim los ntawm kev ua kom yuam kev nruab nrab ntawm cov tswv yim thiab moos teeb liab.

Kauj Ruam 9: Cov txiaj ntsig sim

Txhua qhov kev tsim qauv nthuav tawm tau sim rau kev txheeb xyuas. Cov txiaj ntsig tau muab rau hauv qhov kev txiav txim ib yam li ua ntej.

Kauj Ruam 10: NRZ (L) rau RZ

NRZ (L) to RZ
NRZ (L) to RZ

Cov txiaj ntsig sim rau NRZ (L) rau RZ kev hloov pauv tau qhia hauv daim duab 13. NRZ (L) tau qhia ua daj thiab RZ tau qhia ua xiav.

Kauj Ruam 11: NRZ (L) rau RB

NRZ (L) to RB
NRZ (L) to RB

Cov txiaj ntsig sim rau NRZ (L) rau RB kev hloov pauv tau muab hauv daim duab 14. NRZ (L) tau qhia ua liab thiab RB tau qhia ua xiav.

Kauj Ruam 12: NRZ (L) rau AMI

NRZ (L) to AWM
NRZ (L) to AWM

Daim duab 15 qhia pom cov txiaj ntsig sim rau NRZ (L) rau AMI hloov dua siab tshiab. NRZ (L) tau qhia ua xim liab thiab AMI tau qhia ua xim daj.

Kauj Ruam 13: AMI rau RZ

AWM to RZ
AWM to RZ

Daim duab 16 qhia qhov kev sim sim rau AMI rau RZ hloov dua siab tshiab. AMI tau muab faib ua qhov zoo thiab qhov tsis zoo qhia hauv daj thiab xiav. Cov hloov pauv tso tawm RZ teeb liab tau qhia ua liab.

Kauj Ruam 14: NRZ (L) mus rau Split-phase Manchester

NRZ (L) rau Split-phase Manchester
NRZ (L) rau Split-phase Manchester

Daim duab 17 qhia pom cov txiaj ntsig sim rau NRZ (L) rau Split-phase Manchester hloov dua siab tshiab. NRZ (L) teeb liab tau qhia ua xim daj thiab hloov pauv cov txiaj ntsig Split-phase Manchester teeb liab tau pom hauv xiav.

Kauj Ruam 15: Split-phase Manchester mus rau Split-phase Mark Code

Split-phase Manchester rau Split-phase Mark Code
Split-phase Manchester rau Split-phase Mark Code

Daim duab 18 qhia txog kev hloov pauv los ntawm Split-phase Manchester mus rau Split-phase Mark code. Manchester txoj cai tau qhia ua xim daj thaum Mark code tau qhia hauv xiav.

Xaus

Kab lis kev cai tsim lub hauv paus ntawm ntau cov txheej txheem kev sib txuas lus uas tau siv thoob plaws hauv kev lag luam sib txawv. Kev hloov pauv ntawm kab ntawv kab hauv txoj hauv kev yooj yim thiab luv nqi nrhiav hauv ntau daim ntawv thov. Hauv cov lus qhia ntxaws no tau muab rau kev hloov pauv ntawm ntau kab lej siv Dialog's SLG46537 nrog rau qee qhov khoom siv sab nraud ntxiv. Cov qauv tsim nthuav tawm tau raug txheeb xyuas, thiab nws tau txiav txim siab tias kev hloov pauv ntawm kab kab tuaj yeem ua tiav yooj yim siv Dialog's CMICs.

Pom zoo: