?? fet410_lcd_01.asm
字號:
;******************************************************************************
; MSP-FET430P410 Demo - LCD, Display "6543210" on STK/EVK LCD
;
; Description: Display "6543210" on MSP-EVK430S320 LCD.
; ACLK = LFXT1 = 32768Hz, MCLK = SMCLK = default DCO = 32 x ACLK = 1048576Hz
; ;* An external watch crystal between XIN & XOUT is required for ACLK *//
;
; Connections MSP430 -> LCD
; -------------------------
;
; T.I. MSP-EVK430S320
; MSP430F449 6.5 digit 4 mux LCD
; #T218010
; /|\ --------------- --------------
; | | COM3 |-----|2 COM4 |
; --|RST COM2 |-----|1 COM3 |
; | COM1 |-----|3 COM2 |
; | COM0 |-----|4,20 COM1 |
; -|XIN SEG0 |-----|19 |
; 32kHz| SEG1 |-----|18 |
; -|XOUT SEG2 |-----|17 |
; | SEG3 |-----|16 |
; | SEG4 |-----|15 |
; | SEG5 |-----|14 |
; | SEG6 |-----|13 |
; | SEG7 |-----|12 |
; +-|R33 SEG8 |-----|11 |
; 1M | SEG9 |-----|10 |
; +-|R23 SEG10|-----|9 |
; 1M | SEG11|-----|8 |
; +-|R13 SEG12|-----|7 |
; 1M | SEG13|-----|6 |
; +-|R03 SEG14|-----|5 (bits C,E,H |
; | | | | of digit 7)|
; Vss --------------- --------------
;
; M. Buccini / S. Karthikeyan
; Texas Instruments Inc.
; May 2005
; Built with Code Composer Essentials Version 1.0
;******************************************************************************
.cdecls C,LIST, "msp430x41x.h"
;------------------------------------------------------------------------------
.text ; Program Start
;------------------------------------------------------------------------------
RESET mov.w #300h,SP ; Initialize stackpointer
StopWDT mov.w #WDTPW+WDTHOLD,&WDTCTL ; Stop Watchdog Timer
SetupFLL bis.b #XCAP14PF,&FLL_CTL0 ; Configure load caps
SetupLCD mov.b #LCDON+LCD4MUX+LCDP2,&LCDCTL ; STK LCD 4Mux, S0-S17
SetupBT mov.b #BTFRFQ1,&BTCTL ; STK LCD freq.
SetupIO mov.b #0FCh,&P5SEL ; Common and Rxx all selected
;
Mainloop clr.w R5 ; Clear pointer
Disp mov.b LCD_Tab(R5),LCDMEM(R5) ;
inc.w R5 ;
cmp.w #07,R5 ;
jne Disp ;
jmp Mainloop ; Again
;
LCD_Tab .byte 0B7h ; displays "0"
.byte 012h ; displays "1"
.byte 08Fh ; displays "2"
.byte 01Fh ; displays "3"
.byte 03Ah ; displays "4"
.byte 03Dh ; displays "5"
.byte 0BDh ; displays "6"
.byte 013h ; displays "7"
.byte 0BFh ; displays "8"
.byte 03Fh ; displays "9"
;
;-----------------------------------------------------------------------------
; Interrupt Vectors
;-----------------------------------------------------------------------------
.sect ".reset" ; RESET Vector
.short RESET ;
.end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -