Documentation



Oracle Java ME Embedded Getting Started Guide for the Reference Platform (Freescale FRDM-K64F)

Beta Draft: 2015-08-31

A Device I/O Preconfigured List

This appendix describes the proper ID and names for the various peripheral ports for the Freescale FRDM-K64F board, which are accessible using the Device I/O APIs.

The tables use the following legend:

  • Device ID: an integer identifier that can be used to open the device with the methods of the DeviceManager class.

  • Device Name: the string name of a device that can be used to open it by name with the methods of the DeviceManager class.

  • Mapped: all hardware-related information regarding a peripheral, such as physical location, mapping, or port. This information enables the user to determine the peripheral's location on a target board.

  • Configuration: properties that are passed to the specific DeviceConfig constructor to open the peripheral by ID or name. The configuration can be used to open the peripheral using the DeviceManager with the appropriate configuration.

GPIO Pins

The following GPIO pins are preconfigured.

Devicel ID Device Name Mapped Configuration
1 LED1 LED1 controllerNumber = 1

pinNumber = 22

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = GPIOPinConfig.MODE_OUTPUT_PUSH_PULL

trigger = GPIOPinConfig.TRIGGER_NONE

initValue = false

2 LED2 LED2 controllerNumber = 4

pinNumber = 26

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = GPIOPinConfig.MODE_OUTPUT_PUSH_PULL

trigger = GPIOPinConfig.TRIGGER_NONE

initValue = false

3 LED3 LED3 controllerNumber = 1

pinNumber = 21

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = GPIOPinConfig.MODE_OUTPUT_PUSH_PULL

trigger = GPIOPinConfig.TRIGGER_NONE

initValue = false

4 SW2 SW2 controllerNumber = 2

pinNumber = 6

direction = GPIOPinConfig.DIR_INPUT_ONLY

mode = GPIOPinConfig.MODE_INPUT_PULL_DOWN

trigger = GPIOPinConfig.TRIGGER_RISING_EDGE

initValue = ignored

5 SW3 SW3 controllerNumber = 0

pinNumber = 4

direction = GPIOPinConfig.DIR_INPUT_ONLY

mode = GPIOPinConfig.MODE_INPUT_PULL_UP

trigger = GPIOPinConfig.TRIGGER_FALLING_EDGE

initValue = ignored


GPIO Ports

The following GPIO ports are preconfigured.

Devicel ID Device Name Mapped Configuration
6 LEDS LED1, LED2, LED3 direction = GPIOPinConfig.DIR_OUTPUT_ONLY

initValue = 0

For a particular pin, see GPIO pin details for IDs 1, 2, and 3.


I2C

The following I2C devices are preconfigured.

Device ID Device Name Mapped Configuration
200 FXOS8700CQ FXOS8700CQ: Digital Sensor - 3D Accelerometer

+ 3D Magnetometer

controllerNumber = 0

address = 29

addressSize = UNASSIGNED

clockFrequency = 100000


PWM

The following PWM devices are preconfigured.

Device ID Device Name Mapped Configuration
600 PWM1.1 PTA0 controllerNumber = UNASSIGNED

channelNumber = UNASSIGNED

pulsePeriod = UNASSIGNED

pulseAlignment = PWMChannelConfig.ALIGN_LEFT

idleState = PWMChannelConfig.IDLE_STATE_LOW

outputGpioPinConfig.controllerNumber = 0

outputGpioPinConfig.pinNumber = 0

601 PWM2.1 PTC4 controllerNumber = UNASSIGNED

channelNumber = UNASSIGNED

pulsePeriod = UNASSIGNED

pulseAlignment = PWMChannelConfig.ALIGN_LEFT

idleState = PWMChannelConfig.IDLE_STATE_LOW

outputGpioPinConfig.controllerNumber = 2

outputGpioPinConfig.pinNumber = 4


SPI

The following SPI devices are preconfigured.

Device ID Device Name Mapped Configuration
300 SPI0.0 SPI0 controllerNumber = 0

address = 0

wordLength = 8

clockFrequency = 1000000

clockMode = CS_ACTIVE_HIGH

bitOrdering = Device.BIG_ENDIAN


The clockMode parameter defines a clock polarity and phase as follows:

  • 0 = CPOL_Low|CPHA_1Edge;

  • 1 = CPOL_Low|CPHA_2Edge;

  • 2 = CPOL_High|CPHA_1Edge;

  • 3 = CPOL_High|CPHA_2Edge

The bitOrdering parameter defines the bit ordering of the slave device. The possible values are 0 - Device.LITTLE_ENDIAN, 1 - Device.BIG_ENDIAN.

UART

The following UART devices are preconfigured.

Device ID Device Name Mapped Configuration
100 UART3 UART3 controllerName = UART3

baudRate = 9600

dataBits = DATABITS_8

parity = PARITY_NONE

stopBits = STOPBITS_1

flowcontrol = FLOWCONTROL_NONE


DAC

The following Digital-to-Analog (DAC) devices are preconfigured.

Device ID Device Name Mapped Configuration
500 DAC0.0 DAC0_OUT converterNumber = UNASSIGNED

channelNumber = 0

resolution = UNASSIGNED

samplingInterval = UNASSIGNED


Pulse Counter

The following Pulse Counter devices are preconfigured.

Device ID Device Name Mapped Configuration
700 PULSE 0.0 PTA1 controllerNumber = UNASSIGNED

type = TYPE_FALLING_EDGE_ONLY

channelNumber = UNASSIGNED

outputGpioPinConfig.controllerNumber = 0

outputGpioPinConfig.pinNumber = 1

701 PULSE1.0 PTA4 controllerNumber = UNASSIGNED

channelNumber = UNASSIGNED

type = TYPE_FALLING_EDGE_ONLY

outputGpioPinConfig.controllerNumber = 0

outputGpioPinConfig.pinNumber = 4


ADC

The following Analog-to-Digital (ADC) devices are preconfigured.

Device ID Device Name Mapped Configuration
400 ADC0_PTB2 ADC0 Pin PTB2 channelNumber = 0

controllerNumber = UNASSIGNED

resolution = UNASSIGNED

samplingInterval = UNASSIGNED

samplingTime = UNASSIGNED

401 ADC1_PTB3 ADC1 Pin PTB3 channelNumber = 1

controllerNumber = UNASSIGNED

resolution = UNASSIGNED

samplingInterval = UNASSIGNED

samplingTime = UNASSIGNED

402 ADC2_PTB10 ADC2 Pin PTB10 channelNumber = 2

controllerNumber = UNASSIGNED

resolution = UNASSIGNED

samplingInterval = UNASSIGNED

samplingTime = UNASSIGNED

403 ADC3_PTB11 ADC3 Pin PTB11 channelNumber = 3

controllerNumber = UNASSIGNED

resolution = UNASSIGNED

samplingInterval = UNASSIGNED

samplingTime = UNASSIGNED

404 ADC4_PTC11 ADC4 Pin PTC11 channelNumber = 4

controllerNumber = UNASSIGNED

resolution = UNASSIGNED

samplingInterval = UNASSIGNED

samplingTime = UNASSIGNED

405 ADC5_PTC10 ADC5 Pin PTC10 channelNumber = 5

controllerNumber = UNASSIGNED

resolution = UNASSIGNED

samplingInterval = UNASSIGNED

samplingTime = UNASSIGNED


Close Window

Table of Contents

Oracle Java ME Embedded Getting Started Guide for the Reference Platform (Freescale FRDM-K64F)

Expand | Collapse