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.

RM48L952: Software issue

Part Number: RM48L952
Other Parts Discussed in Thread: HALCOGEN

When debugging RM48L952, we face the problems as below

  1. When using SCI2 in LIN/SCI interface, sending/receiving interrupt can’t be used. What’s the reason and how to fix the problem

  2. How to use multi-function pin(such as MIBSPIi) as a GPIO(how to set up in software.)

  • Hello Reid,

    The SCI/LIN module has two interrupt lines, level 0 and level 1, to the vectored interrupt manager (VIM) module. Two offset registers SCIINTVECT0 and SCIINTVECT1 determine which flag triggered the interrupt according to the respective priority encoders. Each interrupt condition has a bit to

    When using SCI2 in LIN/SCI interface, sending/receiving interrupt can’t be used. What’s the reason and how to fix the problem

    enable/disable the interrupt in the SCISETINT and SCICLRINT registers respectively.

    It is much easier to use HALCoGen to enable those interrupts:

    1. Enable SCI TX and RX interrupt, and select Levl 0 or Level 1

    2. Enable SCI2/LIN interrupt (VIM channel 13, high level), and select IRQ

    3. The HALCoGen will generate the interrupt service routine

    4. Enable IRQ in your main() function

    _enable_IRQ();

    How to use multi-function pin(such as MIBSPIi) as a GPIO(how to set up in software.)

    All of the SPI pins may be programmed via the SPIPCx control registers to be either functional or general purpose I/O pins.

    SPIPC0: configure the SPI pins as functional pins or GPIO pins

    SPIPC1: If used as GPIO pins, this register is used to configure the pins as input or output            ----- similar to GIODIR

    SPIPC2: If used as GPIO, acts as data in         ----- similar to GIODIN

    SPIPC2: If used as GPIO, it acts as data out  ----- similar to GIODOUT