|
|
FreeCore Function #2: The Compact UART will give you UART (Universal Asynchronous Receiver Transmitter) functionality with a minimum of space requirements. The Compact UART is fully LPM parameterizable and will never waste space on unused functionality. With the Compart UART, you may build UARTs of any word length. How about a 49-bit UART with 7 stop bits? With Compact UART, that is your decision. Shown below is a sample schematic using the cuart_tx module: The transmitter module is here combined with the div_by_n module, also found in the FreeCore Library. Data is sent out with a speed of 66MHz/6875 = 9600bps. A possible bottleneck here is the divider function, which contains a counter large enough to accomodate a count value of 6875. A solution to this bottleneck problem is to cascade several smaller div_by_n modules. Module DescriptionInterfacing to cuart_tx is very straight-forward, and the description of the pins and parameters are given below. A reference design using the transmitter and receiver module, and combining them with a microprocessor interface, is also available in the FreeCore Library.
|
|
编辑设计: 胡晟 技术顾问: 朱仁昌 Copyright 1999-2000 PLD World http://pld.126.com |