VBAT and 32.76kHz oscillator doubt

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

VBAT and 32.76kHz oscillator doubt

ソリューションへジャンプ
1,147件の閲覧回数
gabrielemarocco
Contributor I

I don't understand why while the TWR-K20D50 board is powered by USB (J36 is open) and no battery is inserted, the demo program works only if J35 is closed.

From the datasheet of the microcontoller I have understood that Vbat powers only the RTC clock but the test on the evaluation board shows the opposite: is Vbat necessary for the system (and not only for the RTC module) in order to work properly?

What about the 32.768kHz crystal? Is it necessary if I don't want to power the RTC oscillator and if a 8MHz resonator feeds the system clock?

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
930件の閲覧回数
luispuebla
Contributor III

Hello Gabriele,

      K20D50 does not require VBAT to operate and you can use only the 8MHz crystal/resonator when RTC is not used,  but TWR-K20D50M Demo software is using the RTC module,  and any attempt to access an RTC registers  when VBAT is powered down,  will result in a bus error and causing the MCU to reset.  If you have a terminal connected to the TWR-K20D50M you will see this message when VBAT is disconnected ****default_isr entered on vector 3*****.

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
931件の閲覧回数
luispuebla
Contributor III

Hello Gabriele,

      K20D50 does not require VBAT to operate and you can use only the 8MHz crystal/resonator when RTC is not used,  but TWR-K20D50M Demo software is using the RTC module,  and any attempt to access an RTC registers  when VBAT is powered down,  will result in a bus error and causing the MCU to reset.  If you have a terminal connected to the TWR-K20D50M you will see this message when VBAT is disconnected ****default_isr entered on vector 3*****.

0 件の賞賛
返信