Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20588

BASCOM-AVR : XMEGA crystal oscillator can not be turned off : REPLY

$
0
0
afaik the system clock register are protected. Did you used the correct CCP-register unlock procedure? You should use assembler because of the limited access time after CCP unlock [code:1:10afa0e9fb]$asm lds r23,OSC_CTRL 'read OSC_CNTRL andi r23,&B11110111 'clear XOSCEN ldi r24,&HD8 'Enable access IOREG out CPU_CCP,r24 sts OSC_CTRL,r23 'write OSC_CTRL $end asm [/code:1:10afa0e9fb]

Viewing all articles
Browse latest Browse all 20588

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>