Good morning Mac,
great thanks for answering so detailed and fast.
-to 1.
Well, you are right, using BSET and BCLR options to get 5 bus cycles, but I´m using a simple ASM { MOV (#0...1, PTDB) } inside C-Code and this results in 245us and as you know, this interval is not short enough.
-to 2.
Yes, you're right again, I did this already and I used a 1.8432MHz crystal to definitely stay below 125kHz for the internal bus clock in LPRun-Mode. Internal bus clock it's now 115.2kHz, clock range is high frequency (1-16MHz), oscillator operating mode is LowPower and current consumption is 3 times higher then using a 32.768kHz crystal. Sh...t!
Using an external oscillator (100kHz) would also increase current consumption and it additionally would increase needed space for more components (to drive such an oscillator). That space, I really don't have.
I think it's always more suitable to use an external crystal to save power at all events. What do you think?
-to 3.
As you may realized now, my biggest challenges are power consumption and component size and so it might be a kind of logic to stay in LPRun. Well, there are two low power strategies, high frequency pulsed version where you partial power down your system or (that I want to use) long-term Low-Power-Mode.
-to 4.
Sure, this is an option. I already tested some settings. In the End, it can be that I should do this. I thought about using this pulsed strategy in FEE with a 32.768kHz crystal. My problem, I have to switch off all peripherals, also ICSERCLK and so it is impossible to wake-up fast from stop3mode.
I'll test this today.
Q5:
You know, the devil is in the detail. But I can't find him!? What I don't understand is, what is the problem with a 100kHz crystal in FBELB? The Reference Manual of MC9S08QB4 is saying, that you can use an external reference clock source, it can be a crystal or resonator or another external source. It also says that every “external reference clock with frequencies between 31,25.25kHz to 40MHz in all modes” is supported by the ICS module (RM chapter 11.4.7, s. 168).
Best Regards,
Brambostel