cancel
Showing results for 
Search instead for 
Did you mean: 

STPM10 does not start immediately after RC startup procedure

Jan Vojnar
Associate
Posted on March 08, 2017 at 10:53

Hello all,

I want to use

 with internal RC oscillator. When I started using

, I prepared a communication library that works well without using the internal RC oscillator. I checked all communication using oscilloscope.

   Now I need to use STPM10 with internal RC oscillator. I programmed code that follow RC startup procedure. I have one board with STPM01 and two with STPM10. I tested new code using both boards with STPM10, but there is a problem with RC startup procedure.

RC startup procedure (according to the STPM10 datasheet):

  1. Set the mode signal BANK
  2. Perform a software reset
  3. Read the registers: BANK mode signal should be checked
  4. Clear the mode signal BANK
  5. Do not perform a reading, and write configuration bit RC

   After that the BANK bit and the RC bit remained set and the STPM10 did not start with measurement. Sometimes spontaneously started after several tens of seconds for no apparent reason.

   When I tested my code using board with STPM01 using Internal RC oscillator, then it works fine and STPM01 measure correctly.

Questions:

   What am I doing wrong with STPM10 or where the problem might be?

Thank you in advance!

Jan

#stpm10 #stpm01
1 REPLY 1
Luiz Roque
Associate II
Posted on February 07, 2018 at 10:52

I also have this question, in my case I design a custom board with STPM10 and I just place a 12KOhm in CLKIN to use the internal RC oscillator, but every time I read the registers they all zero 0xF0000000.