Typos in comments.

across
flabbergast 4 years ago
parent 99dadfa80f
commit e0e0384cc1
  1. 5
      flib/stm32l0/hal-extra.fs
  2. 9
      flib/stm32l0/sleep-extra.fs
  3. 3
      jz4/ex/multitasktest.fs
  4. 4
      msp430/README.md
  5. 2
      msp430/core/fr2433-xt1/forth-mecrisp-2433-xt1.asm
  6. 2
      msp430/core/fr2476-xt1/forth-mecrisp-2476-xt1.asm
  7. 4
      msp430/core/readme.txt
  8. 4
      msp430/fr2433/README.md

@ -1,9 +1,8 @@
\ base definitions for STM32L053 / extras
\ base definitions for STM32L052 / extras
\ from jcw's embello
\ needs io-extra.fs
$40010000 constant AFIO
\ AFIO $4 + constant AFIO-MAPR
$40010000 constant SYSCFG
$40013800 constant USART1
USART1 $C + constant USART1-BRR

@ -18,18 +18,11 @@ $40007000 constant PWR
PWR $0 + constant PWR-CR
PWR $4 + constant PWR-CSR
$40010400 constant EXTI
EXTI $00 + constant EXTI-IMR
EXTI $04 + constant EXTI-EMR
\ EXTI $08 + constant EXTI-RTSR
\ EXTI $0C + constant EXTI-FTSR
\ EXTI $10 + constant EXTI-SWIER
EXTI $14 + constant EXTI-PR
\ see https://developer.arm.com/docs/dui0662/latest/4-cortex-m0-peripherals/
\ 43-system-control-block/436-system-control-register
$E000ED10 constant SCR
include exti-regs.fs
: lptim? ( -- ) \ dump the low-power timer registers
LPTIM1

@ -24,7 +24,8 @@ task: blinktask
blink& lowpower& tasks
: tick ( -- ) timetask wake ;
\ : tick ( -- ) timetask wake ;
: tick ( -- ) blinktask wake ;
1 systick-hz
' tick irq-systick !

@ -30,7 +30,7 @@ only 4.5kB space for programs; but it has 4kB of RAM, which is quite
enough for development and testing.
For me the biggest downside of this one is the clock system and the power
consequences. There is an internal REFO 32768kHz clock which kicks in
consequences. There is an internal REFO 32768Hz clock which kicks in
when there is no external crystal, and consumes 15uA of power come what may.
(So `lpm3` is about 16uA, `lpm4` goes down to 1.5-2uA but only external
interrupts for wakeup.) The external crystal requires caps, and even with it
@ -60,7 +60,7 @@ which takes one of these, and a bunch of files where the constants are defined,
and produces code with the constants replaced.
The `core` directory contains mecrisp hex files, to be flashed onto the chip.
The `-xt1` versions require an external 32768kHz crystal to work.
The `-xt1` versions require an external 32768Hz crystal to work.
The subdirectories contain mecrisp sources which produce the ones which
are not part of the standard [mecrisp] distribution. To build, get a [mecrisp]
tarball, unpack, and copy these source dirs to `mecrisp-source`, go inside,

@ -68,7 +68,7 @@ Reset: ; Main entry point. Chip specific initialisations go here.
;------------------------------------------------------------------------------
; Init Clock
; 8MHz from FLL, sourced from 32768kHz external crystal (XT1)
; 8MHz from FLL, sourced from 32.768kHz external crystal (XT1)
; Adjusted code from forth-mecrisp-2433.asm
bic #LOCKLPM5, &PM5CTL0 ; Unlock I/O pins

@ -67,7 +67,7 @@ Reset: ; Main entry point. Chip specific initialisations go here.
;------------------------------------------------------------------------------
; Init Clock
; 8MHz from FLL, sourced from 32768kHz external crystal (XT1)
; 8MHz from FLL, sourced from 32.768kHz external crystal (XT1)
; Adjusted code from forth-mecrisp-2433.asm
bic #LOCKLPM5, &PM5CTL0 ; Unlock I/O pins

@ -1,3 +1,3 @@
The 'lowpower' version needs an external 32768kHz crystal between P2.6 and P2.7 (pins 19 and 18 on MSP430G2553) - because the delays in this one are done with low power sleep, and waking up needs a timer, which needs this external source.
The 'lowpower' version needs an external 32768Hz crystal between P2.6 and P2.7 (pins 19 and 18 on MSP430G2553) - because the delays in this one are done with low power sleep, and waking up needs a timer, which needs this external source.
The 'xt1' versions also need an external 32768kHz crystal on the correct pins; this time with loading caps as well.
The 'xt1' versions also need an external 32768Hz crystal on the correct pins; this time with loading caps as well.

@ -1,12 +1,12 @@
## Power consumption
Without external crystal, i.e. ACLK and FLL clocked from the internal REFOCLK
(32768kHz), the lowest I could get was 17uA. The only way to go to 1-2uA range
(32.768kHz), the lowest I could get was 17uA. The only way to go to 1-2uA range
was lpm4 with all clocks off (and then of course it doesn't wake up by a
timer). (I found it in the datasheet eventually, REFO on this chip takes
15-16uA. This seems to be pretty much the same across the whole FR range,
with the exception of the newer and bigger ones (e.g. FR2476) - some of them
have 'low power' setting for REFO, and in some REFO eats only 1uA.)
2019-07-24: Finally made it work with the external 32768kHz crystal; there are
2019-07-24: Finally made it work with the external 32.768kHz crystal; there are
some comments (and a lot of rubbish) in `test-pwr.fs`.

Loading…
Cancel
Save