MC13213: high current in stop mode 3, why?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MC13213: high current in stop mode 3, why?

4,913 Views
Alex_RUS
Contributor I
I am using smac 4.2 library. I am trying to put microcontroller to stop mode 3 using this code:
   SRTISC=0x00; /* Disable wake up timer. */
   SPMSC1=0x00;
   SPMSC2=0x00; /* Enable deep sleep mode stop3. */
   MCUInit();
   RadioInit();
   MC13192ContReset();
   ICGC1 &= ~((1<<2)|(1<<1));// disable osc.
   _asm stop

After that code i see that consuption current becomes equal 4-6mA - that is too big.
stop 1 adn stop 2 modes works fine.
The electrical circute is very simpe (see attachment)
Why so? please help.
Labels (1)
0 Kudos
7 Replies

569 Views
RockyRoad
Contributor III
Alex -
 
Your schematic shows many unconnected IO pins. Do you initialize these pins in your software? The default/reset state is that they are inputs without pullups. If they are left this way, the inputs will float to a level that causes the input buffers to draw current. With the number of unconnected IO pins in your schematic, this could easily add up to the 4-6mA that you are seeing.
 
The easiest way to fix this is to initialize all these pins either as inputs with the internal pullups enabled or as outputs.
 
- Rocky
0 Kudos

569 Views
Alex_RUS
Contributor I
Thank you very match!
I achived ~8uA~ Should I put GPIO1-GPIO7 to GND too? As far as I understand (from AN2493D) the minimum current is 1.1uA. Is this value possible whith working KBI interrupt?
0 Kudos

569 Views
allenrubis
Contributor I
Hi,
Im allen rubis, could i borrow ur script in doing the stop3 mode. in measuring sleeo mode current.
Allen Rubis
0 Kudos

569 Views
Alex_RUS
Contributor I
Do you want to see C-code?
0 Kudos

569 Views
Arcie
Contributor I
It could be a nice idea!!:smileywink: for the MCUInit(), for example... :smileyvery-happy:

ok, I'll try to use your advices
0 Kudos

569 Views
kbu
Contributor I
Hi Alex-RUS.

I had a question about your schematics.

where do you connect your antenna, is looks like you probably use the 0 ohm resistor pads for your antenna (chip antenna)? is that correct?
Also how come the other side is grounded? which chip antenna are you using?

Thanks
0 Kudos

569 Views
Alex_RUS
Contributor I
This 0 Ohm is just for testing.. I use pcb antenna on this board
0 Kudos