Cov txheej txheem:

Programming MSP430 DIP Siv Ez430: 4 Cov Kauj Ruam
Programming MSP430 DIP Siv Ez430: 4 Cov Kauj Ruam

Video: Programming MSP430 DIP Siv Ez430: 4 Cov Kauj Ruam

Video: Programming MSP430 DIP Siv Ez430: 4 Cov Kauj Ruam
Video: Digital Lock System with MSP430 || 4 input dip switch and LCD 2024, Kaum ib hlis
Anonim
Programming MSP430 DIP Siv Ez430
Programming MSP430 DIP Siv Ez430

Thaum kuv pom TI's ez430 USB programmer, nws zoo li yog ib txoj hauv kev yooj yim dua rau sawv thiab khiav nrog MCU. Kuv yuav yuam kev li cas, nws muaj ez hauv lub npe! Nws hloov tawm tias nws yog qhov yooj yim … feem ntau.

Ez430 yog qhov zoo yog tias koj xav siv lub phiaj phiaj me me TI muag, tab sis qhov tsis muaj cov ntaub ntawv rau tus pib qhov tseeb yog kev ntxhov siab thaum sim txav mus rau lub caj dab sab nraud, thiab cov ntaub ntawv qhia los ntawm Texas Instruments yog qhov txaus ntshai.

Hauv kab lus luv luv no kuv cia siab tias yuav qhia li cas kom sawv thiab khiav nrog cov DIP cov qauv uas koj xaj los ntawm TI siv ez430. Kuv yuav ua haujlwm nrog tib lub microcontroller unit (MCU) zoo li ntawm ez430 lub hom phiaj pawg thawj coj, uas yog MSP430F2013. Ib qho MSP430x2xx yuav ua haujlwm nrog tib txoj hauv kev, thiab kom deb li kuv paub tag nrho MSP430 kab siv tib txoj haujlwm sib txuas. Yog tias koj siv pob khoom uas tsis yog pob hauv kab ob kab (DIP lossis DIL) lossis cov cuab yeej uas tsis yog MSP430x2xx ces koj yuav tsum tau xa mus rau cov ntawv teev tseg rau lub cuab yeej kom pom cov chaw nyob tsim nyog.

Kauj Ruam 1: Qhov Chaw

Qhov
Qhov

Txhawm rau program msp430 tsuas muaj qee qhov uas koj xav tau. Nov yog cov npe: Hlau IC qhov (socket) MSP430 MCU ez430 4 tus pin (.050 Daim phiaj sib txuas sib txuas) Cov ntawv ceeb toom sai ntawm 4pin qhov (socket). Ez430 cov neeg siv qhia cov npe Mill-Max tus lej. Mouser.com muaj lawv hauv Tshuag thaum kuv kuaj zaum kawg, thiab Mill-Max tuaj yeem muab cov qauv. Nco ntsoov tias daim duab muaj ntu ntxiv rau daim ntawv cog lus hais tom qab hauv kab lus. Kuv siv Kynar coated 30 gauge xaim rau kev sib txuas qhwv.

Kauj ruam 2: Cov laug cam

Cov laug cam
Cov laug cam
Cov laug cam
Cov laug cam
Cov laug cam
Cov laug cam
Cov laug cam
Cov laug cam

