<< Previous | Next >>

getdivider19200

char getdivider19200( void );

Description

This function returns a value that is used in baud rate calculations.

The correct value is returned regardless of the compile mode. In separate I&D space mode, the divider value is stored as a define byte in code space, so directly accessing the variable will result in an incorrect load (from constant data space). This function uses the ldp instruction, which circumvents the separate I&D default loading scheme so that the correct value is returned.

Return value

The value used in baud rate calculation.

Library

SYS.LIB


Dynamic C Functions << Previous | Next >> rabbit.com