chiark / gitweb /
8584d2e1e5f1d420991c2ad731ef9507b1eaa251
[trains.git] / detpic / program.clocks
1 # Each line is:
2 #  <name>       M|S|MS          how     interval
3 # where how is one of
4 #  T1ov T3ov
5 #       set  T[13]CON to  <stuff> | <name>_{master,slave}_t[13]scale
6 #       load TMR[13][HL] with  <name>_{master,slave}_t[13]init[hl]
7 #       or to put it another way, TMR[13] with
8 #               65535 - <name>_{master,slave}_t[13]cycles
9 #       then time to overflow will be specified time
10
11 points          MS      T3ov            10ms
12 tick            MST     T2period        1ms
13 nmra            M       T0ov8           58us-10cy
14
15 ; we do morse at 18wpm according to the PARIS standard
16 ; (ie a unit time of 66ms) using timer0 (DS p108)
17 morse           MS      T0ov16          66ms