Confused about PIN names for the 32uc3a3

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

I am just starting to migrate from the 8 bit world to the 32 bit universe. I am trying to understand the pin name defines as found in many of the H files. There is a define of AVR32_PIN_PB27 (59) and I can't correlate that name to any name given in the spec sheet. There is not even a PB27 pin and GPIO #59 is defined as PX08. What am I missing?

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

Well in the header file where such symbols are defined it says:

/* PAD->GPIO bits mapping */
#define AVR32_PIN_PA00   0
#define AVR32_PIN_PA01   1
#define AVR32_PIN_PA02   2
#define AVR32_PIN_PA03   3
#define AVR32_PIN_PA04   4
etc.

So aren't these "pad" numbers?

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

You're not looking at the right header.  It sounds like you're looking at a file for one of the UC3A0 variants.  You should look at uc3a3256.h

Letting the smoke out since 1978