Closed moroz55555 closed 1 year ago
Uh
uint8_t temp = CLKCTRLA.MCLKCTRLA;
temp |= 0x80;
__PROTECTED_WRITE(CLKCTRL_MCLKCTRLA,temp);
and then clock out will be enabled. if you know ytou're using internal osc, could even just
__PROTECTED_WRITE(CLKCTRL_MCLKCTRLA, 0x80);
compiles only in this form without one underscore: _PROTECTED_WRITE(CLKCTRL_MCLKCTRLA, 0x80);
Sorry, I went to check how many underscores and got distracted implementing it.
This will be available as a feature of megaTinyCore.h (Though it is truly trivial to implement) from 2.6.8 onwards.
Hello Tell me how to enable CLKO PB5 ?