Hi,
I am configuring PWM to play a tone through a speaker based on data received from the MPU9150 on the SensorHub Boosterpack. I am attempting to combine two examples taken from Tivaware 1.0:
TivaWare_C_Series-1.0\examples\boards\ek-tm4c123gxl-boostxl-senshub\compdcm_mpu9150
TivaWare_C_Series-1.0\examples\peripherals\pwm\dead_band
Originally, I attempted to use PE4 to output the PWM signal but detected no signal once I got everything to compile and run. I then tried to follow the dead_band.c example even more closely and tried to use PD0 as the output of the PWM signal (I have gotten this example to successfully run on my launchpad*). I tried to combine the compdcm and dead_band code and saw that PD0 and PD1 are being used by I2C so the MPU9150 can talk to the MCU. However, when I looked up which pins I can use that the SensorHub BoosterPack isn't using, I ran into some discrepancies between user's guide for the BoosterPack and the software written for it:
http://www.ti.com/lit/ug/spmu290/spmu290.pdf shows that J2.6 and J2.7 are the pins used for the Sensor I2C. However, based on the MCU's family user's guide schematic: http://datasheet.octopart.com/EK-TM4C123GXL-Texas-Instruments-datasheet-15542121.pdf J2.6 and J2.7 are PB6 and PB7 (also pins I can use as PWM output signal*).
Can someone please clear up which pins are being used for which functions, and make clear which pins I can in fact use to output a PWM signal without disrupting the communication from MPU9150 to MCU?
*Throughout dead_band.c, the code is commented saying PB6 and PB7 are being used to generate PWM output. However, at the very end, when PWMOutputState is called, it uses PWM_OUT_1_BIT | PWM_OUT_0_BIT as the pins to turn on. For PWM Module 0, this corresponds to PB6 and PB7 (according to the family user's guide). However, in the comments it says the output pins are PD0 and PD1. Like, what?
Thanks for the help!