およそ20年前に、68HC05 の開発の練習に書いた車のブレイクライト・方向指示器コントローラです。
リビジョン | 80401d23ce891637f82edafca792add03e30ad98 (tree) |
---|---|
日時 | 2013-07-08 22:23:25 |
作者 | Joel Matthew Rees <reiisi@user...> |
コミッター | Joel Matthew Rees |
Cleaning up debugging cruft and comments.
@@ -333,16 +333,12 @@ F_MNC equ $80 ; manual cancel record | ||
333 | 333 | |
334 | 334 | |
335 | 335 | XTAL equ 1 ; crystal frequency, in MHz |
336 | -RTIPOW equ 0 | |
337 | -* 1 ; bits 1 & 0 for timer hardware | |
336 | +RTIPOW equ 1 ; bits 1 & 0 for timer hardware | |
338 | 337 | RTIRATE equ {2 < RTIPOW} ; 2 ^ RTIPOW |
339 | -TIMOUT equ 1 | |
340 | -* {9155*XTAL/RTIRATE+1} ; 5 minutes (if XTAL equ is correct) | |
338 | +TIMOUT equ {9155*XTAL/RTIRATE+1} ; 5 minutes (if XTAL equ is correct) | |
341 | 339 | * only one flash rate, 2/3 duty cycle |
342 | -FLASH0 equ 1 | |
343 | -* {32*XTAL/RTIRATE/4} ; about 1/4 second off time | |
344 | -FLASH1 equ 1 | |
345 | -* {32*XTAL/RTIRATE/2} ; about 1/2 second on time | |
340 | +FLASH0 equ {32*XTAL/RTIRATE/4} ; about 1/4 second off time | |
341 | +FLASH1 equ {32*XTAL/RTIRATE/2} ; about 1/2 second on time | |
346 | 342 | |
347 | 343 | org MOR |
348 | 344 | * Software Pulldown is used. |
@@ -450,8 +446,6 @@ DBGCT rmb 4 ; count how many times TIMSRV has executed | ||
450 | 446 | swi ; since we have a few unused ROM locations |
451 | 447 | swi |
452 | 448 | swi |
453 | - swi | |
454 | - swi | |
455 | 449 | |
456 | 450 | $CYCLE_ADDER_ON |
457 | 451 | TIMSRV bset TOFR_,TSCR |