| 数据搜索系统,热门电子元器件搜索 |
|
9202 数据表(PDF) 47 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
9202 数据表(HTML) 47 Page - STMicroelectronics |
|
47 / 175 page ![]() 47/175 UPSD3254A, UPSD3254BV, UPSD3253B, UPSD3253BV I/O PORTS (MCU MODULE) The MCU Module has five ports: Port 0, Port 1, Port 2, Port 3, and Port 4. (Refer to the PSD Mod- ule section on I/O ports A,B,C and D). Ports P0 and P2 are dedicated for the external address and data bus and is not available in the 52-pin package devices. Port 1 - Port 3 are the same as in the standard 8032 micro-controllers, with the exception of the additional special peripheral functions. All ports are bi-directional. Pins of which the alternative function is not used may be used as normal bi-di- rectional I/O. The use of Port 1 -Port 4 pins as alternative func- tions are carried out automatically by the uPSD325X devices provided the associated SFR Bit is set HIGH. The following SFR registers (Tables 29, 30, and 31) are used to control the mapping of alternate functions onto the I/O port bits. Port 1 alternate functions are controlled using the P1SFS register, except for Timer 2 and the 2nd UART which are enabled by their configuration registers. P1.0 to P1.3 are default to GPIO after reset. Port 3 pins 6 and 7 have been modified from the standard 8032. These pins that were used for READ and WRITE control signals are now GPIO or I2C bus pins. The READ and WRITE pins are assigned to dedicated pins. Port 3 (I2C) and Port 4 alternate functions are con- trolled using the P3SFS and P4SFS Special Func- tion Selection registers. After a reset, the I/O pins default to GPIO. The alternate function is enabled if the corresponding bit in the PXSFS register is set to '1.' Other Port 3 alternative functions (UART, Interrupt, and Timer/Counter) are enabled by their configuration register and do not require setting of the bits in P3SFS. Table 28. I/O Port Functions Table 29. P1SFS (91H) Table 30. P3SFS (93H) Table 31. P4SFS (94H) Port Name Main Function Alternate Port 1 GPIO Timer 2 - Bits 0,1 2nd UART - Bits 2,3 ADC - Bits 4..7 Port 3 GPIO UART - Bits 0,1 Interrupt - Bits 2,3 Timers - Bits 4,5 I2C - Bits 6,7 Port 4 GPIO DDC - Bits 0..2 PWM - Bits 3..7 USB +/- USB +/- Only 76 543210 0=Port 1.7 1=ACH3 0=Port 1.6 1=ACH2 0=Port 1.5 1=ACH1 0=Port 1.4 1=ACH0 Bits Reserved Bits Reserved 76 543210 0 = Port 3.7 1 = SCL from I2C unit 0 = Port 3.6 1 = SDA from I2C unit Bits are reserved. 76 543210 0=Port 4.7 1=PWM 4 0=Port 4.6 1=PWM 3 0=Port 4.5 1=PWM 2 0=Port 4.4 1=PWM 1 0=Port 4.3 1=PWM 0 0=Port 4.2 1=VSYNC 0=Port 4.1 1=DDC - SCL 0=Port 4.0 1=DDC - SDA |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |