12.07.2015 Views

MC80F7708 - abov.co.kr

MC80F7708 - abov.co.kr

MC80F7708 - abov.co.kr

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>MC80F7708</strong>9.2 I/O Ports ConfigurationR0 PortR0 is a 4-bit CMOS bidirectional I/O port (address 0C0 H ).Each I/O pin can independently used as an input or an outputthrough the R0IO register (address 0C1 H ).R0 has internal pull-ups that is independently <strong>co</strong>nnected ordis<strong>co</strong>nnected by R0PU. The <strong>co</strong>ntrol registers for R0 areshown below.In addition, Port R0 is multiplexed with various specialfeatures. The <strong>co</strong>ntrol register PSR0 (address 0AA H ) <strong>co</strong>ntrolsthe selection of alternate function. After reset, thisvalue is “0”, port may be used as normal I/O port.To use alternate function such as External Interrupt ratherthan normal I/O, write “1” in the <strong>co</strong>rresponding bit ofPSR0.Port PinR01--R04R06R07Alternate FunctionEC0 (Timer0 Event Input)TX0 (TX0 Output)RX0 (RX0 Input)BUZO (Buzzer Output)INT0 (External Interrupt 0)INT1 (External Interrupt 1)Note: R0IO, R0PU, P0OD and PSR0 are write-only registers.They can not be read and can not be accessed by bitmanipulation instruction. Do not use read or read-modifywriteinstruction. Use byte manipulation instruction.R0 Data RegisterR0ADDRESS : 0C0 HRESET VALUE : 00-0--0- BR07 R06 - R04 - - R01 -R0 Direction RegisterR0IOR0 Pull-upSelection RegisterR0PUR0 Open DrainSelection RegisterR0ODPortSelection Register 0PSR0ADDRESS : 0C1 HRESET VALUE : 00-0--0- B- - - -Port Direction0: Input1: OutputADDRESS :0A5 HRESET VALUE : 00-0--0- B- - --Pull-up select0: Without pull-up1: With pull-upADDRESS :0A0 HRESET VALUE : 00-0--0- B- - - -Open Drain select0: No Open Drain1: Open DrainADDRESS :0AA HRESET VALUE : 00-0000- BINT1I INT0I - BUZO RX0I TX0O EC0I -R1 PortsR1 is an 1-bit CMOS bidirectional I/O port (address0C2 H ). Each I/O pin can independently used as an input oran output through the R1IO register (address 0C3 H ).R1 has internal pull-up that is independently <strong>co</strong>nnected ordis<strong>co</strong>nnected by register R1PU. The <strong>co</strong>ntrol registers forR1 are shown below.Port R1 is multiplexed with two special features. The <strong>co</strong>ntrolregister <strong>co</strong>ntrols the selection of alternate function. Afterreset, this value is “0”, port may be used as normal I/Oport. The way to select alternate function such as PWM1or Timer Output Wave will be shown in each peripheralsection.Note: R1IO, R1PU, P1OD and PSR1 are write-only registers.They can not be read and can not be accessed by bitmanipulation instruction. Do not use read or read-modifywriteinstruction. Use byte manipulation instruction.INT1I (External Interrupt 1)0: R07 Port1: INT1BUZO (Buzzer Output)0: R04 Port1: BUZOTX0O (TX0 Output)0: -1: TX0INT0I (External Interrupt 0)0: R06 Port1: INT0RX0I (RX0 Input)0: -1: RX0EC0I (Timer0 Event Input)0: R01 Port1: EC036 December 3, 2012 Ver 1.21

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!