Kev ua haujlwm MSP430 xav tau tsuas yog 4 xov hlau, suav nrog Vcc thiab Vss txuas. Schematic hauv qab no yuav tsum pab. Cov no tsuas yog kev sib txuas uas koj xav tau los rub tawm qhov program mus rau MCU. Kuv tau tsim ob lub phiaj xwm phiaj xwm. Thawj zaug siv lub khob cij me me, ZIF qhov (socket), thiab 4 lub xov hlau los ntawm tus qub IDE cable nrog 4 tus pin ntsawb txuas rau ib kawg. Zero Insertion Force socket tsuas yog txuag kev rau siab thaum txav MCU ncig. Qhov thib ob siv DIP lub qhov (socket) los ntawm Mill-Max thiab qee tus pin kuv tau tso ncig, nrog rau qee yam ntxiv. Kuv tau xaim qhwv feem ntau ntawm cov kev sib txuas. Nws tsuas yog qhov yuav tsum tau txhawm rau txhawm rau 4 tus pin qhov (socket). Yeej nws yog lub rooj sib tham tsis muaj tus oscillator. Saib ntawm no rau cov txheej txheem txheej txheem txheej txheem. Qhov 2-2 ntawm TI cov ntaub ntawv slau144c (MSP430x2xx Cov Neeg Siv Qhia) qhia qhov tsis siv tus pin txiav. Qhov no yog qhov tseem ceeb rau koj lub phiaj xwm phiaj xwm, tab sis tsis yog lub cajmeem. MCU yuav tsis ua haujlwm rau koj tshwj tsis yog koj rub RST tus pin siab siv 47k resistor. Ntau lwm qhov cim tseg ntawm tus pin nyob. Thaum koj txuas tus ez430 tus pin rau koj 4 tus pin ntsaws kom ntseeg tau tias Vcc kev txuas yog qhov raug. Koj tuaj yeem txheeb xyuas qhov no los ntawm kev saib cov txheej txheem hauv ez430 Cov Neeg Siv Phau Ntawv. Daim ntawv ceeb toom tias R10 txuas rau Vcc ntawm ez430 sab. Koj yuav tsum muaj peev xwm ua raws tus coj ntawm lub rooj tsav xwm rov qab mus rau tus pin txuas uas nyob ze uas yog tus pin 1 ntawm tus txuas. Raws li ib sab, koj tuaj yeem tsim 4 txoj haujlwm txuas xov tooj, hu ua Spy-Bi-Wire, rau hauv koj daim ntawv thov zaum kawg, thiab koj yuav tsis tas yuav tshem tawm cov nti txhua. Yog tias koj txiav txim siab ua li ntawd, tom qab ntawd koj tuaj yeem siv lub zog MCU los ntawm koj daim ntawv thov 3V lub zog siv thiab tsuas yog txuas tus pin 2 thiab 3 (saib J1) ntawm USB programmer rau koj MCU.

Kauj ruam 3: Programming

Programming
Programming

Raws li kuv tau hais, thaum koj muaj kho vajtse npaj tau, ez430 yog qhov yooj yim siv. IAR Kickstart program uas suav nrog lub cuab yeej yuav ua rau koj nce thiab khiav sai. Muaj ib qho piv txwv txoj haujlwm suav nrog uas ua rau lub teeb ci LED txuas rau chaw nres nkoj 1.0. Txhawm rau ua haujlwm piv txwv ntawm koj lub rooj tsavxwm, tsuas yog ntxiv rau hauv LED thiab tus tiv thaiv ntawm tus pin 2 thiab 47k ohm rub tawm tus tiv thaiv ntawm tus pin 10 thiab koj yuav tsum tau tawm thiab ntsais muag. pom ntawm lub vev xaib no. Qhov ntawd zoo nkauj heev. Muaj ob peb lwm qhov kev pab cuam piv txwv tawm muaj. Yog tias koj xav sim lawv ua ntej koj dhia mus rau hauv lub cajmeem koj tus kheej tshawb nrhiav sai rau 'msp430 cov haujlwm' yuav tsum nqa koj ob peb qhov txiaj ntsig. Hmoov zoo thiab zoo siab lub cajmeem!

Kauj Ruam 4: Cov Txuas Txuas

TI's MSP430 Pageez430 Cov Neeg Siv Phau Ntawv Qhia MSP430x2xx Cov Neeg Siv Phau Ntawv Qhia-Max Qhov Ntsuas cov ntaub ntawv Leon Heller nplooj MSP430 Programming

Pom zoo: