at91rm3400 ATMEL Corporation, at91rm3400 Datasheet - Page 211

no-image

at91rm3400

Manufacturer Part Number
at91rm3400
Description
Atmel Advanced At91 Arm Microcontroller
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
at91rm3400-AU-002
Manufacturer:
Atmel
Quantity:
10 000
I/O Lines
Programming
Example
1790A–ATARM–11/03
The programing example shown in Table 36 below is used to define the following
configuration.
Table 36. Programming Example
4-bit output port on I/O lines 0 to 3, (should be written in a single write operation), open-
drain, with pull-up resistor
Four output signals on I/O lines 4 to 7 (to drive LEDs for example), driven high and low, no
pull-up resistor
Four input signals on I/O lines 8 to 11 (to read push-button states for example), with pull-
up resistors, glitch filters and input change interrupts
Four input signals on I/O line 12 to 15 to read an external device status (polled, thus no
input change interrupt), no pull-up resistor, no glitch filter
I/O lines 16 to 19 assigned to peripheral A functions with pull-up resistor
I/O lines 20 to 23 assigned to peripheral B functions, no pull-up resistor
I/O lines 24 to 27 assigned to peripheral A with Input Change Interrupt and pull-up resistor
PIO_OWER
PIO_OWDR
PIO_CODR
PIO_MDER
PIO_MDDR
PIO_SODR
PIO_PUDR
PIO_PUER
PIO_IFER
PIO_IFDR
PIO_OER
PIO_ODR
PIO_PER
PIO_PDR
PIO_ASR
PIO_BSR
Register
PIO_IDR
PIO_IER
Value to be Written
0x0FFF F0FF
0x0FFF FFFF
0x0FFF FFF0
0x0FFF FFF0
0x0000 FFFF
0x0FFF FF00
0x00FF F0FF
0x0F0F FF0F
0x0FFF 0000
0x0000 00FF
0x0F00 0F00
0x00F0 00F0
0x0F0F 0000
0x0000 0F00
0x0000 0000
0x0000 000F
0x00F0 0000
0x0000 000F
AT91RM3400
211

Related parts for at91rm3400