| поискавой системы для электроныых деталей |
|
ST20-GP6 датащи(PDF) 94 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST20-GP6 датащи(HTML) 94 Page - STMicroelectronics |
|
94 / 123 page ![]() ST20-GP6 94/123 16 Parallel input/output The ST20-GP6 device has 16 bits of Parallel Input/Output (PIO), configured in groups (ports) of eight bits. Each bit is programmable as an output, an input, or a bidirectional pin. Each group of eight input bits can also be compared against a register and an interrupt generated when the value is not equal. Each of the groups of eight bits operates as described in the following section. 16.1 PIO Ports0-1 Each of the eight bits of a PIO port has a corresponding bit in the PIO registers associated with each port. These registers hold: output data for the port ( POut); the input data read from the pin ( PIn); PIO bit configuration register (PC1); and the two input compare function registers (PComp and PMask). All of the registers, except the PIn registers, are each mapped onto two additional addresses so that bits can be set or cleared individually. The Set_ register allows bits to be set individually. Writing a ‘1’ in this register sets the correspond- ing bit in the associated register, a ‘0’ leaves the bit unchanged. The Clear_ register allows bits to be cleared individually. Writing a ‘1’ in this register resets the cor- responding bit in the associated register, a ‘0’ leaves the bit unchanged. 16.1.1 PIO Data registers The base addresses for the PIO registers are given in the memory map. Note that during reset all the registers are reset to '00000000'. POut register This register holds output data for the port. PIn register The data read from this register will give the logic level present on an input pin of the port at the start of the read cycle to this register. The read data will be the last value written to the register regardless of the pin configuration selected. POut PIO base address + #00 Read/Write Bit Bit field Function 7:0 POut7:0 Bits 0 to 7 of output data for the port. Table 16.1 POut register format - 1 register per port PIn PIO base address + #10 Read only Bit Bit field Function 7:0 PIn7:0 Bits 0 to 7 of input data for the port. Table 16.2 PIn register format - 1 register per port |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |