| Electronic Components Datasheet Search |
|
STC12LE5604 Datasheet(PDF) 71 Page - STCmicro Technology Co,.Ltd |
|
|
|||||||||||||||||||||||||||||
STC12LE5604 Datasheet(HTML) 71 Page - STCmicro Technology Co,.Ltd |
|
71 / 377 page ![]() Chapter 4. Configurable I/O Ports of STC12C5620AD series 4.1 I/O Ports Configurations All I/O ports of STC12C5620AD may be independently configured to one of four modes by setting the corresponding bit in two mode registers PxMn (x= 0 ~ 3, n = 0, 1).The four modes are quasi-bidirectional (standard 8051 port output), push-pull output, input-only or open-drain output. All port pins default to quasi-bidirectional after reset. Each one has a Schmitt-triggered input for improved input noise rejection. Any port can drive 20mA current, but the whole chip had better drive lower than 90mA current. Configure I/O ports mode P3 Configure <P3.7, P3.6, P3.5, P3.4, P3.3, P3.2, P3.1, P3.0 port> (P3 address address B0H)) P3M0 7 0 P3M1 [7 0 I/O ports Mode 00 quasi_bidirectional(standard 8051 I/O port output , Sink Current up to 20mA , pull-up Current is 230μA , Because of manufactured error, the actual pull-up current is 250uA ~ 150uA 01 push-pull output(strong pull-up output current can be up to 20mA, resistors need to be added to restrict current 1 0 input-only (high-impedance ) 11 Open Drain internal pull-up resistors should be disabled and external pull-up resistors need to join. Example: MOV P3M0, #10100000B MOV P3M1, #10010000B ;P3.7 in Open Drain mode, P3.5 in high-impedance input, P3.4 in strong push-pull output, P3.3/P3.2/P3.1/P3.0 in quasi_bidirectional/weak pull-up /weak pull-up P2M0 7 0 P2M1 [7 0 I/O ports Mode 00 quasi_bidirectional(standard 8051 I/O port output , Sink Current up to 20mA , pull-up Current is 230μA , Because of manufactured error, the actual pull-up current is 250uA ~ 150uA 01 push-pull output(strong pull-up output current can be up to 20mA, resistors need to be added to restrict current 1 0 input-only (high-impedance ) 11 Open Drain internal pull-up resistors should be disabled and external pull-up resistors need to join. Example: MOV P2M0, #10100000B MOV P2M1, #11000000B ;P2.7 in Open Drain mode, P2.6 in strong push-pull output, P2.5 in high-impedance input, P2.4/P2.3/P2.2/ P2.1/P2.0 in quasi_bidirectional/weak pull-up /weak pull-up P2 Configure <P2.7, P2.6, P2.5, P2.4, P2.3, P2.2, P2.1, P2.0 port> (P2 address address A0H)) 71 |
|
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 |