| 数据搜索系统,热门电子元器件搜索 |
|
AT697F 数据表(PDF) 49 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
AT697F 数据表(HTML) 49 Page - ATMEL Corporation |
|
49 / 155 page ![]() AT697F ADVANCE INFORMATION 49 7703C–AERO–6/09 General Purpose Interface The general purpose interface (GPI) consists in a 32-bit wide I/O port with alternate facilities. GPI as 32-bit I/O port The interface is based on bi-directional I/O ports.The port is split in two parts, with the lower 16- bits accessible by the parallel IO pads and the upper 16-bits via the data bus. lower 16-bits The lower 16-bits of the general purpose interface are accessible through PIO[15:0]. All I/O ports have true Read-Modify-Write functionality when used as general I/O ports. This means that the direction of one port pin can be changed without unintentionally the direction of any other pin. The same applies when changing the drive value of the port. Figure 33. I/O port block diagram IO Direction Reg. IO Data Reg. IODIR IODAT D Q D Q D Q PIOx clock - PIO[15:0] configuring the pin Each pin from PIO[15:0] consists of two register bits : IODIRx and IODATx. As shown in the “Register Description” section, the IODIRx bits are accessed at IODIR address and iodatx at IODAT address. The IODIR IODIRx bit selects the direction for port number x. If IODIRx is written logic one, the corresponding pin is configured as output. If written logic zero, the pin is configured as an input. When the pin is configured as an input, a read of the IODAT IODATx bit returns the current value of the pin. When the pin is configured as an output, if a logical one is written to IODAT- IODATx bit, the port x is driven high. If a logical zero is written to IODAT IODATx bit, the port x is driven low. switching between input & output When the port x is switched from input to output by switching IODIRx, the value of IODATx is immediatly driven on the corresponding pin.When switched from output to input by toggling IODIRx, the value from the pin is immediatly written to IODATx. upper 16-bits The upper 16-bits of the general purpose interface are accessible through D[15:0]. They can only be used when all memory areas (ROM, RAM and I/O) are 8-bit wide. If the SDRAM control- ler is enabled, the upper 16-bits cannot be used. Figure 34. I/O port block diagram IO Direction Reg. IO Data Reg. MEDDIR/LOWDIR MEDDAT/LOWDAT D Q D Q D Q Dx clock - D[15:0] |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |