RESET

From MCS Wiki AVR
Revision as of 23:18, 11 February 2013 by Admin (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Action

Reset a bit to zero.

 

 

Syntax

RESET bit

RESET var.x

RESET var

 

 

 

 

Remarks

Bit

Bit or Boolean variable.

Var

A byte, integer, word or long variable.

X

Bit of variable to clear. Valid values are : 0-7 (byte, registers), 0-15 (Integer/Word) and (0-31) for a Long

 

You can also use the constants from the definition file to set or reset a bit.

RESET PORTB.PB7   'will reset bin 7 of portB. This because PB7 is a defined constant in the definition file.

 

When the bit is not specified, bit 0 will be cleared.

 

 

See also

SET , TOGGLE

 

 

Example

SEE SET


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