EECS 461
Latest uploads at EECS 461. Looking for notes at EECS 461? We have lots of notes, study guides and study notes available for your school.
-
3
- 0
- 0
All courses for EECS 461
-
EECS 461 3
Latest content EECS 461
EECS 461 
Prelab 5 
Due 02/18/2020 
1. 
T_clock = 1/40e6 = 2.5e-8 s 
For 20 kHz, 
T_interrupt = 1/20e3 s = 5e-5s 
⇒ # LPIT clocks = 5e-5/2.5e-8 = 2000 
⇒ timer initial value (TMR_VAL) = 2000 - 1 = 1999 
For 1 kHz, 
T_interrupt = 1/1e3 kHz = 1e-3s 
⇒ # LPIT clocks = 1e-3/2.5e-8 = 40000 
⇒ timer initial value (TMR_VAL) = 40000- 1 = 39999 
/* 
LPIT.h 
University of Michigan 
EECS 461, Embedded Control Systems 
Low Power Interrupt Timer (LPIT) 
Read Chapter 30 in S32K144 User's Manual 
Revi...
- Exam (elaborations)
- • 5 pages's •
-
EECS 461•EECS 461
EECS 461 
Prelab 4 
 
Declarations for pwm.c 
/* 
pwm.c 
University of Michigan 
EECS 461, Embedded Control Systems 
Pulse-Width Modulation using FlexTimer Module 
Read Chapter 45 in S32K144 User's Manual 
Important sections: 
45.4.2: Register Descriptions 
45.5.7: Edge-Aligned PWM (EPWM) Mode 
*/ 
#include "eecs461.h" 
#include "pwm.h" 
#define PWM_CLOCK_FREQ 
/* PWM Parameters */ 
#define MOTOR_PORT B 
#define MOTOR_PCR 12 
#define MOTOR_MUX 0b001 
#define FILTER_PORT B 
#define FILTER_P...
- Exam (elaborations)
- • 5 pages's •
-
EECS 461•EECS 461
EECS 461 
Prelab 4 
Due 02/04/2020 
Declarations for pwm.c 
/* 
pwm.c 
University of Michigan 
EECS 461, Embedded Control Systems 
Pulse-Width Modulation using FlexTimer Module 
Read Chapter 45 in S32K144 User's Manual 
Important sections: 
45.4.2: Register Descriptions 
45.5.7: Edge-Aligned PWM (EPWM) Mode 
*/ 
#include "eecs461.h" 
#include "pwm.h" 
#define PWM_CLOCK_FREQ 
/* PWM Parameters */ 
#define MOTOR_PORT B 
#define MOTOR_PCR 12 
#define MOTOR_MUX 0b001 
#define FILTER_PORT B 
#d...
- Exam (elaborations)
- • 5 pages's •
-
EECS 461•EECS 461