mega32 definitions

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi all,
is there a .h file from atmel containing definisions for control registers etc. for the Mega32, something like meag32.h
I've had a look but so far it seems to be hiding from me.
If someone could point me in the right direction that would be great

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It's located in your WinAVR\avr\include\avr\iom32.h. All the AVR-specific IO files are in the WinAVR\avr\include\avr\ directory, along with the io.h header file which you include in your projects. You should never include the part-specific IO files in your project directly; the io.h file includes the correct AVR header file based on your makefile for you (along with other general header files). You can however poke around the header file to find the register names, ISR names, etc.

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

Last Edited: Fri. Jul 28, 2006 - 11:56 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

And technically the io.h header file that Dean mentions is: