參數(shù)資料
型號: μPD789830
廠商: NEC Corp.
英文描述: 8 Bit Single Chip Microcontrollers(8 位微控制器)
中文描述: 8位單片機(jī)微控制器(8位微控制器)
文件頁數(shù): 82/211頁
文件大?。?/td> 1262K
代理商: ΜPD789830
第1頁第2頁第3頁第4頁第5頁第6頁第7頁第8頁第9頁第10頁第11頁第12頁第13頁第14頁第15頁第16頁第17頁第18頁第19頁第20頁第21頁第22頁第23頁第24頁第25頁第26頁第27頁第28頁第29頁第30頁第31頁第32頁第33頁第34頁第35頁第36頁第37頁第38頁第39頁第40頁第41頁第42頁第43頁第44頁第45頁第46頁第47頁第48頁第49頁第50頁第51頁第52頁第53頁第54頁第55頁第56頁第57頁第58頁第59頁第60頁第61頁第62頁第63頁第64頁第65頁第66頁第67頁第68頁第69頁第70頁第71頁第72頁第73頁第74頁第75頁第76頁第77頁第78頁第79頁第80頁第81頁當(dāng)前第82頁第83頁第84頁第85頁第86頁第87頁第88頁第89頁第90頁第91頁第92頁第93頁第94頁第95頁第96頁第97頁第98頁第99頁第100頁第101頁第102頁第103頁第104頁第105頁第106頁第107頁第108頁第109頁第110頁第111頁第112頁第113頁第114頁第115頁第116頁第117頁第118頁第119頁第120頁第121頁第122頁第123頁第124頁第125頁第126頁第127頁第128頁第129頁第130頁第131頁第132頁第133頁第134頁第135頁第136頁第137頁第138頁第139頁第140頁第141頁第142頁第143頁第144頁第145頁第146頁第147頁第148頁第149頁第150頁第151頁第152頁第153頁第154頁第155頁第156頁第157頁第158頁第159頁第160頁第161頁第162頁第163頁第164頁第165頁第166頁第167頁第168頁第169頁第170頁第171頁第172頁第173頁第174頁第175頁第176頁第177頁第178頁第179頁第180頁第181頁第182頁第183頁第184頁第185頁第186頁第187頁第188頁第189頁第190頁第191頁第192頁第193頁第194頁第195頁第196頁第197頁第198頁第199頁第200頁第201頁第202頁第203頁第204頁第205頁第206頁第207頁第208頁第209頁第210頁第211頁
CHAPTER 4 PORT FUNCTIONS
82
4.3 Port Function Control Registers
The following two types of registers are used to control the ports.
Port mode registers (PM0 to PM5
Pull-up resistor option register 0 (PU0)
Note
)
(1)
Port mode registers (PM0 to PM5
The port mode registers separately specify each port bit as being for input or output.
Each port mode register is manipulated using a 1-bit or 8-bit memory manipulation instruction.
A RESET input writes FFH into the port mode registers.
When port pins are used for alternate functions, the corresponding port mode register and output latch must
be set or reset as described in Table 4-4.
Note
)
Caution
When ports 2 and 4
interrupt request flag is set, because this port is also used as the input for an external
interrupt. To use ports 2 and 4 in output mode, therefore, the interrupt mask flag must be
set to 1 in advance.
Note
are acting as an output port, and its output level is changed, an
Note
PM4 and port 4 are provided to the
μ
PD78F9831 only.
Table 4-4. Port Mode Register and Output Latch Settings for Using Alternate Functions
Alternate Function
Pin Name
Name
Input/Output
PM
××
P
××
P20
INTP0
Input
1
×
P21
INTP1
Input
1
×
INTP2
Input
1
×
P22
BUZ
Output
0
0
P23
PCL
Output
0
0
P40
Note 1
INTP3
Input
1
×
P41
Note 1
INTP4
Input
1
×
P50 to P57
S39 to S32
Note 2
Output
×
×
Notes1.
μ
PD78F9831 only
When using the alternate function, set the alternate port function switching register (PF5) to 1 (see
(2)
in
Section 12.3
).
2.
Caution
When using the pins of port 2 as the serial interface, the I/O or output latch must be set
according to the function to be used. For how to set the latches, see (1) in Section 11.3.
Remark
×
PM
××
: Port mode register
P
××
: Port output latch
: Don't care
相關(guān)PDF資料
PDF描述
μPD78F9831 8 Bit Single Chip Microcontrollers(8 位微控制器)
μPD78F0974 8 Bit Single Chip Microcontrollers
μPD78F0988 8 Bit Single Chip Microcontrollers
μPD78F225GC 16 Bit General-Purpose Microcontrollers(16位通用微控制器)
μPD78215GC 16 Bit General-Purpose Microcontrollers(16位通用微控制器)
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PD78F0134 制造商:NEC 制造商全稱:NEC 功能描述:8-Bit Single-Chip Microcontrollers
PD78F0134(A) 制造商:NEC 制造商全稱:NEC 功能描述:8-Bit Single-Chip Microcontrollers
PD78F0134(A1) 制造商:NEC 制造商全稱:NEC 功能描述:8-Bit Single-Chip Microcontrollers
PD78F0134A 制造商:NEC 制造商全稱:NEC 功能描述:8-Bit Single-Chip Microcontrollers
PD78F0134A1 制造商:NEC 制造商全稱:NEC 功能描述:8-Bit Single-Chip Microcontrollers