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.

LP-MSPM0G3507: LP-MSPM0G3507

Part Number: LP-MSPM0G3507
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hi support,

I am new to TI controller. I need to know how to write nibble DOUT3_0 all together. I dint found any function in DL_GPIO.h file. I tried to write my own function but where to write it?

Secondly if I need to write DOUT31_0 all together, I understand,  I need to call the function as below ( DOUT31_0 = 0x0fffffff).

DL_GPIO_writePins(GPIO_port, 0x0fffffff) ;
Is it the only way to write the whole port altogether?
Is it not a direct way to write DOUT31_0 = 0x0fffffff?
in my previous controller I writing direct value to the PORT like LATA = 0x0fffffff. No need to call any function.
Best Regards
Tulsi Das
  • It would look something like:

    GPIO_port->DOUT31_0 = 0xffffffff;

    where GPIO_port is defined to be something like "GPIOB". (sysconfig does some of these #defines for you, or you can do your own.)

    [Edit: Also note the DOUTSET31_0 and DOUTCLR31_0 registers, which you can reference in a similar fashion and end up being much more useful.]