Electronic Components Datasheet Search |
|
M38C36M4M Datasheet(PDF) 11 Page - Renesas Technology Corp |
|
M38C36M4M Datasheet(HTML) 11 Page - Renesas Technology Corp |
11 / 63 page 10 SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS 38C3 Group I/O PORTS [Direction Registers (ports P2, P4, P50, P52–P57, and P6–P8)] The I/O ports P2, P4, P50, P52–P57, and P6–P8 have direction reg- isters which determine the input/output direction of each individual pin. Each bit in a direction register corresponds to one pin, each pin can be set to be input port or output port. When “0” is written to the bit corresponding to a pin, that pin be- comes an input pin. When “1” is written to that bit, that pin becomes an output pin. If data is read from a pin set to output, the value of the port output latch is read, not the value of the pin itself. Pins set to input are float- ing. If a pin set to input is written to, only the port output latch is written to and the pin remains floating. [Direction Registers (ports P0 and P1)] Ports P0 and P1 have direction registers which determine the input/ output direction of each individual port. Each port in a direction register corresponds to one port, each port can be set to be input or output. When “0” is written to the bit 0 of a direction register, that port be- comes an input port. When “1” is written to that port, that port be- comes an output port. Bits 1 to 7 of ports P0 and P1 direction regis- ters are not used. Pull-up/Pull-down Control By setting the PULL register A (address 001616) or the PULL register B (address 001716), ports except for ports P3 and P51 can control either pull-down or pull-up (pins that are shared with the segment output pins for LCD are pull-down; all other pins are pull-up) with a program. However, the contents of PULL register A and PULL register B do not affect ports programmed as the output ports. Port P8 Output Selection Ports P80 to P87 can be switched to N-channel open-drain output by setting “1” to the port P8 output selection register. Fig. 8 Structure of PULL register A and PULL register B Pin P00/SEG8 – P07/SEG15 P10/SEG16 – P17/SEG23 P20/SEG0 – P27/SEG7 P30/SEG24 – P37/SEG31 Name Port P0 Port P1 Port P2 Port P3 Input/Output Input/Output, port unit Input/Output, port unit Input/Output, individual bits Output, individual bits I/O format CMOS compatible input level CMOS 3-state output CMOS compatible input level CMOS 3-state output CMOS compatible input CMOS 3-state output CMOS 3-state output Non-port function LCD segment output LCD segment output LCD segment output LCD segment output Related SFRs PULL register A Segment output enable reg- ister PULL register A Segment output enable reg- ister PULL register A Segment output enable reg- ister Segment output enable reg- ister Ref. No. (1) (2) Table 4 List of I/O port function (1) Fig. 9 Structure of port P8 output selection register P00–P07 pull-down P10–P17 pull-down P20–P27 pull-down Not used P70, P71 pull-up P80–P87 pull-up PULL register A (PULLA : address 001616) b7 b0 P40–P43 pull-up P44–P47 pull-up P50, P52, P53 pull-up P54–P57 pull-up P60, P63 pull-up P64–P67 pull-up Not used (return “0” when read) 0 : Disable 1 : Enable PULL register B (PULLB : address 001716) b7 b0 Note : The contents of PULL register A and PULL register B do not affect ports programmed as the output ports. Not used (return “0” when read) 0 : CMOS output (in output mode) 1 : N-channel open-drain output (in output mode) Port P8 output selection register (P8SEL : address 0018 16) b7 b0 |
Similar Part No. - M38C36M4M |
|
Similar Description - M38C36M4M |
|
|
Link URL |
Privacy Policy |
ALLDATASHEET.COM |
Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Datasheet Upload | Contact us | Privacy Policy | 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 |