| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
ST20-GP6 bảng dữ liệu(PDF) 94 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST20-GP6 bảng dữ liệu(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 |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |