| Electronic Components Datasheet Search |
|
TMP86CS25AFG Datasheet(PDF) 68 Page - Toshiba Semiconductor |
|
|
|||||||||||||||||||||||||||||
TMP86CS25AFG Datasheet(HTML) 68 Page - Toshiba Semiconductor |
|
68 / 194 page ![]() Page 58 5. I/O Ports 5.5 Port P6 (P67 to P60) TMP86CS25AFG 5.5 Port P6 (P67 to P60) Port P6 is an 8-bit input/output port which can be configured as an input or an output in one-bit unit. Port P6 is also used as an analog input, Key on Wake up input, timer/counter input and external interrupt input. Input/output mode is specified by the P6 control register (P6CR), the P6 output latch (P6DR), and ADCCR1<AINDS>. During reset, P6CR and P6DR are initialized to “0” and ADCCR1<AINDS> is set to “1”. At the same time, the input data of pins P67 to P60 are fixed to “0”. To use port P6 as an input port, external interrupt input, timer/counter input or key on wake up input, set data of P6DR to “1” and P6CR to “0”. To use it as an output port, set data of P6CR to “1”. To use it as an analog input, set data of P6DR to “0” and P6CR to “0”, and start the AD. It is the penetration electric current measures by the analog voltage. Pins not used for analog input can be used as I/O ports. During AD conversion, output instructions should not be executed to keep a precision. In addition, a variable signal should not be input to a port adjacent to the analog input during AD conversion. When the AD converter is in use (P6DR = 0), bits mentioned above are read as “0” by executing input instructions. Figure 5-6 Port 6 Note 1: Do not set output mode to pin which is used for an analog input. Note 2: When used as an INT0, ECNT and ECIN pins of a secondary function, the respective bit of P6CR should be set to “0” and the P6 should set to “1”. Note 3: When used as an STOP2 to STOP5 pins of Key on Wake up, the respective bit of P6CR should be set to “0”. Note 4: When a read instruction for port P6 is executed, the bit of Analog input mode becomes read data “0”. Note 5: Although P6DR is a read/writer register, because it is also used as an input mode control function, read-modify-write instructions such as bit manipulate instructions cannot be used. Read-modify-write instruction writes the all data of 8-bit after data is read and modified. Because a bit setting Input mode read data of terminal, the output latch is changed by these instruction. So P6 port can not input data. P6DR (0006H) R/W 76 543 21 0 P67 AIN7 STOP5 P66 AIN6 STOP4 P65 AIN5 STOP3 P64 AIN4 STOP2 P63 AIN3 INT0 P62 AIN2 ECNT P61 AIN1 ECIN P60 AIN0 (Initial value: 0000 0000) 76 543 21 0 P6CR (000CH) (Initial value: 0000 0000) P6CR I/O control for port P6 (specified for each bit) AINDS = 1 (AD unused) AINDS = 0 (AD used) R/W P6DR = “0” P6DR = “1” P6DR = “0” P6DR = “1” 0 Input “0” fixed Input mode AD input Input mode 1 Output mode Output mode Data input (P6DR) Analog input Data output (P6DR) AINDS SAIN P6CRi P6CRi input P6i Note 1: i = 7 to 0, j = 7 to 4 Note 2: STOP is bit7 in SYSCR1 Note 3: SAIN is bit 0 to 3 in ADCCRA Note 4: STOPj is bit 4 to 7 is STOPCR. D Q D Q STOPj STOP Key on Wake up |
|
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 |