builtin routines needed for protected registers

Post your requests and ideas on the future development of mikroC PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
nusret3
Posts: 2
Joined: 22 May 2018 13:45

builtin routines needed for protected registers

#1 Post by nusret3 » 04 Jun 2018 09:38

Hi All,

I am having hard time to port code from XC16 to mikroC for dspic

is there anyone has successfully port __builtin_write_oscconl, __builtin_write_oscconh, __builtin_write_pwmsfr and similar builtin routines in order to unlock the registers of the device?

SSA optimizer significantly changes the inline assembler code if I try to implement them on my own.

It would be better to have similar functions in mikroc compiler as well

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: builtin routines needed for protected registers

#2 Post by filip » 15 Jun 2018 08:42

Hi,

If I am correct, you can do this via Peripheral Pin Select Library, please check the Help file and the function in the library.

Regards,
Filip.

Post Reply

Return to “mikroC PRO for dsPIC30/33 and PIC24 Wish List”