| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
SLAS191A bảng dữ liệu(PDF) 33 Page - Texas Instruments |
|
|
|||||||||||||||||||||||||||||
SLAS191A bảng dữ liệu(HTML) 33 Page - Texas Instruments |
|
33 / 86 page ![]() 1–27 ;**************************************************************************** ; Section in EPROM ;**************************************************************************** .sect “PrepLCD”, EPROM_orig ;––– Prepare LCD and Basic timer PrepLCD MOV.B #–1h,LCDM ;LCD : Analog generator on Low ; impedance 4 Mux active ; all outputs are Seg MOV.B #057h,BTCTL ; Basic Timer : SSEL=0 DIV=0 Reset=1 ; ACLK ; 32768/256 = 128 Hz ; (7.8 ms debounce time) ; LCD frame frequency @ 4 Mux: 64 Hz BIS.B #BTME,ME2 ; Enable basic timer module BIC.B #040h,BTCTL ; Basic Timer reset disabled BIS.B #BTIE,IE2 ; enable basic timer interrupt MOV.B #lcd_ival,lcd_timer ; load SW lcd timer CALL #show_cir ; clear LCD EINT ; enable interrupts ;––– clear LCD .sect “show_clr:”,EPROM_orig+50h show_clr MOV #15, r5 ; clear display memory show_clrl MOV.b #0, LCD1–1(r5) DEC r5 JNz show_clr1 RET ;**************************************************************************** ; Basic Timer Interrupt routine ;**************************************************************************** .sect “Int_BT” ,EPROM_orig+100h Int_BT ; Basic Timer 128 Hz (7.8 ms) DEC.B lcd_timer ; decrement SW lcd-timer JNZ Int_BT_end ; !0 : no action BIC #CPUOFF,0 (SP) ; Clear CPUoff Bit MOV.B #lcd_ival,lcd_timer ; =0 : load again Int_BT_end RETI Figure 1–23. EPROM LCD and Interrupt Routine Now these routines can be used in any other program. This section does not have to be downloaded again, even if the STK/EVK is disconnected from the power supply. To load a program using the HyperTerminal, double click the terminal icon in the MSP-STK/EVK430 program group in the Windows Program Manager. The HyperTerminal window appears as follows in Figure 1–24. |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |