Cov txheej txheem:

CPE 133 Metronome: 3 Kauj Ruam
CPE 133 Metronome: 3 Kauj Ruam

Video: CPE 133 Metronome: 3 Kauj Ruam

Video: CPE 133 Metronome: 3 Kauj Ruam
Video: McKennon: Planxty Mary Ellen (Play Along) in D 2024, Kaum ib hlis
Anonim
CPE 133 Metronome
CPE 133 Metronome

Rau peb qhov phiaj xwm zaum kawg ntawm Cal Poly peb tsim lub sijhawm khaws cov cuab yeej hu ua metronome, peb tau xaiv txoj haujlwm no vim yog kev nyiam suab paj nruag thiab tsim qauv digital. Peb siv cov kev sim yav dhau los hauv CPE 133 los pab tsim peb cov cai thiab kev qhia hauv online los pab tsim kho cov kab hluav taws xob LED ntawm lub khob cij.

Kauj ruam 1: System Architecture

Txheej Txheem Txheej Txheem
Txheej Txheem Txheej Txheem
Txheej Txheem Txheej Txheem
Txheej Txheem Txheej Txheem
Txheej Txheem Txheej Txheem
Txheej Txheem Txheej Txheem

Peb siv qhov kev tsim qauv no siv Basys 3 FPGA board, Breadboard, LED's, Resistors, thiab dhia rau kev txuas.

Lub hom phiaj ntawm kev tsim qauv no yog txhawm rau nce thiab txo tus nqi ntawm qhov LED teeb nyem rov qab los. Qhov nrawm uas lawv tab tom nyem yog hu ua tempo. Qhov xav tau nrawm tau ua tiav los ntawm kev siv cov nyees khawm ntawm Basys 3 FPGA pawg thawj coj los nce lossis txo qhov nrawm ntawm lub teeb.

Yog tias lub pob tau nias lub teeb tau nce nrawm dua, yog tias khawm qis tau nias qhov nrawm yuav txo qis.

Kauj ruam 2: Circuit Architecture

Circuit Architecture
Circuit Architecture
Circuit Architecture
Circuit Architecture

Cov Txheej Txheem Txheej Txheem: Khawm De-bounce: Peb tau siv lub pob de-bounce hauv Circuit Court kom ntseeg tau tias thaum peb nyem lub pob kom nce lub nrawm los ntawm ib ntu. Tsis muaj de-bounce ib zaug thawb ntawm lub pob yuav nce nrog qhov zaus ntawm lub moos.

Lub Sijhawm Hloov Hloov: Lub sijhawm hloov pauv tau siv los nce lossis txo tus nqi MAX_COUNT siv los ntawm lub moos faib los tswj lub moos tso tawm uas tsav lub LED.

Sau npe: Daim ntawv sau npe tau siv los tuav qhov tseem ceeb ntawm peb MAX_COUNT tshiab uas tau tso tawm los ntawm kev hloov pauv lub sijhawm. CLR tau ntxiv rau hauv kev sau npe kom rov pib dua MAX_COUNT rau tus nqi sib xws rau 1-thib ob moos zaus.

Clock Divider: Lub moos faib tau siv los ua kom qeeb ntawm lub moos PASYS 3 pawg thawj coj, qhov no yog ua tiav los ntawm kev faib lub moos zaus los ntawm MAX_COUNT tus nqi uas tau hloov pauv hauv lub sijhawm hloov pauv.

Hloov Sau Npe: hloov kho 4-ntsis hloov pauv npe tau siv los tso tawm '1' lossis tus nqi siab rau peb cov kab hluav taws xob LED ntawm lub khob cij ntawm qhov nce ntawm ntug ntawm lub moos mem tes. Nrog 4 LEDs ntawm lub khob cij, peb tuaj yeem tso tawm tsuas yog 1 ntawm 4 LEDs nyob rau ib lub sijhawm, ua tiav, ua qhov rov ua dua 4-ntaus ua ntu zus. Kev hloov pauv npe tau hloov kho xws li 4-ntsis tso tawm tsuas yog muaj 1 tus nqi siab, piv txwv li "0001" lossis "0100."

Pom zoo: