-1

I need to code for a MSP430FR5969 launch pad that can generate PWM signal upto 100KHz, I want to control it with R-Pi3 over the I2C bus to send the Freq and duty cycle to the MSP430. I am very new in coding MSP430, any help would be appreciate it.

thans

1 Answers1

0

I find the best approach is to look at the examples provided for this particular LaunchPad. You'll now find these under Resource Explorer.

Run the PWM example and get your head around what it's doing. This should be easy enough using the on-board LED.

Then run the I2C example and get your head round what that's doing. You can connect it straight to the Pi, but a logic analyser will really help with this.

Peripheral setup is the hardest part of MSP430 coding. Once you get this right (or just copy it from an example) the code in between is normally much easier.

0xFRED
  • 1
  • 1