MSP430 Chapter3: Development Flashcards
developing programs for microcontrollers has become easier because…
- flash memory
- hardware for debugging and emulation on chip.
- reduction in cost of transistors
- manufacturers offer free development software
IDE
integrated development environment
Editor
used to write programs
Assembler/compiler
produces executable code, check for errors.
Linker
Combines compiled files and routines from libraries and arranges them for the correct types of memory in the MCU
Stand-alone simulator
simulates the operation of the MCU on a desktop computer without the real hardware. some simulators include peripherals.
MCU
Multipoint control unit
Embedded emulator or debugger
Allows software to run on MCU under control of a debugger running on a desktop. computer and MCU communicate using a special interface.
Communication interface for computer and MSP430 is
JTAG
In-circuit emulator
hardware that emulates the operationof the MCU under the control of a debbuging software running on a desktop. Expensive.
Now largely obsolete for small micro controllers.
Flash Programmer
downloads the program into flash memory on the MCU
declaration ‘const’
the value should not be modified, it is constant.
declaration ‘volatile’
Variable may appear to change spontaneously, with no direct action by the user’s program.
Tells compiler not to keep a copy of the variable in a register.
Peripheral registers must be treated as…
Volatile.
at least the ones associated with input ports
Right-shift for signed number is called
arithmetic shift
Right-shift for unsigned numbers is called
logical shift
Boolean vs. Bitwise
Boolean treats A and B as single Boolean values (0 or 1)
Bitwise acts on A and B’s individual bits so operations are carried out in parallel.
Boolean AND: &&
Bitwise AND: &