beautypg.com

Rs-232 pins, Rs232 parameters, Rs232 default – Ocean Optics NeoFox Engineering Note User Manual

Page 25: Settings

background image

NeoFox Communication Interfaces

013-20000-010-04-201211 25

RS-232 Pins

GPIO Connector (as viewed looking towards the back of the NeoFox unit with the graphic label down and

the power jack to the left of the connector

It is important to note that the device will disable RS232 communications in certain conditions:

• When the RS232 enable parameter is set to 0.
• When the USB connector is plugged in (as detected by the presence of the 5V USB power line)

RS232 Parameters

RS232 Divisor Latch

short

0 < X < 10000

78

NEOFOX_RS232_DIVISOR_LATCH

DeviceSetParameter

DeviceGetParameter

Baud Rate = 12,000,000 / (16 * Divisor Latch) * (Multiply Value / [ Multiply Value + Divisor Add value])


RS232 Divisor Add Value

unsigned char

0 < X < 256

79

NEOFOX_RS232_DIVADDVAL

DeviceSetParameter

DeviceGetParameter

Baud Rate = 12,000,000 / (16 * Divisor Latch) * (Multiply Value / [ Multiply Value + Divisor Add value])


RS232 Multiply Value

unsigned char

0 < X < 256

80

NEOFOX_RS232_MULVAL

DeviceSetParameter

DeviceGetParameter

Baud Rate = 12,000,000 / (16 * Divisor Latch) * (Multiply Value / [ Multiply Value + Divisor Add value])


RS232 Enable

unsigned char

0, 1

96

NEOFOX_RS232_ENABLE

DeviceSetParameter

DeviceGetParameter


This value determines whether or not RS232 communications will be enabled when the USB cable is not present. Its
presence is determined by the presence of the 5V USB power line.




Value Description
0

RS232 is disabled.

1

RS232 will be enabled when the USB connector is not plugged in