Example: dental hygienist

MSP430導入用マニュアル - tij.co.jp

JAJA227_2011 3 MSP430 ( (PIC) ) MSP430F5438A MSP430 URL URL MSP430 1.. 2 .. 2 .. 2 Code 2 JTAG .. 3 .. 3 2.. 4 .. 4 .. 4 Code Examples .. 4 Interrupt Service Routine ISR .. 4 .. 5 3.. 6 Workspace .. 6 .. 6 .. 6 Build .. 7 LED Example .. 7 Debug .. 7 .. 8 .. 10 Texas Instruments Incorporated TI TI TI TI TI TI JAJA227 1.

アプリケーション・レポート 参考資料 JAJA227_2011年3月 MSP430導入用マニュアル (日本テキサス・インスツルメンツ(株)プロダクト・インフォメーション・センター(PIC) 山内 一男) rev.0.1

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of MSP430導入用マニュアル - tij.co.jp

1 JAJA227_2011 3 MSP430 ( (PIC) ) MSP430F5438A MSP430 URL URL MSP430 1.. 2 .. 2 .. 2 Code 2 JTAG .. 3 .. 3 2.. 4 .. 4 .. 4 Code Examples .. 4 Interrupt Service Routine ISR .. 4 .. 5 3.. 6 Workspace .. 6 .. 6 .. 6 Build .. 7 LED Example .. 7 Debug .. 7 .. 8 .. 10 Texas Instruments Incorporated TI TI TI TI TI TI JAJA227 1.

2 MSP430 * SLAU208 a,b, MSP430x5xx/MSP430x6xx Family User's Guide (SLAU208) MSP430 Optimizing C/C++ Compiler v User's Guide (SLAU132) SLAU278 MSP430 Hardware Tools User's Guide (SLAU278) F5438A MSP430F5438A MSP430F543xA.

3 MSP430F541xA Mixed Signal Microcontroller SLAS655 TI MSP430-FET430 UIF MSP430F5xx 100 MSP-TS430PZ5X100 MSP430F5xx 100 USB MSP-FET430U5X100 G2xxx F20xx N14/20 DIP LaunchPad Development Tool MSP430 Hardware Tools User's Guide (SLAU278) MSP-EXP430G2 LaunchPad Experimenter Board User's Guide (SLAU318) JTAG Code Examples F5438A Code Examples MSP430F543xA, MSP430F541xA Code Examples Code Examples CCS 4 Example code 2 JAJA227 JTAG MSP-FET430 UIF JTAG CCS JTAG MPU SLAU278 4-wire 2-wire 2 Figure 2-1.

4 Signal Connections for 4-Wire JTAG Communication Figure 2-2. Signal Connections for 2-Wire JTAG Communication (Spy-Bi-Wire) MSP-FET430 UIF CCS IAR-EW430 PC USB CCS CCS IAR Firmware Update window update yes LaunchPad LaunchPad G2xxx F20xx User's Guide(SLAU318) Figure 1. LaunchPad Overview Emulation Spy-bi-Wire 2-wire Firmware Update J3 J4 table spy-bi-wire Table 2. eZ430 Debugging Interface PC Hyper Terminal virtual COM UART URL CCS ** GB 30-day Free FULL Activation-ID Licensed code-size KB Download latest production DVD image Download latest production MSP430/C28x code size limited image zip CCSv4 Help->Software Updates ->Find and Install **

5 Emulator MSP-FET430 UIF LaunchPad PC 3 JAJA227 2. User s Guide Figure 4-1. UCS Block Diagram UCS Module Registers Code Examples symbol UCSCTL7 &= ~(XT1 LFOFFG + DCOFFG); // Clear XT1 & DCO fault flags Code Examples Symbol Code Examples include #include " " #include " " 16 0x1234 on/off Code Examples Code Examples Code Examples Code Examples(zip) !

6 Code Examples Interrupt Service Routine ISR Code Example ISR ISR ISR Interrupt Vector Addresses Priority TA0 TA0 CCR0 CCIFG0(3) Maskable 54 Priority int54 \CCSv4\ccsv4\msp430\include #define TIMER0_A0_VECTOR (54 * 1u) /* 0xFFEC Timer0_A5 CC0 */ /*#define TIMER0_A0_ISR(func) ISR_VECTOR(func, ".int54") */ /* 0xFFEC Timer0_A5 ISR Time_A0 ISR(TIMER0_A0_ISR) // Timer0 A0 interrupt service routine #pragma vector=TIMER0_A0_VECTOR __interrupt void TIMER0_A0_ISR(void) { } 4 JAJA227 CCS MSP430 Watch Dog Timer WDT Power On WDT WDT NMI main() Example WDTCTL = WDTPW + WDTHOLD.

7 // Stop WDT Interrupt ISR ISR ISR violation NMI C main() main() 16bits ISR 64KB 64KB 20bits ISR Data-Sheet SLAS655x Figure 1. Frequency vs. Supply Voltage CPU CPU 5 JAJA227 3. Workspace Workspace CCS workspace1 CCSv4 workspace CCSv4 File -> Switch Workspace Workspace project File -> New -> CCS Project Next -> Next -> Next F5438A Default ** CGT Finish file project file file LED CCS Code Examples File -> Open

8 File -> CCSv4 \ccsv4\msp430\examples\msp430x5xx\C-sour ceSource File\ Example #include " " File -> Save As project main() 6 JAJA227 Build Project -> Build Active Project -> console, problem window LED Example ---<USB>--- MSP-FET430 UIF ---<JTAG>--- MSP-TS430PZ5X100 F5438A (Debug Launch) Target-> Debug Active Project Flash-Memory Program CPU Reset Program start main int main void { Target-> Run play | program LED Debug Debug Example project code #include " " int a,b=0; int main(void) { int x; WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer a = 5; b += 2*a; x = a + b.}}

9 } Build-> Debug Debug Debug main Local local /Watch global window watch-window Local Global <new> a, b 7 JAJA227 b window FORMAT Natural -> Format 16 10 Run main Value Run Local X build Debug Example section code.

10 Text variable .bss MSP430 Optimizing C/C++ Compiler v User's Guide (SLAU132) Table 4-1. Initialized Sections Created by the Compiler Table 4-2. Uninitialized Sections Created by the Compiler 8 JAJA227 object < > /* SPECIFY THE SYSTEM MEMORY MAP */ MEMORY { RAM : origin = 0x1C00, length = 0x4000 FLASH : origin = 0x5C00, length = 0xA380 FLASH2 : origin = 0x10000,length = 0x35C00 /* SPECIFY THE SECTIONS ALLOCATION INTO MEMORY */ SECTIONS { .bss : {} > RAM /* GLOBAL & STATIC VARS */.}}


Related search queries