beautypg.com

I/o data out register – io_datout, I/o data in register – io_datin, Avr configuration register – avr_config – Rainbow Electronics AT86RF401 User Manual

Page 40

background image

40

AT86RF401

1424D–RKE–09/02

• Bits[5:0]

If set to “1”, the corresponding bit (pin) IO[5:0] is configured as an output. Data may then
be written to that output by writing to the IO_DATA register. If set to “0”, the correspond-
ing bit (pin) may be either a button input (refer to the Button Detect Register, $34) used
to wake the part up or a normal digital input.

I/O Data Out Register – IO_DATOUT

• Bits[7:6]: Reserved

These bits read “0”.

• Bits[5.0]

If enabled in the IO_ENAB register and not in test mode, the data in Bits[5:0] goes to the
corresponding general-purpose output IO [5:0].

I/O Data In Register – IO_DATIN

• Bits[7:6]: Reserved

This bit reads “0”.

• Bits[5:0]

These bits directly read the data from the I/O pins IO[5:0]. Writes to these bits have no
effect.

AVR Configuration Register – AVR_CONFIG

IO_ENAB[n]

IO_DATOUT[n]

IO[n]

0

0

Normal Input

0

1

Button Input

1

0

Output Driven Low

1

1

Output Driven High

Bit

7

6

5

4

3

2

1

0

$31

IOO5

IOO4

IOO3

IOO2

IOO1

IOO0

Read/Write

R

R

R/W

R/W

R/W

R/W

R/W

R/W

Initial Value

0

0

0

0

0

0

0

0

Bit

7

6

5

4

3

2

1

0

$32

IOI5

IOI4

IOI3

IOI2

IOI1

IOI0

Read/Write

R/W

R/W

R

R

R

R

R

R

Initial Value

0

0

Bit

7

6

5

4

3

2

1

0

$33

ACS1

ACS0

TM

BD

BLI

SLEEP

BBM

Read/Write

R/W

R/W

R/W

R/W

R

R

W

R/W

Initial Value

0

0

0

0

0

0

0

0