ECEN 421 Quizzes (5-8)

studied byStudied by 3 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 15

flashcard set

Earn XP

Description and Tags

16 Terms

1
5) How many pins of the DHT11 sensor need to be connected to circuitry in order for it to operate correctly?
3
New cards
2
5) How many data pins are needed on a single device for I2C Communications?
2
New cards
3
5) For the Homework 5 assignment, what code change had to made without xTaskCreate?
Directly calling the function with no arguments
New cards
4
5) Write a segment of code that you would use to display the sentence “hello world” on the bottom row of the LCD 1602
string = “Hello World”;

sprintf(strl”%s”,string);

LCD(strl)

char buff(17)

memset(buff, 0, sizeof(buff));

sprintf(buff, “Hello World”);

LCD_set cursor(0,1);

LCD_writestr(buff);
New cards
5
6) What is the unit for the amount of time specified by the second input parameter for the ESP-IDE function?
microseconds
New cards
6
6) Which ESP-IDF function is used to give a name to a GPIO interrupt service routine?
gpio_isr_handler_add
New cards
7
6) How many pins of the LCD1602 device are used for data communication?
1
New cards
8
6) Assume that one terminal of a normally-closed push-button is connected to GPIO27 of the ESP32, while the other terminal is connected to Vcc. Write the segment of code that will allow the press of this button to generate an interrupt on the ESP32
esp_rom_gipo_pad_select_gipo(27);

gipo_set_direction(27, GPIO_MODE_INPUT);

gipo_pulldown_en(27);

gipo_pullup_dis(27);

gipo_set_intr_type(27, GPIO_INTR_NEGEDGE);

gipo_install_isr_service(0);

gipo_isr_handler_add(27,gipo_ISR,NULL);
New cards
9
7) What basic electrical property does the ESP32 touch sensor rely on?
Capacitance
New cards
10
7) For the concurrent state machines in HW 7, which of the following was used for communication between the two state machines?
Global Variable
New cards
11
7) The technique of using sleep modes in an embedded systems program is an example of what type of optimization?
Power
New cards
12
8) In an ESP IDR program, what instructions should replace the following instruction in order to create the same amount of delay while in light sleep mode?
esp_sleep_enable_time_wakeup(200000); //in 20000 microseconds = 20 milliseccond esp_light_sleep_start();
New cards
13
8) In FreeRTOS, a task has to be contained with what type loop?
Infinite loop
New cards
14
8) Which of the following RTOS objects is used to protect a critical section of a program?
Mutex
New cards
15
8) What type of access does a queue data structure have?
FIFO
New cards
16
8) Draw the diagram of a circuit that will allow for a photoresistor to provide a Logic 0 value for an input pin when it is not exposed to any light
knowt flashcard image
New cards

Explore top notes

note Note
studied byStudied by 1 person
47 days ago
5.0(1)
note Note
studied byStudied by 13 people
782 days ago
4.0(1)
note Note
studied byStudied by 12 people
871 days ago
5.0(1)
note Note
studied byStudied by 4 people
157 days ago
5.0(1)
note Note
studied byStudied by 23 people
153 days ago
5.0(1)
note Note
studied byStudied by 12 people
844 days ago
5.0(1)
note Note
studied byStudied by 14 people
777 days ago
5.0(1)
note Note
studied byStudied by 11222 people
689 days ago
4.7(36)

Explore top flashcards

flashcards Flashcard (40)
studied byStudied by 6 people
92 days ago
5.0(1)
flashcards Flashcard (121)
studied byStudied by 17 people
536 days ago
5.0(2)
flashcards Flashcard (51)
studied byStudied by 92 people
339 days ago
5.0(1)
flashcards Flashcard (132)
studied byStudied by 1 person
160 days ago
5.0(1)
flashcards Flashcard (96)
studied byStudied by 35 people
488 days ago
5.0(2)
flashcards Flashcard (73)
studied byStudied by 6 people
263 days ago
5.0(1)
flashcards Flashcard (65)
studied byStudied by 4 people
630 days ago
5.0(1)
flashcards Flashcard (35)
studied byStudied by 4 people
375 days ago
5.0(1)
robot