Oki MSM80C154S, MSM83C154S manual Serial port control register Scon, Ren, Mode

Page 14

MSM80C154S/83C154S

 

 

 

 

 

 

 

 

 

¡ Semiconductor

Serial port control register (SCON)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

NAME

ADDRESS

MSB

 

 

 

 

 

 

 

 

 

 

 

LSB

7

 

6

 

5

4

 

3

 

2

 

1

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SCON

98H

SM0

 

SM1

 

SM2

REN

 

TB8

 

RB8

 

TI

 

RI

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BIT LOCATION

FLAG

 

 

 

 

 

FUNCTION

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SCON.0

RI

"End of serial port reception" interrupt request flag.

 

 

 

 

 

 

 

This flag must be reset by software during interrupt service routine.

 

 

 

This flag is set after the eighth bit of data has been received when in mode 0, or

 

 

by the STOP bit when in any other mode.

 

 

 

 

 

 

 

 

 

In mode 2 or 3, however, RI is not set if the RB8 data is "0" with SM2 = "1".

 

 

 

RI is set in mode 1 if STOP bit is received when SM2 = "1".

 

 

 

 

 

 

 

 

 

 

 

 

 

SCON.1

TI

"End of serial port tramsmission" interrupt request flag. This flag must be reset

 

 

by software during interrupt service routine.

 

 

 

 

 

 

 

This flag is set after the eighth bit of data has been sent when in mode 0, or after

 

 

the last bit of data has been sent when in any other mode.

 

 

 

 

 

 

 

 

 

SCON.2

RB8

The ninth bit of data received in mode 2 or 3 is passed to RB8.

 

 

 

 

 

The STOP bit is applied to RB8 if SM2 = "0" when in mode 1.

 

 

 

 

 

RB8 can not be used in mode 0.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SCON.3

TB8

The TB8 data is sent as the ninth data bit when in mode 2 or 3.

 

 

 

 

 

Any desired data can be set in TB8 by software.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SCON.4

REN

Reception enable control bit.

 

 

 

 

 

 

 

 

 

 

 

No reception when REN = "0".

 

 

 

 

 

 

 

 

 

 

 

Reception enabled when REN = "1".

 

 

 

 

 

 

 

 

 

 

SCON.5

SM2

If the ninth bit of received data is "0" with SM2 = "1" in mode 2 or 3, the "end of

 

 

reception" signal is not set in the RI flag.

 

 

 

 

 

 

 

 

 

The "end of reception" signal set in the RI flag if the STOP bit is not "1" when

 

 

 

SM2 = "1" in mode 1.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SCON.6

SM1

SM0

SM1

MODE

 

 

 

 

 

 

 

 

 

 

 

0

 

0

 

0

8-bit shift register I/O

 

 

 

 

 

 

 

0

 

1

 

1

8-bit UART variable baud rate

 

 

 

 

 

 

 

 

 

 

9-bit UART 1/32 XTAL1, 1/64 XTAL1 baud rate

SCON.7

SM0

1

 

0

 

2

 

 

1

 

1

 

3

9-bit UART variable baud rate

 

 

 

272

Image 14
Contents ¡SemiconductorSemiconductor MSM80C154S/83C154S FeaturesGeneral Description Cmos 8-bit MicrocontrollerMSM80C154S/83C154S ¡ Semiconductor2PORT SignalTIMER/COUNTER 0 Interrupt Address DecoderPsen PIN Configuration TOP ViewPin Plastic DIP 44 P1.4 P1.5 P1.6 P1.7 ResetPin Plastic QFP 25 P2.7 24 P2.6 23 P2.5 P2.4Pin Plastic Tqfp XTAL1 XTAL2 19 P3.7/RD 18 P3.6/WR Pin Plastic QFJ35 EA P3.0/RXD 34 NC 33 ALE P3.1/TXD ALE PIN DescriptionsMSM80C154S/83C154S¡ Semiconductor XTAL2 ¡ SemiconductorMSM80C154S/83C154SXTAL1 Diagram of Special Function Registers RegistersSpecial Function Registers Timer mode register Tmod GateCPU is reset Power control register PconInterrupt signal Tcon Timer control register TconInterrupt request flag for external interrupt TR1 TF0 TR0 IE1 IT1 IE0 IT0Mode Serial port control register SconREN Reserved bit. The output data is 1 if the bit is read Interrupt enable register IEInterrupt control bit for serial port Overall interrupt control bitPriority interrupt circuit control bit Priority is assigned when bit isInterrupt priority register IP PCT PT2 PT1 PX1 PT0 PX0Bank IZC When this bit is set toControl register Iocon Received at a serial portTimer 2 control register T2CON Memory Maps Program AreaBANK3 HEX 0FF AddressingindirectregisterBIT RAM BANK22FH MSM80C154S/83C154S Diagram of Internal Data Memory RAM0FFH 0FHAbsolute Maximum Ratings Recommended Operating ConditionsPort 0, ALE, Psen Electrical CharacteristicsDC Characteristics Maximum power supply current normal operation ICC mA Maximum power supply current idle mode ICC mAVO=0.1 Port 1, 2 Logical 1 to 0 Transition Output High Voltage Port 1, 2Logical 0 Input Current VI=0.1 Logical 1 Output Current 285 Output Measuring circuitsInput Falling Edge Psen Signal Width ALE Signal WidthAddress Setup Time To ALE Falling Edge Address Hold TimeInstr External program memory read cyclePORT0 External data memory access AC characteristics External data memory read cycle External data memory write cycleSerial port I/O Extension Mode AC characteristics Parameter Symbol Min Max UnitALE Shift Clock Input DataXTAL1 external clock input waveform conditions AC Characteristics Measuring ConditionsExternal Oscillator Signal External Clock Drive WaveformBasictiming TimingDiagram 294