MSPM0_ValvanoWare  1.0
ECE445L starter code
Macros | Functions
TExaS.h File Reference

Creates either an oscilloscope or a logic analyzer. More...

#include <ti/devices/msp/msp.h>

Go to the source code of this file.

Macros

#define PAoutPin0Bit0   (GPIOA->DOUT31_0&1)
 using PAoutPin0Bit0 places PA0 output on bit 0
 
#define PBoutPin22Bit1   (((GPIOB->DOUT31_0&(1<<22))>>21))
 using PBoutPin22Bit1 places PB22 output on bit 1
 
#define PBoutPin26Bit2   (((GPIOB->DOUT31_0&(1<<26))>>24))
 using PBoutPin26Bit2 places PB26 output on bit 2
 
#define PBoutPin27Bit3   (((GPIOB->DOUT31_0&(1<<27))>>24))
 using PBoutPin27Bit3 places PB27 output on bit 3
 
#define PAinPin18Bit4   (((GPIOA->DIN31_0&(1<<18))>>14))
 using PAinPin18Bit4 places PA18 input on bit 4
 
#define PBinPin21Bit5   (((GPIOB->DIN31_0&(1<<21))>>16))
 using PBinPin21Bit5 places PA21 input on bit 5
 

Functions

uint8_t TExaS_LaunchPadLogic (void)
 PB21,PA18,PB27,PB26,PB22,PA0. More...
 
uint8_t TExaS_PB22PA0Logic (void)
 PB22,PA0. More...
 
uint8_t TExaS_PA60Logic (void)
 PA6-PA0. More...
 
uint8_t TExaS_PB18PB17PB16PB2PB1PB0Logic (void)
 PB18-16 outputs, PB2-0 input. More...
 
void TExaS_Init (ADC12_Regs *adc12, uint32_t channel, uint8_t(*logic)(void))
 Initialize TExaS. More...
 

Detailed Description

Creates either an oscilloscope or a logic analyzer.

TExaS is an oscilloscope or a logic analyzer, sampling at 10 kHz

Note
Works at 32MHz or 40MHz or 80 MHz
Version
ECE319K v1.0
Author
Put your name here
Warning
AS-IS
Date
August 13, 2023
ADC pins on the MSPM0G3507
Pin ADC channelSensor
PA27 ADC0 channel 0 J1.8 also MKII light interrupt
PA26 ADC0 channel 1 J1.6 MKII microphone in
PA25 ADC0 channel 2 J1.2 MKII Joystick X
PA24 ADC0 channel 3 J3.27 free
PB25 ADC0 channel 4 J19.7 (insert 0ohm R74, no U3 OPA2365)
PB24 ADC0 channel 5 J1.5 also MKII joystick select button
PB20 ADC0 channel 6 J4.36 free
PA22 ADC0 channel 7

J24 MKII Accelerometer Y

PA15 ADC1 channel 0 J3.30 (also DACout)
PA16 ADC1 channel 1 J3.29 free
PA17 ADC1 channel 2 J3.28 free
PA18 ADC1 channel 3 J3.26 MKII Joystick Y
PB17 ADC1 channel 4 J2.18 free
PB18 ADC1 channel 5 J3.25 MKII Accelerometer Z
PB19 ADC1 channel 6 J3.23 MKII Accelerometer X
PA21 ADC1 channel 7

J17.8 (insert R20, remove R3)