Other Parts Discussed in Thread: L293D,
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 L293D IC.
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 acheive 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 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