chiark / gitweb /
Merge and end branch-hostside-wip-2008-01-25 PROPERLY; cvs up -j branch-hostside...
[trains.git] / detpic / program.clocks
index 88373fa0d1a81e5faa56181b160b77e0670783d0..fc70a0c3a5ca3f4283679e871177ce0a6dc5f42e 100644 (file)
@@ -1,14 +1,22 @@
 # Each line is:
-#  <name>      M|S|MS          how     interval
+#  <name>      M|S|MS[T]       how     interval
 # where how is one of
-#  T1ov T3ov
+#  T0ov8 T0ov16 T1ov T3ov
 #      set  T[13]CON to  <stuff> | <name>_{master,slave}_t[13]scale
 #      load TMR[13][HL] with  <name>_{master,slave}_t[13]init[hl]
 #       or to put it another way, TMR[13] with
 #              65535 - <name>_{master,slave}_t[13]cycles
 #      then time to overflow will be specified time
+#  T2period
+#      set T2CON to  <stuff> | <name>_{master,slave}_t2scale
+#      set PR2 to  <name>_{master,slave}_t2cycles
+# M and S mean generate <name>_{master,slave}_<things> respectively
+# T means generate <name>_{us,ms}
 
-#morse         MS      T0ov16          66ms
-points         S       T3ov            200ms
-#points                S       T3ov            350ms
-points         M       T3ov            50ms
+points         MS      T3ov            10ms
+tick           MST     T2period        1ms
+nmra           M       T0ov8           58us-10cy
+
+; we do morse at 18wpm according to the PARIS standard
+; (ie a unit time of 66ms) using timer0 (DS p108)
+morse          MS      T0ov16          66ms