×
Get Full Access to UT - EE 319 - Class Notes - Week 3
Get Full Access to UT - EE 319 - Class Notes - Week 3

×

UT / Electrical Engineering / EE 319K / What determines the brightness of a LED?

# What determines the brightness of a LED? Description

##### Description: These notes cover the lectures from week 3, which were about LEDs and interfacing them.
1 Pages 158 Views 0 Unlocks
Reviews

Problem: Blue LED(PF2) to blink when SW1(PF4) is pressed

* code solution is on canvas

Destination

Source

x = x + a

If destination = source, shortcut syntax:

x + = a                        * also works for any other operator (both arithmetic and logic)

* delay = 1; can also be written delay --;

Problem: count the number of students who score 100 given a list (array) of student scores

* code solution is on Canvas

Miscellaneous

* The brightness of an LED is determined by the duty cycle

* Void - use this when a function has no inputs or output

Contract / Type Checking

* Caller must pass inputs that are compatible with the caller’s expected data type

uint8_t → uint32_t

int16_t → uint8_t

possible data loss - warning

int16_t ← uint8_t

warning

func(1) ←  (a,b)

X error

Switch / Led Interfacing

1. Software:

GPIO_PORTD_PDR_R |= 0x01;

Switch

Closed

3.3 v

Open

0 v

1. Hardware: External PDR

Switch

Digital

Open

3.28 v

1

closed

0 v

0

We also discuss several other topics like What are the topics of freedom on my mind?

Internal LEDS

O < I < 2mA

GPIO_PORTD_R2R_R |= OXO4

2mA < I < 4mA

GPIO_PORTD_R4R_R |= 0X04

4mA < I < 8mA

GPIO_PORTD_R8R_R |= 0X04

LED Interfacing

✔ Brightness (lumens → current)

✔ Power efficiency

*if , you can interface to the directly

Don't forget about the age old question of What is written in the Declaration of Independence?

*Negative Logic LED

If you want to learn more check out asu final exam schedule
Don't forget about the age old question of autonomy is the feeling of confidence and excitement from seeing your own skills progress.
If you want to learn more check out Summarize what is a resonance.
If you want to learn more check out What is written in credit memo?

Page Expired
It looks like your free minutes have expired! Lucky for you we have all the content you need, just sign up here
References: