+ All Categories
Home > Documents > M3 - GPIO GPIO Configuration and Pins For general purpose...

M3 - GPIO GPIO Configuration and Pins For general purpose...

Date post: 09-Aug-2020
Category:
Upload: others
View: 12 times
Download: 0 times
Share this document with a friend
37
M3 - GPIO GPIO Configuration and Pins For general purpose ports Interrupts review
Transcript
Page 1: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK

M3 - GPIO

GPIO Configuration and Pins

For general purpose ports

Interrupts review

Page 2: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK
Page 3: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK

MSP430 Design Workshop

Generic Designations

Page 4: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK

MSP430FR2433 Launchpad Pinouts Functions for pins are multiplexed, the arrows point to the Port.Pin designationFor the connections to the LaunchPad Board

Page 5: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK
Page 6: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK
Page 7: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK
Page 8: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK
Page 9: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK
Page 10: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK
Page 11: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK
Page 12: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK
Page 13: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK
Page 14: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK
Page 15: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK
Page 16: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK
Page 17: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK

PxDir 0 PxIn 1 PxOutPxREN (input mode) PxOUT 0 – pull down

1 – pull upPxSel 00→10ADCPCtLx – ADC Input

PxIE – Interrupt Enable PinPxIES – Rising or falling edgePxIFG – Interrupt Flag (status)

GIE – General Interrupt Enable

Page 18: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK

PxDir 0 PxIn 1 PxOutPxREN (input mode) PxOUT 0 – pull down

1 – pull upPxSel 00→10ADCPCtLx – ADC Input

PxIE – Interrupt Enable PinPxIES – Rising or falling edgePxIFG – Interrupt Flag (status)

GIE – General Interrupt Enable

Page 19: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK
Page 20: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK

Interrupts Review

Page 21: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK

Code for ISR push button to toggle LED

Interrupt review MSP430-Interrupts-posted.pdf

Page 22: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK
Page 23: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK

Push a button, create an interrupt Switch 1 → P2.3

Page 24: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK

Maskable – turn on/off with a flag

Page 25: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK
Page 26: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK
Page 27: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK
Page 28: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK

CPU Registers

Page 29: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK

FRAM

SRAM

Page 30: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK
Page 31: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK
Page 32: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK
Page 33: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK
Page 34: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK
Page 35: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK
Page 36: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK
Page 37: M3 - GPIO GPIO Configuration and Pins For general purpose ...web.eng.fiu.edu/watsonh/IntroMicros/M3-GPIO/M3V1GPIOSlides.pdf · PI .71TA2/TDO/TDl Pl.6/TA1/TDlÍTCLK Pl.5/TAO/TMS Pl.4/SMCLK/TCK

Recommended