Shared Flashcard Set

Details

Module 6 GPIO
ece331
22
Electrical Engineering
Undergraduate 1
04/23/2016

Additional Electrical Engineering Flashcards

 


 

Cards

Term
Cpu, processor
Definition
Core of a microcontroller
Term
peripheral hardware
Definition
outside of the core, I/O devices
GPIO
Timers
interrupt controller
communication ports
A/D converter
Term
Peripheral units composed of
Definition
Function hardware- counters for timers,packet framing circuits for communication ports
Config Registers- addressable memory to set how function hardware behaves
data registers- data bytes to/from communication ports,timer values, ADC values
all of these are memory mapped
Term
Memory mapped
Definition
Each register has a unique address in the controller memory space so it can be read/written
Term
Pins
Definition
physical contact on the controller package that connects to peripheral functions
permits interface to outside world can be input, outputs or both
Term
Port
Definition
Collection of several pints that can be addressed as a unit
Term
Multi tasking ports
Definition
To minimize package pins, most ports serve multiple functions
Term
PCR (pin control register)
Definition
sets alternate pin functions set by MUX bits in the PCR
Term
PCR registers to pin, to port, how many global pin registers and ISFR
Definition
one register for each pin, 32 registers for each port, 2 global. pin control registers (allow simulataneous, config of PCR registers) one ISFR
Term
ISF
Definition
Interupt status flag pin 24 0=none 1= interrupt; write to reset
Term
MUX
Definition
pin mux control select alt function for each pin (10:8)
Term
DSE
Definition
Drive strength enable 0=low, 1= high strength
Term
PE
Definition
Pull enable, pullup/down resistor- 0 disable, 1= enable
Term
pull select
Definition
0=pull down 1= pull up
Term
Read modify write
Definition
1) read current value from config register
2) modify only the bits you want to set using (ORRS) or clear (BICS)
3)WRITE modified value back to config register
Term
Configuring gpio requires 3 steps
Definition
1)Enable port clocks- disabled by default (SIM_SCGC5) controls clocks to ports A-E
2)set pin function to GPIO using PCR- Config Multi tasking port to the GPIO function
3)Set pin data direction- pins can be input or output as determined by PDDR
Term
PDDR
Definition
Enables output to physical pin,each port has one register for data direction
each ddr has one bit for direction of each pin
0= INPUT
1= OUTPUT
Term
pdor
Definition
latch that holds data to be output to each pin if PDDR=1
Config logic level on output pins of port
Term
PSOR
Definition
Set output
0= bits in PDOR dont change
1= bits in pdor set to logic 1
Term
PCOR
Definition
Clear output
0= do not change
1= clear to logic 0
Term
PTOR
Definition
Toggle output
0= do not change
1= set to inverse of current logic
Term
PDIR
Definition
stores value on each pin of a port
Data input
0= logic 0
1= logic 1
Supporting users have an ad free experience!