| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
SH89F52P/044PR bảng dữ liệu(PDF) 36 Page - SINOWEALTH Electronic Ltd |
|
|
|||||||||||||||||||||||||||||
SH89F52P/044PR bảng dữ liệu(HTML) 36 Page - SINOWEALTH Electronic Ltd |
|
36 / 105 page ![]() SH88F516(SH88F54/SH89F52) 36 8.7.4 Port Share The 40 bi-directional I/O ports can also share second or third special function. But the share priority should obey the Outer Most Inner Lest rule: The out most pin function in Pin Configuration has the highest priority, and the inner most pin function has the lowest priority. This means when one pin is occupied by a higher priority function (if enabled), it cannot be used as the lower priority functional pin , even the lower priority function is also enabled. Only until the higher priority function is closed by hardware or software, can the corresponding pin be released for the lower priority function use. When port share function is enabled, any read or write operation to port will only affect the data register while the port pin keeps unchanged until all the share functions are disabled. The 40 bi-directional I/O ports can provides some special functions: PORT0: - AN0 - AN7 (P0.0 - P0.7): ADC input channel - Vref (P0.0): ADC external reference voltage Table 8.17 PORT0 Share Table Pin No. Priority Function Enable bit TQFP48 QFP44 LQFP44 40 37 37 1 Vref Set REFC bit in ADCON register 2 AN0 Set ADCH.0 bit in ADCH register and SCH[2:0] = 000 in ADCON register 3 P0.0 Clear REFC bit in ADCON register and ADCH.0 bit in ADCH register 39-33 36-30 36-30 1 AN1-7 Set ADCH.1-7 bits in ADCH register and SCH[2:0] = 001-111 in ADCON register 2 P0.1-0.7 Clear ADCH.1 - 7 bits in ADCH register PORT1: - T2 (P1.0): Timer2 external input - T2EX (P1.1): Timer2 capture function external input - RXD1 (P1.2): EUART1 input - TXD1 (P1.3): EUART1 output - SS ------- (P1.4): SPI slave select - MOSI (P1.5): Master Output Slave Input - MISO (P1.6): Master Input Slave Output - SCK (P1.7): SPI clock - CMP0P (P1.2): CMP0 positive input - CMP0N (P1.3): CMP0 negative input - CMP0O (P1.4): CMP0 output Table 8.18 PORT1 Share Table Pin No. Priority Function Enable bit TQFP48 QFP44 LQFP44 43 40 40 1 T2 Set TR2 bit in T2CON register and set C/T2 ------- bit in T2MOD register 2 P1.0 Clear TR2 bit in T2CON register and C/T2 ------- bit in T2MOD register 44 41 41 1 T2EX Set TR2 bit in T2CON register, set C/T2 ------- bit in T2MOD register, EXEN2 = 1 2 P1.1 Clear TR2 bit in T2CON register, set C/T2 ------- bit in T2MOD register, EXEN2 = 0 45 42 42 1 CMP0P Set CMPEN bit in CMP0CON 2 RXD1 Set REN1 bit in SCON1 register 3 P1.2 Clear CMPEN bit in CMP0CON and REN1 bit in SCON1 register (to be continued) |
|
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 |