nsdsp_session_set_hvp
nsdsp_session_set_pgm nsdsp_session_set_pgcd nsdsp_session_set_red_led nsdsp_session_set_green_led nsdsp_session_short_delay nsdsp_session_delay_us nsdsp_session_delay_msnsdsp_session_set_hvp
This function together with nsdsp_session_set_mclr controls MCLR pin.
Syntax
int nsdsp_session_set_hvp(
nsdsp_session_t session,
int hvp
);
Parameters
session - a reference to the Session Object
hvp - HVP value (see the table below)
Return
The function returns non-zero if the command to change HVP has been succesfully queued, or zero otherwise
Notes
This function only works in NSDSP-2.
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 | HVP | MCLR Voltage |
---|---|---|
0 | 0 | 0 |
0 | 1 | High voltage |
1 | 0 | VDD |
1 | 1 | VDD |
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
© 2007-2025 Northern Software Inc. All Rights Reserved.