SAM3X8C Atmel Corporation, SAM3X8C Datasheet - Page 650

no-image

SAM3X8C

Manufacturer Part Number
SAM3X8C
Description
Manufacturer
Atmel Corporation
Datasheets
31.6
650
650
I/O Lines Programming Example
SAM3X/A
SAM3X/A
The programing example as shown in
configuration.
Table 31-2.
• 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, no pull-up resistor
• I/O line 24 to 27 assigned to peripheral A with Input Change Interrupt and pull-up resistor
with pull-up resistor
pull-up resistor
resistors, glitch filters and input change interrupts
change interrupt), no pull-up resistor, no glitch filter
PIO_OWDR
PIO_MDDR
PIO_OWER
PIO_SODR
PIO_CODR
PIO_MDER
PIO_PUDR
PIO_PUER
PIO_ABSR
PIO_IFDR
PIO_OER
PIO_ODR
PIO_IFER
PIO_PER
PIO_PDR
Register
PIO_IER
PIO_IDR
Programming Example
Table 31-2
Value to be Written
below is used to obtain the following
0xFFFF F0FF
0x0FFF FFFF
0xFFFF FF00
0xF0FF F0FF
0xFFFF FFF0
0x0F0F FF0F
0x0FFF FFF0
0x0000 FFFF
0xFFFF 0000
0xF0F0 00F0
0x0000 00FF
0x0000 0F00
0x0000 0000
0x0F00 0F00
0x0000 000F
0x00F0 0000
0x0000 000F
11057A–ATARM–17-Feb-12
11057A–ATARM–17-Feb-12

Related parts for SAM3X8C