Click or drag to resize

10.4.1 GPIO Port Function to Pin Mapping

Note that the physical pin numbers for a particular port do not correspond 1:1 to the bit numbers of the card firmware's representation of the port, which is always register of contiguously numbered bits starting at 0.

This rather long-winded topic contains the following sections:

I/O Pin Behaviour.

In general, the behaviour of any given pin can be defined by specifying some combination of the parameters show in the following table.

However, not all ports are created equal: some have pins which can only be used in a pre-defined Direction, others operate only at one fixed IOLevel, etc.

Parameter

Applies To

Description

IOLevel

The whole Port.

Which voltage level the physical pins will drive when defined as Outputs.

  • Note: all I/O pins are 5V-tolerant when used as Inputs.

Direction

One Pin-Group.

Whether the pins in the group are Inputs (passive) or Outputs (active).

Polarity

An individual Pin.

Whether the pin is at high or low voltage when the bit for its mapped Function is asserted.

Function

An individual Pin.

Defines the signal handling or generating role of the bit corresponding to the pin.

Pin Mapping: Functions and Directions.

The combination of Function and Direction specified for a particular bit, and consequently, for its corresponding pin, is called its Mapping.

  • The bit number is used to define the mapping, not the physical pin number!

  • Implementation constraints limit the number of different mappings available for any particular pin.

  • For a given pin, there are at most eight different mappings available: two sets of up to four Functions, one set for each of two Directions.

  • The sets of Functions are not interchangable between pins.

  • The available mappings for all of the pins can be retrieved programmatically by calling GpioAPIGetAvailableIOPinMappingList

Overview of Ports and Pins.

Port

Number of
Pins

Available
Output IOLevels

Available
Directions

Number of
Pin-Groups

A

16

5V, 3.3V

Input, Output

2

B

16

5V, 3.3V

Input, Output

2

C

16

 

Input

1

D

24

3.3V

Input, Output

24

E

24

3.3V

Input, Output

24

Summary of Functions.

Function

Description

GpInP.N

General Purpose Data Input.

Port P, Bit N.

See: RAYLASE.SPICE3.ClientLibGpioAPI.

GpOutP.N

General Purpose Data Output.

Port P, Bit N.

See: RAYLASE.SPICE3.ClientLibGpioAPI.

GpOutP.WR

General Purpose Output Write Signal.

Port P.

A write pulse is automatically generated each time the port's data value is altered.

Power.N

Laser Power Data Output.

Bit N.

See: CommandList.AppendPower(UInt16)

Power.WR

Laser Power Data Write Signal.

A write pulse is automatically generated each time the port's data value is altered.

SPIN.*

Serial Peripheral Interface Signals.

Channel N.

MotfN.*

MOTF Input Signals.

Channel N.

Start Mark
Part Sensor

Abort Mark
Laser Alarm

Process Control Input Signals.

See: Minimum Timing Requirements, CommandList.AppendWaitStart, CommandList.AppendMotfWaitPart

MEB

Process Control Output Signal.

See: 8.4.1 The Marking-Engine-Busy Signal

Arm Laser
Pilot
FPS
Gate
LM

Laser Control Output Signals.

Triggered

Laser Control Input Signal.

XY2.*
SL2.*
RL3.*

Scanner Communication Protocol Signals.

Port A: available Mappings.
Port B: available Mappings.
Port C: available Mappings.
Port D: available Mappings.
Port E: available Mappings.
See Also