Skip to content

Commit

Permalink
ATtiny85 external 16MHz dedicated timing (#25
Browse files Browse the repository at this point in the history
  • Loading branch information
gioblu committed Jan 5, 2017
1 parent e12bbba commit c3a77c8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions strategies/SoftwareBitBang/Timing.h
Expand Up @@ -93,6 +93,22 @@
#define SWBB_ACCEPTANCE 34 #define SWBB_ACCEPTANCE 34
#define SWBB_READ_DELAY 10 #define SWBB_READ_DELAY 10
#endif #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
#endif #endif


Expand Down

0 comments on commit c3a77c8

Please sign in to comment.