MSP430 clock selection, how to see what clock is selected in the program?

Updated on number 2024-03-19
3 answers
  1. Anonymous users2024-02-06

    Function selection register pxsel

    The function of the interface pins varies depending on the function of the peripheral module. Refer to the device's documentation to determine the function of the pins.

    Each bit of the PXSEL register is selected for the function of the pin – the normal IO function or the peripheral module function.

    Bit zero: The pin is selected as the normal IO function.

    Bit 1: The pin is selected as the peripheral module function.

    Setting pxselx = 1 does not automatically set the input and output methods of the pins. Other peripheral module functions need to be based on the function of the module.

    The pxselx bit can be set in the desired direction. Refer to the pin diagram in the documentation.

    Note: When pxsel=1, the interrupt function of the P1 and P2 ports is turned off.

    When any bit of the PXSEL is asserted, the interrupt function of the corresponding pin is turned off. Hence introduced from these pins.

    The signal cannot trigger a P1 or P2 port interrupt, regardless of the state of the corresponding P1IE and P2IE registers.

    When the pin of an interface is selected as the output to the peripheral, this input to the peripheral.

    The outgoing signal is the latch request signal of the pin of the device. When pxselx=1, the internal input signal.

    The signal of this pin will be followed. However, if pxselx=0, go to the periphery before pxselx reset.

    The input of the device will keep the input signal value of this pin unchanged.

  2. Anonymous users2024-02-05

    Connect the ,, pin to the oscilloscope, look at the waveform, and it's OK!

  3. Anonymous users2024-02-04

    1. The datasheet explains that when the external crystal oscillator is stopped, the microcontroller works in Low-Power Mode 4 (LPM4) mode. That is, the external crystal oscillator can be disconnected, and the machine will work in low-power mode 4. In general, a microcontroller with an internal oscillator has a low oscillator oscillation frequency and is generally not used as a clock working at full speed.

    Internal oscillators are typically high-accuracy RC oscillators that are primarily used in low-power modes or to clock on-chip timing counters.

    2. Correct. The frequency of the external crystal oscillator is the frequency of the ACLK.

    3. Generally, single-chip microcomputers have a maximum working frequency, and single-chip microcomputers should not work in the case of greater than this frequency. If you connect an external 12m crystal oscillator, it means that the microcontroller will work at a frequency of 12m. The working frequency of the single-chip microcomputer is greater than its nominal frequency, which will make it heat up and even make some parts inside work abnormally.

    So it's best not to use it in such situations, although it's possible for a microcontroller to work fine.

Related questions
6 answers2024-03-19

According to the incoming interruption time, it is OK to refresh the digital tube.

10 answers2024-03-19

There are a lot of registers, if you want to learn, you can't ask others like this, because others are not good for you, if you want to study, take a look at this book first, the general book, will introduce its register, has been used. For example, timera has a lot of song registers, tactl, tacctl, tamctl, etc., which are used to configure clock sources, frequency divisions and other configuration information. There are also AD12 registers, door openers, I/O registers, and so on. >>>More

9 answers2024-03-19

akg k430

The ergonomically designed headset AKGK430 is a high output headphone with outstanding dynamic range and a complete volume controller. The fully enclosed earcup design naturally reduces ambient noise and provides a completely relaxing and comfortable listening environment. The design of the single-sided earphone cable increases the convenience and comfort of your use. >>>More

9 answers2024-03-19

Not bad. But more than the price of 5500.

It should be 5700 >>>More

24 answers2024-03-19

The game can definitely run, but the current ThinkPad is not good in terms of hardware or software, and a Little Red Riding Hood is my favorite.