| 전자부품 데이터시트 검색엔진 |
|
SLAS191A 데이터시트(PDF) 73 Page - Texas Instruments |
|
|
|||||||||||||||||||||||||||||
SLAS191A 데이터시트(HTML) 73 Page - Texas Instruments |
|
73 / 86 page ![]() 5–7 In Figure 5–3, the endless loop at the end of the program can be interrupted by pressing <ESC> in the HyperTerminal. If no special treatment of <ESC> is required in the software UART, bit 0 in RAM location 200h must be cleared. This bit is the ESC-active-flag and allows itself to return back to the Hyperterminal when pressing the ESC key. Conditions for implementation: • Correct setting of the P0.1 interrupt vector in the user interrupt vector table • The first statement of the user interrupt handler is an absolute branch to the INT_RXTX interrupt service routine. • GIE is enabled. • The halfduplex software UART is set up to receive. NOTE: Clear the Bit Pattern AA55h Do not try to load a program while the bit pattern AA55h is stored at address 3DEh on the MSP430x32x, or 5DEh on the MSP430x33x. To load a new program, clear the bit pattern AA55h at address 3DEh on the MSP430x32x, or 5DEh on the MSP430x33x, or switch off the STK/EVK for a short time to clear the RAM. 5.5 Transmitting a String The first step to transmit a string is to move the bit pattern AA55h to memory location 3DEh on the MSP430x32x, or 5DEh on the MSP430x33x. The address of the string must be stored in register R11. The following program transmits the TEST String: WDTCTL .equ 0120h WDTHold .equ 80h WDT_wrkey .equ 05a00h TXCHAR .equ 0FFD2h TXTABLE .equ 0FFD4h PREPRX .equ 0FFD6h PREPTX .equ 0FFD8h INT_RXTX .equ 0FFDAh TXDATA .equ 020Eh RXBUF .equ 0210h .data 0300h STRING: .string “TEST” .byte 0h .text 0240h RESET: MOV #03DEh,SP ; #05DEh on the MSP430X33x MOV #(WDTHold+WDT_wrkey),&WDTCTL ; stop Watchdog Timer EINT ; enable interrupt TX: MOV #0AA55h,&03DEh ; prepare software UART for the ; use in user application (&05DEh on the MSP430X33x MOV #STRING,R11 ; Test: TX_table ; BIC #01h,&200h ; use only if no special ; treatment of ESC is wanted CALL &TXTABLE ; call transmit sub-routine in ; monitor (05DEh on the MSP430X33x CALL &PREPRX ; prepare software UART for |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |