FMINI-GB-134 GHI Electronics, FMINI-GB-134 Datasheet - Page 2

no-image

FMINI-GB-134

Manufacturer Part Number
FMINI-GB-134
Description
Development Boards & Kits - ARM FEZ MINI .net MF Dev Tool
Manufacturer
GHI Electronics
Datasheet

Specifications of FMINI-GB-134

Rohs
yes
Product
Development Boards
Tool Is For Evaluation Of
LPC2388
Core
ARM7TDMI-S
Interface Type
I2C, SPI, UART, USB
Operating Supply Voltage
5 V
Part # Aliases
GHI-FMINI-GB-134
FEZ Mini Pins Features
All pins on the the rear headers and UEXT can
be used as digital input/output. Some pins have
secondary features. Do not attempt to use a pin
as digital and as secondary feature
simultaneously. For example, when using Di5 as
PWM, you cannot use Di5 as a digital I/O until
you release the PWM feature (in code).
Remapping COM4
An2 and An3 are special because they can be digital, analog, or remapped to work as COM4, where An2 is
COM4 OUT and An3 is COM4 IN. Call the function below to remap COM4
Once the code above is added, you can use COM4 on An2 and An3 as shown below.
Copyright © 2010 GHI Electronics, LLC
// add this on top of your code
using
using
//...
//...
// add this function anywhere
static public void
public static void
{
}
{
}
SerialPort
//MyCOM4.ReadTimeout = 1000;
MyCOM4.Open();
RemapCOM4to_TXAn2_RXAn3(MyCOM4);
byte[] helloBytes = Encoding.UTF8.GetBytes("Hello!");
// write data to COM4 which will be sent out on pin An2
MyCOM4.Write(helloBytes, 0, helloBytes.Length);
// .............
// .............
// call this function **after** you open COM4 port
if
// remap COM4 RX (in) pin from P4.29/DIO17 to P0.26 (that is An3)
// remap COM4 TX (out) pin from P4.28/DIO13 to P0.25 (that is An2)
Register
PINSEL9.Write(0);// COM4 is now disconnected from P4.28 and P4.29
Register
PINSEL1.SetBits(0xf <<
(ser.PortName !=
throw new
GHIElectronics.NETMF.Hardware.LowLevel;
System.IO.Ports;
PINSEL9 =
PINSEL1 =
MyCOM4 =
Exception("Only use COM4 and make sure it is
RemapCOM4to_TXAn2_RXAn3(SerialPort
Main()
"COM4"
new
new
new
18);// COM4 is now connected to An3 and An4
Register(0xE002C024);
Register(0xE002C004);
SerialPort("COM4", 115200, Parity.None, 8, StopBits.One);
|| ser.IsOpen == false)
ser)
* These pins can work as interrupt inputs
Pin
Di2* CAN Channel 1 IN
Di3
Di4* CAN Channel 1 OUT
Di5
Di6
Di7* COM3 IN
Di8* COM3 OUT
Di9* PWM
LED Controls on-board LED/PWM Di10
open");
Secondary Features
PWM
PWM
PWM
Pin
An0* Analog Input
An1* Analog Input
An2* Analog Input
An3* Analog Input/ Analog Output
An4* (Open Drain Pin) I2C SDA
An5* (Open Drain Pin) I2C SCL
An6
An7
Secondary Features
Analog Input
Analog Input
PWM
www.tinyclr.com

Related parts for FMINI-GB-134