Skip Headers
Oracle® Java ME Embedded Getting Started Guide for the Reference Platform (Freescale FRDM-K64F)
Release 8.1 Developer Preview
E55005-02
  Go To Table Of Contents
Contents

Previous
Previous
 
Next
Next
 

Beta Draft: 2014-11-14

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:

GPIO Pins

The following GPIO pins are preconfigured.

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

pinNumber = 22

direction = 1 (Output only)

mode = 4 (Push-pull mode)

initValue = 0

2 LED2 LED_GREEN= PTE26 controllerNumber = 4

pinNumber =26

direction = 1 (Output only)

mode = 4 (Push-pull mode)

initValue = 0

3 LED3 LED_BLUE = PTB21 controllerNumber = 1

pinNumber = 21

direction = 1 (Output only)

mode = 4 (Push-pull mode)

initValue = 0

5 SW2 PTC6 controllerNumber = 2

pinNumber = 6

direction = 0 (Input only)

mode = 2 (Input pull-down mode)

trigger = 2 (TRIGGER_RISING_EDGE)

6 SW3 PTA4 controllerNumber = 0

pinNumber = 4

direction = 0 (Input only)

mode = 1 (Input pull-up mode)

trigger = 1 (TRIGGER_FALLING_EDGE)


GPIO Ports

The following GPIO ports are preconfigured.

Devicel ID Device Name Mapped Configuration
8 LEDS PTB22

PTE26

PTB21

direction = 1 (Output only)

initValue = 0

GPIOPins:

controllerNumber = 1

pinNumber = 22

mode = 4 (Push-pull mode)

controllerNumber = 4

pinNumber = 26

mode = 4 (Push-pull mode)

controllerNumber = 1

pinNumber = 21

mode = 4 (Push-pull mode)


I2C

The following I2C devices are preconfigured:

Device ID Device Name Mapped Configuration
300 FXOS8700CQ FXOS8700CQ

Accelerometer

Magnetometer

controllerNumber = 0

address = 29

clockFrequency = 100000


PWM

The following PWM devices are preconfigured:

Device ID Device Name Mapped Configuration
301 PWM1 PTA0 controllerNumber = 1

channelNumber = 1

idleState = 1

GPIOPin:

controllerNumber = 0 (PTA0)

pinNumber = 0

trigger = 0

direction = 1 (Output)

mode = -1

pulseAlignment = 1

302 PWM2 PTC4 controllerNumber = 2

channelNumber = 1

GPIOPin:

controllerNumber = 2 (PTC4)

pinNumber = 4


SPI

The following SPI devices are preconfigured:

Device ID Device Name Mapped Configuration
12 SPI_Slave SPI0 controllerNumber = 0

address = 0

csActive = 0

wordLength = 8

clockFrequency = 1000000

bitOrdering = 1 (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
40 UART3 UART3 baudRate = 9600

dataBits = 8

parity = 0

stopBits = 1

flowcontrol = 0


DAC

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

Device ID Device Name Mapped Configuration
700 PDM0
channelNumber = 0

Pulse Counter

The following Pulse Counter devices are preconfigured.

Device ID Device Name Mapped Configuration
100 PC1 PC1

PTA1

controllerNumber = 0

channelNumber = 0

type = 0

channelNumber = 0

channelNumber = 0

GPIOPin:

controllerNumber = 0

pinNumber = 1

trigger = 0

mode = -1

101 PC2 PC2

PTA4

controllerNumber = 1

channelNumber = 0

type = 0

channelNumber = 0

channelNumber = 0

GPIOPin:

controllerNumber = 0

pinNumber = 4

trigger = 0

mode = -1


ADC

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

Device ID Device Name Mapped Configuration
500 ADC0_PTB2
channelNumber = 0
501 ADC1_PTB3
channelNumber = 1
502 ADC2_PTB10
channelNumber = 2
503 ADC3_PTB11
channelNumber = 3
504 ADC4_PTC11
channelNumber = 4
505 ADC5_PTB10
channelNumber = 5