|
|
FreeCore Function #3: 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_rx module: The receiver 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/859/8 = 9600bps. For lower data speeds, I recommend using several cascaded div_by_n modules to avoid high counter values, which is a possible bottleneck. Module DescriptionInterfacing to cuart_rx 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 |