Wish: Sleep function with workaround for sleep silicon bug

Post your requests and ideas on the future development of mikroPascal for dsPIC30/33 and PIC24.
Post Reply
Author
Message
OT
Posts: 581
Joined: 19 May 2005 05:08
Location: Fairbanks, Alaska

Wish: Sleep function with workaround for sleep silicon bug

#1 Post by OT » 05 Apr 2008 07:32

In a previous thread I described the silicon bug with 32kHz oscillator and sleep in dsPIC30F series and tried to make a workaround with a gotosleep function for this bug (that affects sleep when the 32kHz oscillator is used) as recommended by Microchip:
http://www.mikroe.com/forum/viewtopic.p ... highlight=
However this did not work because the powersav #0 instruction has to be placed at the very end of the chips program memory (and the rest of that segment filled with nops), while the compiler will always have a return statement at the end of the procedure and refuse to compile if there is not space for it.

Thus the wish is that the compiler is equipped with a workaround for this according to the microchip instructions, that work with the smaller chips that are suitable for use as low power data loggers, sensors etc. (The larger 30F's seems to have a more serious bug that will prevent the 32kHz oscillator to work at all during sleep).

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

#2 Post by filip » 07 Apr 2008 13:50

Note taken.

This will be added in the future versions of compiler.

OT
Posts: 581
Joined: 19 May 2005 05:08
Location: Fairbanks, Alaska

#3 Post by OT » 16 Apr 2009 06:10

Now that the Pro versions of the compilers apparently are in development, it is time for a little reminder to the sleep problem. Are we going to see a sleep function with workaround for the 32kHz oscillator problem implemented in the coming versions?

Post Reply

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