← index #1546PR #1601
Related · high · value 1.880
QUERY · ISSUE

RTC LSE/LSI selection

openby peterhinchopened 2015-10-28updated 2015-10-29
ports

The patches offered by @chuckbook aimed to solve two problems. The first was an issue with oscillator initialisation, now subject to a PR. The second, by my (incomplete) understanding of the code, aimed to select the LSE or LSI oscillator at runtime. The aim of this issue is to solicit comments on the relevance and design of this proposed feature, notably from @chuckbook.

The LSI oscillator is a low precision RC oscillator internal to the chip, while the LSE is an oscillator requiring external components to achieve substantially improved accuracy. The LSE is implemented with a 32.768KHz crystal on the Pyboard.

To initiate the discussion I'd like to raise the following questions.

  1. Does the LSI have merit other than in extremely cost constrained systems? Is it relevant to actual or proposed MicroPython target boards? Or does it have other relevance e.g. fault tolerance?
  2. If it is relevant, is there a reason for performing the selection at runtime, rather than making it a target specific compile time option?
  3. If done at runtime, when should selection occur? At initial power up? On soft boot or recovery from standby? Or must the choice be iterated or event driven and, if so, in response to what events?
  4. If hardware containing an LSE can fall back to the LSI at runtime, from the user perspective this is a fault condition. I would submit that this should raise an exception.
CANDIDATE · PULL REQUEST

stmhal: Fix RTC code to work on the F7 (second time)

mergedby dhylandsopened 2015-11-07updated 2015-11-08

(no description)

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied