.131 WK 7-10 Flashcards
Microprocessor - Ioannis Chatzigeorgiou (43 cards)
Define runtime code/software:
software platform that provides an environment for executing user code - serves as an abstraction layer that developers can use to write software
Define a microcontroller unit (MCU):
compact integrated circuit equipped w/ 1 or more CPUs + memory - similar to a system on a chip
Define an embedded system:
electronic product comprised of one or more microcontrollers executing software instructions stored on a memory module to perform an essential function
Which component streams data to/from the microbit and provides power?
micro USB
What does a micro USB do?
streams data to/from the microbit and provides power
What does the ARM Cortex-M4F processor deal with?
interface that handles USB connection - used for flashing code + Tx/Rx data to/from devices
What does the ARM Cortex-M4 32-bit processor deal with?
user + runtime code + Bluetooth stack can run from flash memory, custom radio capabilities + integrated temp sensor
Which processor deals with the USB connection?
ARM Cortex-M4F
Which processor deals with user + runtime code?
ARM-Cortex-M4 32-bit
How does the microbit communicate?
via BLE antenna - peripheral that talks to central devices only + also uses radio to communicate w/ other microbits!!
What does the motion sensor include?
an accelerometer + magnetometer - sensor will either be LSM or FXOS
How does the microbit connect to external components?
clips/plugs to the edge connector - 20 pins/strips with 5 rings
What does the regulator do?
steps down voltage
What is Xtal for?
electronic crystal oscillator that provides clock signal
What buses are there in a microbit?
SWD, UART, I2C (external + internal)
What does SWD do?
stands for serial wire debug - for programming target MCU (processor)
What does UART do?
stands for universal asynchronous receiver transmitter - for exchanging data w/ device connected via USB
What does I2C do?
stands for inter-integrated circuit bus - allows main component (target MCU) to communicate w/ secondary components
Which bus deals with programming target MCU?
SWD
Which bus deals with data for device connected via USB?
UART
Which bus deals with communication between the target MCU and secondary components?
I2C
what does the MicroBit class do?
consists of variables + methods that operate as drivers to control commonly used microbit features
instantiate as MicroBit uBit;
then initialise with uBit.init();
what modes can you set uBit.display to
setDisplayMode(x):
-DISPLAY_MODE_BLACK_AND_WHITE = each pixel is on/off (can control brightness but for ALL) - most efficient (processing time + battery power)
- DISPLAY_MODE_BLACK_AND_WHITE_LIGHT_SENSE = same as above but display drivers also sense ambient brightness from LEDs
- DISPLAY_MODE_GREYSCALE = each pixel can independently have 256 levels of brightness
How to intialise an MicroBitImage?
MicroBitImage var (“0, 255, 0, 0, 0\n…);
OR
const unint8_t var[] = {0, 1, 0, 0…); then MicroBitImage image (5, 5, var);