How can I report errors in function descriptions of CyLib.c (functions CyVdLvDigitEnable and CyVdLvAnalogEnable)?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MiBe_1890261
Level 1
Level 1

How can I report errors in the description of functions of the CyLib.c?

I think the trip point is set to 2.70V by the threshold value of 0x04 and not to 1.80V in two functions CyVdLvAnalogEnable and CyVdLvDigitEnable.

0 Likes
1 Solution
AlanH_86
Employee
Employee
100 replies posted 50 replies posted 25 solutions authored

This is a good place to report it.  Thank you.

One of the L1 tech support guys will file an internal bug based on your report.

Alan

View solution in original post

0 Likes
7 Replies
RyanZhao
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted

Hi Missbach,

Which MPN are you using?

I tried PSoC4 and 5 LP. I can't find these two functions.

Thanks,

Ryan

0 Likes

High Ryan,

I use PSoC Creator 4.2 with a PSOC 5LP design. The two functions are system functions for enebaling the brownout detection.

You can put "void CyVdLvDigitEnable(uint8 reset, uint8 threshold)" ore "void CyVdLvAnalogEnable(uint8 reset, uint8 threshold)" in your code.  With the right mouse bottom press "Go To Definition" and you can see the functions in the CyLib.c. The errors are located in the function description.

Thanks

Bernhard

0 Likes

Hello Bernhard.

I do not get an error nor a warning when I compile a project that uses the above functions. Can you please provide us with your complete project? To do so, use

Creator->File->Create Workspace Bundle

and attach the resulting file.

Bob

0 Likes

Hello Bob,

there is no error in my application. The error is not in the code of the two functions but only in the description block in the CyLib.c (marked from me in bold). I think 4 x 0.250mV is 1.0V and not 0.1V -> 1.7V + 4 x 0.25V = 2.8V (and 1.7V + 15x0.25V = 5.45V):

/*******************************************************************************

* Function Name: CyVdLvDigitEnable

****************************************************************************//**

*

*  Sets the voltage trip level, enables the output of the digital low-voltage

*  monitor, and optionally configures voltage monitor to reset device upon the

*  low-voltage event instead of generating an interrupt.

*

*  Note The associated interrupt enable/disable state is not changed by the

*  function. The Interrupt component API should be used to register the

*  interrupt service routine and to enable/disable associated interrupt.

*

*  \param reset: Enables device reset on digital low-voltage event:

*   Zero - Interrupt on digital low-voltage event

*   Non-zero - Reset on digital low-voltage event

*

*  \param threshold: Sets the trip point of the digital low-voltage monitoring circuit

*   in steps of approximately 250 mV in range from 1.70 V (0x00) to 5.45 V

*   (0x0F). For example, the trip point is set to 1.80 V when the threshold

*   parameter value is 0x04. Refer to the device TRM for the exact trip voltage

*   values.

*

* Side Effects and Restrictions:

*  The voltage resets are momentary. When a voltage reset (analog/digital

*  low-voltage and analog high-voltage) occurs, the RESET_CR1 and RESET_CR3

*  registers are restored to their default values. This means that the voltage

*  monitor circuit is no longer enabled and the device exits reset. If the

*  supply is below the trip level and firmware enables the voltage reset

*  functionality, the device will reset again. This will continue as long as the

*  supply is below the trip level or as long as the user enables the reset

*  functionality of the voltage monitor functionality.

*

*  When any voltage reset occurs, the RESET_SR0 and RESET_SR2 status registers

*  are cleared. This means that analog low-voltage, digital low-voltage and

*  analog high-voltage status bits are not persistent across any voltage reset.

*

*******************************************************************************/

0 Likes

Hi Missbach,

We have double-checked with design team for this issue.

Here is the feedback:

PSoC5LP Register TRM has the correct values. FYI.

1 (1).PNG

The function description will be updated during the cy_boot component update.

Thanks,

Ryan

0 Likes
AlanH_86
Employee
Employee
100 replies posted 50 replies posted 25 solutions authored

This is a good place to report it.  Thank you.

One of the L1 tech support guys will file an internal bug based on your report.

Alan

0 Likes