Part Number Hot Search : 
2N7002 TXN17209 N1N989UR SNC11905 MV30016 SDR1184R 2SK1431 SK241
Product Description
Full Text Search
 

To Download SC16C850VIBS Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1. general description the sc16c850v is a 1.8 v, low power single channel universal asynchronous receiver and transmitter (uart) used for serial data communications. its principal function is to convert parallel data into serial data and vice versa. the uart can handle serial data rates up to 5 mbit/s. sc16c850v can be programmed to operate in extended mode where additional advanced uart features are available (see section 6.2 ).the sc16c850v family uart provides enhanced uart functions with 128-byte fifos, modem control interface and irda encoder/decoder. on-board status registers provide the user with error indications and operational status. system interrupts and modem control features may be tailored by software to meet speci?c user requirements. an internal loopback capability allows on-board diagnostics. independent programmable baud rate generators are provided to select transmit and receive baud rates. the sc16c850v with intel xscale processor vlio interface operates at 1.8 v and is available in the hvqfn32 package. 2. features n single channel high performance uart n 1.8 v operation n advanced package: hvqfn32 n up to 5 mbit/s data rate at 1.8 v n 128-byte transmit fifo to reduce the bandwidth requirement of the external cpu n 128-byte receive fifo with error ?ags to reduce the bandwidth requirement of the external cpu n 128 programmable receive and transmit fifo interrupt trigger levels n 128 receive and transmit fifo reporting levels (level counters) n automatic software (xon/xoff) and hardware ( r ts/ cts or dtr/ dsr) ?ow control n programmable xon/xoff characters n 128 programmable hardware and software trigger levels n automatic 9-bit mode (rs-485) address detection n automatic rs-485 driver turn-around with programmable delay n uart software reset n high resolution clock prescaler, from 0 to 15 with granularity of 1 16 to allow non-standard uart clock to be used n industrial temperature range ( - 40 c to +85 c) n software compatible with industry standard sc16c650b n software selectable baud rate generator sc16c850v 1.8 v single uart, 5 mbit/s (max.) with 128-byte fifos, infrared (irda), and xscale vlio bus interface rev. 04 14 january 2008 product data sheet
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 2 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface n supports irda version 1.0 (up to 115.2 kbit/s) n standard modem interface or infrared irda encoder/decoder interface n enhanced sleep mode and low power feature n modem control functions ( cts, r ts, dsr, dtr, ri, cd) n independent transmitter and receiver enable/disable n pb-free, rohs compliant package offered 3. ordering information table 1. ordering information type number package name description version SC16C850VIBS hvqfn32 plastic thermal enhanced very thin quad ?at package; no leads; 32 terminals; body 5 5 0.85 mm sot617-1
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 3 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface 4. block diagram fig 1. block diagram of sc16c850v tx rx sc16c850v xtal2 xtal1 ad0 to ad7 002aac556 data b u s and control logic register select logic cs interrupt control logic int clock and baud rate generator interconnect bus lines and control signals modem control logic dtr rts cts ri cd dsr receive shift register receive fifo register flow control logic flow control logic transmit shift register transmit fifo register ir decoder ir encoder ior iow reset lla power down control lowpwr
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 4 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface 5. pinning information 5.1 pinning 5.2 pin description fig 2. pin con?guration for hvqfn32 002aac557 SC16C850VIBS transparent top view n.c. tx cs n.c. rx lla ad7 int ad6 rts ad5 dtr n.c. reset ad4 cts lowpwr xtal1 xtal2 iow v ss ior n.c. n.c. ad3 ad2 ad1 ad0 v dd ri cd dsr 8 17 7 18 6 19 5 20 4 21 3 22 2 23 1 24 9 10 11 12 13 14 15 16 32 31 30 29 28 27 26 25 terminal 1 index area table 2. pin description symbol pin type description ad0 29 i/o address and data bus (bidirectional). these pins are the 8-bit multiplexed data bus and address bus for transferring information to or from the controlling cpu. ad0 is the least signi?cant bit and is address a0 during the address cycle, and ad7 is the most signi?cant bit and is address a7 during the address cycle. ad1 30 ad2 31 ad3 32 ad4 1 ad5 3 ad6 4 ad7 5 cd 26 i carrier detect (active low). a logic 0 on this pin indicates that a carrier has been detected by the modem for that channel. status can be tested by reading msr[7]. cs 8 i chip select (active low). this pin enables the data transfers between the host and the sc16c850v. cts 24 i clear to send (active low). a logic 0 on the cts pin indicates the modem or data set is ready to accept transmit data from the sc16c850v. status can be tested by reading msr[4]. dsr 25 i data set ready (active low). a logic 0 on this pin indicates the modem or data set is powered-on and is ready for data exchange with the uart. status can be tested by reading msr[5]. dtr 22 o data terminal ready (active low). a logic 0 on this pin indicates that the sc16c850v is powered-on and ready. this pin can be controlled via the modem control register. writing a logic 1 to mcr[0] will set the dtr output to logic 0, enabling the modem. this pin will be a logic 1 after writing a logic 0 to mcr[0], or after a reset.
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 5 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface [1] hvqfn32 package die supply ground is connected to both v ss pin and exposed center pad. v ss pin must be connected to supply ground for proper device operation. for enhanced thermal, electrical, and board level performance, the exposed pad needs to be soldered to the board using a corresponding thermal pad on the board and for proper heat conduction through the board, thermal vias need to be incorporated in the pcb in the thermal pad region. int 20 o interrupt output. the output state is de?ned by the user through the software setting of mcr[5]. int is set to the active mode when mcr[5] is set to a logic 0. int is set to the open-source mode when mcr[3] is set to a logic 1. see t ab le 19 . ior 14 i read strobe (active low). a high to low transition on this signal starts the read cycle. the sc16c850v reads a byte from the internal register and puts the byte on the data bus for the host to retrieve. io w12 i write strobe (active low). a high to low transition on this signal starts the write cycle, and a low to high transition transfers the data on the data bus to the internal register. lla 19 i latch lower address (active low). a logic low on this pin puts the vlio interface in the address phase of the transaction, where the lower 8 bits of the vlio (specifying the uart register and the channel address) are loaded into the address latch of the device through the ad7 to ad0 bus. a logic high puts the vlio interface in the data phase where data can are transferred between the host and the uart. lowpwr 9 i low power. when asserted (active high), the device immediately goes into low-power mode. the oscillator is shut-off and some host interface pins are isolated from the hosts bus to reduce power consumption. the device only returns to normal mode when the lowpwr pin is de-asserted. on the negative edge of a de-asserting lowpwr signal, the device is automatically reset and all registers return to their default reset states. this pin has an internal pull-down resistor, therefore, it can be left unconnected. n.c. 2, 15, 16, 17, 18 - not connected reset 23 i master reset (active low). a reset pulse will reset the internal registers and all the outputs. the sc16c850v transmitter outputs and receiver inputs will be disabled during reset time. (see section 7.23 sc16c850v e xter nal reset condition and softw are reset for initialization details.) ri 27 i ring indicator (active low). a logic 0 on this pin indicates the modem has received a ringing signal from the telephone line. a logic 1 transition on this input pin will generate an interrupt is modem status interrupt is enabled. status can be tested by reading mcr[6]. r ts 21 o request to send (active low). a logic 0 on the r ts pin indicates the transmitter has data ready and waiting to send. writing a logic 1 in the modem control register mcr[1] will set this pin to a logic 0, indicating data is available. after a reset this pin will be set to a logic 1. rx 6 i uart receive data. the rx signal will be a logic 1 during reset, idle (no data), or when not receiving data. during the local loopback mode, the rx input pin is disabled and tx data is connected to the uart rx input internally. tx 7 o uart transmit data. the tx signal will be a logic 1 during reset, idle (no data), or when the transmitter is disabled. during the local loopback mode, the tx output pin is disabled and tx data is internally connected to the uart rx input. v dd 28 i power supply input. v ss 13 [1] i signal and power ground. xtal1 10 i crystal or external clock input. functions as a crystal input or as an external clock input. a crystal can be connected between this pin and xtal2 to form an internal oscillator circuit. alternatively, an external clock can be connected to this pin to provide custom data rates (see section 6.9 prog r ammab le baud r ate gener ator ). see figure 4 . xtal2 11 o output of the crystal oscillator or buffered clock. crystal oscillator output or buffered clock output. should be left open if an external clock is connected to xtal1. table 2. pin description continued symbol pin type description
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 6 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface 6. functional description the sc16c850v provides serial asynchronous receive data synchronization, parallel-to-serial and serial-to-parallel data conversions for both the transmitter and receiver sections. these functions are necessary for converting the serial data stream into parallel data that is required with digital data systems. synchronization for the serial data stream is accomplished by adding start and stop bits to the transmit data to form a data character (character orientated protocol). data integrity is ensured by attaching a parity bit to the data character. the parity bit is checked by the receiver for any transmission bit errors. the electronic circuitry to provide all these functions is fairly complex, especially when manufactured on a single integrated silicon chip. the sc16c850v represents such an integration with greatly enhanced features. the sc16c850v is fabricated with an advanced cmos process. the sc16c850v is an upward solution to the sc16c650b with a vlio interface that provides a single uart capability with 128 bytes of transmit and receive fifo memory, instead of 32 bytes for the sc16c650b. the sc16c850v is designed to work with high speed modems and shared network environments that require fast data processing time. increased performance is realized in the sc16c850v by the transmit and receive fifos. this allows the external processor to handle more networking tasks within a given time. in addition, the four selectable receive and transmit fifo trigger interrupt levels are provided in normal mode, or 128 programmable levels are provided in extended mode for maximum data throughput performance especially when operating in a multi-channel environment (see section 6.2 extended mode (128-b yte fifo) ). the fifo memory greatly reduces the bandwidth requirement of the external controlling cpu, and increases performance. a low power pin (lowpwr) is provided to further reduce power consumption by isolating the host interface bus. the sc16c850v is capable of operation up to 5 mbit/s with an external 80 mhz clock. with a crystal is capable of operation up to 1.5 mbit/s. the rich feature set of the sc16c850v is available through internal registers. these features are: selectable and programmable receive and transmit fifo trigger levels, selectable tx and rx baud rates, and modem interface controls (all standard features). following a power-on reset an external reset or a software reset, the sc16c850v is software compatible with the previous generation sc16c650b. 6.1 uart selection the uart provides the user with the capability to bidirectionally transfer information between a cpu and an external serial device. the cs pin together with addresses a6 and a7 determine if the uart is being accessed; see t ab le 3 . table 3. serial port selection h = high; l = low; x = dont care. chip select function cs = h, a7 = x, a6 = x device not selected cs = l, a7 = l, a6 = l uart selected cs = l, a7 = l, a6 = h device not selected cs = l, a7 = h, a6 = x device not selected
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 7 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface 6.2 extended mode (128-byte fifo) the device is in the extended mode when any of these four registers contains any value other than 0: flwcnth, flwcntl, txintlvl, rxintlvl. 6.3 internal registers the sc16c850v provides a set of 25 internal registers for monitoring and controlling the functions of the uart. these registers are shown in t ab le 4 . [1] these registers are accessible only when lcr[7] is a logic 0. [2] these registers are accessible only when lcr[7] is a logic 1. table 4. internal registers decoding a3 a2 a1 read mode write mode general register set (thr/rhr, ier/isr, mcr/msr, fcr, lsr, spr) [1] 0 0 0 receive holding register transmit holding register 0 0 1 interrupt enable register interrupt enable register 0 1 0 interrupt status register fifo control register 0 1 1 line control register line control register 1 0 0 modem control register modem control register 1 0 1 line status register extra feature control register (efcr) 1 1 0 modem status register n/a 1 1 1 scratchpad register scratchpad register baud rate register set (dll/dlm) [2] 0 0 0 lsb of divisor latch lsb of divisor latch 0 0 1 msb of divisor latch msb of divisor latch second special register set (txlvlcnt/rxlvlcnt) [3] 011tr ansmit fifo level count n/a 1 0 0 receive fifo level count n/a enhanced register set (efr, xon1/xon2, xoff1/xoff2) [4] 0 1 0 enhanced feature register enhanced feature register 1 0 0 xon1 word xon1 word 1 0 1 xon2 word xon2 word 1 1 0 xoff1 word xoff1 word 1 1 1 xoff2 word xoff2 word first extra feature register set (txintlvl/rxintlvl, flwcnth/flwcntl) [5] 010tr ansmit fifo interrupt level transmit fifo interrupt level 1 0 0 receive fifo interrupt level receive fifo interrupt level 1 1 0 flow control count high flow control count high 1 1 1 flow control count low flow control count low second extra feature register set (clkpres, rs485time, afcr2, afcr1) [6] 0 1 0 clock prescaler clock prescaler 1 0 0 rs-485 turn-around timer rs-485 turn-around timer 1 1 0 additional feature control register 2 additional feature control register 2 1 1 1 additional feature control register 1 additional feature control register 1
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 8 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface [3] second special registers are accessible only when efcr[0] = 1. [4] enhanced feature registers are only accessible when lcr = 0xbf. [5] first extra feature registers are only accessible when efcr[2:1] = 01b. [6] second extra feature registers are only accessible when efcr[2:1] = 10b. 6.4 fifo operation 6.4.1 32-byte fifo mode when all four of these registers (txintlvl, rxintlvl, flwcnth, flwcntl) in the first extra register set are empty (0x00) the transmit and receive trigger levels are set by fcr[7:4]. in this mode the transmit and receive trigger levels are backward compatible to the sc16c650b (see t ab le 5 ), and the fifo sizes are 32 entries. the transmit and receive data fifos are enabled by the fifo control register bit 0 (fcr[0]). it should be noted that the user can set the transmit trigger levels by writing to the fcr, but activation will not take place until efr[4] is set to a logic 1. the receiver fifo section includes a time-out function to ensure data is delivered to the external cpu (see section 6.8 ). please refer to t ab le 10 and t ab le 11 for the setting of fcr[7:4]. 6.4.2 128-byte fifo mode when either txintlvl, rxintlvl, flwcnth or flwcntl in the first extra register set contains any value other than 0x00, the transmit and receive trigger levels are set by txintlvl and rxintlvl registers. txintlvl sets the trigger levels for the transmit fifo, and the transmit trigger levels can be set to any value between 1 and 128 with granularity of 1. rxintlvl sets the trigger levels for the receive fifo, the receive trigger levels can be set to any value between 1 and 128 with granularity of 1. when the effective fifo size changes (that is, when fcr[0] toggles or when the combined content of txintlvl, rxintlvl, flwcnth and flwcntl changes between equal and unequal to 0x00), both rx fifo and tx fifo will be reset (data in the fifo will be lost). 6.5 hardware ?ow control when automatic hardware ?ow control is enabled, the sc16c850v monitors the cts pin for a remote buffer over?ow indication and controls the r ts pin for local buffer over?ows. automatic hardware ?ow control is selected by setting efr[6] (rts) and efr[7] (cts) to a logic 1. if cts transitions from a logic 0 to a logic 1 indicating a ?ow control request, isr[5] will be set to a logic 1 (if enabled via ier[7:6]), and the sc16c850v will suspend tx transmissions as soon as the stop bit of the character in process is shifted out. transmission is resumed after the cts input returns to a logic 0, indicating more data may be sent. table 5. interrupt trigger level and flow control mechanism fcr[7:6] fcr[5:4] int pin activation negate r ts or send xoff assert r ts or send xon rx tx 00 00 8 16 8 0 01 01 16 8 16 7 10 10 24 24 24 15 11 11 28 30 28 23
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 9 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface when afcr1[2] is set to 1, then the function of cts pin is mapped to the dsr pin, and the function of r ts is mapped to dtr pin. dsr and dtr pins will behave as described above for cts and r ts. with the automatic hardware ?ow control function enabled, an interrupt is generated when the receive fifo reaches the programmed trigger level. the r ts (or dtr) pin will not be forced to a logic 1 (rts off) until the receive fifo reaches the next trigger level. however, the r ts (or dtr) pin will return to a logic 0 after the receive buffer (fifo) is unloaded to the next trigger level below the programmed trigger level. under the above described conditions, the sc16c850v will continue to accept data until the receive fifo is full. when txintlvl, rxintlvl, flwcnth and flwcntl in the first extra register set are all zeroes, the hardware and software ?ow control trigger levels are set by fcr[7:4]; see t ab le 5 . when either txintlvl, rxintlvl, flwcnth or flwcntl in the first extra register set contains any value other than 0x00, the hardware and software ?ow control trigger levels are set by flwcnth and flwcntl. the content in flwcnth determines how many bytes are in the receive fifo before r ts (or dtr) is de-asserted or xoff is sent. the content of flwcntl determines how many bytes are in the receive fifo before r ts (or dtr) is asserted, or xon is sent. in 128-byte fifo mode, hardware and software ?ow control trigger levels can be set to any value between 1 and 128 in granularity of 1. the value of flwcnth should always be greater than flwcntl. the uart does not check for this condition automatically, and if this condition is not met spurious operation of the device might occur. when using flwcnth and fwlcntl, these registers must be initialized to the proper values before hardware or software ?ow control is enabled via the efr register. 6.6 software ?ow control when software ?ow control is enabled, the sc16c850v compares one or two sequentially received data characters with the programmed xon or xoff character value(s). if the received character(s) match the programmed xoff values, the sc16c850v will halt transmission (tx) as soon as the current character(s) has completed transmission. when a match occurs, isr bit 4 will be set (if enabled via ier[5]) and the interrupt output pin (if receive interrupt is enabled) will be activated. following a suspension due to a match of the xoff characters values, the sc16c850v will monitor the receive data stream for a match to the xon1/xon2 character value(s). if a match is found, the sc16c850v will resume operation and clear the ?ags (isr[4]). reset initially sets the contents of the xon/xoff 8-bit ?ow control registers to a logic 0. following reset, the user can write any xon/xoff value desired for software ?ow control. different conditions can be set to detect xon/xoff characters and suspend/resume transmissions (see t ab le 24 ). when double 8-bit xon/xoff characters are selected, the sc16c850v compares two consecutive receive characters with two software ?ow control 8-bit values (xon1, xon2, xoff1, xoff2) and controls tx transmissions accordingly. under the above described ?ow control mechanisms, ?ow control characters are not placed (stacked) in the receive fifo. when using software ?ow control, the xon/xoff characters cannot be used for data transfer.
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 10 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface in the event that the receive buffer is over?lling, the sc16c850v automatically sends an xoff character (when enabled) via the serial tx output to the remote uart. the sc16c850v sends the xoff1/xoff2 characters as soon as the number of received data in the receive fifo passes the programmed trigger level. to clear this condition, the sc16c850v will transmit the programmed xon1/xon2 characters as soon as the number of characters in the receive fifo drops below the programmed trigger level. 6.7 special character detect a special character detect feature is provided to detect an 8-bit character when efr[5] is set. when an 8-bit character is detected, it will be placed on the user-accessible data stack along with normal incoming rx data. this condition is selected in conjunction with efr[3:0] (see t ab le 24 ). note that software ?ow control should be turned off when using this special mode by setting efr[3:0] to all zeroes. the sc16c850v compares each incoming receive character with xoff2 data. if a match occurs, the received data will be transferred to the fifo, and isr[4] will be set to indicate detection of a special character. although t ab le 7 sc16c850v inter nal registers shows xon1, xon2, xoff1, xoff2 with eight bits of character information, the actual number of bits is dependent on the programmed word length. line control register bits lcr[1:0] de?ne the number of character bits, that is, either 5 bits, 6 bits, 7 bits or 8 bits. the word length selected by lcr[1:0] also determine the number of bits that will be used for the special character comparison. bit 0 in the xon1, xon2, xoff1, xoff2 registers corresponds with the lsb bit for the received character. 6.8 interrupt priority and time-out interrupts the interrupts are enabled by ier[7:0]. care must be taken when handling these interrupts. following a reset, if interrupt enable register (ier) bit 1 = 1, the sc16c850v will issue a transmit holding register interrupt. this interrupt must be serviced prior to continuing operations. the isr indicates the current singular highest priority interrupt only. a condition can exist where a higher priority interrupt masks the lower priority interrupt(s) (see t ab le 12 ). only after servicing the higher pending interrupt will the lower priority interrupt(s) be re?ected in the status register. servicing the interrupt without investigating further interrupt conditions can result in data errors. receive data ready and receive time out have the same interrupt priority (when enabled by ier[0]), and it is important to serve these interrupts correctly. the receiver issues an interrupt after the number of characters have reached the programmed trigger level. in this case, the sc16c850v fifo may hold more characters than the programmed trigger level. following the removal of a data byte, the user should re-check lsr[0] to see if there are any additional characters. a receive time out will not occur if the receive fifo is empty. the time-out counter is reset at the center of each stop bit received or each time the receive holding register (rhr) is read. the actual time-out value is 4 character time, including data information length, start bit, parity bit, and the size of stop bit, that is, 1 , 1.5 , or 2 bit times.
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 11 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface 6.9 programmable baud rate generator the sc16c850v uart contains a programmable rational baud rate generator that takes any clock input and divides it by a divisor in the range between 1 and (2 16 - 1). the sc16c850v offers the capability of dividing the input frequency by rational divisor. the fractional part of the divisor is controlled by the clkpres register in the first extra register set. (1) where: n is the integer part of the divisor in dll and dlm registers; m is the fractional part of the divisor in clkpres register; f xtal1 is the clock frequency at xtal1 pin. prescaler = 1 when mcr[7] is set to 0. prescaler = 4 when mcr[7] is set to 1. a single baud rate generator is provided for the transmitter and receiver. the programmable baud rate generator is capable of operating with a frequency of up to 80 mhz. to obtain maximum data rate, it is necessary to use full rail swing on the clock input. the sc16c850v can be con?gured for internal or external clock operation. for internal clock operation, an industry standard crystal is connected externally between the xtal1 and xtal2 pins (see figure 4 ). alternatively, an external clock can be connected to the xtal1 pin (see figure 5 ) to clock the internal baud rate generator for standard or custom rates (see t ab le 6 ). the generator divides the input 16 clock by any divisor from 1 to (2 16 - 1). the sc16c850v divides the basic external clock by 16. the baud rate is con?gured via the clkpres, dll and dlm internal register functions. customized baud rates can be achieved by selecting the proper divisor values for the msb and lsb sections of baud rate generator. programming the baud rate generator registers clkpres, dlm (msb) and dll (lsb) provides a user capability for selecting the desired ?nal baud rate. the example in t ab le 6 shows the selectable baud rate table available when using a 1.8432 mhz external clock input with mcr[7] is 0, and clkpres = 0x00. fig 3. prescalers and baud rate generator block diagram baud rate f xtal1 mcr 7 [] 16 n m 16 ----- - + ? ?? ------------------------------------------------------------------- - = 002aac645 oscillator xtal1 xtal2 divide-by-1 divide-by-4 clkpres [3:0] baud rate generator (dll, dlm) transmitter and receiver clock mcr[7] = 0 mcr[7] = 1
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 12 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface fig 4. crystal oscillator connection if f xtal1 frequency is greater than 50 mhz, then a dc blocking capacitor is required. xtal2 pin should be left unconnected when an external clock is used. fig 5. external clock connection table 6. baud rate generator programming table using a 1.8432 mhz clock with mcr[7] = 0 and clkpre[3:0] = 0 output baud rate (bit/s) output 16 clock divisor (decimal) output 16 clock divisor (hexadecimal) dlm program value (hexadecimal) dll program value (hexadecimal) 50 2304 900 09 00 75 1536 600 06 00 110 1047 417 04 17 150 768 300 03 00 300 384 180 01 80 600 192 c0 00 c0 1.2 k 96 60 00 60 2.4 k 48 30 00 30 3.6 k 32 20 00 20 4.8 k 24 18 00 18 7.2 k 16 10 00 10 9.6 k 12 0c 00 0c 19.2 k 6 06 00 06 38.4 k 3 03 00 03 57.6 k 2 02 00 02 115.2 k 1 01 00 01 002aaa870 c2 47 pf xtal1 xtal2 x1 1.8432 mhz c1 22 pf c2 33 pf xtal1 xtal2 1.5 k w x1 1.8432 mhz c1 22 pf 002aac630 xtal1 xtal2 100 pf f xtal1
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 13 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface 6.10 loopback mode the internal loopback capability allows on-board diagnostics. in the loopback mode, the normal modem interface pins are disconnected and recon?gured for loopback internally (see figure 6 ). mcr[3:0] register bits are used for controlling loopback diagnostic testing. in the loopback mode, the transmitter output (tx) and the receiver input (rx) are disconnected from their associated interface pins, and instead are connected together internally. the cts, dsr, cd, and ri are disconnected from their normal modem control inputs pins, and instead are connected internally to r ts, dtr, mcr[3] ( op2) and mcr[2] ( op1). loopback test data is entered into the transmit holding register via the user data bus interface, ad[7:0]. the transmit uart serializes the data and passes the serial data to the receive uart via the internal loopback connection. the receive uart converts the serial data back into parallel data that is then made available at the user data interface ad[7:0]. the user optionally compares the received data to the initial transmitted data for verifying error-free operation of the uart tx/rx circuits. in this mode, the receiver and transmitter interrupts are fully operational. the modem control interrupts are also operational.
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 14 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface fig 6. internal loopback mode diagram tx rx sc16c850v xtal2 xtal1 ad0 to ad7 002aac558 data b u s and control logic register select logic cs interrupt control logic int clock and baud rate generator interconnect bus lines and control signals modem control logic receive shift register receive fifo register flow control logic flow control logic transmit shift register transmit fifo register ir decoder ir encoder ior iow reset lla power down control lowpwr cts rts dsr dtr ri cd mcr[4] = 1 op1 op2
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 15 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface 6.11 sleep mode sleep mode is an enhanced feature of the sc16c850v uart. it is enabled when efr[4], the enhanced functions bit, is set and when ier[4] bit is also set. 6.11.1 conditions to enter sleep mode sleep mode is entered when: ? modem input pins are not toggling. ? the serial data input line, rx, is idle for 4 character time (logic high) and afcr1[4] is 0. when afcr1[4] is 1, the device will go to sleep regardless of the state of the rx pin (see section 7.21 for the description of afcr1 bit 4). ? the tx fifo and tx shift register are empty. ? there are no interrupts pending. ? the rx fifo is empty. in sleep mode, the uart clock and baud rate clock are stopped. since most registers are clocked using these clocks, the power consumption is greatly reduced. remark: writing to the divisor latches, dll and dlm, to set the baud clock, must not be done during sleep mode. therefore, it is advisable to disable sleep mode using ier[4] before writing to dll or dlm. 6.11.2 conditions to resume normal operation sc16c850v resumes normal operation by any of the following: ? receives a start bit on rx pin. ? data is loaded into transmit fifo. ? a change of state on any of the modem input pins. if the device is awakened by one of the conditions described above, it will return to the sleep mode automatically after all the conditions described in section 6.11.1 are met. the device will stay in sleep mode until it is disabled by setting any channels ier bit 4 to a logic 0. when the sc16c850v is in sleep mode and the host interface bus (ad7 to ad0, io w, ior, cs) remains in steady state, either high or low, the sleep current will be in the microampere range as speci?ed in t ab le 36 static char acter istics . if any of these signals is toggling or ?oating then the sleep current will be higher. 6.12 low power feature a low power feature is provided by the sc16c850v to prevent the switching of the host data bus from in?uencing the sleep current. when the pin lowpwr is activated (logic high), the device immediately and unconditionally goes into low power mode. all clocks are stopped and most host interface pins are isolated to reduce power consumption. the device only returns to normal mode when the lowpwr pin is de-asserted. the pin can be left unconnected because it has an internal pull-down resistor.
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 16 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface 6.13 rs-485 features 6.13.1 auto rs-485 r ts control normally the r ts pin is controlled by mcr bit 1, or if hardware ?ow control is enabled, the logic state of the r ts pin is controlled by the hardware ?ow control circuitry. efcr2 register bit 4 will take the precedence over the other two modes; once this bit is set, the transmitter will control the state of the r ts pin. the transmitter automatically asserts the r ts pin (logic 0) once the host writes data to the transmit fifo, and de-asserts the r ts pin (logic 1) once the last bit of the data has been transmitted. to use the auto rs-485 r ts mode, the software would have to disable the hardware ?ow control function. 6.13.2 rs-485 r ts inversion efcr2 bit 5 reverses the polarity of the r ts pin if the uart is in auto rs-485 r ts mode. when the transmitter has data to be sent, it will de-assert the r ts pin (logic 1), and when the last bit of the data has been sent out, the transmitter asserts the r ts pin (logic 0). 6.13.3 auto 9-bit mode (rs-485) efcr2 bit 0 is used to enable the 9-bit mode (multi-drop or rs-485 mode). in this mode of operation, a master station transmits an address character followed by data characters for the addressed slave stations. the slave stations examine the received data and interrupt the controller if the received character is an address character (parity bit = 1). to use the auto 9-bit mode the software would have to disable the hardware and software ?ow control functions. 6.13.3.1 normal multi-drop mode the 9-bit mode in efcr (bit 0) is enabled, but not special character detect (efr bit 5). the receiver is set to force parity 0 (lcr[5:3] = 111) in order to detect address bytes. with the receiver initially disabled, it ignores all the data bytes (parity bit = 0) until an address byte is received (parity bit = 1). this address byte will cause the uart to set the parity error. the uart will generate a line status interrupt (ier bit 2 must be set to 1 at this time), and at the same time puts this address byte in the rx fifo. after the controller examines the byte it must make a decision whether or not to enable the receiver; it should enable the receiver if the address byte addresses its id address, and must not enable the receiver if the address byte does not address its id address. if the controller enables the receiver, the receiver will receive the subsequent data until being disabled by the controller after the controller has received a complete message from the master station. if the controller does not disable the receiver after receiving a message from the master station, the receiver will generate a parity error upon receiving another address byte. the controller then determines if the address byte addresses its id address, if it is not, the controller then can disable the receiver. if the address byte addresses the slave id address, the controller take no further action, the receiver will receive the subsequent data.
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 17 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface 6.13.3.2 auto address detection if special character detect is enabled (efr[5] is set and the xoff2 register contains the address byte), the receiver will try to detect an address byte that matches the programmed character in the xoff2 register. if the received byte is a data byte or an address byte that does not match the programmed character in the xoff2 register, the receiver will discard these data. upon receiving an address byte that matches the xoff2 character, the receiver will be automatically enabled if not already enabled, and the address character is pushed into the rx fifo along with the parity bit (in place of the parity error bit). the receiver also generates a line status interrupt (ier[2] must be set to logic 1 at this time). the receiver will then receive the subsequent data from the master station until being disabled by the controller after having received a message from the master station. if another address byte is received and this address byte does not match xoff2 character, the receiver will be automatically disabled and the address byte is ignored. if the address byte matches xoff2 character, the receiver will put this byte in the rx fifo along with the parity bit in the parity error bit (lsr bit 2). 7. register descriptions t ab le 7 details the assigned bit functions for the sc16c850v internal registers. the assigned bit functions are more fully de?ned in section 7.1 through section 7.23 .
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 18 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface table 7. sc16c850v internal registers a3 a2 a1 register default [1] bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r/w general register set [2] 0 0 0 rhr xx bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r 0 0 0 thr xx bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 w 0 0 1 ier 00 cts interrupt [3] rts interrupt [3] xoff interrupt [3] sleep mode [3] modem status interrupt receive line status interrupt transmit holding register interrupt receive holding register r/w 0 1 0 fcr 00 rcvr trigger (msb) rcvr trigger (lsb) tx trigger (msb) [3] tx trigger (lsb) [3] reserved xmit fifo reset rcvr fifo reset fifos enable w 0 1 0 isr 01 fifos enabled fifos enabled int priority bit 4 int priority bit 3 int priority bit 2 int priority bit 1 int priority bit 0 int status r 0 1 1 lcr 00 divisor latch enable set break set parity even parity parity enable stop bits word length bit 1 word length bit 0 r/w 1 0 0 mcr 00 clock select [3] irda enable int type loopback op2 op1 r ts dtr r/w 1 0 1 lsr 60 fifo data error thr and tsr empty thr empty break interrupt framing error parity error overrun error receive data ready r 1 0 1 efcr 00 reserved reserved reserved reserved reserved enable extra feature bit-1 enable extra feature bit-0 enable txlvlcnt/ rxlvlcnt w 1 1 0 msr x0 cd ri dsr cts d cd d ri d dsr d cts r 1 1 1 spr ff bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r/w special register set [4] 0 0 0 dll xx bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r/w 0 0 1 dlm xx bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 r/w second special register set [5] 0 1 1 txlvlcnt 00 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r 1 0 0 rxlvlcnt 00 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 19 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface [1] the value shown represents the registers initialized hexadecimal value; x = not applicable. [2] accessible only when lcr[7] is logic 0, and efcr[2:1] are logic 0. [3] this bit is only accessible when efr[4] is set. [4] baud rate registers accessible only when lcr[7] is logic 1. [5] second special registers are accessible only when efcr[0] = 1, and efcr[2:1] are logic 0. [6] enhanced feature register, xon1/xon2 and xoff1/xoff2 are accessible only when lcr is set to 0xbf, and efcr[2:1] are logic 0. [7] first extra register set is only accessible when efcr[2:1] = 01b. [8] second extra register set is only accessible when efcr[2:1] = 10b. enhanced register set [6] 0 1 0 efr 00 auto cts auto rts special character select enable ier[7:4], isr[5:4], fcr[5:4], mcr[7:5] cont-3 tx, rx control cont-2 tx, rx control cont-1 tx, rx control cont-0 tx, rx control r/w 1 0 0 xon1 00 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r/w 1 0 1 xon2 00 bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 r/w 1 1 0 xoff1 00 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r/w 1 1 1 xoff2 00 bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 r/w first extra register set [7] 0 1 0 txintlvl 0x00 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r/w 1 0 0 rxintlvl 0x00 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r/w 1 1 0 flwcnth 0x00 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r/w 1 1 1 flwcntl 0x00 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r/w second extra register set [8] 0 1 0 clkpres reserved reserved reserved reserved bit 3 bit 2 bit 1 bit 0 r/w 1 0 0 rs485time 0x00 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r/w 1 1 0 afcr2 0x00 reserved reserved rs485 rts invert auto rs485 rts rs485 rts/dtr transmitter disable receiver disable 9-bit enable r/w 1 1 1 afcr1 0x00 reserved reserved reserved sleep rx low reserved rts/cts mapped to dtr/dsr software reset tsr interrupt r/w table 7. sc16c850v internal registers continued a3 a2 a1 register default [1] bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r/w
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 20 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface 7.1 transmit (thr) and receive (rhr) holding registers the serial transmitter section consists of an 8-bit transmit hold register (thr) and transmit shift register (tsr). the status of the thr is provided in the line status register (lsr). writing to the thr transfers the contents of the data bus (ad7 to ad0) to the transmit fifo. the thr empty ?ag in the lsr will be set to a logic 1 when the transmit fifo is empty or when data is transferred to the tsr. the serial receive section also contains an 8-bit receive holding register (rhr) and a receive serial shift register (rsr). receive data is removed from the sc16c850v receive fifo by reading the rhr. the receive section provides a mechanism to prevent false starts. on the falling edge of a start or false start bit, an internal receiver counter starts counting clocks at the 16 clock rate. after 7 1 2 clocks, the start bit time should be shifted to the center of the start bit. at this time the start bit is sampled, and if it is still a logic 0 it is validated. evaluating the start bit in this manner prevents the receiver from assembling a false character. receiver status codes will be posted in the lsr. 7.2 interrupt enable register (ier) the interrupt enable register (ier) masks the interrupts from receiver ready, transmitter empty, line status and modem status registers. these interrupts would normally be seen on the int output pin. table 8. interrupt enable register bits description bit symbol description 7 ier[7] cts interrupt. logic 0 = disable the cts interrupt (normal default condition) logic 1 = enable the cts interrupt. the sc16c850v issues an interrupt when the cts pin transitions from a logic 0 to a logic 1. 6 ier[6] rts interrupt. logic 0 = disable the rts interrupt (normal default condition) logic 1 = enable the rts interrupt. the sc16c850v issues an interrupt when the r ts pin transitions from a logic 0 to a logic 1. 5 ier[5] xoff interrupt. logic 0 = disable the software ?ow control, receive xoff interrupt (normal default condition) logic 1 = enable the receive xoff interrupt 4 ier[4] sleep mode. logic 0 = disable sleep mode (normal default condition) logic 1 = enable sleep mode 3 ier[3] modem status interrupt. this interrupt will be issued whenever there is a modem status change as re?ected in msr[3:0]. logic 0 = disable the modem status register interrupt (normal default condition) logic 1 = enable the modem status register interrupt 2 ier[2] receive line status interrupt. this interrupt will be issued whenever a receive data error condition exists as re?ected in lsr[4:1]. logic 0 = disable the receiver line status interrupt (normal default condition) logic 1 = enable the receiver line status interrupt
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 21 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface 7.2.1 ier versus transmit/receive fifo interrupt mode operation when the receive fifo is enabled (fcr[0] = logic 1), and receive interrupts (ier[0] = logic 1) are enabled, the receive interrupts and register status will re?ect the following: ? the receive rxrdy interrupt (level 2 isr interrupt) is issued to the external cpu when the receive fifo has reached the programmed trigger level. it will be cleared when the receive fifo drops below the programmed trigger level. ? receive fifo status will also be re?ected in the user accessible isr register when the receive fifo trigger level is reached. both the isr register receive status bit and the interrupt will be cleared when the fifo drops below the trigger level. ? the receive data ready bit (lsr[0]) is set as soon as a character is transferred from the shift register (rsr) to the receive fifo. it is reset when the fifo is empty. ? when the transmit fifo and interrupts are enabled, an interrupt is generated when the transmit fifo is empty due to the unloading of the data by the tsr and uart for transmission via the transmission media. the interrupt is cleared either by reading the isr, or by loading the thr with new data characters. 7.2.2 ier versus receive/transmit fifo polled mode operation when fcr[0] = logic 1, setting ier[3:0] = zeroes puts the sc16c850v in the fifo polled mode of operation. in this mode, interrupts are not generated and the user must poll the lsr register for tx and/or rx data status. since the receiver and transmitter have separate bits in the lsr either or both can be used in the polled mode by selecting respective transmit or receive control bit(s). ? lsr[0] will be a logic 1 as long as there is one byte in the receive fifo. ? lsr[4:1] will provide the type of receive errors, or a receive break, if encountered. ? lsr[5] will indicate when the transmit fifo is empty. ? lsr[6] will indicate when both the transmit fifo and transmit shift register are empty. ? lsr[7] will show if any fifo data errors occurred. 1 ier[1] transmit holding register interrupt. in the non-fifo mode, this interrupt will be issued whenever the thr is empty, and is associated with lsr[5]. in the fifo modes, this interrupt will be issued whenever the fifo is empty. logic 0 = disable the transmit holding register empty (txrdy) interrupt (normal default condition) logic 1 = enable the txrdy (isr level 3) interrupt 0 ier[0] receive holding register. in the non-fifo mode, this interrupt will be issued when the rhr has data, or is cleared when the rhr is empty. in the fifo mode, this interrupt will be issued when the fifo has reached the programmed trigger level or is cleared when the fifo drops below the trigger level. logic 0 = disable the receiver ready (isr level 2, rxrdy) interrupt (normal default condition) logic 1 = enable the rxrdy (isr level 2) interrupt table 8. interrupt enable register bits description continued bit symbol description
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 22 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface 7.3 fifo control register (fcr) this register is used to enable the fifos, clear the fifos and set the receive fifo trigger levels. 7.3.1 fifo mode [1] for 128-byte fifo mode, refer to section 7.16 , section 7.17 , section 7.18 . [2] for 128-byte fifo mode, refer to section 7.15 , section 7.17 , section 7.18 . [1] when rxintlvl or txintlvl or flwcnth or flwcntl contains any value other than 0x00, receive and transmit trigger levels are set by rxintlvl, txintlvl; see section 6.4 fifo oper ation . table 9. fifo control register bits description bit symbol description 7:6 fcr[7:6] receive trigger level in 32-byte fifo mode. [1] these bits are used to set the trigger level for receive fifo interrupt and ?ow control. the sc16c850v will issue a receive ready interrupt when the number of characters in the receive fifo reaches the selected trigger level. refer to t ab le 10 . 5:4 fcr[5:4] transmit trigger level in 32-byte fifo mode. [2] these bits are used to set the trigger level for the transmit fifo interrupt and ?ow control. the sc16c850v will issue a transmit empty interrupt when the number of characters in fifo drops below the selected trigger level. refer to t ab le 11 . 3 fcr[3] reserved 2 fcr[2] xmit fifo reset. logic 0 = no fifo transmit reset (normal default condition) logic 1 = clears the contents of the transmit fifo and resets the fifo counter logic. this bit will return to a logic 0 after clearing the fifo. 1 fcr[1] rcvr fifo reset. logic 0 = no fifo receive reset (normal default condition) logic 1 = clears the contents of the receive fifo and resets the fifo counter logic. this bit will return to a logic 0 after clearing the fifo. 0 fcr[0] fifo enable. logic 0 = disable the transmit and receive fifo (normal default condition) logic 1 = enable the transmit and receive fifo table 10. rcvr trigger levels fcr[7] fcr[6] rx fifo trigger level in 32-byte fifo mode [1] 0 0 8 bytes 0 1 16 bytes 1 0 24 bytes 1 1 28 bytes
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 23 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface [1] when rxintlvl or txintlvl or flwcnth or flwcntl contains any value other than 0x00, receive and transmit trigger levels are set by rxintlvl, txintlvl; see section 6.4 fifo oper ation . 7.4 interrupt status register (isr) the sc16c850v provides six levels of prioritized interrupts to minimize external software interaction. the interrupt status register (isr) provides the user with six interrupt status bits. performing a read cycle on the isr will provide the user with the highest pending interrupt level to be serviced. no other interrupts are acknowledged until the pending interrupt is serviced. a lower level interrupt may be seen after servicing the higher level interrupt and re-reading the interrupt status bits. t ab le 12 interr upt source shows the data values (bits 5:0) for the six prioritized interrupt levels and the interrupt sources associated with each of these interrupt levels. table 11. tx fifo trigger levels fcr[5] fcr[4] tx fifo trigger level in 32-byte fifo mode [1] 0 0 16 bytes 0 1 8 bytes 1 0 24 bytes 1 1 30 bytes table 12. interrupt source priority level isr[5] isr[4] isr[3] isr[2] isr[1] isr[0] source of the interrupt 1 0 0 0 1 1 0 lsr (receiver line status register) 2 0 0 0 1 0 0 rxrdy (received data ready) 2 0 0 1 1 0 0 rxrdy (receive data time-out) 3 0 0 0 0 1 0 txrdy (transmitter holding register empty) 4 0 0 0 0 0 0 msr (modem status register) 5 0 1 0 0 0 0 rxrdy (received xoff signal)/ special character 6 1 0 0 0 0 0 cts, rts change of state table 13. interrupt status register bits description bit symbol description 7:6 isr[7:6] fifos enabled. these bits are set to a logic 0 when the fifos are not being used in the non-fifo mode. they are set to a logic 1 when the fifos are enabled in the sc16c850v mode. logic 0 or cleared = default condition 5:4 isr[5:4] int priority bits 4:3. these bits are enabled when efr[4] is set to a logic 1. isr[4] indicates that matching xoff character(s) have been detected. isr[5] indicates that cts, rts have been generated. note that once set to a logic 1, the isr[4] bit will stay a logic 1 until xon character(s) are received. logic 0 or cleared = default condition 3:1 isr[3:1] int priority bits 2:0. these bits indicate the source for a pending interrupt at interrupt priority levels 1, 2, and 3 (see t ab le 12 ). logic 0 or cleared = default condition
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 24 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface 7.5 line control register (lcr) the line control register is used to specify the asynchronous data communication format. the word length, the number of stop bits, and the parity are selected by writing the appropriate bits in this register. 0 isr[0] int status. logic 0 = an interrupt is pending and the isr contents may be used as a pointer to the appropriate interrupt service routine logic 1 = no interrupt pending (normal default condition) table 13. interrupt status register bits description continued bit symbol description table 14. line control register bits description bit symbol description 7 lcr[7] divisor latch enable. the internal baud rate counter latch and enhanced feature mode enable. logic 0 = divisor latch disabled (normal default condition) logic 1 = divisor latch enabled 6 lcr[6] set break. when enabled, the break control bit causes a break condition to be transmitted (the tx output is forced to a logic 0 state). this condition exists until disabled by setting lcr[6] to a logic 0. logic 0 = no tx break condition (normal default condition) logic 1 = forces the transmitter output (tx) to a logic 0 for alerting the remote receiver to a line break condition 5:3 lcr[5:3] programs the parity conditions (see t ab le 15 ). 2 lcr[2] stop bits. the length of stop bit is speci?ed by this bit in conjunction with the programmed word length (see t ab le 16 ). logic 0 or cleared = default condition 1:0 lcr[1:0] word length bits 1, 0. these two bits specify the word length to be transmitted or received (see t ab le 17 ). logic 0 or cleared = default condition table 15. lcr[5:3] parity selection lcr[5] lcr[4] lcr[3] parity selection x x 0 no parity x 0 1 odd parity 0 1 1 even parity 0 0 1 forced parity 1 1 1 1 forced parity 0 table 16. lcr[2] stop bit length lcr[2] word length (bits) stop bit length (bit times) 0 5, 6, 7, 8 1 15 1 1 2 1 6, 7, 8 2
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 25 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface 7.6 modem control register (mcr) this register controls the interface with the modem or a peripheral device. table 17. lcr[1:0] word length lcr[1] lcr[0] word length (bits) 00 5 01 6 10 7 11 8 table 18. modem control register bits description bit symbol description 7 mcr[7] clock select logic 0 = divide-by-1 clock input logic 1 = divide-by-4 clock input 6 mcr[6] ir enable (see figure 14 ). logic 0 = enable the standard modem receive and transmit input/output interface (normal default condition) logic 1 = enable infrared irda receive and transmit inputs/outputs. while in this mode, the tx/rx output/inputs are routed to the infrared encoder/decoder. the data input and output levels will conform to the irda infrared interface requirement. as such, while in this mode, the infrared tx output will be a logic 0 during idle data conditions. 5 mcr[5] interrupt type. logic 0 = cmos output logic 1 = open-source. a 300 w to 500 w pull-down resistor is required. 4 mcr[4] loopback. enable the local loopback mode (diagnostics). in this mode the transmitter output ( tx) and the receiver input ( rx), cts, dsr, cd, and ri are disconnected from the sc16c850v i/o pins. internally the modem data and control pins are connected into a loopback data con?guration (see figure 6 ). in this mode, the receiver and transmitter interrupts remain fully operational. the modem control interrupts are also operational, but the interrupts sources are switched to the lower four bits of the modem control. interrupts continue to be controlled by the ier register. logic 0 = disable loopback mode (normal default condition) logic 1 = enable local loopback mode (diagnostics) 3 mcr[3] op2. this bit is used for internal loopback mode only. in loopback mode, this bit is used to write the state of the modem cd interface signal. 2 mcr[2] op1. this bit is used for internal loopback mode only. in loopback mode, this bit is used to write the state of the modem ri interface signal. 1 mcr[1] r ts logic 0 = force r ts output to a logic 1 (normal default condition) logic 1 = force r ts output to a logic 0 0 mcr[0] dtr logic 0 = force dtr output to a logic 1 (normal default condition) logic 1 = force dtr output to a logic 0
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 26 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface 7.7 line status register (lsr) this register provides the status of data transfers between the sc16c850v and the cpu. table 19. interrupt output control mcr[5] int output 0 active 1 open-source table 20. line status register bits description bit symbol description 7 lsr[7] fifo data error. logic 0 = no error (normal default condition) logic 1 = at least one parity error, framing error or break indication is in the current fifo data. this bit is cleared when there are no remaining error ?ags associated with the remaining data in the fifo. 6 lsr[6] thr and tsr empty. this bit is the transmit empty indicator. this bit is set to a logic 1 whenever the transmit holding register and the transmit shift register are both empty. it is reset to logic 0 whenever either the thr or tsr contains a data character. in the fifo mode, this bit is set to logic 1 whenever the transmit fifo and transmit shift register are both empty. 5 lsr[5] thr empty. this bit is the transmit holding register empty indicator. this bit indicates that the uart is ready to accept a new character for transmission. in addition, this bit causes the uart to issue an interrupt to cpu when the thr interrupt enable is set. the thr bit is set to a logic 1 when a character is transferred from the transmit holding register into the transmitter shift register. the bit is reset to a logic 0 concurrently with the loading of the transmitter holding register by the cpu. in the fifo mode, this bit is set when the transmit fifo is empty; it is cleared when at least 1 byte is written to the transmit fifo. 4 lsr[4] break interrupt. logic 0 = no break condition (normal default condition) logic 1 = the receiver received a break signal (rx was a logic 0 for one character frame time). in the fifo mode, only one break character is loaded into the fifo. 3 lsr[3] framing error. logic 0 = no framing error (normal default condition) logic 1 = framing error. the receive character did not have a valid stop bit(s). in the fifo mode, this error is associated with the character at the top of the fifo. 2 lsr[2] parity error. logic 0 = no parity error (normal default condition logic 1 = parity error. the receive character does not have correct parity information and is suspect. in the fifo mode, this error is associated with the character at the top of the fifo. 1 lsr[1] overrun error. logic 0 = no overrun error (normal default condition) logic 1 = overrun error. a data overrun error occurred in the receive shift register. this happens when additional data arrives while the fifo is full. in this case, the previous data in the shift register is overwritten. note that under this condition, the data byte in the receive shift register is not transferred into the fifo, therefore the data in the fifo is not corrupted by the error.
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 27 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface 7.8 modem status register (msr) this register shares the same address as efcr register. this is a read-only register and it provides the current state of the control interface signals from the modem, or other peripheral device to which the sc16c850v is connected. four bits of this register are used to indicate the changed information. these bits are set to a logic 1 whenever a control input from the modem changes state. these bits are set to a logic 0 whenever the cpu reads this register. when write, the data will be written to efcr register. [1] whenever any msr bit 3:0 is set to logic 1, a modem status interrupt will be generated. 0 lsr[0] receive data ready. logic 0 = no data in receive holding register or fifo (normal default condition) logic 1 = data has been received and is saved in the receive holding register or fifo table 20. line status register bits description continued bit symbol description table 21. modem status register bits description bit symbol description 7 msr[7] cd. during normal operation, this bit is the complement of the cd input. reading this bit in the loopback mode produces the state of mcr[3] ( op2). 6 msr[6] ri. during normal operation, this bit is the complement of the ri input. reading this bit in the loopback mode produces the state of mcr[2] ( op1). 5 msr[5] dsr. during normal operation, this bit is the complement of the dsr input. during the loopback mode, this bit is equivalent to mcr[0] ( dtr). 4 msr[4] cts. during normal operation, this bit is the complement of the cts input. during the loopback mode, this bit is equivalent to mcr[1] ( r ts). 3 msr[3] d cd [1] logic 0 = no cd change (normal default condition) logic 1 = the cd input to the sc16c850v has changed state since the last time it was read. a modem status interrupt will be generated. 2 msr[2] d ri [1] logic 0 = no ri change (normal default condition) logic 1 = the ri input to the sc16c850v has changed from a logic 0 to a logic 1. a modem status interrupt will be generated. 1 msr[1] d dsr [1] logic 0 = no dsr change (normal default condition) logic 1 = the dsr input to the sc16c850v has changed state since the last time it was read. a modem status interrupt will be generated. 0 msr[0] d cts [1] logic 0 = no cts change (normal default condition) logic 1 = the cts input to the sc16c850v has changed state since the last time it was read. a modem status interrupt will be generated.
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 28 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface 7.9 extra feature control register (efcr) this is a write-only register, and it allows the software access to these registers: first extra register set, second extra register set, transmit fifo level counter (txlvlcnt), and receive fifo level counter (rxlvlcnt). remark: efcr[2:1] has higher priority than efcr[0]. txlvlcnt and rxlvlcnt can only be accessed if efcr[2:1] are zeroes. 7.10 scratchpad register (spr) the sc16c850v provides a temporary data register to store 8 bits of user information. 7.11 division latch (dll and dlm) these are two 8-bit registers which store the 16-bit divisor for generation of the baud clock in the baud rate generator. dlm stores the most signi?cant part of the divisor. dll stores the least signi?cant part of the divisor. 7.12 transmit fifo level count (txlvlcnt) this register is a read-only register. it reports the number of spaces available in the transmit fifo. 7.13 receive fifo level count (rxlvlcnt) this register is a read-only register. it reports the ?ll level of the receive fifo (the number of characters in the rxfifo). table 22. extra feature control register bits description bit symbol description 7:3 efcr[7:3] reserved 2:1 efcr[2:1] enable extra feature control bits 00 = general register set is accessible 01 = first extra register set is accessible 10 = second extra register set is accessible 11 = reserved 0 efcr[0] enable txlvlcnt and rxlvlcnt access 0 = txlvlcnt and rxlvlcnt are disabled 1 = txlvlcnt and rxlvlcnt are enabled and can be read
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 29 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface 7.14 enhanced feature register (efr) enhanced features are enabled or disabled using this register. bit 0 through bit 4 provide single or dual character software ?ow control selection. when the xon1 and xon2 and/or xoff1 and xoff2 modes are selected, the double 8-bit words are concatenated into two sequential numbers. [1] enhanced function control bits: ier[7:4], isr[5:4], fcr[5:4] and mcr[7:5]. table 23. enhanced feature register bits description bit symbol description 7 efr[7] automatic cts ?ow control. logic 0 = automatic cts ?ow control is disabled (normal default condition) logic 1 = enable automatic cts ?ow control. transmission will stop when cts goes to a logical 1. transmission will resume when the cts signal returns to a logical 0. 6 efr[6] automatic rts ?ow control. automatic rts may be used for hardware ?ow control by enabling efr[6]. when auto-rts is selected, an interrupt will be generated when the receive fifo is ?lled to the programmed trigger level and r ts will go to a logic 1 at the next trigger level. r ts will return to a logic 0 when data is unloaded below the next lower trigger level (programmed trigger level 1). the state of this register bit changes with the status of the hardware ?ow control. r ts functions normally when hardware ?ow control is disabled. logic 0 = automatic rts ?ow control is disabled (normal default condition) logic 1 = enable automatic rts ?ow control 5 efr[5] special character detect. logic 0 = special character detect disabled (normal default condition) logic 1 = special character detect enabled. the sc16c850v compares each incoming receive character with xoff2 data. if a match exists, the received data will be transferred to fifo and isr[4] will be set to indicate detection of special character. bit-0 in the x-registers corresponds with the lsb bit for the receive character. when this feature is enabled, the normal software ?ow control must be disabled (efr[3:0] must be set to a logic 0). 4 efr[4] enhanced function control bit. the content of ier[7:4], isr[5:4], fcr[5:4], and mcr[7:5] can be modi?ed and latched. after modifying any bits in the enhanced registers, efr[4] can be set to a logic 0 to latch the new values. this feature prevents existing software from altering or overwriting the sc16c850v enhanced functions. logic 0 = disable/latch enhanced features [1] logic 1 = enables the enhanced functions [1] . when this bit is set to a logic 1, all enhanced features of the sc16c850v are enabled and user settings stored during a reset will be restored. 3:0 efr[3:0] cont-3:0 tx, rx control. logic 0 or cleared is the default condition. combinations of software ?ow control can be selected by programming these bits. see t ab le 24 .
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 30 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface [1] when using a software ?ow control the xon/xoff characters cannot be used for data transfer. 7.15 transmit interrupt level register (txintlvl) this 8-bit register is used store the transmit fifo trigger levels used for interrupt generation. trigger levels from 1 to 128 can be programmed with a granularity of 1. t ab le 25 shows trigger level register bit settings. [1] for 32-byte fifo mode, refer to section 7.3 fifo control register (fcr) . 7.16 receive interrupt level register (rxintlvl) this 8-bit register is used store the receive fifo trigger levels used for interrupt generation. trigger levels from 1 to 128 can be programmed with a granularity of 1. t ab le 26 shows trigger level register bit settings. table 24. software ?ow control functions [1] cont-3 cont-2 cont-1 cont-0 tx, rx software ?ow controls 0 0 x x no transmit ?ow control 1 0 x x transmit xon1/xoff1 0 1 x x transmit xon2/xoff2 1 1 x x transmit xon1 and xon2/xoff1 and xoff2 x x 0 0 no receive ?ow control x x 1 0 receiver compares xon1/xoff1 x x 0 1 receiver compares xon2/xoff2 1011tr ansmit xon1/xoff1 receiver compares xon1 or xon2, xoff1 or xoff2 0111tr ansmit xon2/xoff2 receiver compares xon1 or xon2, xoff1 or xoff2 1111tr ansmit xon1 and xon2, xoff1 and xoff2 receiver compares xon1 and xon2, xoff1 and xoff2 table 25. txintlvl register bits description bit symbol description 7:0 txintlvl[7:0] this register stores the programmable transmit interrupt trigger levels for 128-byte fifo mode. [1] 0x00 = trigger level is set to 1 0x01 = trigger level is set to 1 ... 0x80 = trigger level is set to 128 table 26. rxintlvl register bits description bit symbol description 7:0 rxintlvl[7:0] this register stores the programmable receive interrupt trigger levels for 128-byte fifo mode. [1] 0x00 = trigger level is set to 1 0x01 = trigger level is set to 1 ... 0x80 = trigger level is set to 128
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 31 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface [1] for 32-byte fifo mode, refer to section 7.3 fifo control register (fcr) . 7.17 flow control trigger level high (flwcnth) this 8-bit register is used to store the receive fifo high threshold levels to start/stop transmission during hardware/software ?ow control. t ab le 27 shows transmission control register bit settings; see section 6.5 . [1] for 32-byte fifo mode, refer to section 7.3 fifo control register (fcr) . 7.18 flow control trigger level low (flwcntl) this 8-bit register is used to store the receive fifo low threshold levels to start/stop transmission during hardware/software ?ow control. t ab le 28 shows transmission control register bit settings; see section 6.5 . [1] for 32-byte fifo mode, refer to section 7.3 fifo control register (fcr) . 7.19 clock prescaler (clkpres) this register hold values for the clock prescaler. table 27. flwcnth register bits description bit symbol description 7:0 flwcnth[7:0] this register stores the programmable high threshold level for hardware and software ?ow control for 128-byte fifo mode. [1] 0x00 = trigger level is set to 1 0x01 = trigger level is set to 1 ... 0x80 = trigger level is set to 128 table 28. flwcntl register bits description bit symbol description 7:0 flwcntl[7:0] this register stores the programmable low threshold level for hardware and software ?ow control for 128-byte fifo mode. [1] 0x00 = trigger level is set to 1 0x01 = trigger level is set to 1 ... 0x80 = trigger level is set to 128 table 29. clock prescaler register description bit symbol description 7:4 clkpres[7:4] reserved 3:0 clkpres[3:0] clock prescaler value; reset to 0
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 32 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface 7.20 rs-485 turn-around time delay (rs485time) the value in this register controls the turn-around time of the external line transceiver in bit time. in automatic 9-bit mode, the r ts or dtr pin is used to control the direction of the line driver, after the last bit of data has been shifted out of the transmit shift register the uart will count down the value in this register. when the count value reaches zero, the uart will assert the r ts or dtr pin (logic 0) to turn the external rs-485 transceiver around for receiving. 7.21 advanced feature control register 1 (afcr1) [1] it takes 4 xtal1 clocks to reset the device. table 30. rs-485 programmable turn-around time register bit symbol description 7:0 rs485time[7:0] external rs-485 transceiver turn-around time delay. the value represents the bit time at the programmed baud rate. table 31. advanced feature control register 1 bits description bit symbol description 7:5 afcr1[7:5] reserved 4 afcr1[4] sleep rxlow. program rx input to be edge-sensitive or level-sensitive. logic 0 = rx input is level sensitive. if rx pin is low, the uart will not go to sleep. once the uart is in sleep mode, it will wake up if rx pin goes low. logic 1 = rx input is edge sensitive. uart will go to sleep even if rx pin is low, and will wake up when rx pin toggles. 3 afcr1[3] reserved 2 afcr1[2] rts/cts mapped to dtr/dsr. switch the function of rts/cts to dtr/dsr. logic 0 = rts and cts signals are used for hardware ?ow control logic 1 = dtr and dsr signals are used for hardware ?ow control. rts and cts retain their functionality. 1 afcr1[1] sreset. software reset. a write to this bit will reset the uart. once the uart is reset this bit is automatically set to logic 0. [1] 0 afcr1[0] tsr interrupt. select tsr interrupt mode. logic 0 = transmit empty interrupt occurs when transmit fifo falls below the trigger level or becomes empty. logic 1 = transmit empty interrupt occurs when transmit fifo fall below the trigger level, or becomes empty and the last stop bit has been shift out the transmit shift register.
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 33 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface 7.22 advanced feature control register 2 (afcr2) table 32. advanced feature control register 2 bits description bit symbol description 7:6 afcr2[7:6] reserved 5 afcr2[5] rtsinvert. invert rts or dtr signal in auto 9-bit mode. logic 0 = rts or dtr is set to 0 by the uart during transmission, and to 1 during reception logic 1 = rts or dtr is set to 1 by the uart during transmission, and to 0 during reception 4 afcr2[4] rtscon. enable the transmitter to control rts or dtr signal in auto 9-bit mode. logic 0 = transmitter does not control rts or dtr signal logic 1 = transmitter controls rts or dtr signal 3 afcr2[3] rs485 rts/dtr. select r ts or dtr pin to control the external transceiver. logic 0 = r ts pin is used to control the external transceiver logic 1 = dtr pin is used to control the external transceiver 2 afcr2[2] txdisable. disable transmitter. logic 0 = transmitter is enabled logic 1 = transmitter is disabled 1 afcr2[1] rxdisable. disable receiver. logic 0 = receiver is enabled logic 1 = receiver is disabled 0 afcr2[0] 9-bitmode. enable 9-bit mode or multidrop (rs-485) mode. logic 0 = normal rs-232 mode logic 1 = enable 9-bit mode
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 34 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface 7.23 sc16c850v external reset condition and software reset these two reset methods are identical and will reset the internal registers as indicated in t ab le 33 . table 33. reset state for registers register reset state ier ier[7:0] = 0 fcr fcr[7:0] = 0 isr isr[7:1] = 0; isr[0] = 1 lcr lcr[7:0] = 0 mcr mcr[7:0] = 0 lsr lsr[7] = 0; lsr[6:5] = 1; lsr[4:0] = 0 msr msr[7:4] = input signals; msr[3:0] = 0 efcr efcr[7:0] = 0 spr spr[7:0] = 1 dll unde?ned dlm unde?ned txlvlcnt txlvlcnt[7:0] = 0 rxlvlcnt rxlvlcnt[7:0] = 0 efr efr[7:0] = 0 xon1 unde?ned xon2 unde?ned xoff1 unde?ned xoff2 unde?ned txintlvl txintlvl[7:0] = 0 rxintlvl rxintlvl[7:0] = 0 flwcnth flwcnth[7:0] = 0 flwcntl flwcntl[7:0] = 0 clkpres clkpres[7:0] = 0 rs485time rs485time[7:0] = 0 afcr2 afcr2[7:0] = 0 afcr1 afcr1[7:0] = 0 table 34. reset state for outputs output reset state tx logic 1 r ts logic 1 dtr logic 1 int 3-state condition
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 35 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface 8. limiting values [1] v n should not exceed 2.5 v. 9. static characteristics [1] except xtal2. [2] sleep current might be higher if there is any activity on the uart data bus during sleep mode. [3] activate by lowpwr pin. table 35. limiting values in accordance with the absolute maximum rating system (iec 60134). symbol parameter conditions min max unit v dd supply voltage - 2.5 v v n voltage on any other pin [1] v ss - 0.3 v dd + 0.3 v t amb ambient temperature operating in free air - 40 +85 c t stg storage temperature - 65 +150 c p tot /pack total power dissipation per package - 500 mw table 36. static characteristics t amb = - 40 c to +85 c; v dd = 1.65 v to 1.95 v; unless otherwise speci?ed. symbol parameter conditions min typ max unit v il(clk) clock low-level input voltage - - 0.25 v v ih(clk) clock high-level input voltage 1.35 - - v v il low-level input voltage except xtal1 clock - - 0.45 v v ih high-level input voltage except xtal1 clock 1.35 - - v v ol low-level output voltage i ol =2ma [1] - - 0.35 v v oh high-level output voltage i oh = - 800 m a [1] 1.45 - - v i lil low-level input leakage current --1 m a i lih high-level input leakage current --1 m a i l(clk) clock leakage current low-level - - 30 m a high-level - - 30 m a i dd supply current f = 5 mhz - - 2 ma i dd(sleep) sleep mode supply current [2] --5 m a i dd(lp) low-power mode supply current [3] --5 m a c i input capacitance - - 5 pf
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 36 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface 10. dynamic characteristics [1] external clock only; maximum crystal frequency is 24 mhz. [2] 10 % of the data bus output voltage level. [3] rclk is an internal frequency and it is equal to 16 times the baud rate. table 37. dynamic characteristics t amb = - 40 c to +85 c; v dd = 1.65 v to 1.95 v; unless otherwise speci?ed. symbol parameter conditions min typ max unit f xtal1 frequency on pin xtal1 [1] - - 80 mhz t d(cs-llah) delay time from cs to lla high 10 - - ns t su(a-llah) set-up time from address to lla high 5 - - ns t w(lla) lla pulse width time 10 - - ns t h(llah-a) address hold time after lla high 10 - - ns t d(iow) io w delay time 10 - - ns t d(ior-dv) delay time from ior to data valid 25 pf load - - 40 ns t w(ior) ior pulse width time 20 - - ns t d(llah-iorl) delay time from lla high to ior low 10 - - ns t w(iow) io w pulse width time 10 - - ns t h(iowh-d) data input hold time after io w high 5 - - ns t d(llah-iowl) delay time from lla high to io w low 10 - - ns t su(d-iowh) set-up time from data input to io w high 5 - - ns t d(ior) ior delay time 10 - - ns t dis(ior-qz) disable time from ior to high-impedance data output [2] 25 pf load - - 20 ns t d(iow-q) delay time from io w to data output 25 pf load - - 50 ns t d(modem-int) delay time from modem to int 25 pf load - - 50 ns t d(ior-intl) delay time from ior to int low 25 pf load - - 50 ns t wh pulse width high 6 - - ns t wl pulse width low 6 - - ns t w(clk) clock pulse width 12.5 - - ns t d(stop-int) delay time from stop to int 25 pf load [3] --1t rclk s t d(start-int) delay time from start to int 25 pf load [3] --1t rclk s t d(iow-tx) delay time from io w to tx [3] 8t rclk - 24t rclk s t d(iow-intl) delay time from io w to int low 25 pf load - - 50 ns t w(reset_n) pulse width on pin reset 10 - - ns
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 37 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface 10.1 timing diagrams fig 7. general write timing upper address 002aac354 ad7 to ad0 cs lla iow lower address data t w(lla) t su(a-llah) t h(llah-a) t d(cs-llah) t w(iow) t d(iow) t su(d-iowh) t h(iowh-d) t d(llah-iowl) fig 8. general read timing upper address 002aac355 ad7 to ad0 cs lla ior lower address data t w(lla) t su(a-llah) t h(llah-a) t w(ior) t d(ior-dv) t d(ior) t dis(ior-qz) t d(llah-iorl) t d(cs-llah)
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 38 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface fig 9. modem input/output timing t d(iow-q) change of state t d(ior-intl) 002aac559 t d(modem-int) change of state change of state change of state active active active active active active active change of state rts dtr iow cd cts dsr int ior ri t d(modem-int) t d(modem-int) fig 10. external clock timing external clock 002aac357 t w(clk) t wl t wh f xtal1 1 t wclk () -------------- - =
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 39 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface fig 11. receive timing d0 d1 d2 d3 d4 d5 d6 d7 active active 16 baud rate clock 002aac560 rx int ior t d(ior-intl) t d(stop-int) 5 data bits 6 data bits 7 data bits stop bit parity bit start bit data bits (0 to 7) next data start bit fig 12. transmit timing active transmitter ready active 16 baud rate clock 002aac561 t d(iow-intl) int iow active d0 d1 d2 d3 d4 d5 d6 d7 tx 5 data bits 6 data bits 7 data bits stop bit parity bit start bit data bits (0 to 7) next data start bit t d(start-int) t d(iow-tx)
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 40 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface fig 13. infrared transmit timing fig 14. infrared receive timing 01010011 1 0 uart frame tx data 1 / 2 bit time 002aaa212 data bits start stop bit time irda tx data 3 / 16 bit time 01010011 1 0 uart frame rx data irda rx data bit time 002aaa213 start data bits stop 0 to 1 16 clock delay
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 41 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface 11. package outline fig 15. package outline sot617-1 (hvqfn32) 0.5 1 a 1 e h b unit y e 0.2 c references outline version european projection issue date iec jedec jeita mm 5.1 4.9 d h 3.25 2.95 y 1 5.1 4.9 3.25 2.95 e 1 3.5 e 2 3.5 0.30 0.18 0.05 0.00 0.05 0.1 dimensions (mm are the original dimensions) sot617-1 mo-220 - - - - - - 0.5 0.3 l 0.1 v 0.05 w 0 2.5 5 mm scale sot617-1 hvqfn32: plastic thermal enhanced very thin quad flat package; no leads; 32 terminals; body 5 x 5 x 0.85 mm a (1) max. a a 1 c detail x y y 1 c e l e h d h e e 1 b 916 32 25 24 17 8 1 x d e c b a e 2 terminal 1 index area terminal 1 index area 01-08-08 02-10-18 1/2 e 1/2 e a c c b v m w m e (1) note 1. plastic or metal protrusions of 0.075 mm maximum per side are not included. d (1)
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 42 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface 12. soldering of smd packages this text provides a very brief insight into a complex technology. a more in-depth account of soldering ics can be found in application note an10365 surface mount re?ow soldering description . 12.1 introduction to soldering soldering is one of the most common methods through which packages are attached to printed circuit boards (pcbs), to form electrical circuits. the soldered joint provides both the mechanical and the electrical connection. there is no single soldering method that is ideal for all ic packages. wave soldering is often preferred when through-hole and surface mount devices (smds) are mixed on one printed wiring board; however, it is not suitable for ?ne pitch smds. re?ow soldering is ideal for the small pitches and high densities that come with increased miniaturization. 12.2 wave and re?ow soldering wave soldering is a joining technology in which the joints are made by solder coming from a standing wave of liquid solder. the wave soldering process is suitable for the following: ? through-hole components ? leaded or leadless smds, which are glued to the surface of the printed circuit board not all smds can be wave soldered. packages with solder balls, and some leadless packages which have solder lands underneath the body, cannot be wave soldered. also, leaded smds with leads having a pitch smaller than ~0.6 mm cannot be wave soldered, due to an increased probability of bridging. the re?ow soldering process involves applying solder paste to a board, followed by component placement and exposure to a temperature pro?le. leaded packages, packages with solder balls, and leadless packages are all re?ow solderable. key characteristics in both wave and re?ow soldering are: ? board speci?cations, including the board ?nish, solder masks and vias ? package footprints, including solder thieves and orientation ? the moisture sensitivity level of the packages ? package placement ? inspection and repair ? lead-free soldering versus snpb soldering 12.3 wave soldering key characteristics in wave soldering are: ? process issues, such as application of adhesive and ?ux, clinching of leads, board transport, the solder wave parameters, and the time during which components are exposed to the wave ? solder bath speci?cations, including temperature and impurities
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 43 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface 12.4 re?ow soldering key characteristics in re?ow soldering are: ? lead-free versus snpb soldering; note that a lead-free re?ow process usually leads to higher minimum peak temperatures (see figure 16 ) than a snpb process, thus reducing the process window ? solder paste printing issues including smearing, release, and adjusting the process window for a mix of large and small components on one board ? re?ow temperature pro?le; this pro?le includes preheat, re?ow (in which the board is heated to the peak temperature) and cooling down. it is imperative that the peak temperature is high enough for the solder to make reliable solder joints (a solder paste characteristic). in addition, the peak temperature must be low enough that the packages and/or boards are not damaged. the peak temperature of the package depends on package thickness and volume and is classi?ed in accordance with t ab le 38 and 39 moisture sensitivity precautions, as indicated on the packing, must be respected at all times. studies have shown that small packages reach higher temperatures during re?ow soldering, see figure 16 . table 38. snpb eutectic process (from j-std-020c) package thickness (mm) package re?ow temperature ( c) volume (mm 3 ) < 350 3 350 < 2.5 235 220 3 2.5 220 220 table 39. lead-free process (from j-std-020c) package thickness (mm) package re?ow temperature ( c) volume (mm 3 ) < 350 350 to 2000 > 2000 < 1.6 260 260 260 1.6 to 2.5 260 250 245 > 2.5 250 245 245
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 44 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface for further information on temperature pro?les, refer to application note an10365 surface mount re?ow soldering description . 13. abbreviations msl: moisture sensitivity level fig 16. temperature pro?les for large and small components 001aac844 temperature time minimum peak temperature = minimum soldering temperature maximum peak temperature = msl limit, damage level peak temperature table 40. abbreviations acronym description cpu central processing unit fifo first in, first out irda infrared data association isdn integrated service digital network lsb least signi?cant bit msb most signi?cant bit pcb printed-circuit board rohs restriction of hazardous substances directive uart universal asynchronous receiver/transmitter vlio variable latency input/output
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 45 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface 14. revision history table 41. revision history document id release date data sheet status change notice supersedes sc16c850v_4 20080114 product data sheet - sc16c850v_3 modi?cations: ? t ab le 7 sc16c850v inter nal registers : C r/w value for register txlvlcnt changed from r/w to r C r/w value for register rxlvlcnt changed from r/w to r ? t ab le 37 dynamic char acter istics : C changed symbol/parameter from f xtal , oscillator/clock frequency to f xtal1 , frequency on pin xtal1 C changed symbol/parameter from t d(cs-lla) , delay time from cs to lla to t d(cs-llah) , delay time from cs to lla high C changed symbol/parameter from t su(a-llal) , set-up time from address to lla low to t su(a-llah) , set-up time from address to lla high C max value for t d(ior-dv) changed from 15 ns to 40 ns C max value for t dis(ior-qz) changed from 15 ns to 20 ns ? figure 7 gener al wr ite timing : C changed timing symbol from t su(a-lla) to t su(a-llah) C changed timing symbol from t d(cs-lla) to t d(cs-llah) ? figure 8 gener al read timing : C changed timing symbol from t su(a-lla) to t su(a-llah) C changed timing symbol from t d(cs-lla) to t d(cs-llah) ? figure 10 exter nal cloc k timing : in equation, changed f xtal to f xtal1 sc16c850v_3 20070924 product data sheet - sc16c850v_2 sc16c850v_2 20070413 product data sheet - sc16c850v_1 sc16c850v_1 20061107 objective data sheet - -
sc16c850v_4 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 04 14 january 2008 46 of 47 nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface 15. legal information 15.1 data sheet status [1] please consult the most recently issued document before initiating or completing a design. [2] the term short data sheet is explained in section de?nitions. [3] the product status of device(s) described in this document may have changed since this document was published and may differ in case of multiple dev ices. the latest product status information is available on the internet at url http://www .nxp .com . 15.2 de?nitions draft the document is a draft version only. the content is still under internal review and subject to formal approval, which may result in modi?cations or additions. nxp semiconductors does not give any representations or warranties as to the accuracy or completeness of information included herein and shall have no liability for the consequences of use of such information. short data sheet a short data sheet is an extract from a full data sheet with the same product type number(s) and title. a short data sheet is intended for quick reference only and should not be relied upon to contain detailed and full information. for detailed and full information see the relevant full data sheet, which is available on request via the local nxp semiconductors sales of?ce. in case of any inconsistency or con?ict with the short data sheet, the full data sheet shall prevail. 15.3 disclaimers general information in this document is believed to be accurate and reliable. however, nxp semiconductors does not give any representations or warranties, expressed or implied, as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such information. right to make changes nxp semiconductors reserves the right to make changes to information published in this document, including without limitation speci?cations and product descriptions, at any time and without notice. this document supersedes and replaces all information supplied prior to the publication hereof. suitability for use nxp semiconductors products are not designed, authorized or warranted to be suitable for use in medical, military, aircraft, space or life support equipment, nor in applications where failure or malfunction of an nxp semiconductors product can reasonably be expected to result in personal injury, death or severe property or environmental damage. nxp semiconductors accepts no liability for inclusion and/or use of nxp semiconductors products in such equipment or applications and therefore such inclusion and/or use is at the customers own risk. applications applications that are described herein for any of these products are for illustrative purposes only. nxp semiconductors makes no representation or warranty that such applications will be suitable for the speci?ed use without further testing or modi?cation. limiting values stress above one or more limiting values (as de?ned in the absolute maximum ratings system of iec 60134) may cause permanent damage to the device. limiting values are stress ratings only and operation of the device at these or any other conditions above those given in the characteristics sections of this document is not implied. exposure to limiting values for extended periods may affect device reliability. terms and conditions of sale nxp semiconductors products are sold subject to the general terms and conditions of commercial sale, as published at http://www .nxp .com/pro? le/ter ms , including those pertaining to warranty, intellectual property rights infringement and limitation of liability, unless explicitly otherwise agreed to in writing by nxp semiconductors. in case of any inconsistency or con?ict between information in this document and such terms and conditions, the latter will prevail. no offer to sell or license nothing in this document may be interpreted or construed as an offer to sell products that is open for acceptance or the grant, conveyance or implication of any license under any copyrights, patents or other industrial or intellectual property rights. 15.4 trademarks notice: all referenced brands, product names, service names and trademarks are the property of their respective owners. 16. contact information for more information, please visit: http://www .nxp.com for sales of?ce addresses, please send an email to: salesad dresses@nxp.com document status [1] [2] product status [3] de?nition objective [short] data sheet development this document contains data from the objective speci?cation for product development. preliminary [short] data sheet quali?cation this document contains data from the preliminary speci?cation. product [short] data sheet production this document contains the product speci?cation.
nxp semiconductors sc16c850v single uart with 128-byte fifos, irda, and xscale vlio bus interface ? nxp b.v. 2008. all rights reserved. for more information, please visit: http://www.nxp.com for sales office addresses, please send an email to: salesaddresses@nxp.com date of release: 14 january 2008 document identifier: sc16c850v_4 please be aware that important notices concerning this document and the product(s) described herein, have been included in section legal information. 17. contents 1 general description . . . . . . . . . . . . . . . . . . . . . . 1 2 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 3 ordering information . . . . . . . . . . . . . . . . . . . . . 2 4 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 3 5 pinning information . . . . . . . . . . . . . . . . . . . . . . 4 5.1 pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 5.2 pin description . . . . . . . . . . . . . . . . . . . . . . . . . 4 6 functional description . . . . . . . . . . . . . . . . . . . 6 6.1 uart selection . . . . . . . . . . . . . . . . . . . . . . . . . 6 6.2 extended mode (128-byte fifo) . . . . . . . . . . . 7 6.3 internal registers. . . . . . . . . . . . . . . . . . . . . . . . 7 6.4 fifo operation . . . . . . . . . . . . . . . . . . . . . . . . . 8 6.4.1 32-byte fifo mode. . . . . . . . . . . . . . . . . . . . . . 8 6.4.2 128-byte fifo mode. . . . . . . . . . . . . . . . . . . . . 8 6.5 hardware ?ow control . . . . . . . . . . . . . . . . . . . . 8 6.6 software ?ow control . . . . . . . . . . . . . . . . . . . . 9 6.7 special character detect . . . . . . . . . . . . . . . . . 10 6.8 interrupt priority and time-out interrupts . . . . . 10 6.9 programmable baud rate generator . . . . . . . . 11 6.10 loopback mode . . . . . . . . . . . . . . . . . . . . . . . 13 6.11 sleep mode. . . . . . . . . . . . . . . . . . . . . . . . . . . 15 6.11.1 conditions to enter sleep mode . . . . . . . . . . . 15 6.11.2 conditions to resume normal operation . . . . . 15 6.12 low power feature . . . . . . . . . . . . . . . . . . . . . 15 6.13 rs-485 features . . . . . . . . . . . . . . . . . . . . . . 16 6.13.1 auto rs-485 r ts control . . . . . . . . . . . . . . . . 16 6.13.2 rs-485 r ts inversion . . . . . . . . . . . . . . . . . . 16 6.13.3 auto 9-bit mode (rs-485). . . . . . . . . . . . . . . . 16 6.13.3.1 normal multi-drop mode . . . . . . . . . . . . . . . . . 16 6.13.3.2 auto address detection . . . . . . . . . . . . . . . . . . 17 7 register descriptions . . . . . . . . . . . . . . . . . . . 17 7.1 transmit (thr) and receive (rhr) holding registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 7.2 interrupt enable register (ier) . . . . . . . . . . . 20 7.2.1 ier versus transmit/receive fifo interrupt mode operation. . . . . . . . . . . . . . . . . . . . . . . . 21 7.2.2 ier versus receive/transmit fifo polled mode operation. . . . . . . . . . . . . . . . . . . . . . . . 21 7.3 fifo control register (fcr) . . . . . . . . . . . . . 22 7.3.1 fifo mode . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 7.4 interrupt status register (isr) . . . . . . . . . . . . 23 7.5 line control register (lcr) . . . . . . . . . . . . . . 24 7.6 modem control register (mcr) . . . . . . . . . . . 25 7.7 line status register (lsr) . . . . . . . . . . . . . . . 26 7.8 modem status register (msr). . . . . . . . . . . . 27 7.9 extra feature control register (efcr) . . . . . 28 7.10 scratchpad register (spr) . . . . . . . . . . . . . . 28 7.11 division latch (dll and dlm) . . . . . . . . . . . . 28 7.12 transmit fifo level count (txlvlcnt) . . . . 28 7.13 receive fifo level count (rxlvlcnt) . . . . 28 7.14 enhanced feature register (efr). . . . . . . . . 29 7.15 transmit interrupt level register (txintlvl) . 30 7.16 receive interrupt level register (rxintlvl) . 30 7.17 flow control trigger level high (flwcnth). 31 7.18 flow control trigger level low (flwcntl) . 31 7.19 clock prescaler (clkpres) . . . . . . . . . . . . . 31 7.20 rs-485 turn-around time delay (rs485time) 32 7.21 advanced feature control register 1 (afcr1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 7.22 advanced feature control register 2 (afcr2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 7.23 sc16c850v external reset condition and software reset. . . . . . . . . . . . . . . . . . . . . . . . . 34 8 limiting values . . . . . . . . . . . . . . . . . . . . . . . . 35 9 static characteristics . . . . . . . . . . . . . . . . . . . 35 10 dynamic characteristics . . . . . . . . . . . . . . . . . 36 10.1 timing diagrams. . . . . . . . . . . . . . . . . . . . . . . 37 11 package outline . . . . . . . . . . . . . . . . . . . . . . . . 41 12 soldering of smd packages . . . . . . . . . . . . . . 42 12.1 introduction to soldering. . . . . . . . . . . . . . . . . 42 12.2 wave and re?ow soldering . . . . . . . . . . . . . . . 42 12.3 wave soldering. . . . . . . . . . . . . . . . . . . . . . . . 42 12.4 re?ow soldering. . . . . . . . . . . . . . . . . . . . . . . 43 13 abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . 44 14 revision history . . . . . . . . . . . . . . . . . . . . . . . 45 15 legal information . . . . . . . . . . . . . . . . . . . . . . 46 15.1 data sheet status . . . . . . . . . . . . . . . . . . . . . . 46 15.2 de?nitions . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 15.3 disclaimers. . . . . . . . . . . . . . . . . . . . . . . . . . . 46 15.4 trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . 46 16 contact information . . . . . . . . . . . . . . . . . . . . 46 17 contents. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47


▲Up To Search▲   

 
Price & Availability of SC16C850VIBS

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X