最上位をメイン処理とします。 メイン処理は、次のシーケンスで実行すればよいでしょう。目次 前 次Cのコードは、以下とします。 DI ;/* disable interrupt */ user_initialize();/* initialize */ EI ;/* enable interrupt */ /* clear sram */ for ( sram_address = 0 ; sram_address &t; LAST ; sram_address++ ) { put_sram( sram_address , 0 ); } /* loop */ while ( ON ) { sci1_handling(); }
- 割込み禁止
- I/O初期化
- 割込み許可
- SRAM内容クリア
- コマンドインタプリタ機動
- 5にもどる