| Electronic Components Datasheet Search |
|
SH79F166AP/044PR Datasheet(PDF) 33 Page - SINOWEALTH Electronic Ltd |
|
|
|||||||||||||||||||||||||||||
SH79F166AP/044PR Datasheet(HTML) 33 Page - SINOWEALTH Electronic Ltd |
|
33 / 113 page ![]() SH79F166A 33 7.7 I/O Port 7.7.1 Features 41 bi-directional I/O ports Share with alternative functions The SH79F166A has 41 bi-directional I/O ports. The PORT data is put in Px register. The PORT control register (PxCRy) controls the PORT as input or output. Each I/O port has an internal pull-high resistor, which is controlled by PxPCRy when the PORT is used as input (x = 0-5, y = 0-7). For SH79F166A, some I/O pins can share with alternative functions. There exists a priority rule in CPU to avoid these functions be conflict when all the functions are enabled. (Refer to Port Share Section for details). 7.7.2 Register Table 7.15 Port Control Register E1H - E5H Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 P0CR (E1H, Bank0) P0CR.7 P0CR.6 P0CR.5 P0CR.4 P0CR.3 P0CR.2 P0CR.1 P0CR.0 P1CR (E2H, Bank0) P1CR.7 P1CR.6 P1CR.5 P1CR.4 P1CR.3 P1CR.2 P1CR.1 P1CR.0 P2CR (E3H, Bank0) P2CR.7 P2CR.6 P2CR.5 P2CR.4 P2CR.3 P2CR.2 P2CR.1 P2CR.0 P3CR (E4H, Bank0) P3CR.7 P3CR.6 P3CR.5 P3CR.4 P3CR.3 P3CR.2 P3CR.1 P3CR.0 P4CR (E5H, Bank0) - - - P4CR.4 P4CR.3 P4CR.2 P4CR.1 P4CR.0 P5CR (E1H, Bank1) - - - - P5CR.3 P5CR.2 P5CR.1 P5CR.0 R/W R/W R/W R/W R/W R/W R/W R/W R/W Reset Value (POR/WDT/LVR/PIN) 0 0 0 0 0 0 0 0 Bit Number Bit Mnemonic Description 7-0 PxCRy x = 0-5, y = 0-7 Port input/output direction control Register 0: input mode 1: output mode Table 7.16 Port Pull up Resistor Control Register E9H - ECH Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 P0PCR (E9H, Bank0) P0PCR.7 P0PCR.6 P0PCR.5 P0PCR.4 P0PCR.3 P0PCR.2 P0PCR.1 P0PCR.0 P1PCR (EAH, Bank0) P1PCR.7 P1PCR.6 P1PCR.5 P1PCR.4 P1PCR.3 P1PCR.2 P1PCR.1 P1PCR.0 P2PCR (EBH, Bank0) P2PCR.7 P2PCR.6 P2PCR.5 P2PCR.4 P2PCR.3 P2PCR.2 P2PCR.1 P2PCR.0 P3PCR (ECH, Bank0) P3PCR.7 P3PCR.6 P3PCR.5 P3PCR.4 P3PCR.3 P3PCR.2 P3PCR.1 P3PCR.0 P4PCR (EDH, Bank0) - - - P4PCR.4 P4PCR.3 P4PCR.2 P4PCR.1 P4PCR.0 P5PCR (E9H, Bank1) - - - - P5PCR.3 P5PCR.2 P5PCR.1 P5PCR.0 R/W R/W R/W R/W R/W R/W R/W R/W R/W Reset Value (POR/WDT/LVR/PIN) 0 0 0 0 0 0 0 0 Bit Number Bit Mnemonic Description 7-0 PxPCRy x = 0-5, y = 0-7 Input Port internal pull-high resistor enable/disable control 0: internal pull-high resistor disabled 1: internal pull-high resistor enabled |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |