Cov txheej txheem:

Intro to Cypress (Ntu 1): 4 Kauj Ruam
Intro to Cypress (Ntu 1): 4 Kauj Ruam

Video: Intro to Cypress (Ntu 1): 4 Kauj Ruam

Video: Intro to Cypress (Ntu 1): 4 Kauj Ruam
Video: tuaj nrog na li noj hmo qab heev nawb 2024, Kaum ib hlis
Anonim
Intro rau Cypress (Ntu 1)
Intro rau Cypress (Ntu 1)

Arduino tej zaum yog ib qho, yog tias tsis yog tus tswj hwm micro nrov tshaj plaws rau cov neeg nyiam ua haujlwm ib txwm muaj, tab sis muaj lwm txoj hauv kev zoo rau Arduino uas feem ntau tsis saib xyuas yooj yim vim tias Arduino yog lub npe loj hauv hobbyist microcontroller. Cov microcontrollers kuv xav hais txog yog Cypress 'programmable system ntawm nti, lossis PSoC kom luv. Lawv muaj zog, pheej yig thiab siv tau yooj yim heev thiab yog qhov kev xaiv zoo tshaj plaws rau tus hobbyist microcontroller. Cypress muab qee qhov yuav ua li cas rau cov yeeb yaj kiab nrog lawv Cypress Academy: PSoC 101 cov yeeb yaj kiab, txawm li cas los xij qee zaum lawv tau ci dua cov ntsiab lus, tab sis cov no yog cov yeeb yaj kiab muaj txiaj ntsig zoo ib yam. Ib qho ntxiv lawv muab cov ntaub ntawv rau txhua yam hauv lawv PSoC Creator IDE uas tau sau zoo kawg thiab tom qab tau txais cov hauv paus, txhua tus tuaj yeem qhia lawv tus kheej siv lawv cov ntaub ntawv.

Cov Lus Qhia no yog thawj zaug hauv kab kom tau txais ib tus neeg tshiab rau Cypress cov cuab yeej nce thiab khiav. Kuv yuav sim txuas ntxiv ua ntxiv yog tias muaj kev thov rau yam tshwj xeeb, tab sis tsis txhob ntshai nyeem cov ntaub ntawv, sim yam khoom tawm, saib Cypress Academy cov vis dis aus, nug cov lus nug ntawm Cypress Forum; siv sijhawm los sim kho qhov teeb meem koj tus kheej yuav pab koj kawm paub dab tsi ua thiab tsis ua haujlwm thiab cov teeb meem feem ntau yooj yim mus nrhiav.

Qhov no kuj yog ob ntu Qhia nrog ntu no tsom mus rau lub rooj tsavxwm uas pheej yig tshaj, thiab ntu 2 yuav tsom mus rau lub rooj tsavxwm kim dua (Tseem pheej yig) uas nws muaj peev xwm siv qhov debugger feature hauv PSoC Creator IDE. Nov yog qhov txuas rau Ntu 2;

Intro rau Cypress (Ntu 2)

Kauj Ruam 1: Yam Koj Xav Tau

Yam Koj Xav Tau
Yam Koj Xav Tau

Koj yuav xav tau lub khoos phis tawj los khiav PSoC Creator 4.0 uas tuaj yeem rub tawm los ntawm Cypress 'lub vev xaib tom qab tsim tus as khauj ntawm no;

PSoC Tus Tsim 4.2

Lub pob koj yuav xav tau rub tawm yog CY8CKIT-049-42xx CD ISO (CD Creator) thiab qhov no yuav nruab txhua yam koj xav tau rau cov khoom siv no;

Cypress PS0C 4 Cov ntaub ntawv thiab rub tawm

Kho vajtse rau cov khoom siv muaj los ntawm Digikey ntawm no;

Cypress PSoC 4 Pawg Ntsuam Xyuas

Thiab nws kuj tseem pom zoo kom tau txais ob peb lub taub hau no los txuas rau lub rooj tsavxwm vim tias cov no tsis tuaj nrog lub taub hau ua ntej muag. Hom no yog tus nqi ntau dua li lwm tus tab sis muab rau koj ob tus txiv neej thiab poj niam txuas rau cov xov hlau thiab nws zoo muaj lub rooj teeb tsa zoo li qhov no rau kev sim;

Txiv neej/Poj niam Pin Headers

Koj tseem yuav xav tau ib qho cathode RGB LED, ob lub 1k ohm resistors, 680 ohm resistor, lub khob cij, thiab qee qhov sib txuas xaim lossis DuPont cables (yog tias koj tsis paub tseeb tias koj xav tau txiv neej lossis poj niam, koj tuaj yeem pom ntau hauv cov pob khoom. uas muaj txiv neej rau txiv neej, txiv neej rau poj niam, thiab poj niam rau poj niam txhua tus ua ke), tab sis kuv tsis tuaj yeem teev cov peev txheej rau cov no vim kuv nquag yuav cov khoom no los ntawm eBay, thiab cov npe tuaj thiab nquag mus, tab sis muaj ntau yam muaj thiab yooj yim nrhiav nrhiav eBay.

Tshaj li ntawd, tsuav yog koj lub khoos phis tawj muaj USB chaw nres nkoj, thiab koj muaj cov hlau txuas thiab cov laug, koj muaj txhua yam ntaub ntawv xav tau.

Kauj Ruam 2: Breadboard Circuit

Breadboard lub Circuit Court
Breadboard lub Circuit Court

Lub Circuit Court yog qhov yooj yim heev los teeb tsa lub khob cij. Peb xaim peb peb cov cathode RGB LED nrog 1k ohm resistors ntawm tus pin xiav thiab ntsuab (ob tus pin ntawm ib sab ntawm cov hlau lead ntev tshaj plaws), thiab 680 ohm resistor ntawm tus pin liab (tus pin ib sab ntawm lwm sab ntawm Cov hlau lead ntev tshaj plaws) Peb kuj yuav tsum txuas cov hlau lead ntev tshaj plaws ntawm LED mus rau hauv av (GND) tus pin ntawm peb lub rooj tswj hwm micro.

Los ntawm peb tus pin teeb tsa hauv PSoC Tus Tsim, peb yuav xav txuas lwm tus coj ntawm peb tus tiv thaiv rau P1.0 rau liab (680 ohm resistor), P1.1 rau ntsuab thiab P1.2 rau xiav ntawm peb lub micro tswj lub rooj tsavxwm. Daim duab no muaj cov xim xaim, nrog dub yog peb hauv av.

Kauj Ruam 3: Programming Microcontroller

Kuv tau ua cov lus qhia raws li daim vis dis aus kom koj tuaj yeem ncua, rov qab thiab ua si ntawm koj qhov kev lom zem thaum ua raws nrog kev tsim thiab tsim cov phiaj xwm no rau koj tus kheej. Nrog cov vis dis aus, es tom qab ntawd qhia koj tias muaj ntau lub nyees khawm nyob rau qhov twg thiab thaum twg nyem rau lawv, koj muaj lub ntsej muag pab pom qhov kuv tab tom nyem rau ntawm lub sijhawm twg los tau thiab tuaj yeem rov saib txhua kauj ruam ntawm txhua lub sijhawm. Kuv kuj tau suav qee qhov ntsiab lus ncua rau koj kom ncua thiab ntes yog tias xav tau.

Kuv kuj tseem yuav txaus siab heev rau cov lus tawm tswv yim txog yam uas muaj txiaj ntsig, thiab ntawm cov cheeb tsam uas tuaj yeem txhim kho kom ua cov vis dis aus pab tau yav tom ntej.

Kauj Ruam 4: Cov Khoom Siv Ntxiv

Yog tias qee qhov laj thawj koj muaj teeb meem koj tuaj yeem rub tawm zip cov ntaub ntawv ntawm txoj haujlwm no, qhov tseeb los ntawm cov vis dis aus, thiab rho tawm txhua cov ntaub ntawv mus rau daim nplaub tshev ntawm koj lub desktop. Los ntawm PSoC Creator nrhiav cov ntaub ntawv ntawm koj lub desktop, qhib qhov chaw ua haujlwm thiab khiav nws koj tus kheej lossis siv nws los txheeb xyuas koj cov phiaj xwm phiaj xwm lossis tus lej. Txhua yam yuav tsum nyob ntawd thiab nws yuav tsum tsim, thiab phiaj xwm los ntawm Bootloader Host kom raug thiab yuav muab tus piv txwv ua haujlwm rau koj raws li siv nrog rau muaj cov vis dis aus los pab koj paub koj tus kheej nrog PSoC Creator.

Thaum koj tau paub koj tus kheej nrog PSoC Tus Tsim thiab yuav tsim cov phiaj xwm li cas, koj tuaj yeem pib tsim koj tus kheej cov phiaj xwm, ua si nrog cov khoom thiab tau txais kev pab los ntawm cov ntaub ntawv muaj txiaj ntsig uas Cypress muab ntxiv rau PSoC zej zog nthuav koj cov kev paub thiab peev xwm siv cov no zoo heev micro tswj. Nrog lawv siv cov khoom siv thiab cov txheej txheem nrog rau coding thiab cov ntaub ntawv zoo heev lawv yog cov muaj zog, tseem siv tau yooj yim.

Zoo Siab Tsim!*Qhia rau kuv paub yog tias muaj teeb meem nrog cov ntaub ntawv khaws cia tom qab unpack nws thiab khiav nws hauv PSoC Creator ** Hloov tshiab rau PSoC Creator 4.2*

Pom zoo: