A PPM driver for the K64F that uses the CMT module

Files at this revision

API Documentation at this revision

Comitter:
Padman
Date:
Tue Sep 06 16:54:00 2016 +0000
Parent:
1:9b1734761ce3
Commit message:
Changed frame parameters

Changed in this revision

PPMout.h Show annotated file Show diff for this revision Revisions of this file
--- a/PPMout.h	Fri Sep 02 16:01:52 2016 +0000
+++ b/PPMout.h	Tue Sep 06 16:54:00 2016 +0000
@@ -38,12 +38,12 @@
 
 // Time parameters
 #define STEPS_PER_MS (((BUS_CLOCK/CLOCK_DIVIDER)/8)/1000)
-#define GAP_LENGTH_MS 0.4
-#define FRAME_LENGTH_MS 20
+#define GAP_LENGTH_MS 0.3
+#define FRAME_LENGTH_MS 22.5
 
 // PPM parameters
 #define PPM_RANGE_MS 1
-#define PPM_ZERO_MS 0.5
+#define PPM_ZERO_MS 0.7
 
 // Derived step parameters
 #define RANGE_STEPS (PPM_RANGE_MS*STEPS_PER_MS)