uPD71051 Serial Control Unit January 1989 NECThe uPD71051 serial control unit is designed for serial data communications in microcomputer systems. On a system level, the uPD71051 is regarded as an ordinary peripheral device. Synchronous and asynchronous serial communications are possible using CPU programs. In the synchronous mode, operations in IBM's BSC system are also possible. The uPD71051 was fabricated using CMOS technology and consumes low power. Its power consumption is even lower in the stand-by mode. In the stand-by mode, the operation mode in which uPD71051 has been set is released and the serial control unit waits for a mode word for mode setting, which is to be sent from the CPU. When the CPU has written the mode word to the wuPD71051, the serial control unit is released from the stand-by mode, and enters in the specified operation mode. Features: o Synchronous/asynchronous operation modes * Synchronous mode i + 2 SYNC characters Internal/external synchronization Automatic SYNC character insertion Asynchronous mode Clock rate: Baud rate x 1, 16, 64 Send stop bits: 1, 1.5, 2 bits Break transmission Automatic break detection Error start bit detection o Directory connected to uPD70108-10 and uPp70116-10 with no wait state (uPD71051-10) o Baud rate uPp71051 : DC to 240K-bit/sec uPD71051-10: DC to 300K-bit/sec Full duplex, double buffered transmitter/receivero Parity generate/check Error detection: Parity, overrun, framing o 5 - 8 bit characters o Stand-by mode o CMOS technology o Single power supply Ordering Information Ordering Code Package Type Max. Frequency of Operation uPD71051 28-pin uPD71051C-10 28-pin uPD71051GB-384 44-pin uPP71051GB-10-3B4 44= e3ea e3e8q t &eq 1 e300 I 0 e3q 42eH ALL eOFQewoyNE YpwsUeTy TSOTLGGn O12 (9Sa@) Z = 1a}9e1Ny9 Judg jo "On Buys, yyusuerzy apow ouds oO1-7~ Sta yA ADL (Rd) MOL VLVOEL 4-16Pig. 4-11 Command Issue during Transmitting Sync Characters No. of sync characters = 1 2 99g e By the uPD71051 By the uPD71051 By the CPU TsDATA | Data fSyne character|Sync character|Syne character TerDy | ee vee OE }SYNMOD: MOV AL,9 OUT PCTRL, AL Write control words 3 times with OOH to accept the new out PCTRL, AL command word unconditionally ouT PCTRL, AL MOV AL, 010000008 Software reset out PCTRL, AL Write mode word. Syne characters = 2 Internal sync detect Even parity B-bit/character MOV AL, 00111100B out PCTRL, AL MOV AL, SYNCi ouT PCTRL, AL Write syne character MOV AL, SYNC2 out PCTRL, AL (2) Receiving The first requirement for receiving in the SYNC mode is to synchronize with the sending side. For this reason, the first command after setting the SYNC mode and writing the SYNC character (C/B = 1) has to be EH = 1, ECL = 1, and RxEN = 1. When entering the hunt phase with this command, all the bits in the receive buffer are set to 1. In internal synchronization, data on Pin RxDATA is input to the receive buffer for each rising edge of RxcLK and is compared with the SYNC character at the same time. 4-19 a] G3Fig. 4-13 Internal Syne Detect Operation Example 5-bit character, No parity, 2 syne character Syne character 1 = 011008, Sync character 2 = 110015 *1 to *4: Byne character 1 Syne character 2 LSB . MSB LSE MSB Lo; 0:1: 3: 0 Bega Ss All bits are set *1 o2. a1 2 to 1 by EH = 1 CPU operation SYNC Receive buffer RxDATA input Command | EH=1 0 ; : r 1 eee 9 1} Mark 6 1 0 6 0 6 1} Sync character 1 6 i 0 6 i 8 0 6 0} Sync character 2 6 1 Read status 1 i 0 0 | Data : a3 a4 : 3 oe : Cleared by status read x i don't care As character is 5-bit, the part *1 of sync character register (lower 5-bit) is valid and the part *2 is doen't care. As to receive buffer, because of character is 5-bit and no parity, the part *3 is valid and the part *4 is not used. When the part *1 and the part %3 are matched, SYNC becomes 1. (With parity, the L.S.B of the part *4 is used for parity bit, but it is not used to compare with the syne character.) 4-20When the receive buffer and SYNC character coincide, the uPD71051 finishes the hunt phase and becomes SYNC = 1, becomes 1 in the center of the last bit of the SYNC character. When a parity exists, SYNC becomes 1 in the center of the parity bit. When synchronized, receiving starts beginning with the bit as data. In external SYNC detection, synchronization is achieved by giving a high level for more than one period of RxCLK to Pin SYNC by an external circuit, and the hunt phase is finished to start data receiving. At this time, the status SYNC bit becomes 1, and then becomes 0 when the status is read. The status SYNC bit is set to 1 when the SYNC input has a rising edge followed by a high level of more than one period of RxCLK even after synchronization is achieved. The uPD71051 can be made to regain synchronization anytime by giving an enter hunt phase command when it loses synchronization. After synchronization, a SYNC character is compared with each character regardless of whether it is internal or external detection. When coincided in comparison, SYNC (status only in external detection) becomes 1, indicating that a SYNC character has been received. in this case also, SYNC (status only in external detection) becomes 0 when the status is read. Overrun and parity errors are checked in the same method as that of the asynchronous mode, affecting the status flag only. Parity checking is not performed in the hunt phase. Fig. 4-14 illustrates a program example to show receiving of data sent in Fig. 4-12.Fig. 4-14 Synchronous Mode Receive Program Example SYNRX : CALL SYNMOD Set sync. mode Command MOV AL, 100101005 | Enter hunt phase Frror flag clear OUT PCTRL, AL Receive enable Mov BW, OFFSET RXDADR Set receive data store ~ address RXLEN : IN AL, PCTRL TEST1 AL, 1 , Receive the No. of receive data BZ RXLEN . IN AL, PDATA MOV STLEN, AL Set the No. of receive data Mov CL, AL + to both variable and counter MOV CH, 0 | . RXDATA: IN AL, PCTRL 7 TESTI AL, 1 BZ RXDATA Receive and store data as IN AL, PDATA > much No. of the counter MOV BW , AL Inc BW DBNZ RXDATA MOV AL, 000000008 } Command ouT PCTRL, AL Receive disable RET STLEN DB ? Set No. of receive data RXDADR DB 256DUP (0) Reserve receive data area Note: The frequencies of the TxCLK on the transmitter and the RxCLK on the receiver are the same. 404,4 Status The CPU can read the status of the uPD71051 during an operation of the uPD71051 (except in the stand-by mode). By doing this, the CPU can know data writing and reading timing, occurrence of errors during receiving, etc. The status is read after establishing c/D = 1. Status updating is disabled during reading of the status. Note that status updating is delayed a maximum 28 clock periods after an event affecting the status has taken place. tn tFig. 4-15 Status format C/D = 1 7 6 3 1 0 SYNC DSR /BRK PE RxRDY | TXRDY i Same as the output pin function with the same name. Transmit data TxRDY buffer state 0 Full 1 Empty - PE Parity error 0 No error 1 | Error OVE Overrun error 0 -|No error 1 Error FE Framing error 0 | No error 1 Error DSR DSR input pin state 0 DSR = 1 1 DSR = 0 4-24 ey toThe individual bits are described in the following. Bits TxEMP and RxRDY have the same meanings as those of the output pins of the same names. Bit SYNC/BRK has the same meaning as that of Pin SYNC/BRK in almost all instances. Its status does not coincide with the pin only in external synchronization of the SYNC mode. In this case, Pin SYNC becomes input, and the status becomes 1 when a rising edge is detected in this input. The status does not become 0 until it is read even when the level cf input changes to the low level. The status becomes 1 when a SYNC character is input with RXDATA input even when the input is in a low level state. Bit DSR (data set ready} shows the status of the general-purpose input Pin DSR. DSR = 1 is established when the level of DSR is low. Bit FE (framing error) becomes 1 when more than one effective stop bit is not detected at the end of each data block @uring receiving operation in the asynchronous mode, indicating that a framing error has occurred. 4-25 te 3Fig. 4-16 Framing Error 2 character = 5-bit, No parity, stop bits = l-bit (i) In the case of break state RaDATA Lp | LP fo" the break state \ scart pit NL start pit Vireo > Stop bit in Stop hit R normal operation) (ii) In the case of frequency difference between RxCLK and TXCLK is big. FE#)} RuDATA This is a pulse to sample stop bit. But because cf the i | Vy frequency of the FxtTK is Sampling pulse lower than that of TxtlK, -Start bit is sampled erroneously. (iii) When data is changed during transmit (Using less reliable transmission . TaDATA Woeuu lt Li! Start bit v Start bit iN Start bit Stop bit Stop bit RaDATA LF, ., UF LS, 1 | . pit change V "Cie change pit change Bit OVE (overrun error) becomes 1 when reading received data by CPU during receiving is delayed, and shows that an overrun error has occurred. In this case, one piece of data received previously is lost in the receive data buffer. 4-26 44Fig. 4-17 Overrun Error OVE RskDY cru Receive data buffer Receive buffer {Second buffer} (First buffer) Read character =~ Pees at eed ap Character 3 ys Ons ie - Character 1 -Gharacter 2 Character 7 6 6& os oo -~- 2 oO = ry re r . Py oS be nan 4 iF 2, ARs : ns s sale ee a ae - ~ 7 j Pees acd B = ey Char. 1 is not read by the CPU and discarded by receiving char. 2. Bit PE (parity error) becomes 1 when a parity error occurs while the parity is effective in a receive state. The foregoing three errors do not disable operations of the uPD71051. All these three error flags are cleared to 0 by a command that has the ECL bit set to 1. . Bit TxRDY (transmitter ready) always becomes 1 when the send data buffer is empty. The output pin of the same name becomes i when the send data buffer is empty, the level of CTS is low, and TxEN = 1, and the conditions of the status and pin setting will not be the same. Bit TXRDY = send data buffer empty Pin TxRDY = (send data buffer empty).(CTS = 0).(TxEN = 1) 4-275. STAND-BY MODE The uPD71051 consumes low power as it is based on CMOS fabrication technology. By entering into a stand-by mode, it restricts feeding of external input clocks (CLK, TxCLK and RxCLK) into the inside to consume less power. two methods can be used to enter a stand-by mode. One method is hard resetting. Inputting a4 high level to Pin RESET, the device enters a stand-by mode by the falling edge of the high level. The second method is soft resetting by a command. Writing of a mode word is the only way to escape from the stand-by mode. Fig. 5-1 shows timing patterns of these operations. 5-1 46Fig. 5-1 Standby Mode @ Hardware reset esse 1 5), ws i 5) / 2 a WH . Hode word " Internal ? @ software reset~ 5} 4 ah . WE Software reset command Mode word 4) Te Internal standby signal 1 is high, the external clocks to While the internal standby signa the uwPp71051 are ignored. ts written to the uPD71051 in the Note: if data (c/D = 0) should be standby mode, the following operations undefined. 5-2 fe sITable 5-1 Output Pins State in the Standby Mode Pin name State TXRDY TxEMP TXDATA RxXRDY SYNC/BRK Drs RTS Low level High level High level Low level Low level High level High level 5-36. ELECTRICAL CHARACTERISTICS Maximum Ratings (Ta = 25C) Item Symbol Condition Rating Unit Supply voltage Vop =~0.5 to +7.0 Vv Input voltage v5 ~0.5 to Vpp*0-3 Vv Output voltage Yo -0.5 to Vop*?-3 Vv Operating temperature Ts, pt -40 to +85 *c Storage temperature T. tg -65 to +150 *c 6-1va os z oot 0s fqpueqs buyangt | %99, quazing Atddns wu ol oT buy {ezedo buying Taq, o 1011 quaazina wa 1 or- 40 = A I | s6eyvat andano [aaaT #07 ag HO quarIIAS wn ot ot Ans A I | eHeyeaz yndyno asat yh , quazino wa oT- or- AO = q, TT, abeyeay ynduy [easayT #07 . quaiins vn ot OT aq, = Th HIT, ebexyvatT anduy [aseT, ybty A ro O WisZ = 10, 10, a6eq[OA yadjno [aaaT MoT A Txt -0 W4x20 vo oop- = 1; HO, | s6eqT0a yndgno Tansey ybyy A 80 $0- 8o s*o- 1, ebeqroa anduy [aaet 07 ATE 0494, zz c040, 2Z HI, eBeqqTor ynduy [eset YySty xn dL NIN xWW "dab *NIW Fun uo ua oquid: we ' ot-Tsotzaan tsoTzaan Fareuca | Tod's u (soteas = "9, o,ge+ 03 oF- = PL) SOFRSTIeVOeIEYD Oa 6-2Capacitance (Ta = 25C, Vor = ov) item Symbol Condition MIN, | TYP. | MAX. | Unit Input capacitance C, fc = 1 MH 10 pr for other than I/O capacitance Cr6 measured pins, OV 20 pF AC Characteristics (Ta = -40 to +85C, Yop = 5V+10%) Read Cycle Item synbo1 | condition | UPP7052 | wPp72053-20 | unis MIN. MAX. MIN. MAX, Address (C5, C/D) t setting time (for RD +) SAR 0 0 ns Address (CS, C/5) . maintain time Tura 0 0 ns (for RD +) RD pulse width test 150 95 ns wees sh. time orp 120 65 ns C, =150pF Data float time torr 20 80 210 65 ns (for RD +} Port (DSR, CTS) t, t setting time (for RD4} SPR 20 20 CxK 6-3 | -Write Cycle wPD71051 uPD71051-10 Item Symbol Condition Unit MIN. MAX. MIN. MAX. Address (CS, C/D) t setting time SAW 0 0 ne (for WR +) Address (CS, C/D) maintain time Sawa 0 0 ns (for WR.+) WR pulse width tuner, 150 95 ns Data setting time toow 80 BO ns (for WR +) Data maintain time town oO 0 ns {for WR +) Port (DTR, RTS), |. TxEN delay time we 8 8 ox {for WR t+) During mode t specification 6 6 CYR Write recovery In start-stop t time *Rv mode 8 8 CYK in synchron- t cus mode 16 16 CYK 6-4 1 trAKO, x x . DELY wax v9 at yapya TaaeT Yybyy astnd : ty YoTD ynduy 1a3qfusueiL MAD. 3 st ST wax tf WAD. ; t t wa x 9 x OT YIPTA Taaay oy astnd WAD. TL, YyOoTDS ynduy 1949 FusuerL a eT tT Te UE XE sn $0 s*0 / TmiLa, (XTXL 103) aut, AeTap wivaxL a ou wy YyOoTo su oz S 0g s 3 ts TT8F 4 Su oz s oz Ss wi, @Uyy asf1 yOTD su ' @ st Da, YAPTA [asaT Ao, asTad yooTD su SE as nl, WIPTA T2aaaT YBTY esTNd yO0TD su oq 00t oa zt AKI, atoko y20TD XW NIN *XVW IW u uo uO, oquAs we3t awa | ot-tsotzaan TsoTzaan Faypuea | tT HuywyL Teysueiz_, Teyi9s soT4ySpaszoRAeYD OVa 8 UXO, (4 AGUXL) OUT AeTaP xgUxL WAD 3 0z oz daxig, awyy Aelop awaxs sn T T qudSH, (astnd Buy_dues 303) owy2 upequTew yivaxd sn I t q5qas, (as{nd Buy {dues 203) owt 6uz33e8 YLvax" 2hy Oz6T od 9fST od uq x 9 Asuenbarj 2H4 Oz6T ag 9ST og zetty ug x OT YOoTS ynduy zeapaooy 2H4 ooc 2a org od dxt Wad. e MKD ina estnd yooTo ynduy 2zaayao0y 3 st ST uqxt WA, 4 I t ua xX 9 *X OT YIPTA [araT MOT Who THN, as{nd yo Ts 7ynduz zeaTasay ? zt zt ua xT 2H OZ6T oa 9EST 3a ua x 69 . Aauanbaszy ZHY | OZ6I aa SEST aa zs da x OT yoef qnduy 1033 ;uWsue1 ZHy oot 2a Ovz od ud xT *XVH NIW xWH "NIH u uo 0; s wo3I va | ot-tsotzaan Tsotzaan Fatpuog | Toqu ip, 49D) 6-6*sajepdn sn3e38 3OazJe YOTYN SQUsAa JO UOT ZRABUeb BYy 07 eND 442, gz JO Avlep wunwyxew e St e12yL Z *3a802 2 buyanp qnduz you st yOoTS waqsds osyL_ T Syrtewoy WD, geyyp s MH cua x pg xoT wo, OE/T 5 uy; oaks sua x T tWIOKY puw WIOKL JO Asuanbexzzy ayy 09 ATdde suozqoy44992 BupaoT TO} sys 2 azey pneg =T 230N we, 9 9 YIPTA TaaeT ybyy astnd 3esau (uoyzezyzuozyouds [eUura4xXg) a) BT et wuASS, out; Avtep ynduy NAS . (uoyzezyuoryouds [eutezut) WH, | gz 9z asada, aut Aeqap yadyno oNAS su OOT 00z wend, (+ Aquxy) amity Aetep Aquxy a, 9z 92 . uid, (+ Aguxu) awyy AeTep AGuxY su oot 00z uxoad, (+ AGUXL) Ouya AeTOP AguxL XW NIW XUN *NIW u uo uO oquiAs wet vena OI-Tsotzaan TsoTzaan Farpuca | (Pp, 3409)AC Test Input Waveform 2.4V . ; oul ~Heasurenang 2.2V 0.6V points ov G4 Write Data Cycle X XK isan la Ssue fawn hiwr tuwTxnRead Data Cycle tean hans tsen tant, Cea tran ma 6-9 1 JL9 tt wl fee ff " iit) LUv.is \ , Liw vive 1 VIVES) i . r aay Wadesy ati, i i \ nhneS J pewsaiey nd sung aaty WHE nests Mul Leewe pig . . apiy ray . freiey Cee ious wips48 a o ci + x Lia Viva 6 / an Luvis a viv eA asasy stl duyluieg \ (ean | 2c Hy WAS gl \ Ost whotn CHUTE, Tiaaay YVLVOXU pue YOOTD TeaAypaoou"it K VALVOREL cre s Lady LS VS \S VSS \ wee FEL wriady * U anamay * apr) AIL 6-11 K VAIEVOL. Para | WENA, a ty WEL waialy INANE WLVOXL pue YOOTD 19z3 Twsuezay,Flag Timing TsEMP TeRDY SyTma it Gather TrDATA RaRDY High STOP START / a YX \VLXXT RsDATA tonne \ LS XXX X STOP START 60RXDATA and SYNC Timing SYNC output (internal synchronization) fT tonnes FatLR ReDATA x x X YOY Synchronization character -=l pata character SYNC input / {external synchronization) Sans \ Tatrr RaDATA 6-13 XK xX xX >) fh Data characterWrite Recovery Time oN MAIN CLOCK ts tev tan ax \ / LL7. DIMENSIONS 26=-Pin Plastic DIP (600 mil) Dimensions (Unit: mm) 28 15 SON ooo swe. Soo 1 4 38.10 MAX. 2 05.20 = wo! = & Ab 3 gf a aH 12 MIN. SD 254 MAX. 0.2538 0~15 PaaC 100-@00A) 6344-Pin Plastic OFP Dimensions (Unit: mm) 204 Detail of lead end oe, < 2 = oo) o = Pa) S 3 S .0 0.352848 [01560] (0.8 . 1, gt | os ~ 1 os fol.15 0.8+2 PeGb 80-386 6428-Pin Plastic SOP (450 mil) Dimensions (Unit: # oo RA RAR RAR WV Oo PERREEUEEEBEBE 15.05 MAX. mm) 2.55 b.4 36 MAX, ; os = cz 127 MAL s oo BEES Hear 1? P20GM ~ $0- 450A2 6529