SC16C754B_4 © NXP B.V. 2008. All rights reserved.
Product data sheet Rev. 04 — 6 October 2008 34 of 51
NXP Semiconductors
SC16C754B
5 V, 3.3 V and 2.5 V quad UART, 5 Mbit/s (max.) with 64-byte FIFOs
[1] × sign here means bit-AND.
set TX FIFO and RX FIFO thresholds
to VALUE
read LCR (03h), save in temp1
set LCR (03h) to BFh
read EFR (02h), save in temp2
set EFR (02h) to 10h + temp2
set LCR (03h) to 00h
read MCR (04h), save in temp3
set MCR (04h) to 40h + temp3
set TLR (07h) to VALUE
set MCR (04h) to temp3
set LCR (03h) to BFh
set EFR (02h) to temp2
set LCR (03h) to temp1
read FIFO Rdy register read MCR (04h), save in temp1
set temp2 = temp1 × EFh
[1]
set MCR (04h) = 40h + temp2
read FFR (07h), save in temp2
pass temp2 back to host
set MCR (04h) to temp1
set prescaler value to divide-by-1 read LCR (03h), save in temp1
set LCR (03h) to BFh
read EFR (02h), save in temp2
set EFR (02h) to 10h + temp2
set LCR (03h) to 00h
read MCR (04h), save in temp3
set MCR (04h) to temp3 × 7Fh
[1]
set LCR (03h) to BFh
set EFR (02h) to temp2
set LCR (03h) to temp1
set prescaler value to divide-by-4 read LCR (03h), save in temp1
set LCR (03h) to BF
read EFR (02h), save in temp2
set EFR (02h) to 10h + temp2
set LCR (03h) to 00h
read MCR (04)h, save in temp3
set MCR (04h) to temp3 + 80h
set LCR (03)h to BFh
set EFR (02h) to temp2
set LCR (03h) to temp1
Table 23. Register programming guide
…continued
Command Actions