4. The cortex M3 microcontroller Flashcards
What is high performance 32 bit RISC CPU?
Uses a reduced instruction set computer (RISC) processor with most instructions executing in a single CPU cycle.
What is the opposite of RISC? and what is most common in embedded systems, why?
CISC - complex instruction set computer. RISC processors tend to be simper, consume less power and be faster. RISC is dominant in embedded systems.
What is an example of the use of CISC?
In order to maintain x86 compatibility, intel’s processors (eg Atom) are CISC.
What does 32 bit mean?
32 bit means the microcontroller can carry out operations on 32 bit wide packets of data. Instructions aren’t necessarily 32 bit wide.
What type of bugging does the Cortex M3 use?
Advanced debugging with coresight - the cortex m3 allows a low-cost debugger to step through the program slowly, set break points and view the content of memory on the fly (without halting the program).
How much memory can the cortex m3 address?
Up to 4G of memory. The SAM3X8E has 2-256 Kbytes of flash memory, which is mainly used to store the program, though it can also be used to store data. It also has 96 Kbytes of SRAM, organised as 64 Kbytes SRAM0 and 32 Kbytes SRAM1.
What is interrupt handling?
An ‘interrupt’ causes the mC to stop what it is doing, carry out an urgent task, then return to its original operation. For example, do this while the button is not pressed, if the button gets pressed do this and then return to what you were doing before.
What are the different clocks used by the mC?
Fast - used for the system in normal operation (84 MHz)
Intermediate - 4-12MHz, used for ast start-up mode, and generating the fast clock signal
Slow - used in backup mode (very low power). Exactly 32.768KHz if using a crystal
What are the types of oscillators that can be used to create the clocks?
External quartz crystal - used when accuracy is important e.g. a real clock.
Internal oscillator - cheap (free!) and saves 2 pins, accuracy about 3%
What is power saving back-up mode?
Many systems spend most of their time doing nothing (e.g. a remote control) so it is useful if they can ‘go to sleep’. The purpose of back up mode is to achieve the lowest power consumption possible in a system which is performing periodic wake-ups to perform tasks but not requiring fast start up time (
What are WAKE and SLEEP modes?
these use more power than backup (current >= 15 microAmps) but which start up much more quickly (=10 microSecs)
What is the voltage supply tolerance in the SAM3X/A series?
Wide voltage supply tolerance - supports a 1.62-3.6 V single supply mode.
What is an ADC?
An analog to digital converter - converts an external voltage into a digital value, which the mC can process. There are 16 channels (different inputs) and the offset and gain of each can be varied.
What is a DAC?
Digital to analog converter, this is the other way around and has 2 channels
what is PWM?
Pulse width modulation - 8 channels with 16 bit accuracy. Useful for controlling analog devices (eg motors, lights)
How many pins?
The package has 144 pins. Each can be selected to be either an input or an output (I/O) and this can be changed while the device is operating.
What are general purpose I/O lines?
these are managed by parallel input/output controllers (PIO) and have a number of useful modes.