Wake up question

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

Hi !

I am working on ATZB-A24-UFLRB module, so it's about ATmega1281.

Reading it's datashet p.52 :

http://www.atmel.com/images/doc2549.pdf

wake-up sources are INT7:0 and Pin Change (or PCINT as I understand).

Now, can I use for example PCINT5 (pin PB5) as a wake up source?

If so, how to do that?

Reading datasheet p.105 interrupt vectors there is no PCINT5,

so I can't write

ISR(PCINT5_vect)
{


}

I'm confused here so help is needed.

Thank you, guys !

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

Quote:
I'm confused
So confusd as to make you post in the wireless forum? :-)

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

js wrote:
Quote:
I'm confused
So confusd as to make you post in the wireless forum? :-)

I'm developing in Lightweight Mesh, so I suppose this is right place to ask.

OK, can I ask on AVR forum then?

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

Sorry my mistake :( I didn't see the reference to the ATZB-A24-UFLRB module

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

js wrote:
Sorry my mistake :( I didn't see the reference to the ATZB-A24-UFLRB module

No problem.

Do you know it is possible or not?

ATmega1281 has PCINT0 and PCINT1 interrupt vector.

But also has PCINT0-23 Pin Change Mask Register bits.

I work with standard INT as wake-up source and that works fine.

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

Unfortunately I have never needed to use any sleep modes so I don't really know.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

js wrote:
Unfortunately I have never needed to use any sleep modes so I don't really know.

OK.

I'm sure that Alexru has seen this quesion, but probably needs time to answer.

JS,

would you mind(as administrator) if I ask this question(this would be cross-post then) on AVR form because more people look at that forum.

Maybe someone has some ideas or is also interested in this question but with other uC.

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

Sorry to disappoint you again but I'm powerless in the wireless..need to wait for someone who has moderators privileges in this forum and then the thread can be moved.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

This has nothing to do with wireless, really.

PCINT ISR's are one per port, not per pin. PCINT[7:0] generate interrupt PCINT0, and then it is up to the application to analyze exact pin.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

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

Alex could you please move the post to the AVR forum? :-) I don't have moderator rights on this forum otherwise I would have moved it already.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly