cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F103 in VFQFPN36 with 32.768 kHz RTC crystal?

colin239955
Associate II
Posted on July 07, 2011 at 20:04

Is it possible for the 36-pin STM32F microcontroller (STM32F103TxU, VFQFPN36 package) to use an external LSE crystal?  Based on the data sheet, it appears to be missing the PC14 (OSC32_IN) and PC15 (OSC32_OUT) pins.

The support for a 32.768 kHz external RTC crystal is mentioned throughout the data sheet, but is it never mentioned that the VFQFPN36 variant does not support this.  This certainly bears inclusion in the feature matrix somewhere.

#lpc1700 #nxp #lpc1300 #stm32-rtc-32.768khz-crystal-lse-vfqfpn36-36pin #rtc
2 REPLIES 2
Posted on July 08, 2011 at 01:58

Them and dozens of other die pads that don't get bonded out. The pin lists and pinout diagrams seem to be pretty explicit about what escapes the given packages.

The 40 KHz internal is supposedly +/- 8%, but spec'd as 30,40,60 KHz (min,typ,max). I'm not sure it's terribly accurate, or stable, the 8 MHz HSI is trimed +/- 1%, you could use that to calibrate/characterize the LSI.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
colin239955
Associate II
Posted on July 11, 2011 at 20:14

Thanks for the confirmation of my suspicion.  It is sad, because having a compact MCU with accurate timekeeping support is essential for efficient wireless sensor network devices.  Fortunately, the 48-pin package DOES have the RTC crystal support, so not all is lost.

NOTE: In fact, I switched from NXP LPC1300/LPC1700 series to STM32 as my preferred platform purely because the LPC1300 did not have RTC support, to wake the device up from sleep.  I made the switch even after acquiring dozens of LPC1000 dev boards and learning the platform, writing my own peripheral support libraries, etc., so it was a difficult decision to switch to STM32.  I find the LPC1300 peripherals much more logical in some ways than STM32... why does STM32 insist on splitting 32-bit peripheral registers into two 16-bit registers that must be accessed separately?!

In case you're curious why I reject the LPC1700 as well: the STM32 RTC is superior to the LPC1700 RTC because the STM32F10x RTC allows subsecond precision through timer clock division control.  On the LPC1700, the RTC only provides 1-second precision, making the RTC useless for precision timekeeping.