Electronic Components Datasheet Search |
|
EM6603WS11 Datasheet(PDF) 11 Page - EM Microelectronic - MARIN SA |
|
EM6603WS11 Datasheet(HTML) 11 Page - EM Microelectronic - MARIN SA |
11 / 39 page EM6603 03/02 REV. G/439 Copyright 2002, EM Microelectronic-Marin SA 11 www.emmicroelectronic.com 6.3 PortB The EM6603 has one four bit general purpose I/O port. Each bit PB(0:3) can be separately configured by software to be either input or output by writing to the corresponding bit of the CIOPortB control register. The PortB register is used to read data when in input mode and to write data when in output mode. On each terminal Pull-Up/Down resistor can be selected by metal option which are active only when selected as input. Input mode is set by writing 0 to the corresponding bit in the CIOPortB register. This results in a high impedance state with the status of the pin being read from register PortB. Output mode is set by writing 1 to the corresponding bit in the CIOPortB register. Consequently the output terminal follows the status of the bits in the PortB register. At initial RESET the CIOPortB register is set to 0, thus setting the port to an input. Additionally, PB0 can also be used as a three tone buzzer output. For details see section 7. 6.4 PortB registers Table 14.PortB input status register - PortB Bit Name Reset R/W Description 3 PB3 - R/W PB3 I/O data 2 PB2 - R /W PB2 I/O data 1 PB1 - R/W PB1 I/O data 0 PB0 - R /W PB0 I/O data Table 15.PortB Input/Output control register - CIOportB Bit Name Reset R/W Description 3 CIOPB3 0 R/W PB3 Input/Output select 2 CIOPB2 0 R/W PB2 Input/Output select 1 CIOPB1 0 R/W PB1 Input/Output select 0 CIOPB0 0 R/W PB0 Input/Output select Figure 7.Port B If metal mask option 5Y (Input blocked when Output) is used and the port is declared as the Output (CIOPortB = 1111b) the real port information cannot be read directly. In this case no direct logic operations (like AND PortB) on Output ports are possible. This logic operation can be made with an image of the Port saved in the RAM which we store after on the output port. This is valid for PortB, PortC and PortD when declared as output and the metal Option 5Y is used. In the case of metal option 5N selected direct logic operations on output ports are possible. If metal mask option 6Y (Output Hi-Z in SLEEP mode) the active Output will go Tristate when the circuit goes into SLEEP mode. In the case of 6N output stay active also in the SLEEP mode. |
Similar Part No. - EM6603WS11 |
|
Similar Description - EM6603WS11 |
|
|
Link URL |
Privacy Policy |
ALLDATASHEET.COM |
Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Datasheet Upload | Contact us | Privacy Policy | 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 |