Lab 9 Receiver

Readme
 
This is a C language project that implements ECE445L Lab 9 receiver. To see the lab 9 assignment download ECE445L Lab 9.

Derived from Texas Instrument code

  • timx_timer_mode_pwm_edge_sleep_LP_MSPM0G3507_nortos_ticlang

Hardware Required

  • MSPM0G3507 LaunchPad™ Development Kit (LP-MSPM0G3507)
  • RSLK2 Kit (RSLK2 Description)
  • Electret Microphone with MAX4466 amplifier
Pin assignments
  • ML+, IN3, Motor_PWML=PB4/TIMA1_C0;
  • MR+, IN1, Motor_PWMR=PB1/TIMA1_C1;
  • ML-, IN4, Motor_DIR_L = PB0;
  • Mr-, IN2, Motor_DIR_R= PB16
  • PB8 ELA TA0_C0
  • PB7 ERB TG8_C1/TG6_C1/TA1_C0N
  • PB6 ELB TG8_C0/TG6_C0
  • PB12 ERA TA0_C1
  • Bump 0=PA27, Left
  • Bump 1=PB15, Center Left
  • Bump 2=PA28, Center Right
  • Bump 3=PA31, Right
  • I2C SCL: PB2 is the SSD1306 SCL
  • I2C SDA: PB3 is the SSD1306 SDA
  • PA26 IR analog distance sensor, Right ADC0_1
  • PB24 IR analog distance sensor, Center ADC0_5
  • PA22 IR analog distance sensor, Left ADC0_3
  • PA8 TFLuna TxD microcontroller sensor RxD pin 2
  • PA9 TFLuna RxD microcontroller sensor TxD pin 3
LaunchPad Jumpers
  • Remove +5V jumper from debugger to target
  • Leave all other jumpers from debugger to target
  • Insert J4: Connects PA0 to red LED
  • Insert J5: Connects PB22 to blue LED2
  • Insert J6: Connects PB26 to red LED2
  • Insert J7: Connects PB27 to green LED2
  • Remove J9: Disconnects thermistor from PB24
  • Remove J13: Disconnects power to external analog ICs
  • Set J14: Down to select PA9 to LaunchPad pin SW1
  • Set J15: Up to select PA16 to LaunchPad pin SW2
  • Remove J16 J17 J18: Disconnects light sensor from the microcontroller PA22 PA27 PA26
  • Remove J19/J20: Disconnects resistor pullup on PA0 PA1

Simplified BSD License (FreeBSD License) Copyright © 2026, Jonathan Valvano, All rights reserved.
 
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
The views and conclusions contained in the software and documentation are those of the authors and should not be interpreted as representing official policies, either expressed or implied, of the FreeBSD Project.
 

For more information, see http://users.ece.utexas.edu/~valvano/.