Permalink
Browse files

ATtiny85 external 16MHz dedicated timing (#25

  • Loading branch information...
gioblu committed Jan 5, 2017
1 parent e12bbba commit c3a77c85fa3b06405ef4c4f46dd2a4513dc25374
Showing with 16 additions and 0 deletions.
  1. +16 −0 strategies/SoftwareBitBang/Timing.h
@@ -93,6 +93,22 @@
#define SWBB_ACCEPTANCE 34
#define SWBB_READ_DELAY 10
#endif
#if F_CPU == 16000000L
/* External 16MHz oscillator */
#define SWBB_BIT_WIDTH 40
#define SWBB_BIT_SPACER 112
#define SWBB_ACCEPTANCE 40
#define SWBB_READ_DELAY 4
#endif
#endif
#if SWBB_MODE == _SWBB_FAST
#if F_CPU == 16000000L
/* External 16MHz oscillator */
#define SWBB_BIT_WIDTH 28
#define SWBB_BIT_SPACER 66
#define SWBB_ACCEPTANCE 28
#define SWBB_READ_DELAY 4
#endif
#endif
#endif

0 comments on commit c3a77c8

Please sign in to comment.