| Electronic Components Datasheet Search |
|
7733 Datasheet(PDF) 826 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
7733 Datasheet(HTML) 826 Page - Renesas Technology Corp |
|
826 / 940 page ![]() 7736 Group User’s Manual 3–4 PROGRAMMABLE I/O PORTS 3.1.2 Port Pi register Data is input from or output to the external by writing or reading data to or from a port register. A port register consists of a port latch, which holds the output data, and a circuit, which reads the pin state. Each bit of the port register corresponds to one specified pin. Figure 3.1.3 shows the structure of the port Pi (i = 0 to 10) register. (1) How to output data from programmable I/O port Set the corresponding bit of the port direction register to the output mode. Write data to the corresponding bit of the port register, and then the data is written into the port latch. Data which is set in the port latch is output. When a bit of a port register which corresponds to a port set for the output mode is read out, the contents of the port latch, instead of pin state, is read out. Accordingly, output data can correctly be read out without influence of external load, etc. (Refer to Figures 3.2.1 and 3.2.2) (2) How to input data from programmable I/O port Set the corresponding bit of the port direction register to the input mode. The pin enters a floating state. When reading the corresponding bit of the port register in state , data which is input from the pin can be read in. When data is written to a port register which corresponds to a port set for the input mode, the data is written only into the port latch and not output to the external. Pins retain a floating state. (3) How to output data from output-only port Write data to the corresponding bit of the port register, and then the data is written into the port latch. Data which is set in the port latch is output. When a bit of a port register which corresponds to a port is read out, the contents of the port latch, instead of pin state, is read out. Accordingly, output data can correctly be read out without influence of external load, etc. (Refer to Figures 3.2.1 and 3.2.2) 3.1 Programmable I/O ports and Output-only ports |
|
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 |