Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

(nanoWatt) 16bit XLP Dev Board stuck in Deep Sleep mode

Status
Not open for further replies.

cocohero

Newbie level 4
Joined
Mar 13, 2013
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,343
Hello,

I've searched but found nothing relevant to solve my problem.
Environnement :
XLP 16 ... board
PICkit3
MPLAB X IDE
XC16 compiler

I recently aquired a nanoWatt 16bit XLP
(**broken link removed**)

I set up my developping environnement. It's fine exept 2 points :

1) When I run the demo of the board I don't get the capacitives touch to work
User Manual says: Press Switch 2 to alternate between mode:

"Pressing and holding S2 for more than two seconds selects the sensor input. Repeated
presses cycle between the temperature sensor, potentiometer, capacitive touch pads
and all three sensors at once."​

However I never get the capacitive mode.

2) When I get into the deep sleep mode I cannot get out of it

"Pressing and holding S3 for more than two seconds selects between Sleep, Deep
Sleep and Idle modes for the PIC24 microcontroller."​

So fine I press it and it changes from Sleep to Deep Sleep.
It works fine, so I press S3 again to go to the Idle mode => Nothing.
I keep reading a little and see:

"Because of the limited number of wake-up sources available in Deep Sleep mode, S3
can not wake the microcontroller."​

So what? How to get back to sleep mode?


I looked at jumper, they are positionned. I found nothing about this issue. I feel like I've missed a simple important step but can't figure out. :-?

I'll play with the demo-code in order to try to get those things working. Also I'll try on different environnement. But if you can show me the good direction it could help. :wink:

Edit : By commenting the "Deep Sleep" content of the main.c I managed to get through the Deep sleed mode and reach the Idle mode. However this is not a real solution :roll:
 
Last edited:

That's a clever idea :p. As I was already registered here I used the occasion to ask :).
 

Your quoting of the DevKit user's manual seems a bit arbitrary.
I keep reading a little and see:

"Because of the limited number of wake-up sources available in Deep Sleep mode, S3
can not wake the microcontroller."
Why don't you keep on reading?
Because of the limited number of wake-up sources available in Deep Sleep mode, S3 can not wake the microcontroller. However, S1 (MCLR Reset) and S2 (connected to INT0) can wake up the device. The RTCC interrupt will continue to periodically wake-up the microcontroller every 10 seconds. The display indicates which wake-up source is used to exit Deep Sleep mode.
Reading these next lines already answers some of your questions. For the full answer, it might be necessary to go into the code.
 

So fine I press it and it changes from Sleep to Deep Sleep.
It works fine, so I press S3 again to go to the Idle mode => Nothing.
I keep reading a little and see:

"Because of the limited number of wake-up sources available in Deep Sleep mode, S3
can not wake the microcontroller."​

Sometime reading the full post may help~

I already read about that part.
But what's the point of using Switch 3 to toggle between the consumption mode if the Switch is desactivated as soon as you press it once?

S1 and S2 effectively wake up the device but it doesn't make it quit the deep sleep mode.

So I see no way to get into the Iddle mode for example without modifying the demo code. Which is a bit surprising for a demo. I feel like I'm missing something that's why I'm asking ^^'
 

After commenting the very line "l.148 DSCONbits.DSEN = 1;" I can go from Sleep => Deep Sleep => Idle mode, well in fact the device just don't go into the deep sleep mode.

Something interesting is that when you are in Idle Mode and reset the microC with S1, then it gets back to the Sleep mode and out of Idle mode.
I would have expected the device to do the same while in Deep Sleep, however in this mode the S1 button works (Text displayed : "Wake from Deep Sleep... MCLR") but it doesn't reset the microC (Otherwise the text displayed should be "MCLR reset occurred.")
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top