Cart Contact NSDSP Home

nsdsp_session_set_mclr

This function together with nsdsp_session_set_hvp controls MCLR pin.

Syntax

int nsdsp_session_set_mclr(
        nsdsp_session_t   session,
        int               mclr
);

Parameters

session - a reference to the Session Object

mclr - MCLR value (see the table below)

Return

The function returns non-zero if the command to change MCLR has been succesfully queued, or zero otherwise

Notes

MCLR pin is special, it can output high voltage. In NSDSP-2, you can configure it to output high voltage using the HVP setting. The following table shows how the MCLR and HVP settings determine the state of the MCLR pin:

MCLR HVPMCLR Voltage
000
01High voltage
10VDD
11VDD

NSDSP-1 cannot output high voltage and does not have HVP setting.

This instruction only queues a command. The command will be sent to NSDSP when you queue enough commands to fill the buffer or when you call nsdsp_session_flush.

 

Supported session types: SPI

Minimum library version - 163

Northern Software Home NSDSP Contact Us Purchase/View Cart

© 2007-2025 Northern Software Inc. All Rights Reserved.