VBAT and 32.76kHz oscillator doubt

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

VBAT and 32.76kHz oscillator doubt

跳至解决方案
1,167 次查看
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 解答
950 次查看
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 回复
951 次查看
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 项奖励
回复