| Moteur de recherche de fiches techniques de composants électroniques |
|
SM5K3 Fiches technique(PDF) 21 Page - Sharp Corporation |
|
|
|||||||||||||||||||||||||||||
SM5K3 Fiches technique(HTML) 21 Page - Sharp Corporation |
|
21 / 28 page ![]() SM5K3/SM5K4/SM5K5 - 21 - I/O Ports The SM5K3/5K4/5K5 have 24 ports : 8-input, 4- output and 12-I/O port. To verify the input, use suitable instruction to transfer the input on the pin directly to the A register. To select the output latch register to which the content of the A register is to be transferred, and to select the input port from which the signal or data is to be transferred to the A register, use the BL register. For details of BL settings and associated ports, refer to Table 1. • Port P00 to P03 (CMOS inverting output port) The data transfers in 4-bit string (use OUT or OUTL instruction) or in unit of 1-bit (use ANP or ORP instruction). • Port P10 to P13 (input port with pull-up resistor) The data transfers in unit of 4-bit. This port can be used as standby/external interrupt input or count pulse input. The P1 port can also be used as a standby release port without requiring specific setting on P12 and P13 pins. Pins P10 and P11 require settings through the mode resister RE. When using the P1 port as an external interrupt input, use pins P10 and P11 with suitable settings in the mode register RE. When using the P1 port as the count pulse input, use P11 pin. • Port P20 to P23 (I/O port with pull-up resistor) Each bit can be independently be set its direction and can be transferred independently or in combination of other 3-bit. The direction of the bits is determined by the RF register. After reset, the P2 port is set input. • Port P30 to P33 (input port with pull-up resistor) The data transfers in unit of 4-bit. The port can also be used as A/D analog voltage input. To use the P3 port as the A/D port, set the mode register R3. • Port P40 to P43 (I/O port with pull-up resistor) The data transfers in unit of 4-bit. When set output, content of each bit can be set. Executing the input instruction (IN) sets the P4 ports (P40 to P43) to input; and executing output instruction (OUT, ANP or ORP) sets the port to output. After reset, the P4 port is set input. • Port P50 to P53 (I/O port with pull-up resistor) The data transfers in unit of 4-bit. When set output, content of each bit can be set. Executing the input instruction (IN) sets the P5 ports (P50 to P53) to input; and executing output instruction (OUT, ANP or ORP) sets the port to output. After reset, the P5 port is set input. Flags The SM5K3/5K4/5K5 have 4 flags (C flag and interrupt request flags [IFA, IFB, IFT] ), which are used to perform setting and judgments. |
|
Lien URL |
| ALLDATASHEET vous a-t-il été utile ? [ DONATE ] |
À propos de Alldatasheet | Publicité | Contactez-nous | Politique de confidentialité | Lien vers la fiche technique | Echange de liens | Fabricants 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 |