Mega 162 and Timer 3

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

Trying to use Timer 3, but the assembler won't accept TCCR3A. It will accept TCCR1A. I can see TCCR3A defined in the .inc file, but assembler doesn't like it.

Puzzled in Neverland,
Torby :shock:

The largest known prime number: 282589933-1

It's easy to stop breaking the 10th commandment! Break the 8th instead. 

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

You didn't post any code, so I can only assume that it's because you are trying to use IN or OUT with a register in the Extended I/O space. You have to use SRAM instructions to access it.. LDS, STS, etc

/* John Butera */

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

That sounds like a good guess to me!

Thanks.

The largest known prime number: 282589933-1

It's easy to stop breaking the 10th commandment! Break the 8th instead. 

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

That was the ticket.

Thanks,
Torby

The largest known prime number: 282589933-1

It's easy to stop breaking the 10th commandment! Break the 8th instead.