| Electronic Components Datasheet Search |
|
ST63140 Datasheet(PDF) 29 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST63140 Datasheet(HTML) 29 Page - STMicroelectronics |
|
29 / 86 page ![]() DDR DR Mode Option 0 0 Input With on-chip pull-up resistor 0 1 Input Without on-chip pull-up resistor 1 X Output Open-drain or Push-Pull Note: X: Means don’t care. Table 8. I/O Port Options Selection DRA, DRB, DRC Port A, B, C Data Register ( C0h PA, C1h PB, C2h PC Read/ Write ) D7 D6 D5 D4 D3 D2 D1 D0 PA0 - PA7 = Data Bits PB0 - PB7 = Data Bits PC0 - PC7 = Data Bits Figure 24. Port A, B, C Data Register DDRPA, DDRPB,DDRPC Port A, B, C Data Direction Register ( C4h PA, C5h PB, C6h PC Read/ Write ) D7 D6 D5 D4 D3 D2 D1 D0 PA0 - PA7 = Data Direction Bits PB0 - PB7 = Data Direction Bits PC0 - PC7 = Data Direction Bits “0” Defines bit as Inpu t ”1” Defines bit as Outpu t Figure 25. Port A, B, C Data Direction Register INPUT/OUTPUT PORTS (Continued) PA7-PA0. These are the I/O port A data direction bits. When a bit is cleared to zero the related I/O line is in input mode, if bit is set to one the related I/O line is in output mode. Reset at power-on. PB7-PB0. These are the I/O port B data direction bits. When a bit is cleared to zero the related I/O line is in input mode, if bit is set to one the related I/O line is in output mode. Reset at power-on. PC7-PC0. These are the I/O port C data direction bits. When a bit is cleared to zero the related I/O line is in input mode, if bit is set to one the related I/O line is in output mode. Set to 04h at power-on. Bit 2 (PC2 pin) is set to one (output mode selected) as this line is intended for TV ON-OFF switching. I/O Pin Programming Each pin can be individually programmed as input or output with different input and output configurations. This is achieved by writing to the relevant bit in the data (DR) and data direction register (DDR). Table 8 shows all the port configurations that can be se- lected by the user software. PA7-PA0. These are the I/O port A data bits. Reset at power-on. PB7-PB0. These are the I/O port B data bits. Reset at power-on. PC7-PC0. These are the I/O port C data bits. Reset at power-on. ® ST63140,142,126,156 25/82 |
|
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 |