Project

General

Profile

Revision f115416e

IDf115416e5ddb587db82174a69a40955b31973a99

Added by Thomas Mullins over 11 years ago

Added initial BOM code

Only the sending code has been tested; receiving will soon be tested as
well.

View differences:

scout_avr/src/Atmega128rfa1.cpp
59 59
  TCCR0B = _BV(CS01) | _BV(CS00);
60 60
  // enable interrupt on compare match A
61 61
  TIMSK0 = _BV(OCIE0A);
62
  // (1 ms) * 16 MHz / 64 prescaler = 250
63
  //OCR0A = 250;
64
  // (1 ms) * 8 MHz / 64 prescaler = 125
65
  OCR0A = 125;
62
  // 1 ms with 1/64 prescaler
63
  OCR0A = F_CPU / 1000 / 64;
66 64
  millis = 0;
67 65

  
68 66
  sei();

Also available in: Unified diff