jacamo 0 Posted January 7, 2019 Share Posted January 7, 2019 Hello I am going to say that I am very new to Embedded systems. I could have started with the arduino as everyone else seems to do but I wanted to really understand how MCUs work so I opted for TIs MSP430 Line. I have read a lot of the documentation for the FR2311 and just have some general questions about how to go about using it most efficiently. First what my end goals are, I want to be able to control two DC motors that are bidirectional with speed control through a pot for each motor. They will be controlled via a L293DIC. I also want two push buttons that turn on or off relays that controls some LEDs. I want this to be done via interrupts and when not in use have the MCU in low power mode. I have looked through some of the examples that are provided and noticed that the "Analog Input to PWM Output" example they have uses the eCOMP module instead of the ADC. Is this the best/most efficient way to achieve this? Or would the only reason to do that would be A. the MCU doesn't include an ADC (like the FR2000) or B. Code size restrictions. My plan is to break it down in to sections that I can work on individually and then assemble together to make a complete program. My first goal is to get the ADC or eCOMP module set up with the pots. As I said before I want to be able to go both directions with one pot so I would need to have the value signed (right?) Also when reading through the user guide there are many different sampling modes. Which one would be best for sampling a pot? I am sure I will have more questions as I go along but I really want to get this done right and the reason I chose TI's products was because of the support behind them. Thanks in advance Quote Link to post Share on other sites
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.