P89C660 Philips Semiconductors, P89C660 Datasheet - Page 41

no-image

P89C660

Manufacturer Part Number
P89C660
Description
80C51 8-bit Flash microcontroller family
Manufacturer
Philips Semiconductors
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
P89C660HBA
Manufacturer:
PHI
Quantity:
5 030
Part Number:
P89C660HBA
Manufacturer:
PHILIPS/飞利浦
Quantity:
20 000
Part Number:
P89C660HBA/00,512
Manufacturer:
NXP Semiconductors
Quantity:
10 000
Part Number:
P89C660HBBD
Manufacturer:
PHILIPS
Quantity:
586
Part Number:
P89C660HFA
Manufacturer:
NXP
Quantity:
1 832
Part Number:
P89C660HFA/00,512
Manufacturer:
NXP Semiconductors
Quantity:
10 000
output function line of P3.1. SHIFT CLOCK is low during S3, S4, and
Philips Semiconductors
More About Mode 0
Serial data enters and exits through RxD. TxD outputs the shift
clock. Eight data bits are transmitted/received (LSB first). The baud
rate is fixed at 1/12 the oscillator frequency (12-clock mode) or 1/6
the oscillator frequency (6-clock mode).
Figure 28 shows a simplified functional diagram of the serial port in
Mode 0, and associated timing.
Transmission is initiated by any instruction that uses SBUF as a
destination register. The “write to SBUF” signal at S6P2 also loads a
1 into the 9th position of the transmit shift register and tells the TX
Control block to commence a transmission. The internal timing is
such that one full machine cycle will elapse between “write to SBUF”
and activation of SEND.
SEND enables the output of the shift register to the alternate output
function line of P3.0 and also enable SHIFT CLOCK to the alternate
S5 of every machine cycle, and high during S6, S1, and S2. At
2002 Oct 28
Mode 1, 3 Max
80C51 8-bit Flash microcontroller family
16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM
Mode 0 Max
Mode 2 Max
RI
SM2
REN
TB8
RB8
TI
SM0
Where SM0, SM1 specify the serial port mode, as follows:
Mode 1, 3
Mode
0
0
1
1
SCON
SM1
0
1
0
1
Enables the multiprocessor communication feature in Modes 2 and 3. In Mode 2 or 3, if SM2 is set to 1, then Rl will not be
activated if the received 9th data bit (RB8) is 0. In Mode 1, if SM2=1 then RI will not be activated if a valid stop bit was not
received. In Mode 0, SM2 should be 0.
Enables serial reception. Set by software to enable reception. Clear by software to disable reception.
The 9th data bit that will be transmitted in Modes 2 and 3. Set or clear by software as desired.
In Modes 2 and 3, is the 9th data bit that was received. In Mode 1, it SM2=0, RB8 is the stop bit that was received. In Mode 0,
RB8 is not used.
Transmit interrupt flag. Set by hardware at the end of the 8th bit time in Mode 0, or at the beginning of the stop bit in the other
modes, in any serial transmission. Must be cleared by software.
Receive interrupt flag. Set by hardware at the end of the 8th bit time in Mode 0, or halfway through the stop bit time in the other
modes, in any serial reception (except see SM2). Must be cleared by software.
Bit Addressable
Mode
Address = 98H
12-clock mode
3
0
1
2
Baud Rate
1.67 MHz
104.2 k
19.2 k
625 k
137.5
9.6 k
4.8 k
2.4 k
1.2 k
110
110
Description
shift register
8-bit UART
9-bit UART
9-bit UART
6-clock mode
Figure 27. Timer 1 Generated Commonly Used Baud Rates
3.34 MHz
208.4 k
1250 k
38.4 k
19.2 k
9.6 k
4.8 k
2.4 k
SM0
275
220
220
7
Figure 26. Serial Port Control (SCON) Register
Baud Rate
f
variable
f
variable
OSC
OSC
SM1
6
/12 (12-clock mode) or f
/64 or f
SM2
5
OSC
11.059 MHz
11.059 MHz
11.059 MHz
11.059 MHz
11.059 MHz
11.986 MHz
/32 (12-clock mode) or f
20 MHz
20 MHz
20 MHz
12 MHz
REN
6 MHz
f
f
4
OSC
41
TB8
the MSB of the data byte is at the output position of the shift register,
S6P2 of every machine cycle in which SEND is active, the contents
of the transmit shift are shifted to the right one position.
As data bits shift out to the right, zeros come in from the left. When
then the 1 that was initially loaded into the 9th position, is just to the
left of the MSB, and all positions to the left of that contain zeros.
This condition flags the TX Control block to do one last shift and
then deactivate SEND and set T1. Both of these actions occur at
S1P1 of the 10th machine cycle after “write to SBUF.”
Reception is initiated by the condition REN = 1 and R1 = 0. At S6P2
of the next machine cycle, the RX Control unit writes the bits
11111110 to the receive shift register, and activates RECEIVE in the
next clock phase.
RECEIVE enable SHIFT CLOCK to the alternate output function line
of P3.1. SHIFT CLOCK makes transitions at S3P1 and S6P1 of
every machine cycle. At S6P2 of every machine cycle in which
RECEIVE is active, the contents of the receive shift register are
3
OSC
RB8
/6 (6-clock mode)
2
P89C660/P89C662/P89C664/
SMOD
SMOD
OSC
TI
1
X
1
1
1
0
0
0
0
0
0
0
/32 or f
RI
0
OSC
C/T
X
X
0
0
0
0
0
0
0
0
0
/16 (6-clock mode)
Reset Value = 00H
Mode
X
X
2
2
2
2
2
2
2
2
1
Timer 1
P89C668
Reload Value
FEEBH
FDH
FDH
1DH
FFH
FAH
F4H
E8H
72H
Product data
X
X
SU01626

Related parts for P89C660