chiark / gitweb /
correct points which were all noted backwards
[trains.git] / detpic / program.clocks
1 # Each line is:
2 #  <name>       M|S|MS[T]       how     interval
3 # where how is one of
4 #  T0ov8 T0ov16 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 #  T2period
11 #       set T2CON to  <stuff> | <name>_{master,slave}_t2scale
12 #       set PR2 to  <name>_{master,slave}_t2cycles
13 # M and S mean generate <name>_{master,slave}_<things> respectively
14 # T means generate <name>_{us,ms}
15
16 points          MS      T3ov            10ms
17 tick            MST     T2period        1ms
18 nmra            M       T0ov8           58us-10cy
19
20 ; we do morse at 18wpm according to the PARIS standard
21 ; (ie a unit time of 66ms) using timer0 (DS p108)
22 morse           MS      T0ov16          66ms