| Electronic Components Datasheet Search |
|
MB95F613K Datasheet(PDF) 37 Page - Cypress Semiconductor |
|
|
|||||||||||||||||||||||||||||
MB95F613K Datasheet(HTML) 37 Page - Cypress Semiconductor |
|
37 / 110 page ![]() Document Number: 002-04698 Rev. *A Page 37 of 110 PRELIMINARY MB95610H Series 15.1.3 Port 0 registers ■ Port 0 register functions ■ Correspondence between registers and pins for port 0 15.1.4 Port 0 operations ■ Operation as an output port ❐ A pin becomes an output port if the bit in the DDR0 register corresponding to that pin is set to “1”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ When a pin is used as an output port, it outputs the value of the PDR0 register to external pins. ❐ If data is written to the PDR0 register, the value is stored in the output latch and is output to the pin set as an output port as it is. ❐ Reading the PDR0 register returns the PDR0 register value. ❐ To use a pin shared with the LCDC as an output port, set a corresponding function select bit (SEG[35:32]) in the LCDC enable register 7 (LCDCE7) to “0” to select the general-purpose I/O port function, and then set the port input control bit (PICTL) in the LCDC enable register 1 (LCDCE1) to “1”. ■ Operation as an input port ❐ A pin becomes an input port if the bit in the DDR0 register corresponding to that pin is set to “0”. ❐ For a pin shared with other peripheral functions, disable the output of such peripheral functions. ❐ When using an analog input shared pin as an input port, set the corresponding bit in the A/D input disable register (lower) (AIDRL) to “1”. ❐ If data is written to the PDR0 register, the value is stored in the output latch but is not output to the pin set as an input port. ❐ Reading the PDR0 register returns the pin value. However, if the read-modify-write (RMW) type of instruction is used to read the PDR0 register, the PDR0 register value is returned. ❐ To use a pin shared with the LCDC as an input port, set a corresponding function select bit (SEG[35:32]) in the LCDCE7 register to “0” to select the general-purpose I/O port function, and then set the PICTL bit in the LCDCE1 register to “1”. ■ Operation as a peripheral function output pin ❐ A pin becomes a peripheral function output pin if the peripheral output function is enabled by setting the output enable bit of a peripheral function corresponding to that pin. ❐ The pin value can be read from the PDR0 register even if the peripheral function output is enabled. Therefore, the output value of a peripheral function can be read by the read operation on the PDR0 register. However, if the read-modify-write (RMW) type of instruction is used to read the PDR0 register, the PDR0 register value is returned. Register abbreviation Data Read Read by read-modify-write (RMW) instruction Write PDR0 0 Pin state is “L” level. PDR0 value is “0”. As output port, outputs “L” level. 1 Pin state is “H” level. PDR0 value is “1”. As output port, outputs “H” level. DDR0 0 Port input enabled 1 Port output enabled AIDRL 0 Analog input enabled 1 Port input enabled Correspondence between related register bits and pins Pin name P07 P06 P05 P04 P03 P02 P01 P00 PDR0 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 DDR0 AIDRL ---- |
|
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 |