Use of Falsely Addressed Branches and Subroutine Calls

Use of Falsely Addressed Branches and Subroutine Calls -...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
& Use of Falsely Addressed Branches and Subroutine Calls : The destination of branches and calls is used indirectly, and this means the content of the destination is used as the address. These errors occur most often with the symbolic mode and the absolute mode: CALL MAIN ; Subroutine’s address is stored in MAIN CALL #MAIN ; Subroutine starts at address MAIN The real behavior is easily seen when looking to the branch instruction. It is an emulated instruction using the MOV instruction: BR MAIN ; Emulated instruction BR
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: MOV MAIN,PC ; Emulation by MOV instruction The addressing for the CALL instruction is exactly the same as for the BR instruction. I2C • Inter-IC control • MSP430 User Manual – Chapter 15 • USART0 only • MSP430 connects to external system via: – SDA: Serial data – SCL: Serial clock I2C • Each I2C device is recognized by a unique address (instead of CS on SPI) • Master v. Slave – Master initiates data transfer (SDA) – Master generates clock signal (SCL)...
View Full Document

This document was uploaded on 02/08/2012.

Ask a homework question - tutors are online