SAM3N00A Atmel Corporation, SAM3N00A Datasheet - Page 397

no-image

SAM3N00A

Manufacturer Part Number
SAM3N00A
Description
Manufacturer
Atmel Corporation
Datasheets
26.6
11011A–ATARM–04-Oct-10
11011A–ATARM–04-Oct-10
I/O Lines Programming Example
The programing example as shown in
configuration.
Table 26-1.
• 4-bit output port on I/O lines 0 to 3, (should be written in a single write operation), open-drain,
• Four output signals on I/O lines 4 to 7 (to drive LEDs for example), driven high and low, no
• Four input signals on I/O lines 8 to 11 (to read push-button states for example), with pull-up
• Four input signals on I/O line 12 to 15 to read an external device status (polled, thus no input
• 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 with pull-down resistor
• I/O line 24 to 27 assigned to peripheral C with Input Change Interrupt, no pull-up resistor and
• I/O line 28 to 31 assigned to peripheral D, no pull-up resistor and no pull-down resistor
with pull-up resistor
pull-up resistor, no pull-down resistor
resistors, glitch filters and input change interrupts
change interrupt), no pull-up resistor, no glitch filter
no pull-down resistor
PIO_ABCDSR1
PIO_ABCDSR2
PIO_PPDDR
PIO_PPDER
PIO_OWDR
PIO_MDDR
PIO_OWER
PIO_SODR
PIO_CODR
PIO_MDER
PIO_PUDR
PIO_PUER
PIO_ODR
PIO_IFER
PIO_IFDR
PIO_PDR
PIO_OER
PIO_PER
Register
PIO_IDR
PIO_IER
Programming Example
Table 26-1
Value to be Written
below is used to obtain the following
0x0FFF_ FFF0
0xFFFF_FF00
0xFFFF_F0FF
0x0FFF_FFFF
0xF0FF_F0FF
0xFFFF_FFF0
0xFF0F_FFFF
0x0000_FFFF
0xFFFF_0000
0xFFF0_00F0
0x000F_FF0F
0x0000_00FF
0x0000_0F00
0x0F00_0F00
0x0000_000F
0x00F0_0000
0xF0F0_0000
0xFF00_0000
0x0000_000F
0x0000_0000
SAM3N
SAM3N
397
397

Related parts for SAM3N00A