watch two registers

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

Sir / Madam,

 

Could anyone tell me how to watch the following two registers ?

 

#define PRODSIGNATURES_TEMPSENSE0  _SFR_MEM8(0x002E)
#define PRODSIGNATURES_TEMPSENSE1  _SFR_MEM8(0x002F)

 

Sincerely,

Liu Wang

 

Last Edited: Thu. Jun 8, 2017 - 03:00 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have edited the title of your post that contained the whole message!!

 

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Sir / Madam,

 

Found them in the following window.

 

Is their value 0x0A80 corresponding to the 85C as specified in Xmega128A1 data sheet ?

Is there a temperature sensor register somewhere in Xmega128A1 ?

What's the resolution of the temperature register value ? 0.5 degree C as of normal temp sensor ?

 

Sincerely,

Liu Wang

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

The datasheet says:

• Four internal inputs
Internal temperature sensor
– DAC output
– VCC voltage divided by 10
– 1.1V bandgap voltage
 

 

 

No idea on how to use it unless I read up a lot.

 

 

 

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Js,

 

Thanks the time in commenting and sharing.

Reading more...

 

Sincerely,

Liu Wang 

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

Solved here http://www.avrfreaks.net/forum/h...

 

By the way I'm not sure that you have really solved the problem but I may be wrong, you may have fixed the error message but maybe you are not getting the values you want.

 

Looking at the assembler .inc file I see

.equ NVM_PROD_SIGNATURES_TEMPSENSE0_offset = 0x2E        // Temperature Sensor Calibration Byte 0
.equ NVM_PROD_SIGNATURES_TEMPSENSE1_offset = 0x2F        // Temperature Sensor Calibration Byte 1

usually NVM associated stuff need some special procedure before they can be accessed, so you simple = statement may not work as you expect.

 

As I said I may be completely wrong on this, not much experience with Xmegas. Someone else may chime in with a more sensible answer.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

Last Edited: Tue. Jun 6, 2017 - 10:47 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

EDIT Sorry I see that although similar it's not the same, back to normal.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly