Show Posts
Pages: [1]
1  Using Arduino / Microcontrollers / Re: myAVR Board MK2 and arduino; Problems with CPU-Timing? on: November 01, 2012, 11:51:58 am
Hi John,
thanks a lot. I think there are more problems with using a CPU clock different than a multiple of 8 MHz: My serial Monitor also doesn't work well. By using the real settings, there is nothing right. But if I type in F_CPU = 8 MHz, the serial data can be read by choosing 1200 baud in the Serial Monitor by choosing 9600 baud in the SW.

So it seems that I need another oszillator if i want to use arduino libs and toolchain.

Greetings

Jan
2  Using Arduino / Microcontrollers / myAVR Board MK2 and arduino; Problems with CPU-Timing? on: November 01, 2012, 09:16:51 am
Hi,
i am trying to run arduino code with the myAVR Board MK2 http://shop.myavr.com/Systemboards/myAVR%20Board%20MK2,%20equipped.htm?sp=article.sp.php&artID=40. It has an external crystal oscillator with 3.6 MHz and an Atmega 8. I changed programmes.txt to get the connection and boards.txt as seen below.

Code:
##############################################################

atmega8x.name= MyAVR ATmega8
atmega8x.upload.protocol=avr911
atmega8x.upload.maximum_size=7168
atmega8x.upload.speed=19200
atmega8x.bootloader.low_fuses=0xff
atmega8x.bootloader.high_fuses=0xc9
atmega8x.bootloader.extended_fuses=0xff
atmega8x.bootloader.path=optiboot
atmega8x.bootloader.file=optiboot_atmega8.hex
atmega8x.bootloader.unlock_bits=0x3F
atmega8x.bootloader.lock_bits=0x0F
atmega8x.build.mcu=atmega8
atmega8x.build.f_cpu=3686400L
atmega8x.build.core=arduino
#atmega8x.build.variant=standard
The compiling works fine but somethings wrong. The blink-sample causes an approx. 3 times longer delay than expected.

Does anyone know what's wrong? The f_cpu seems right, but i have to say that i copied the fuses from examples found in the internet as i do not understand the settings.

Greetings

Jan
3  Development / Other Software Development / Re: ServoDecode Library in Arduino 1.0 on: November 01, 2012, 08:46:51 am
Hi,
thanks a lot. It worked with adding #include <Arduino.h>. The other problems came because i am using a myavr board with an Atmega8.

I want to read the PPM-Stream from a RC-Reciever.

Greetings

Jan
4  Development / Other Software Development / Re: ServoDecode Library in Arduino 1.0 on: October 20, 2012, 04:24:58 pm
Hi all,
as I would like to read in a PPM-Signal by using Interrupts I am also trying to work with the ServoDecode class in Arduino 1.0.1, as copied from http://arduino.cc/forum/index.php/topic,22140.0.html . But I (also) get the errors

ServoDecode.cpp: In member function 'void ServoDecodeClass::begin()':
ServoDecode.cpp:76: error: 'INPUT' was not declared in this scope
ServoDecode.cpp:76: error: 'pinMode' was not declared in this scope
ServoDecode.cpp:81: error: 'TIMSK1' was not declared in this scope
ServoDecode.cpp:81: error: 'ICIE1' was not declared in this scope

Does anyone can help?

Greetings

Jan
Pages: [1]