Delay_Cyc_Long is missing in PIC32 mikroBasic Pro

General discussion on mikroBasic PRO for PIC32.
Post Reply
Author
Message
calixarene
Posts: 17
Joined: 03 Apr 2012 06:31

Delay_Cyc_Long is missing in PIC32 mikroBasic Pro

#1 Post by calixarene » 13 Mar 2015 07:38

I have developed a module that use Delay_Cyc_Long() in Pic24 project and was working Okay. While I used the same module for Pic32 project, I got this error when compiled.

"190 303 Identifier "delay_cyc_Long" was not declared PCD8544Lib.mbas"

When I used the code assistance, I found that only delay_cyc() was supported and there was no delay_cyc_Long lib. In addition, the passed parameters for delay_cyc() was different for Pic 24. However, the help file is still showing the same as Pic24.

Help file is

sub procedure Delay_Cyc(dim x, y as word)

but code assistance show

Delay_Cyc(dim cycles_div_by_10 as longword rx)

Could any one tell me what is the proper usage of this function in PIC32? What is the meaning of cycles_div_by_10? Is it mean one tenth of MCU clock cycle or 10 means one MCU clock cycle?

Thanks for the information in advance.

User avatar
petar.timotijevic
mikroElektronika team
Posts: 1739
Joined: 19 Feb 2014 13:46
Location: Serbia
Contact:

Re: Delay_Cyc_Long is missing in PIC32 mikroBasic Pro

#2 Post by petar.timotijevic » 13 Mar 2015 16:46

Hi,

Yes, this is the mistake in PIC32 compiler.

Also and PIC32 compiler should have sub procedure Delay_Cyc_Long.

This is reported to our development team. I apologize for the inconvenience that you have.


Best regards,
Peter

Post Reply

Return to “mikroBasic PRO for PIC32 General”