Oracle® Java ME Embedded Getting Started Guide for the Reference Platform (Freescale FRDM-K64F) Release 8.1 Developer Preview E55005-02 |
|
![]() Previous |
![]() Next |
Beta Draft: 2014-11-14
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.
The following GPIO pins are preconfigured.
Devicel ID | Device Name | Mapped | Configuration |
---|---|---|---|
1 | LED1 | LED_RED= PTB22 | controllerNumber = 1
|
2 | LED2 | LED_GREEN= PTE26 | controllerNumber = 4
|
3 | LED3 | LED_BLUE = PTB21 | controllerNumber = 1
|
5 | SW2 | PTC6 | controllerNumber = 2
|
6 | SW3 | PTA4 | controllerNumber = 0
|
The following GPIO ports are preconfigured.
Devicel ID | Device Name | Mapped | Configuration |
---|---|---|---|
8 | LEDS | PTB22
PTE26 PTB21 |
direction = 1 (Output only)
GPIOPins:
|
The following I2C devices are preconfigured:
Device ID | Device Name | Mapped | Configuration |
---|---|---|---|
300 | FXOS8700CQ | FXOS8700CQ
Accelerometer Magnetometer |
controllerNumber = 0
|
The following PWM devices are preconfigured:
Device ID | Device Name | Mapped | Configuration |
---|---|---|---|
301 | PWM1 | PTA0 | controllerNumber = 1
GPIOPin:
|
302 | PWM2 | PTC4 | controllerNumber = 2
GPIOPin:
|
The following SPI devices are preconfigured:
Device ID | Device Name | Mapped | Configuration |
---|---|---|---|
12 | SPI_Slave | SPI0 | controllerNumber = 0
|
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
.
The following UART devices are preconfigured:
Device ID | Device Name | Mapped | Configuration |
---|---|---|---|
40 | UART3 | UART3 | baudRate = 9600
|
The following Digital-to-Analog (DAC) devices are preconfigured.
Device ID | Device Name | Mapped | Configuration |
---|---|---|---|
700 | PDM0 | channelNumber = 0 |
The following Pulse Counter devices are preconfigured.
Device ID | Device Name | Mapped | Configuration |
---|---|---|---|
100 | PC1 | PC1
PTA1 |
controllerNumber = 0
GPIOPin:
|
101 | PC2 | PC2
PTA4 |
controllerNumber = 1
GPIOPin:
|
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 |