This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430FG4618: selecting pins on exp board

Part Number: MSP430FG4618
Other Parts Discussed in Thread: MSP430WARE

Im working on study project. I have MSP430FG4618/F2013 Experimenter Board and i need to control multiplexer with it. Which pins can I use to put them on high and connect to multiplexer. Can it be p2.0, p2.1, p5.6, p5.5, p5.7, p7.0, p7.4, p7.5, pins that are not connected to any other thing, just directly to microcontroller?

To set pin on high should i use this?

P2OUT |= BIT1; 

I also need pins to connect external signal for ADC. Can it be p10.6 and p10.7? What code will make ADC work on this pins?
  • Hi,

    I will assign our team member to check with your problem and reply you soon.
  • Hi Szawel,

    Just want to make sure I understand your question - do you want to control an external multiplexer with the MSP430FG4618 device? Or are you talking about using the internal multiplexer in the MSP430FG4618 device?

    Thanks,

    Mitch
  • I want to control external multiplexer.
  • Hi Szawel,

    You can use any available GPIO pin to control the external multiplexer. I emphasize "available" because the GPIO pins are multiplexed with other peripherals in the device. Please see below:

    For example, you could use P5.1 if you do not need S0 (LCD segment output 0), A12 (Analog input for ADC), or DAC1 (DAC12.1 input). The same applies for the other highlighted GPIO pins (P5.0 and P10.7).

    Keeping this in mind, you can use any pin from Port 1 to Port 10. 

    Yes, to set the pin high you are correct. However, you will want to configure the pin as an output before the P2OUT |= BIT1; statement. An example of this is:

    P2DIR |= 0x02;                            // P2.1 output

    Yes, you can use P10.6 and P10.7 for the ADC, but you will need to reconfigure the pins and select the A15 and A14 channels. This can be done by configuring the PxSELx registers accordingly. Page 95 and 96 in the User's Guide will be helpful:

    We have example ADC code for this device in CCS. In CCS, navigate to:

    View > Resource Explorer > Software > MSP430Ware > Devices > MSP430F4XX > MSP430FG4618 > Peripheral Examples > Register Level 

    You should find several ADC SW examples.

    Thanks,

    Mitch

  • I found on this forum answer about this board like this:

     "As I wrote, P6.0/A0 pin is hardwired to the microphone sircuit on the board. So if you feed some analog voltage into it, you're also feedign the microphone circuit. Please check the board schematics! Same for P6.1/P6.2
    P6.3, P6.4 and P6.7 are connected to a filter circuit and P6.5 to the audio output.
    Using any of them for analog input will best case invalidate the signal and worst case overload the signal source."


    Is this true? If i use this pins it will invalidate my signal?

  • Hi Szawel,

    Great catch! I did not consider the other circuits on the experimenter board.

    If you use pins that are connected to another circuit on the experimenter board (P6.0, P6.1, etc) to control the external mux, you may run into problems if the circuits on the experimenter board provide a voltage to the pins that are connected to your external mux.

    For example, let's say you use P6.0 to control your external mux. P6.0 is also connected to the microphone circuit. Whenever the microphone circuit outputs a voltage to P6.0, that voltage will also go to the external mux (which will most likely cause problems).

    To answer your original question, I would now say to stick with the pins you mention (p2.0, p2.1, p5.6, p5.5, p5.7, p7.0, p7.4, p7.5) to control your external mux. These pins are not connected to any of the circuits on the experimenter board. If you happen to use these other circuits on the experimenter board, you will not run the risk of causing problems with your mux.

    I double checked P10.6 and P10.7 - you can still use these pins for ADC measurements. It looks like these are not connected to any other circuits from the schematic.

    Thanks,

    Mitch

**Attention** This is a public forum