Hi Batang
Thanks for your answer. To be honest, I had tried the CSCLK command before. But the thing is that my module is not exactly a SIM900 but a SIM908 (GSM/GPRS + GPS engine, but the GSM/GPRS part is a SIM900) and this may be the reason by which my module takes about... 30 SECONDS!!! to enter sleep mode. After that time, power consumption reduces, as you say, to some 1,5mA. I found it out by chance, as i sent the CSCLK command and went to the wc...
May be it´s only that the GPS engine needs that time to completely switch off... I have no clue. Anyway, it works!!
By the way... there is an strange behaviour in my module that you may help to explain. I set pin55 to interrupt. The main thing is to detect a movement with an accel, amplify it with an opamp and set the interrupt with an TS372 comparator. Pullup R of 10k.
when I test this functionality alone, everything goes fine. every time i shake the PCB an interrupt happens. But if I am connected to the GSM network, every time I send/receive anything, this pin goes high on its own!!! Sets to vcc for a couple of seconds and returns to low level. Is this a matter of the core FW??? I have tried pulldown resistors, capacitors... May be I'm not setting the pin correctly but I get FL_OK messages when i configure the pin. And, as i mentioned before, when not connected to GSM network, it works fine!!!
Thanks in advance best regards
Iban
UPDATE: By the way... I can´t understand why CPOWD=1 command shuts off the module and the power consumption is then in the order of tens of mA-s. If it´s shut off... I understand that its consumption should be the minimum, even less that in sleep mode... Am I wrong? My intention was first to switch the module ON and OFF with the accel, opamp, a flipflop and comparator. But this consumption issue forced me to change the strategy and use sleep mode and DTR pin instead. And I have a 1k pulldown resistor from PWR_KEY to gnd to ensure module switches on.