.div9600 R/O Property

Function:

Returns the value to which the ser.baudrate property must be set in order to achieve the baudrate of 9,600bps on the current device and under present conditions.

Type:

Word

Value Range:

---

See Also:

Serial Settings


Details

"Smart" applications will use this property to set baudrates in a platform-independent fashion. Even for the same device, the value required to achieve 9,600bps may be different at different times. For example, some devices have PLLs (see sys.currentpll). Enabling and disabling PLL changes the clock frequency of the device, which affects the value returned by ser.div9600.

The value may also differ between different serial ports on the same device. An example of such a device is the Size 3 Tibbo Project PCB (TPP3), Gen. 2, whose ser.div9600 value for UART3 is different from the value for UARTS0~2.


.div9600 R/O Property

Details