| Electronic Components Datasheet Search |
|
TMP88CS38FG Datasheet(PDF) 48 Page - Toshiba Semiconductor |
|
|
|||||||||||||||||||||||||||||
TMP88CS38FG Datasheet(HTML) 48 Page - Toshiba Semiconductor |
|
48 / 226 page ![]() TMP88CS38/CM38A/CP38A 2007-09-12 88CS38-48 2.2.3 Port P4 (P47 to P40) Port P4 is an 8-bit input/output port which can be configured as an input or an output in one-bit unit under software control. Input/output mode is specified by the corresponding bit in the port P4 input/output control register (P4CR). Port P4 is configured as an input if its corresponding P4CR bit is cleared to “0”, and as an output if its corresponding P4CR bit is set to “1”. During reset, P4CR is initialized to “0”, which configures port P4 as an input. The P4 output latches are also initialized to “1”. Data is written into the output latch regardless of the P4CR contents. Therefore initial output data should be written into the output latch before setting P4CR. Port P4 is also used as a pulse width modulation (PWM) output. When used as a PWM output pin, the output pins should be set to the output mode and beforehand the output latch should be set to “1”. Note: Input mode port is read the state of input pin. When input/output mode is used mixed, the contents of output latch setting input mode may be changed by executing bit manipulation instructions. 7 6 5 4 3 2 1 0 P4 (00004H) P47 7 PWM P46 6 PWM P45 5 PWM P44 4 PWM P43 3 PWM P42 2 PWM P41 1 PWM P40 0 PWM (Initial value: 1111 1111) 7 6 5 4 3 2 1 0 P4CR (0000CH) P47CR P46CR P45CR P44CR P43CR P42CR P41CR P40CR (Initial value: 0000 0000) P4CR I/O control for port P4 0: Input mode 1: Output mode Write only Note 1: i = 7 to 0. Note 2: P4CR cannot used the read-modify-write instructions. (Bit manipulation instructions such as SET, CLR, etc. and logical operation such as AND, OR, etc.) Figure 2.2.4 Port P4 and P4CR Data output D Q STOP OUTEN Output latch P4i PWMi P4iCR Data input |
|
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 |