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

XMC™ Forum Discussions

User8320
Level 1
Level 1
Hello.

I am looking for POSIF APP on dave4.

But I can not find it.

I used it as APP in DAVE3.

I want to know how to use the POSIF function in DAVE4.

I want to measure the encoder using the POSIF function.

Thank you very much.
0 Likes
13 Replies
jferreira
Employee
Employee
First like received 750 replies posted 500 replies posted
Hi,

Currently you need to use the XMCLib. Otherwise in the next DAVE APPs release in June we are adding to new APPs, ENCODER_POSIF and HALL_POSIF.

Regards,
Jesus
0 Likes
User8320
Level 1
Level 1
Thank you for answer.
0 Likes
User17111
Level 1
Level 1
Hello, jferreira.
There is get example source code for using POSIF with XMCLib. And how it merge with existing APPs in project?
I am understand that question not for this topic, however where can i find examples for mixed project with APPs and custom code based on XMCLib.
0 Likes
User13015
Level 1
Level 1
Welcome!
Hi,

it this new release added to DAVE APPs, ENCODER_POSIF and HALL_POSIF?

thanks
Hakan
0 Likes
User9076
Level 1
Level 1
jferreira wrote:
Hi,
...Otherwise in the next DAVE APPs release in June we are adding to new APPs, ENCODER_POSIF and HALL_POSIF.
Regards,
Jesus

Unfortunately, the year was not specified for this release 😉
0 Likes
User14916
Level 1
Level 1
Is there any news about this?
0 Likes
jferreira
Employee
Employee
First like received 750 replies posted 500 replies posted
Hi,

The release of the new DAVE APPs is planned for end of October, this year 🙂

Regards,
Jesus
0 Likes
User12943
Level 1
Level 1
Hi Jesus, is there any chance I could give the posif dave app a trial before it is released?
0 Likes
jferreira
Employee
Employee
First like received 750 replies posted 500 replies posted
Hi,

The release was done today. See News/Announcements section of forum.

Regards,
Jesus
0 Likes
User12943
Level 1
Level 1
I was notified about the update when I ran Dave this morning.

Some of the documentation is a bit incomplete though (missing example code etc.):

void ENCODER_POSIF_Start ( ENCODER_POSIF_t *const HandlePtr )


This API starts the ccu4 timer clock and then start the POSIF module.
Parameters
HandlePtr pointer to an object of ENCODER_POSIF module
Returnsvoid
Description: Invoke this API when APP state is ENCODER_POSIF_INITIALISED or else this API will have no effect on functionality.

Example Usage:



#include

int main(void)

{

DAVE_STATUS_t status;

status = DAVE_Init(); // Initialization of DAVE APPs


if(status == DAVE_STATUS_SUCCESS)

{

ENCODER_POSIF_Start(&ENCODER_POSIF_0);

}

while(1U)

{


}


and displaing this under usage in the main help file is just frustrating!:
This APP uses POSIF peripheral in quadrature decoder mode and is used to get the speed and position of the motor. This can be used with the top level motor APP like PMSM_FOC to get the position feedback to drive the motor in closed loop. Please refer to these APPs documentation for more details.
}
0 Likes
User12943
Level 1
Level 1
Also is there any reason why the ENCODER_POSIF app does not support the XMC1400 Series devices?
0 Likes
User12943
Level 1
Level 1
Just found an issue - In the DAVE app configuration, the max value for "Ticks per revolution" is listed as 65535
however this is multiplied by 4 in the encoder_posif_conf.c file for HandlePtr.ticks_per_revolution.

Therefore the max should be 16383.
0 Likes
User14916
Level 1
Level 1
rephlex303 wrote:
Also is there any reason why the ENCODER_POSIF app does not support the XMC1400 Series devices?


The same occurs in xmc 4300. I can not add the ENCODER app.

In this release note says that it's supported for 4300 and for 1400...

http://dave.infineon.com/DAVEv4/ReleaseNotes/2019-10/DAVE_APPs_Release_Notes_2019-10.pdf

Any help how could I use this APP?
0 Likes