| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
TMP88CS38 bảng dữ liệu(PDF) 46 Page - Toshiba Semiconductor |
|
|
|||||||||||||||||||||||||||||
TMP88CS38 bảng dữ liệu(HTML) 46 Page - Toshiba Semiconductor |
|
46 / 226 page ![]() TMP88CS38/CM38A/CP38A 2007-09-12 88CS38-46 2.2.2 Port P3 (P35 to P30) Port P3 is an 6-bit input/output port which can be configured as an input or an output in one-bit unit under software control. Input/output mode is specified by the corresponding bit in the port P3 input/output control register 1 (P3CR1). Port P3 is configured as an input if its corresponding P3CR1 bit is cleared to “0”, and as an output if its corresponding P3CR1 bit is set to “1”. During reset, P3CR1 is initialized to “0”, which configures port P3 as an input. The P3 output latches are also initialized to “1”. Data is written into the output latch regardless of the P3CR1 contents. Therefore initial output data should be written into the output latch before setting P3CR1. Port P3 is also used as an external interrupt input, remote-control signal input a timer/counter input, data slicer input and serial bus interface input/output. When used as a secondary function input pin except I2C bus interface input/output, the input pins should be set to the input mode. When used as a secondary function output pin except I2C bus interface input/output, the output pins should be set to the output mode and beforehand the output latch should be set to “1”. When P34 and P35 are used as I2C bus interface input/output, P3CR2 bits should be set to the sink open drain mode, the output latches should be set to “1”, and the output pins should be set to the output mode. Note: Input mode port is read the state of input pin. When input/output mode is used mixed, the contents of output latch setting input mode may be changed by executing bit manipulation instructions. Example 1: Outputs an immediate data 5AH to port P3 LD (P3), 5AH ; P3 ← 5AH Example 2: Inverts the output of the lower 4 bits (P33 to P30) in port P3 XOR (P3), 00001111B ; P33 to P30 ← 33 P to 30 P |
|
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 |