2019-07-02から1日間の記事一覧

タイマーカウンター0、CTCモード、トグル出力を試す、を応用して音を鳴らす

https://github.com/ti-nspire/AVR/tree/master/timerAudio pp.184-188 タイマーカウンター0、CTCモード、トグル出力を試す -の続き。 https://ti-nspire.hatenablog.com/entry/2019/04/16/100444 https://ti-nspire.hatenablog.com/entry/2019/05/25/113241…

タイマーカウンター0、CTCモード、トグル出力を試す

アッスィラスコウプ CTCはClear Timer on Compare match。 WGMはWaveform Generation Mode。 TCCR0はタイマーカウンター0のTimer/Counter Control Register。 OCR0はタイマーカウンター0のOutput Compare Register。 システムクロックを8MHz、1024分周比、ト…