GETREG/de

From MCS Wiki AVR
< GETREG
Revision as of 20:14, 15 February 2013 by Admin (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

= (**COPIED FROM ENGLISH PAGE**) === Action

Reads a byte from an internal register.

 

 

Syntax

var =  GETREG( Reg  )

 

 

Remarks

Most AVR chips have 32 registers named R0-R31. The GetReg function will return the value of the specified register.

 

 

Reg

The register name : R0-R31 or a register definition.

Var

The name of a variable that will be assigned with the content of the register.

 

PEEK and POKE work with an address. And will return a HW register on the Xmega since Xmega has a different address map.

GetReg and SetReg will read/write registers on all AVR processors.

 

 

See also

SETREGPEEK , POKE

 

 

Example


Languages   English Deutsch  
Personal tools
Namespaces
Variants
Actions
Navigation
In other languages
Language