| Electronic Components Datasheet Search |
|
ATPL00B Datasheet(PDF) 47 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
ATPL00B Datasheet(HTML) 47 Page - ATMEL Corporation |
|
47 / 152 page ![]() Atmel ATPL00B [datasheet] 43028A-ATPL - 9/12 47 Figure 4-14. Pins without AOF structure Pseudo-bidirectional mode Ports 1, 3, 4 and 5 have internal pull-ups. Each I/O line can be independently used as an input or an output. To be used as an input, the port bit register must contain a „1‟; When an SFR port bit is set to „1‟ the PMOS port driver is turned on one clock cycle and then is turned off. Then, the pin is pulled high by a weak internal pull-up, and can be pulled low by an external source. In the ADD8051C3A included in ATPL00B, the pull-up consists of 33Kohm resistors. P1, P3, P4 and P5 registers are set to FFH by default (configured as inputs). Push-Pull mode Ports 3, 4 and 5 can be configured as Push-Pull output ports using P3M, P4M and P5M SFRs respectively. Setting a bit in these SFRs to `1‟ configures the corresponding port as Push-Pull mode. Setting a bit in these SFRs to „0‟ configures the corresponding port as Pseudo-bidirectional. P3M, P4M and P5M are set to 00H by default (configured in Pseudo-bidirectional mode). 4.7.2 Read-Modify-Write Feature Some instructions that read a port read the register and others read the pin. Only the read-modify-write instruction read the register. The instructions that read the register rather than the pin are the ones that read a value, possibly change it, and then rewrite it to the register. When the destination operand is a port, or a port bit, these instructions read the register rather than the pin: ANL, ORL, XRL, JBC, CPL, INC, DEC, DJNZ, MOV PX.Y,C, CLR PX.Y, SET PX.Y. The last three instructions are bit modify instructions. They read the port byte, all 8 bits, modify the target bit, then the modified byte is written to the register. The-modify-write instructions are directed to the register to avoid a possible misinterpretation of the voltage level at the pin. When a port register is set to „1‟ to using the pin as input an external source can be pulling the pin to „0‟, if we need to know the configuration of the port we need to read the register and to know the state of the external source we need to read the pin. 4.7.3 Accessing External Memories Accesses to external memory are of two types: accesses to external program code and accesses to external program data. Both share ports ADDRESS and DATA buses. Accesses to external program code use signal PSEN (program store enable) as the read strobe. Accesses to external program data use RD(P3.7) or WR(P3.6) to strobe the memory. Fetches from external program memory always use a 16-bit logical address, fetches to external data can use 16-bit or 8-bit logical address. D Q CLK Q Pj.i REG. register read write data write clock Pj.i PIN pin read OE D Q CLK Q Pj.i REG. D Q CLK Q Pj.i REG. register read write data write clock Pj.i PIN pin read OE OE |
|
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 |