09.07.2015 Views

mitsubishi - Al Kossow's Bitsavers

mitsubishi - Al Kossow's Bitsavers

mitsubishi - Al Kossow's Bitsavers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MITSUBISHI MICROCOMPUTERSMSL81S6P2048-BIT STATIC RAM WITH I/O PORTS AND TIMERStatus Register (7 bits)The status register is a 7-bit latched register. The loworder 5bits (bits O~4) are used as status flags for the I/O ports. Bit6 is as a status flag for the counter/timer. The contents ofthe status register are transferred into the CPU by reading(INPUT instruction, address I/O XXXXXOOO). Details of thefunctions of the individual bits of the status register areshown in Table 3.Table3 Bit functions of the status registerBit Symbol Function0 INTR A PORT A INTERRUPT REQUEST1 A BF PORT A BUFFER FULL FLAG2 INTE A PORT A INTERRUPT ENABLE '3 INTR B PORT B INTERRUPT REQUEST4 B BF PORT B BUFFER FULL FLAG5 INTE B PORT B INTERRUPT ENABLE6 TIMER COUNTER/TIMER INTERRUPT7 - THIS BIT IS NOT USED.(SET TO 1 WHEN THE FINAL LIMITOF THE COUNTER/TIMER IS REACHEDAND IS RESET TO 0 WHI:N THESTATUS IS READ)1/0 PortsCommand/status registers (8 bitsl7 bits)These registers are assigned address XXXXXOOO. When executingan OUTPUT instruction, the contents of the commandregister are rewritten. When executing an INPUT instructionthe contents of the status register are read.Port A Register (8 bits)Port A Register is assigned address XXXXX001. This registercan be programmed as an input or output by setting theappropriate bits of the command register as shown in Table2.Port A can be operated in basic or strobe made and isassigned I/O terminal PAo~PA7.Port B Register (8 bits)Port B register is assigned address XXXXX010. As with PortA register, this register can be programmed as an input oroutput by setting the appropriate bits of the command registeras shown in Table 2. Port B can be operated in basic orstrobe mode and is assigned I/O terminals PBo~PB7.Port C Register (6 bits)Port C register is assigned address XXXXXOll. This port isused for controlling input/output operations of ports A and Bby selectively setting bits 2 and 3 of the command registeras shown in Table 2. Details of the functions of the varioussetting of bits 2 and 3 are shown in Table 4. Port C isassigned I/O terminals PCa ~ PCs and when used as portcontrol signals, the 3 low-order bits are assigned for port Awhile the 3 high-order bits are assigned for port B.IITable 4 Functions of port CState~~IALT 1 ALT 2 ALT 3PC 5 Input Output OutputPC4 Input Output OutputPC3 Input Output OutputPC2 Input Output A STB (port A strobe)PC, Input Output A BF (port A buffer full)PCa Input Output A INTR (port A interrupt)B STB (port B strobe)B BF (port buffer full)B I NTR (port B interrupt)A STB (port A strobe)A BF (port A buffer full)A INTR (port A interrupt)ALT 4.• MITSUBISHI"ELECTRIC6-49

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

Saved successfully!

Ooh no, something went wrong!