Italy
Online
Brattain Member
Karma: 226
Posts: 16983
Don't know what I do
|
 |
« Reply #210 on: September 24, 2012, 04:57:19 am » |
Oh... crap...  That was a test code I wrote this night.... I think it's better if I spend more time sleeping during the night 
|
|
|
|
|
Logged
|
|
|
|
|
Montevideo, Uruguay
Offline
Newbie
Karma: 1
Posts: 30
Arduino rocks
|
 |
« Reply #211 on: November 05, 2012, 11:16:02 am » |
I want to make a question:
It is possible with this core (arduino-tiny-0100-0015) to use 3 PWM in attiny85 with analogWrite()?
|
|
|
|
|
Logged
|
|
|
|
|
Montevideo, Uruguay
Offline
Newbie
Karma: 1
Posts: 30
Arduino rocks
|
 |
« Reply #212 on: November 05, 2012, 11:46:30 pm » |
This is great, thanks.
I can ask you another question? What are enabled PWM pins in the Attiny85? According to the datasheet, pin3 = OC1B, pin5 = OC0A and pin6 = OC0B/OC1A. Does that mean that I should use D0, D1 and D4 in Arduino pin naming scheme?
|
|
|
|
|
Logged
|
|
|
|
|
SE USA
Offline
Faraday Member
Karma: 35
Posts: 3649
@ssh0le
|
 |
« Reply #213 on: November 06, 2012, 12:04:59 am » |
less direct answer ... if you look at the tiny core files, pins_arduino.c has the pin assignments for arduino listed as handy ascii drawings for all the chips supported
|
|
|
|
|
Logged
|
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL
|
|
|
|
Global Moderator
Dallas
Online
Shannon Member
Karma: 129
Posts: 10374
|
 |
« Reply #214 on: November 06, 2012, 12:40:49 am » |
|
|
|
|
|
Logged
|
|
|
|
|
Montevideo, Uruguay
Offline
Newbie
Karma: 1
Posts: 30
Arduino rocks
|
 |
« Reply #215 on: November 07, 2012, 12:17:18 am » |
Thank you very much, all of you.
I love Arduino Tiny, very complete implementation.
By the way, I made a timer-driven Software Serial library for Attiny85, without delay tables. It does not consume CPU time, and can work at any baudrate, even a non-standard. Want to see it?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Dallas
Online
Shannon Member
Karma: 129
Posts: 10374
|
 |
« Reply #216 on: November 07, 2012, 12:47:57 am » |
Certainly.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 4
|
 |
« Reply #217 on: November 07, 2012, 07:29:45 am » |
can i know is there any other micro controller like Tiny that works with arduino with more pins ??? please help i need to make a circuit without hooking arduino up with it problem is i need more digital pins than Tiny :/ can anyone help me with this thanks alot 
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 4
|
 |
« Reply #218 on: November 07, 2012, 07:55:54 am » |
i need like 10 digital pins if it can be more its perfect and arduino chip is not a good idea is there any cheap once like Tiny ??? and thanks for suggestion
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 4
|
 |
« Reply #219 on: November 07, 2012, 08:17:48 am » |
thanks alot for help and this chip is also easy and same as Tiny right ??
|
|
|
|
|
Logged
|
|
|
|
|
Dallas, TX
Offline
Sr. Member
Karma: 10
Posts: 318
|
 |
« Reply #220 on: November 07, 2012, 11:52:28 am » |
I have a couple of questions:
In the Tools > Board > ... menu in Arduino 1.0.1(OS X) there are several ATtinys listed but in the /Applications/Arduino\ 1.0.1.app/Contents/Resources/Java/hardware/arduino/boards.txt file there doesn't seem to be any reference to the ATtiny. Where is the boards.txt file for the ATtinys? I see the boards.txt file in /arduino-tiny-0100-0015 but that folder is not in my Arduino 1.0.1 application folder.
Question 2: In the boards.txt file from /arduino-tiny-0100-0015, there are references to files like "empty85at1.hex". What is in this file? It is obviously not empty.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 4
|
 |
« Reply #221 on: November 07, 2012, 01:15:35 pm » |
thanks alot and if i use mega328 do i need to do bootload and stuff ?? because im new to this i dont know anything about that yet i need something easy like tiny so i just have to connect it with arduino pins derectly and setup and upload without making it any difficult thanks alot for help
|
|
|
|
|
Logged
|
|
|
|
|
Dallas, TX
Offline
Sr. Member
Karma: 10
Posts: 318
|
 |
« Reply #222 on: November 07, 2012, 02:00:58 pm » |
Question 2: In the boards.txt file from /arduino-tiny-0100-0015, there are references to files like "empty85at1.hex". What is in this file? It is obviously not empty. The files are in effect a dummy bootloaders (they don't work), there purpose is purely to set fuses in the tiny devices that happens when you burn a bootloader from Arduino IDE. The boards.txt file contains a few lines that contain the values for the fuses. It would not be necessary to have .hex file of several hundred bytes for that. There must be another answer.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Dallas
Online
Shannon Member
Karma: 129
Posts: 10374
|
 |
« Reply #223 on: November 07, 2012, 02:06:50 pm » |
The boards.txt file contains a few lines that contain the values for the fuses. It would not be necessary to have .hex file of several hundred bytes for that. There must be another answer. With Arduino 0023 it was necessary to have an image to upload when Burn Bootloader was executed. The "empty" images are all built with this... http://code.google.com/p/arduino-tiny/source/browse/#svn%2Ftrunk%2Fhardware%2Ftiny%2Fcores%2Fempty
|
|
|
|
|
Logged
|
|
|
|
|
Dallas, TX
Offline
Sr. Member
Karma: 10
Posts: 318
|
 |
« Reply #224 on: November 07, 2012, 02:13:38 pm » |
|
|
|
|
|
Logged
|
|
|
|
|
|