ECEN 421 Quizzes (5-8)

0.0(0)
studied byStudied by 3 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/15

flashcard set

Earn XP

Description and Tags

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

16 Terms

1
New cards
5) How many pins of the DHT11 sensor need to be connected to circuitry in order for it to operate correctly?
3
2
New cards
5) How many data pins are needed on a single device for I2C Communications?
2
3
New cards
5) For the Homework 5 assignment, what code change had to made without xTaskCreate?
Directly calling the function with no arguments
4
New cards
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);
5
New cards
6) What is the unit for the amount of time specified by the second input parameter for the ESP-IDE function?
microseconds
6
New cards
6) Which ESP-IDF function is used to give a name to a GPIO interrupt service routine?
gpio_isr_handler_add
7
New cards
6) How many pins of the LCD1602 device are used for data communication?
1
8
New cards
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);
9
New cards
7) What basic electrical property does the ESP32 touch sensor rely on?
Capacitance
10
New cards
7) For the concurrent state machines in HW 7, which of the following was used for communication between the two state machines?
Global Variable
11
New cards
7) The technique of using sleep modes in an embedded systems program is an example of what type of optimization?
Power
12
New cards
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();
13
New cards
8) In FreeRTOS, a task has to be contained with what type loop?
Infinite loop
14
New cards
8) Which of the following RTOS objects is used to protect a critical section of a program?
Mutex
15
New cards
8) What type of access does a queue data structure have?
FIFO
16
New cards
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