Tiny Core 2 + ATtiny861



tiny core 2 ready (enough) human consumption.  it's available in usual place... http://code.google.com/p/arduino-tiny/downloads/list  on source tab, it's under "core2" repository.

there support t861, t13, t85, , t84 processors not complete.  expect find bugs , things missing.

if have request, please post here.  more requests = higher priority.

if have question, please post here.

if find bug, please post here.

there 2 goals core: smaller , configurable.  to accomplish first goal, there 2 versions every arduino function.  an inline version , normal version.  the inline version used when key parameters constants.  the normal version used otherwise.  pinmode is perfect example.  if 2 parameters constants, pinmode reduces 1 or 2 machine instructions.  if pin is constant, pinmode typically reduces fewer 6 machine instructions.

the "variants" feature used configure core.  a file named[font=courier new] tc_build_options.h [/font]is created under new variant.  here's the[font=courier new] tc_build_options.h [/font]for "standard" variant...
http://code.google.com/p/arduino-tiny/source/browse/variants/standard/tc_build_options.h?repo=core2
by changing various #defines core can modified support different applications.  for example, possible move millis to watchdog timer.  this allows timer 0 used please.  or, default prescaler can changed increase pwm frequency.

the pin mapping available here... http://forum.arduino.cc/index.php?topic=51984.msg1269301#msg1269301


@hiduino, @erni, @leo72, , else wants work attiny861 family, have specific request.  please...

• download , install new core. 
• download , install tiny tuner 2 (it's library).
• try uploading , running following sketch; have use tinyisp configured output tuning signal.

code: [select]
#include <tinydebugknockbang.h>
#include <tinytuner2.h>

static const uint8_t no_pin = (uint8_t)(-1);
static const uint8_t togglepin = no_pin; // 3;

static void outputosccalassignment( void )
{
  debug.print( f( "\r\n\r\n  // add following line of code top of setup...\r\n  osccal = 0x" ) );

  tinytuner2.tune();

  debug.print( osccal, hex );
  debug.println( f( ";" ) );

//  delay( 2500 );
  _delay_ms( 2500 );
}

void setup( void )
{
  debug.begin( 250000 );
 
  if ( togglepin != no_pin)
  {
    digitalwrite( togglepin, high );
    pinmode( togglepin, output );
  }

  debug.print( f( "\r\n\r\n  // initial value of osccal 0x" ) );
  debug.print( osccal, hex );
  debug.println( f( ";" ) );
  _delay_ms( 1000 );

  outputosccalassignment();
}

void loop( void )
{
  outputosccalassignment();
}



Arduino Forum > Using Arduino > Microcontrollers > Tiny Core 2 + ATtiny861


arduino

Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

How to format a Get Request

avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x62