Search found 1600 matches

by Pito
Fri Nov 24, 2017 7:39 pm
Forum: General discussion
Topic: OverClock. at Runtime ~90MHz
Replies: 25
Views: 260

Re: OverClock. at Runtime ~90MHz

Add the 38kHz CPU clock setting and you may run the complete BluePill at 38kHz while taking maybe 20uA of current. Except USB and uart (or do 300baud?) everything will work as usual. .. set_clock(128000, 460800); // do math, send/receive big data.. set_clock(38, 300); // scan sensors, buttons, write...
by Pito
Fri Nov 24, 2017 6:29 pm
Forum: Code snipplets
Topic: Dual LFO with choice of waveforms using PT8211 and Blue Pill
Replies: 7
Views: 71

Re: Dual LFO with choice of waveforms using PT8211 and Blue Pill

An RC is called "integrative circuit (low-pass)", RC wired as CR is called "derivative circuit (high-pass)". When you integrate or differentiate a sine/cosine signal you will get the same signal shape (math). With input signal as below the RC will "round the edges", while the CR will pass the fast c...
by Pito
Fri Nov 24, 2017 5:28 pm
Forum: General discussion
Topic: OverClock. at Runtime ~90MHz
Replies: 25
Views: 260

Re: OverClock. at Runtime ~90MHz

Uh, wich core? Arduino_STM32 doesn't have any set_cpu_clk, set_ticks or set_baudrate.
All cores we have got include routines/functions/methods for setting up the CPU clock, SysTick reload value and Uart Baudrate settings..
by Pito
Fri Nov 24, 2017 12:25 pm
Forum: General discussion
Topic: OverClock. at Runtime ~90MHz
Replies: 25
Views: 260

Re: OverClock. at Runtime ~90MHz

Look for files like

Code: Select all

rcc.c
systick.c 
usart.c 
in ..\STM32F1\cores\maple\libmaple

and in ..\STM32F1\variants\generic_stm32f103c\wirish

Code: Select all

boards.cpp
boards_setup.cpp
and use the functions which init the stuff..
by Pito
Fri Nov 24, 2017 12:17 pm
Forum: General discussion
Topic: OverClock. at Runtime ~90MHz
Replies: 25
Views: 260

Re: OverClock. at Runtime ~90MHz

There is not such a library.
You have to open the libmaple core files and look for the functions (or the related parts of the functions which handle the settings). I think all the stuff is there (must be there of course :) ).
Then put the stuff into those above functions. An easy DIY exercise :)
by Pito
Fri Nov 24, 2017 11:57 am
Forum: General discussion
Topic: OverClock. at Runtime ~90MHz
Replies: 25
Views: 260

Re: OverClock. at Runtime ~90MHz

The big Q is why do you need such on-the-fly clock switch. Energy?? You may run BluePill at 96MHz easily and go sleep when needed. The total energy spent might be much lower than when switching between various freqs.. ;) Or do you want to have the USB available (ie at 48/72MHz) and only switch to 96...
by Pito
Fri Nov 24, 2017 11:19 am
Forum: General discussion
Topic: OverClock. at Runtime ~90MHz
Replies: 25
Views: 260

Re: OverClock. at Runtime ~90MHz

You can change the cpu clock at runtime with F103. I did it on F103 in past (with mecrisp forth) and it worked perfectly. I was changing on-the-fly the clock in a loop in a sequence like 72MHz/8MHz/128MHz/48MHz without a crash. Mind the clock's PLL setting (the phase loop needs to lock itself at the...
by Pito
Sun Nov 19, 2017 1:10 pm
Forum: Custom design boards
Topic: IceStamp FPGA in DIL28 and UPduino in DIL32
Replies: 17
Views: 500

Re: IceStamp FPGA in DIL28 and UPduino in DIL32

Swapforth J1a running on UPduino @ 40MHz, 460k uart, teraterm terminal, built under IceCube2: Device Utilization Summary LogicCells : 1153/5280 PLBs : 220/660 BRAMs : 16/30 IOs and GBIOs : 24/36 PLLs : 1/1 words .EASTER EASTER N E D Z X C G Y ORIF ANDIF fib2-bench fib2 FACS FAC .FAC SETUP *BUFF LAS...
by Pito
Wed Nov 15, 2017 5:42 pm
Forum: Projects
Topic: Using an STM32 to levitate/suspend tiny neodymium magnet at 12" or so...
Replies: 11
Views: 263

Re: Using an STM32 to levitate/suspend tiny neodymium magnet at 12" or so...

The rail guns use 5-10 million Amperes to fire a projectile w/ 2miles/sec muzzle velocity and 100miles range..
by Pito
Wed Nov 15, 2017 8:21 am
Forum: Projects
Topic: Using an STM32 to levitate/suspend tiny neodymium magnet at 12" or so...
Replies: 11
Views: 263

Re: Using an STM32 to levitate/suspend tiny neodymium magnet at 12" or so...

So all i need is a 1728 ampere battery? Nope, I have not said that :) Anyhow, in order to control the levitation by stm32 you first have to know with how much current you need to feed your coil in order to get your magnet at the required height.. I do not know, you have to measure. Knowing that you...