Simple Project / Demo for Tiny13 (iocompat.h)

View: New views
2 Messages — Rating Filter:   Alert me  

Parent Message unknown Simple Project / Demo for Tiny13 (iocompat.h)

by Zitt Zitterkopf :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I'm new to the AVR series of microcontrollers - my last uC being the HC11 back in college.

 

I'm trying to get my feet wet by implementing the demo below:

http://www.nongnu.org/avr-libc/user-manual/group__demo__project.html
which uses PWM to flash an LED.

 

My demon of choice right now the Atmel Tiny13

Does anyone have a iocompat.h file which is compatible with the Tiny13 so that I can begin playing with the demo?

 

John
_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@...
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Re: Simple Project / Demo for Tiny13 (iocompat.h)

by Joerg Wunsch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

As Zitt Zitterkopf wrote:

> Does anyone have a iocompat.h file which is compatible with the
> Tiny13 so that I can begin playing with the demo?

Sorry, that demo has been written for devices where timer 1 offers a
16-bit timer.  The ATtiny13 only offers an 8-bit timer, so rewriting
the demo might be possible, but involves more than just adding a
set of #defines to a header file.

I suggest you simply copy the code over, and try porting it yourself
as an exercise.  Most of the things should be similar.

--
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)


_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@...
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev