Cov txheej txheem:

Tsab ntawv rau Morse Code Tus Txhais Lus: 5 Kauj Ruam
Tsab ntawv rau Morse Code Tus Txhais Lus: 5 Kauj Ruam

Video: Tsab ntawv rau Morse Code Tus Txhais Lus: 5 Kauj Ruam

Video: Tsab ntawv rau Morse Code Tus Txhais Lus: 5 Kauj Ruam
Video: Хиб чадж хиб туаг йог хиб ком плуаг 25.06.2017 2024, Hlis ntuj nqeg
Anonim
Tsab ntawv rau Morse Code Tus Txhais Lus
Tsab ntawv rau Morse Code Tus Txhais Lus

Pom Morse Code sawv cev hauv online kom paub nws yog qhov muaj txiaj ntsig, tab sis tsis tuaj yeem muab piv rau pom nws tus kheej nrog lub teeb/suab tiag tiag. Tus neeg txhais lus no yuav tso cai rau koj xaiv tsab ntawv uas koj xav kawm hauv Morse Code, thiab txhais nws ncaj qha rau ntawm koj lub qhov muag los ntawm kev teeb nyem LED hauv tus qauv nws sawv cev rau tsab ntawv tshwj xeeb ntawd! Tus Neeg Txhais Lus no siv tus lej binary sawv cev ntawm tus tsiaj ntawv, (daim duab tuaj yeem pom tom qab rau txhua tus ntawv 'sib npaug binary, tab sis xav tias A - 01, B - 10, C - 11, thiab ntxiv rau) thiab hloov dua siab tshiab nws mus rau hauv Morse code sib npaug los ntawm lub teeb ci rau cov neeg siv. Cov lej zauv ntawm tus lej kuj tseem tshwm ntawm ntawm xya ntu ntu txawm li cas los xij, kom qhia rau koj paub tias koj tab tom tsim qhov sib npaug binary raug.

Tus lej binary tau tsim nrog cov hloov pauv ntawm sab xis, thiab nce los ntawm qhov tseem ceeb me ntsis, ntau npaum li koj xav tau thaum tsim tus lej binary. Tus lej koj tsim tau qhia rau ntawm xya ntu qhia raws li tau hais ua ntej thiab nyob ntawm sab laug ntawm lub rooj tsavxwm, nws yuav yooj yim qhia koj tias koj tau ua yuam kev lossis tsis yog sawv cev rau tus lej binary nrog cov hloov pauv, lossis lees paub tias koj tau ua tus lej raug. Nws siv 1 tsab ntawv ntawm ib lub sijhawm, khaws nws hauv lub cim xeeb, thiab tom qab ntawd luam tawm tus lej Morse thaum tus neeg siv tau npaj los ntawm kev qhib "Luam hloov" pom nyob rau sab laug ntawm BASYS3 lub rooj tsavxwm (qhov no tsuas yog lwm qhov hloov pauv uas peb tau muab los ua "Luam Hloov", lossis lwm qhov hloov pauv yog siv lwm hom FPGA pawg thawj coj thiab xaiv qhov hloov pauv sib txawv (Saib cov kauj ruam 3).

Kauj Ruam 1: Kauj Ruam 1: Sau Koj Cov Khoom

Rau qhov haujlwm no, koj tsuas xav tau cov hauv qab no:

Kho vajtse-Basys3 Board (lossis sib npaug FPGA uas koj tuaj yeem xaim tau raws li)

-(TSIS MUAJ) Cov xov hlau yog tias koj tab tom npaj txuas ntxiv LED lossis hloov pauv mus rau lwm qhov FPGA

Software-Vivado Design Suite (Peb pom zoo 2014+)

Kauj Ruam 2: Kauj Ruam 2: Tsim Cov Ntaub Ntawv

Nov yog cov ntawv sau hauv VHDL kom ua haujlwm Morse Code 1 Bit tus neeg txhais lus hauv Vivado. Cov ntaub ntawv no ua haujlwm nrog txhua tus qauv ntawm Vivado. Yog tias muaj teeb meem nrog kev rub tawm cov ntawv, cov ntawv sawv cev ntawm tus lej tuaj yeem pom hauv lwm cov ntawv hauv qab no thiab tuaj yeem yooj yim luam tawm cov ntawv rau hauv cov ntawv tais ceev tseg uas koj tab tom tsim. Nco ntsoov tias ob qho tib si Lub hauv paus tseem ceeb thiab cov ntaub ntawv txwv muaj tam sim no thiab hauv lawv tus kheej qhov chaw sib cais ua ntej sim ua kom muaj ntsis me me lossis ua ke txhua yam. Rau cov uas xav nkag siab qhov kev piav qhia ntxaws ntxiv ntawm cov cai thiab nws tau ua dab tsi tiag tiag, txheeb xyuas qib 3. Yog tias koj tsuas xav tau mus rau lub ntsiab lus thiab pib txhais lus, hla mus rau ntu 4.

Kauj Ruam 3: Kauj Ruam 3: Txoj Cai

Peb cov cai muaj 4 txheej txheem cais uas txhua tus ua haujlwm ib txhij. Txhua ntawm cov ntu hauv qab no hauv qib no yuav nkag mus tob dua rau txhua tus ntawm lawv ua.

Txheej txheem 1:

Thawj cov txheej txheem peb tsim tau siv lub sijhawm faib ua lub sijhawm kom faib ua xya ntu ua haujlwm rau ob ntu txhawm rau qhia qhov sib npaug sib npaug ntawm tsab ntawv uas tus neeg tau tsim. Peb xav tau kom ntseeg tau tias lub moos tau ua kom raug tus lej kom raug rau xya ntu ntu uas peb xav tau. Peb tau muab cov ntu raws li, yog li lawv yuav tso tawm qee tus lej thaum peb nug lawv ib yam, thiab ua rau nws hla dhau 2 tus lej kawg vim tias peb tsuas xav tau 2 los qhia tag nrho cov lej hauv tus niam ntawv. Peb tau ua xya ntu tso rau hauv Cov lej zauv kom nws yooj yim dua rau tib neeg kom pom cov ntawv lawv tau sim los sawv cev, vim tias feem coob ntawm cov pejxeem siv cov lej 10 tus lej.

Txheej txheem 2:

Cov txheej txheem thib ob tsim peb lub moos rau LED's kom ua haujlwm, yog li peb tuaj yeem pom cov mem tes kom meej thiab sib txawv ntawm Dot thiab Dash, nrog rau lub sijhawm tsim nyog ntawm txhua ntu ntawm Morse code. Peb siv lub teeb liab kom hla lub Tsheb Npav tag nrho ntawm Morse Code LED tawm sab nraud ntawm cov txheej txheem thiab mus rau LED's ntawm lub rooj tsav xwm kom peb tuaj yeem ua teeb ntau ntau ib zaug, ntau dua li tsuas yog muaj ib qho nyem LED.

Txheej txheem 3:

Peb tus txheej txheem thib peb saib ntawm cov kev hloov pauv tam sim no, thiab muab tsab ntawv rau txhua qhov kev sawv cev binary tau tshwm sim nyob rau lub sijhawm ntawd. Qhov no dhau los ntawm txhua tus ntawv, nrog rau qhov chaw, lub sijhawm, thiab tus lej. Cov txheej txheem no xaus ntawm no, thiab txhua ntu tau sau rau hauv txheej txheem plaub kom tiav qhov kev txhais lus.

Txheej txheem 4:

Cov txheej txheem thib plaub yog txheej txheem "tus neeg txhais lus", uas siv tag nrho cov ntaub ntawv uas peb tau sau txog tam sim no, xws li seb lub khw muag khoom tau qhib lossis tsis tau, txawm hais tias lub tshuab luam ntawv hloov pauv lossis qhib, thiab tus lej twg yog sawv cev los ntawm cov keyboards. Qhov no tom qab ntawd saib mus rau hauv ib qho array peb tau ua, uas muaj Morse code sawv cev ntawm qhov kev tso tawm yuav nrog 1's thiab 0's sib npaug On/Off cov lus txib rau LED's. Hloov chaw ntawm kev siv ob lub luag haujlwm sib txawv ntawm lub moos, peb tau ua ib qho 50% lub luag haujlwm ntawm lub moos uas peb xav tias yog qhov nrawm rau Morse code, thiab nws tau ua Dot nrog 1 siab "mem tes" thiab Dash rau 3 siab " cov pulses. " Txhawm rau ua kom yooj yim cov cai thiab ua kom nws nrawm dua, peb tsuas yog ua Dot sib npaug rau "010" thiab Dash sib npaug "01110".

Kauj Ruam 4: Kauj Ruam 4: Tsim Bistream thiab Siv

Txoj haujlwm no yooj yim heev los teeb tsa yog tias koj muaj BASYS3 Board txij li txhua qhov hloov pauv thiab cov nyees khawm xav tau twb muaj nyob ntawm lub rooj tsavxwm rau koj siv, nrog rau kev txwv ua ntej teeb tsa rau tus pin koj xav tau. Yog tias koj siv FPGA sib txawv, koj yuav tsum nkag mus rau txoj cai thiab nrhiav cov kev txwv thiab rov ua lawv txoj hauv kev kom raug rau koj li FPGA. Qhov no kuj muaj tseeb yog tias koj tab tom npaj txuas lwm cov LED thiab hloov mus rau koj lub rooj tsav xwm rau kev siv. Peb yuav tsis nkag mus rau qhov piv txwv ntawm qhov no, tab sis kev siv phau ntawv qhia ntawm koj qhov tshwj xeeb FPGA yuav pab tau zoo hauv kev txiav txim siab yuav ua li cas xaim thiab xa txhua yam mus rau tus pin raug.

Txij ntawm no mus, thaum koj muaj tus lej rub tawm, thiab qhib cov ntaub ntawv, tsuas yog tsim cov bitstream hauv Vivado thiab teeb tsa koj lub cuab yeej. Thaum koj muaj, koj yuav tuaj yeem pib sau cov tsiaj ntawv kom raug txhais ua Morse Code! Txaus siab rau!

*NCO TSEG: Qhov "Luam Hloov" nyob ntawm sab laug ntawm lub Rooj Tswjhwm Saib (Hloov R2 rau Pawg BASYS3) thiab "Khw Khw" yog khawm U18 (Lub hauv paus khawm hauv pawg BASYS3) yog tias cov kev txwv raug coj ncaj qha los ntawm peb tus qauv piv txwv.

Kauj Ruam 5: Teeb meem/Teeb meem

Yog tias koj muaj teeb meem rub tawm cov ntawv, koj tuaj yeem luam tawm qhov chaws hauv tus kheej los ntawm cov ntawv no. Kuj tseem muaj qhov txuas rau koj los tshuaj xyuas kom yooj yim hloov pauv ntawm binary rau tsab ntawv, thiab daim ntawv yuav tsum sawv cev li cas, yog li peb pom zoo kom koj txheeb xyuas lawv! Yog tias koj siv BASYS3 Pawg Thawj Coj, koj yuav tsum muaj peev xwm ua raws cov lus qhia no thiab rub tawm cov cai yam tsis muaj teeb meem, thiab siv nws yam tsis muaj teeb meem thaum koj tau txuas nrog lub rooj tsavxwm thiab teeb tsa nws.

*NCO TSEG: yog tias koj pom tias koj tus neeg txhais lus zoo li nws tau khiav qeeb, qhov no yog ib txwm! Muaj lub sijhawm qeeb me me ntawm thaum koj ntaus ntawv luam tawm, thiab thaum koj pom Morse Code tus sawv cev ntawm nws. Yog tias koj ncua lub voj voog los ntawm kev hloov lub tshuab luam ntawv, txoj cai yuav tsum ua kom tiav cov voj voog ua ntej luam tawm tsab ntawv tshiab, tawm hauv koj tos rau lub voj voog kom tiav thiab tsab ntawv tom ntej yuav pib.

Pom zoo: