usart3_common

UART3 common.

Author Rob Jansen, Copyright © 2021..2021 all rights reserved.
Adapted-by
Compiler 2.5r5

Description

USART3 common functions.
             This file provides common functions to other libraries.


Sources

Based on the uart2_common.jal llibrary by Stef Mientki.


Notes

Baudrate can simply be set through a constant in the application 
       program, because the baudrate depending registers are calculated by 
       this unit. Baudrate is calculated, starting at the high baudrate flag,
       which will ensure the highest possible accuracy.


Dependencies

No dependency found



Summary

Global variables/contants

Procedures

Private

Functions


API details

Global variables/contants

Procedures

Private
  • _calculate_and_set_baudrate3()

    Title:     Calculate and set baudrate
    Arguments: (none)
    Returns:   (nothing)
    Notes:     - Uses externally defined constant 'serial_hw_baudrate' to
    set baudrate registers and corresponding control bits
     Uses bit-constant 'usart_hw_serial' to determine mode of operation:
    * TRUE:  Asynchronous communications (default)
    * FALSE: Synchronous communications
    
    


Functions


Related samples

No sample found