energia / Energia

Fork of Arduino for the Texas Instruments LaunchPad's
http://energia.nu
Other
793 stars 673 forks source link

StellarPad • Pins Map BETA #140

Closed rei-vilo closed 11 years ago

rei-vilo commented 11 years ago

Please find here a first BETA map of the pins of the StellarPad.

There are many questions concerning the UART, I²C and SPI ports and the choices done by Energia.

Also, are the J1 J2 connectors compatible with LaunchPad MSP430G2xxx's booster packs?

Here are the results of my tests — sketch provided on #141.

1. StellarPad • analogWrite()

First results are:

Minimum duty cycle is 2% and maximum is 100%.

That means the LED isn't really off which analogWrite(0).

2. analogWrite(), again

The white colour doesn't blink as expected. see #141

3. Serial pins

Ports U4 and U1 seem to share the same pins PC4 and PC5.

According to table 2.3 from Stellaris® LM4F120 LaunchPad Evaluation Board User’s Manual (spmu289), {GPIO_PC4_U1RX, GPIO_PC5_U1TX} should be {GPIO_PB0_U1RX, GPIO_PB1_U1TX}

I had a look at 14.2 Signal Description page 843 and Table 14-1. UART Signals (64LQFP) page 844 of the Stellaris® LM4F120H5QR Microcontroller DATA SHEET (lm4f120h5qr) and UART1 has two series of pins depending on

The number in parentheses is the encoding that must be programmed into the PMCn field in the GPIO Port Control (GPIOPCTL) register (page 641) to assign the UART signal to the specified GPIO port pin.

The question is more about which ports Energia will consider.

Having two names UART1 and UART5 for the same port may be misleading, especially to Arduino users.

Same question applies for SPI and I²C ports.

4. StellarPad • LM4F120H5QR MCU variable

See #138
StellarPad • LM4F120H5QR MCU variable not defined Boards Energia IDE StellarPad

rei-vilo commented 11 years ago

Updated pin map at https://github.com/energia/Energia/wiki/Hardware