If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.
Special Thanks To:
Aaron Holmes
Aaron Wheeler
Adam Horden
Alan Scrimgeour
Andre
Andrew Haynes
Anonymous000
asabase
Austin Weil
barney
Barry
Bert Hickman
Bill Kukowski
Blitzorn
Brandon Paradelas
Bruce Bowling
BubeeMike
Byong Park
Cesiumsponge
Chris F.
Chris Hooper
Corey Worthington
Derek Woodroffe
Dalus
Dan Strother
Daniel Davis
Daniel Uhrenholt
datasheetarchive
Dave Billington
Dave Marshall
David F.
Dennis Rogers
drelectrix
Dr. John Gudenas
Dr. Spark
E.TexasTesla
eastvoltresearch
Eirik Taylor
Erik Dyakov
Erlend^SE
Finn Hammer
Firebug24k
GalliumMan
Gary Peterson
George Slade
GhostNull
Gordon Mcknight
Graham Armitage
Grant
GreySoul
Henry H
IamSmooth
In memory of Leo Powning
Jacob Cash
James Howells
James Pawson
Jeff Greenfield
Jeff Thomas
Jesse Frost
Jim Mitchell
jlr134
Joe Mastroianni
John Forcina
John Oberg
John Willcutt
Jon Newcomb
klugesmith
Leslie Wright
Lutz Hoffman
Mads Barnkob
Martin King
Mats Karlsson
Matt Gibson
Matthew Guidry
mbd
Michael D'Angelo
Mikkel
mileswaldron
mister_rf
Neil Foster
Nick de Smith
Nick Soroka
nicklenorp
Nik
Norman Stanley
Patrick Coleman
Paul Brodie
Paul Jordan
Paul Montgomery
Ped
Peter Krogen
Peter Terren
PhilGood
Richard Feldman
Robert Bush
Royce Bailey
Scott Fusare
Scott Newman
smiffy
Stella
Steven Busic
Steve Conner
Steve Jones
Steve Ward
Sulaiman
Thomas Coyle
Thomas A. Wallace
Thomas W
Timo
Torch
Ulf Jonsson
vasil
Vaxian
vladi mazzilli
wastehl
Weston
William Kim
William N.
William Stehl
Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Registered Member #190
Joined: Fri Feb 17 2006, 12:00AM
Location:
Posts: 1567
Avi,
In the timer1 example I see the #include timer1.h line. I don't see anything including Timer1.cpp which has the code for the methods. How is this getting into the program? Also, where can I find a table explaining all the port constants like COM1A1 and TCCR1A?
Registered Member #1334
Joined: Tue Feb 19 2008, 04:37PM
Location: Nr. London, UK
Posts: 615
&height
IamSmooth wrote ...
Avi,
In the timer1 example I see the #include timer1.h line. I don't see anything including Timer1.cpp which has the code for the methods. How is this getting into the program? Also, where can I find a table explaining all the port constants like COM1A1 and TCCR1A?
I found the timer1.zip file in the PWM tutorial
I too have programmed these - the 328 is the top end of a series of AVRs - the 44, 88, 168 & then the 328.
To play with these I made a carrier which has all the basics on it (xtal, filtering etc.):
To do anything at the register level, you will need the data sheet off Atmel's site - I have one in front of me - it's 440 pages long but well indexed and not too bad when you learn your way around it. I print mine in "booklet" form on the big Canons at work, then have them cut & spiral bound into nice A5 manuals (only costs about 5 bucks to do).
If you want lots of advice on this , do look at using the AVRFreaks.net forums - they are really very good.
The PDIP versions are probably easier to work with if you don't like SMDs, but as there are less pins, some functionality is reduced (PDIP-28 only has 6 rather than 8 ADC channels etc.)
Registered Member #1643
Joined: Mon Aug 18 2008, 06:10PM
Location:
Posts: 1039
Just depends. The Arduino has a very easy programming language to it, as with AVR, I program with C. I own an ATMEGA32 and I was able to make a program with 4 buttons. Frequency up/down, duty cycle up/down. And I've used the PWMs also, fading LEDS 0-255.
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.