Infotronik
HSLU - HS17 Systemstrukturierung und Programmierung von Embedded Systems
HSLU - HS17 Systemstrukturierung und Programmierung von Embedded Systems
Set of flashcards Details
Flashcards | 185 |
---|---|
Language | Deutsch |
Category | Electronics |
Level | University |
Created / Updated | 08.10.2017 / 06.12.2018 |
Weblink |
https://card2brain.ch/box/20171008_infotronik
|
Embed |
<iframe src="https://card2brain.ch/box/20171008_infotronik/embed" width="780" height="150" scrolling="no" frameborder="0"></iframe>
|
Create or copy sets of flashcards
With an upgrade you can create or copy an unlimited number of sets and use many more additional features.
Log in to see all the cards.
Processor Expert components are using the concept of Methods, Properties and Events. What would you expect for an ADC (Analog to Digital Converter) component?
(a) 2 typical Methods for an ADC component
(b) 2 typical Properties for of an ADC component:
(c) 2 typical Events for an ADC component:
- (a) Measure(), SetChannel(),...
- (b) Pin, sampling time, channel
- (c) OnSamplingStart(), OnConversionEnd(), OnError(), ...
Given following variable definition:
static char *string = "hello";
What is the difference between the two following usages
- sizeof(string)
- strlen(string)
In respect to the result and the expected code generated?
sizeof
- Gibt die Größe im Speicher an, die hier die Größe eines Zeigers hat (2 oder 4 Bytes, abhängig von der Maschine)
- sizeof() wird zur Kompilierzeit berechnet (Konstante)
strlen
- strlen() Die Läng ohne das zero-byte
- Is a library routine call (Ruft eine Bibliotheksroutine auf)
Given following interface implementation for a DC motor driver:
/* motor . h */
#include "LED. h" /* LED i n t e r f a c e */
#include "PWM. h" /* PWM i n t e r f a c e */
static uint16_t MOT_motorSpeed ;
void MOT_Init (void);
/* end o f motor . h */
Identify three issues with such an interface implementation (issues which could lead to linker/compiler failure, or things which are not considered as good programming style):
- No #ifndef...#define
- not necessary includes, static definition in header file.
Write in C code a single statement which only sets bit number 0 in variable var and let the other bits untouched (bit number 0 is the LSB):
var |= (1 << 0);
Provide an example of a typical Transforming System, and explain why this is a Transforming System:
- Radio --> Wandelt Daten in ein Hörbares Outputsignal
- Network router --> it transform packes and distributes them.
Explain why Optimized Memory Usage is a typical attribute for a Transforming System:
- Solche Systeme wandeln einen Eingabestrom in einen Ausgabestrom um
- Dies beinhaltet normalerweise eine grössere Menge an Speicher zum Puffern und Transformieren. Da Speicher teuer ist, müssen solche Systeme dafür optimiert werden.
Explain the reason why some processors push all their core registers onto the interrupt stack, and some only push a subset of the registers:
- Um die Interrupt-Latenz nicht zu erhöhen, falls viele Register vorhanden sind
- Und um die Wahrscheinlichkeit eines Stack-Überlaufs zu reduzieren.
What does it mean, if somebody says "I have masked the interrupts"?
The interrupts are disabled.
Explain multiple things which affects the interrupt latency time.
Die Latenzzeit hängt von
- der Geschwindigkeit der CPU,
- der Anzahl der zu ändernden Daten / -Register / Stapel für den Kontextwechsel und
- der Eintrittszeit innerhalb des ISR ab,
bis die ISR-Routine starten kann.
List the things a processor has to do in order to jump to an interrupt service routine and to return from it.
- aktuelle Ausführung stoppen (or undo or finish)
- Berechung der neuen Adresse basierend auf Vektor
- Speicher Status auf dem Stack
- Verzweige (brunch) zur ISR und Kontextswitch
- Dann alles Rückwärts durchlaufen, um von der ISR zurückzukehren.
List reasons, why a company would not allow any interrupt synchronization methods:
- Das Timing ist möglicherweise schwer berechnen bar
- Alles muss deterministisch sein.
- Problem mit Stack-Verbrauch, Timing-Problemen, verpasste Interrupts.
- Interrupts werden möglicherweise nicht bestätigt.
Does the ARM Cortex-M0+ support nested interrupts?
No!
What does it mean: the ARM Cortex M0+ supports nested interrupts?
Ein Interrupt mit niedrigerer Interrupt-Prioritätsnummer (höhere Interrupt-Prioritätsnummer) kann von einer Interrupt-Quelle mit höherer Priorität (untere Interrupt-Prioritätsnummer) unterbrochen werden.
Answer the questions for following C code, assuming default compiler settings:
typedef signed short MyType;
static unsigned char myVar[3];
typedef enum { RED=5, GREEN, YELLOW } Color s ;
(a) What gives sizeof(MyType) for the tinyK20/Remote board/project:
(b) What gives sizeof(MyType) for the Robot board/project?
(c) What gives sizeof(MyVar) for the tinyK20/Remote board/project?
(d) What gives sizeof(MyVar) for the Robot board/project?
(e) Which value has YELLOW?
- (a) 2
- (b) 2
- (c) 3
- (d) 3
- (e) 7
Given following source code:
uint16_t abcd [16];
uint8_t buf [10];
static uint16_t values [3];
(a) Determine the value of following expression:
- sizeof("abcd")
(b) Determine the value of following expression:
- sizeof(buf)
(c) Determine the value of following expression:
- sizeof(values)
- (a) 5
- (b) 10
- (c) 6
Was ist tinyK20?
Welche Eigenschaften weisst der K22 Zumo Robot (V2) auf?
Welche Eigenschaften weisst das Remote Kit auf?
Für was ist das nRF24L01+ Modul?
Was bedeutet SWO beim ARM Cortex?
Was ist ein recap bei INTRO?
Bei Verwendung von einem "Workspace" mit Eclipse...
Was beinhaltet der Workspace bei Kinetis Design Studio?
Merkmale des Eclipse Workspace?
- Speichert die .metadaten (globale Optionen/Einstellungen von Projekten)
- .metadata dürfen nie verschoben werden
- Teile niemals den Workspace mit einem VCS (verwende dafür einen separaten Pfad)
- Kann Projekt Ordner enthalten (Empfehlung den WSP und die Projekts zu separieren --> fürVCS)
Nenne Anwendungsgründe für ein VCS (Version Control System)
- Mehrere Personen arbeiten an einem Projekt/Datei
- Änderungsnachweise der Dateiänderungen notwendig
Ein gutes VCS kann was?
Which are Subsystems of an Embedded Systems?
What consist a transforming System?
Input Stream ---> System ---> Output Stream
Example:
- input mp3 file ---> Smartphone Encodersystem ---> output music
What are typical characteristics or advantages of a transforming system?
What are typical characteristics or advantages of a reactive system?
-
- 1 / 185
-