The official mbed C/C SDK provides the software platform and libraries to build your applications.
Fork of mbed by
(01.May.2014) started sales! http://www.switch-science.com/catalog/1717/
(13.March.2014) updated to 0.5.0
This is a pin conversion PCB from mbed 1768/11U24 to arduino UNO.
- So if you have both mbed and arduino shields, I guess you would be happy with such a conversion board :)
Photos
- Board photo vvv
- Schematic photo vvv
- Functionality photo vvv
Latest eagle files
PCB >> /media/uploads/k4zuki/mbedshield050.brd
SCH >> /media/uploads/k4zuki/mbedshield050.sch
BIG changes from previous version
- Ethernet RJ45 connector is removed.
- http://mbed.org/components/Seeed-Ethernet-Shield-V20/ is the biggest hint to use Ethernet!
MostALL of components can be bought at Akizuki http://akizukidenshi.com/- But sorry, they do not send parts to abroad
- Pinout is changed!
arduino | 0.4.0 | 0.5.0 |
---|---|---|
D4 | p12 | p21 |
D5 | p11 | p22 |
MOSI_ | none | p11 |
MISO_ | none | p12 |
SCK_ | none | p13 |
This design has bug(s)
- I2C functional pin differs between 1768 and 11U24.
Fixed bugs here
- MiniUSB cable cannot be connected on mbed if you solder high-height electrolytic capacitor on C3.
- http://akizukidenshi.com/catalog/g/gP-05002/ is the solution to make this 100% AKIZUKI parts!
- the 6-pin ISP port is not inprimented in version 0.4.0
it will be fixed in later version 0.4.1/0.4.2/0.5.0This has beenfixed
I am doing some porting to use existing arduino shields but it may faster if you do it by yourself...
you can use arduino PinName "A0-A5,D0-D13" plus backside SPI port for easier porting.
To do this you have to edit PinName enum in
- "mbed/TARGET_LPC1768/PinNames.h" or
- "mbed/TARGET_LPC11U24/PinNames.h" as per your target mbed.
here is the actual list: This list includes define switch to switch pin assignment
part_of_PinNames.h
USBTX = P0_2, USBRX = P0_3, //from here mbeDshield mod D0=p27, D1=p28, D2=p14, D3=p13, #ifdef MBEDSHIELD_050 MOSI_=p11, MISO_=p12, SCK_=p13, D4=p21, D5=p22, #else D4=p12, D5=p11, #endif D6=p23, D7=p24, D8=p25, D9=p26, D10=p8, D11=p5, D12=p6, D13=p7, A0=p15, A1=p16, A2=p17, A3=p18, A4=p19, A5=p20, SDA=p9, SCL=p10, //mbeDshield mod ends here // Not connected NC = (int)0xFFFFFFFF
KL25Z/PinNames.h@60:3d0ef94e36ec, 2013-02-19 (annotated)
- Committer:
- emilmont
- Date:
- Tue Feb 19 10:00:15 2013 +0000
- Revision:
- 60:3d0ef94e36ec
Add Freescale FRDM-KL25Z
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
emilmont | 60:3d0ef94e36ec | 1 | /* mbed Microcontroller Library |
emilmont | 60:3d0ef94e36ec | 2 | * Copyright (c) 2006-2013 ARM Limited |
emilmont | 60:3d0ef94e36ec | 3 | * |
emilmont | 60:3d0ef94e36ec | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
emilmont | 60:3d0ef94e36ec | 5 | * you may not use this file except in compliance with the License. |
emilmont | 60:3d0ef94e36ec | 6 | * You may obtain a copy of the License at |
emilmont | 60:3d0ef94e36ec | 7 | * |
emilmont | 60:3d0ef94e36ec | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
emilmont | 60:3d0ef94e36ec | 9 | * |
emilmont | 60:3d0ef94e36ec | 10 | * Unless required by applicable law or agreed to in writing, software |
emilmont | 60:3d0ef94e36ec | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
emilmont | 60:3d0ef94e36ec | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
emilmont | 60:3d0ef94e36ec | 13 | * See the License for the specific language governing permissions and |
emilmont | 60:3d0ef94e36ec | 14 | * limitations under the License. |
emilmont | 60:3d0ef94e36ec | 15 | */ |
emilmont | 60:3d0ef94e36ec | 16 | #ifndef MBED_PINNAMES_H |
emilmont | 60:3d0ef94e36ec | 17 | #define MBED_PINNAMES_H |
emilmont | 60:3d0ef94e36ec | 18 | |
emilmont | 60:3d0ef94e36ec | 19 | #include "cmsis.h" |
emilmont | 60:3d0ef94e36ec | 20 | |
emilmont | 60:3d0ef94e36ec | 21 | #ifdef __cplusplus |
emilmont | 60:3d0ef94e36ec | 22 | extern "C" { |
emilmont | 60:3d0ef94e36ec | 23 | #endif |
emilmont | 60:3d0ef94e36ec | 24 | |
emilmont | 60:3d0ef94e36ec | 25 | typedef enum { |
emilmont | 60:3d0ef94e36ec | 26 | PIN_INPUT, |
emilmont | 60:3d0ef94e36ec | 27 | PIN_OUTPUT |
emilmont | 60:3d0ef94e36ec | 28 | } PinDirection; |
emilmont | 60:3d0ef94e36ec | 29 | |
emilmont | 60:3d0ef94e36ec | 30 | #define PORT_SHIFT 12 |
emilmont | 60:3d0ef94e36ec | 31 | |
emilmont | 60:3d0ef94e36ec | 32 | typedef enum { |
emilmont | 60:3d0ef94e36ec | 33 | PTA0 = 0x0, |
emilmont | 60:3d0ef94e36ec | 34 | PTA1 = 0x4, |
emilmont | 60:3d0ef94e36ec | 35 | PTA2 = 0x8, |
emilmont | 60:3d0ef94e36ec | 36 | PTA3 = 0xc, |
emilmont | 60:3d0ef94e36ec | 37 | PTA4 = 0x10, |
emilmont | 60:3d0ef94e36ec | 38 | PTA5 = 0x14, |
emilmont | 60:3d0ef94e36ec | 39 | PTA6 = 0x18, |
emilmont | 60:3d0ef94e36ec | 40 | PTA7 = 0x1c, |
emilmont | 60:3d0ef94e36ec | 41 | PTA8 = 0x20, |
emilmont | 60:3d0ef94e36ec | 42 | PTA9 = 0x24, |
emilmont | 60:3d0ef94e36ec | 43 | PTA10 = 0x28, |
emilmont | 60:3d0ef94e36ec | 44 | PTA11 = 0x2c, |
emilmont | 60:3d0ef94e36ec | 45 | PTA12 = 0x30, |
emilmont | 60:3d0ef94e36ec | 46 | PTA13 = 0x34, |
emilmont | 60:3d0ef94e36ec | 47 | PTA14 = 0x38, |
emilmont | 60:3d0ef94e36ec | 48 | PTA15 = 0x3c, |
emilmont | 60:3d0ef94e36ec | 49 | PTA16 = 0x40, |
emilmont | 60:3d0ef94e36ec | 50 | PTA17 = 0x44, |
emilmont | 60:3d0ef94e36ec | 51 | PTA18 = 0x48, |
emilmont | 60:3d0ef94e36ec | 52 | PTA19 = 0x4c, |
emilmont | 60:3d0ef94e36ec | 53 | PTA20 = 0x50, |
emilmont | 60:3d0ef94e36ec | 54 | PTA21 = 0x54, |
emilmont | 60:3d0ef94e36ec | 55 | PTA22 = 0x58, |
emilmont | 60:3d0ef94e36ec | 56 | PTA23 = 0x5c, |
emilmont | 60:3d0ef94e36ec | 57 | PTA24 = 0x60, |
emilmont | 60:3d0ef94e36ec | 58 | PTA25 = 0x64, |
emilmont | 60:3d0ef94e36ec | 59 | PTA26 = 0x68, |
emilmont | 60:3d0ef94e36ec | 60 | PTA27 = 0x6c, |
emilmont | 60:3d0ef94e36ec | 61 | PTA28 = 0x70, |
emilmont | 60:3d0ef94e36ec | 62 | PTA29 = 0x74, |
emilmont | 60:3d0ef94e36ec | 63 | PTA30 = 0x78, |
emilmont | 60:3d0ef94e36ec | 64 | PTA31 = 0x7c, |
emilmont | 60:3d0ef94e36ec | 65 | PTB0 = 0x1000, |
emilmont | 60:3d0ef94e36ec | 66 | PTB1 = 0x1004, |
emilmont | 60:3d0ef94e36ec | 67 | PTB2 = 0x1008, |
emilmont | 60:3d0ef94e36ec | 68 | PTB3 = 0x100c, |
emilmont | 60:3d0ef94e36ec | 69 | PTB4 = 0x1010, |
emilmont | 60:3d0ef94e36ec | 70 | PTB5 = 0x1014, |
emilmont | 60:3d0ef94e36ec | 71 | PTB6 = 0x1018, |
emilmont | 60:3d0ef94e36ec | 72 | PTB7 = 0x101c, |
emilmont | 60:3d0ef94e36ec | 73 | PTB8 = 0x1020, |
emilmont | 60:3d0ef94e36ec | 74 | PTB9 = 0x1024, |
emilmont | 60:3d0ef94e36ec | 75 | PTB10 = 0x1028, |
emilmont | 60:3d0ef94e36ec | 76 | PTB11 = 0x102c, |
emilmont | 60:3d0ef94e36ec | 77 | PTB12 = 0x1030, |
emilmont | 60:3d0ef94e36ec | 78 | PTB13 = 0x1034, |
emilmont | 60:3d0ef94e36ec | 79 | PTB14 = 0x1038, |
emilmont | 60:3d0ef94e36ec | 80 | PTB15 = 0x103c, |
emilmont | 60:3d0ef94e36ec | 81 | PTB16 = 0x1040, |
emilmont | 60:3d0ef94e36ec | 82 | PTB17 = 0x1044, |
emilmont | 60:3d0ef94e36ec | 83 | PTB18 = 0x1048, |
emilmont | 60:3d0ef94e36ec | 84 | PTB19 = 0x104c, |
emilmont | 60:3d0ef94e36ec | 85 | PTB20 = 0x1050, |
emilmont | 60:3d0ef94e36ec | 86 | PTB21 = 0x1054, |
emilmont | 60:3d0ef94e36ec | 87 | PTB22 = 0x1058, |
emilmont | 60:3d0ef94e36ec | 88 | PTB23 = 0x105c, |
emilmont | 60:3d0ef94e36ec | 89 | PTB24 = 0x1060, |
emilmont | 60:3d0ef94e36ec | 90 | PTB25 = 0x1064, |
emilmont | 60:3d0ef94e36ec | 91 | PTB26 = 0x1068, |
emilmont | 60:3d0ef94e36ec | 92 | PTB27 = 0x106c, |
emilmont | 60:3d0ef94e36ec | 93 | PTB28 = 0x1070, |
emilmont | 60:3d0ef94e36ec | 94 | PTB29 = 0x1074, |
emilmont | 60:3d0ef94e36ec | 95 | PTB30 = 0x1078, |
emilmont | 60:3d0ef94e36ec | 96 | PTB31 = 0x107c, |
emilmont | 60:3d0ef94e36ec | 97 | PTC0 = 0x2000, |
emilmont | 60:3d0ef94e36ec | 98 | PTC1 = 0x2004, |
emilmont | 60:3d0ef94e36ec | 99 | PTC2 = 0x2008, |
emilmont | 60:3d0ef94e36ec | 100 | PTC3 = 0x200c, |
emilmont | 60:3d0ef94e36ec | 101 | PTC4 = 0x2010, |
emilmont | 60:3d0ef94e36ec | 102 | PTC5 = 0x2014, |
emilmont | 60:3d0ef94e36ec | 103 | PTC6 = 0x2018, |
emilmont | 60:3d0ef94e36ec | 104 | PTC7 = 0x201c, |
emilmont | 60:3d0ef94e36ec | 105 | PTC8 = 0x2020, |
emilmont | 60:3d0ef94e36ec | 106 | PTC9 = 0x2024, |
emilmont | 60:3d0ef94e36ec | 107 | PTC10 = 0x2028, |
emilmont | 60:3d0ef94e36ec | 108 | PTC11 = 0x202c, |
emilmont | 60:3d0ef94e36ec | 109 | PTC12 = 0x2030, |
emilmont | 60:3d0ef94e36ec | 110 | PTC13 = 0x2034, |
emilmont | 60:3d0ef94e36ec | 111 | PTC14 = 0x2038, |
emilmont | 60:3d0ef94e36ec | 112 | PTC15 = 0x203c, |
emilmont | 60:3d0ef94e36ec | 113 | PTC16 = 0x2040, |
emilmont | 60:3d0ef94e36ec | 114 | PTC17 = 0x2044, |
emilmont | 60:3d0ef94e36ec | 115 | PTC18 = 0x2048, |
emilmont | 60:3d0ef94e36ec | 116 | PTC19 = 0x204c, |
emilmont | 60:3d0ef94e36ec | 117 | PTC20 = 0x2050, |
emilmont | 60:3d0ef94e36ec | 118 | PTC21 = 0x2054, |
emilmont | 60:3d0ef94e36ec | 119 | PTC22 = 0x2058, |
emilmont | 60:3d0ef94e36ec | 120 | PTC23 = 0x205c, |
emilmont | 60:3d0ef94e36ec | 121 | PTC24 = 0x2060, |
emilmont | 60:3d0ef94e36ec | 122 | PTC25 = 0x2064, |
emilmont | 60:3d0ef94e36ec | 123 | PTC26 = 0x2068, |
emilmont | 60:3d0ef94e36ec | 124 | PTC27 = 0x206c, |
emilmont | 60:3d0ef94e36ec | 125 | PTC28 = 0x2070, |
emilmont | 60:3d0ef94e36ec | 126 | PTC29 = 0x2074, |
emilmont | 60:3d0ef94e36ec | 127 | PTC30 = 0x2078, |
emilmont | 60:3d0ef94e36ec | 128 | PTC31 = 0x207c, |
emilmont | 60:3d0ef94e36ec | 129 | PTD0 = 0x3000, |
emilmont | 60:3d0ef94e36ec | 130 | PTD1 = 0x3004, |
emilmont | 60:3d0ef94e36ec | 131 | PTD2 = 0x3008, |
emilmont | 60:3d0ef94e36ec | 132 | PTD3 = 0x300c, |
emilmont | 60:3d0ef94e36ec | 133 | PTD4 = 0x3010, |
emilmont | 60:3d0ef94e36ec | 134 | PTD5 = 0x3014, |
emilmont | 60:3d0ef94e36ec | 135 | PTD6 = 0x3018, |
emilmont | 60:3d0ef94e36ec | 136 | PTD7 = 0x301c, |
emilmont | 60:3d0ef94e36ec | 137 | PTD8 = 0x3020, |
emilmont | 60:3d0ef94e36ec | 138 | PTD9 = 0x3024, |
emilmont | 60:3d0ef94e36ec | 139 | PTD10 = 0x3028, |
emilmont | 60:3d0ef94e36ec | 140 | PTD11 = 0x302c, |
emilmont | 60:3d0ef94e36ec | 141 | PTD12 = 0x3030, |
emilmont | 60:3d0ef94e36ec | 142 | PTD13 = 0x3034, |
emilmont | 60:3d0ef94e36ec | 143 | PTD14 = 0x3038, |
emilmont | 60:3d0ef94e36ec | 144 | PTD15 = 0x303c, |
emilmont | 60:3d0ef94e36ec | 145 | PTD16 = 0x3040, |
emilmont | 60:3d0ef94e36ec | 146 | PTD17 = 0x3044, |
emilmont | 60:3d0ef94e36ec | 147 | PTD18 = 0x3048, |
emilmont | 60:3d0ef94e36ec | 148 | PTD19 = 0x304c, |
emilmont | 60:3d0ef94e36ec | 149 | PTD20 = 0x3050, |
emilmont | 60:3d0ef94e36ec | 150 | PTD21 = 0x3054, |
emilmont | 60:3d0ef94e36ec | 151 | PTD22 = 0x3058, |
emilmont | 60:3d0ef94e36ec | 152 | PTD23 = 0x305c, |
emilmont | 60:3d0ef94e36ec | 153 | PTD24 = 0x3060, |
emilmont | 60:3d0ef94e36ec | 154 | PTD25 = 0x3064, |
emilmont | 60:3d0ef94e36ec | 155 | PTD26 = 0x3068, |
emilmont | 60:3d0ef94e36ec | 156 | PTD27 = 0x306c, |
emilmont | 60:3d0ef94e36ec | 157 | PTD28 = 0x3070, |
emilmont | 60:3d0ef94e36ec | 158 | PTD29 = 0x3074, |
emilmont | 60:3d0ef94e36ec | 159 | PTD30 = 0x3078, |
emilmont | 60:3d0ef94e36ec | 160 | PTD31 = 0x307c, |
emilmont | 60:3d0ef94e36ec | 161 | PTE0 = 0x4000, |
emilmont | 60:3d0ef94e36ec | 162 | PTE1 = 0x4004, |
emilmont | 60:3d0ef94e36ec | 163 | PTE2 = 0x4008, |
emilmont | 60:3d0ef94e36ec | 164 | PTE3 = 0x400c, |
emilmont | 60:3d0ef94e36ec | 165 | PTE4 = 0x4010, |
emilmont | 60:3d0ef94e36ec | 166 | PTE5 = 0x4014, |
emilmont | 60:3d0ef94e36ec | 167 | PTE6 = 0x4018, |
emilmont | 60:3d0ef94e36ec | 168 | PTE7 = 0x401c, |
emilmont | 60:3d0ef94e36ec | 169 | PTE8 = 0x4020, |
emilmont | 60:3d0ef94e36ec | 170 | PTE9 = 0x4024, |
emilmont | 60:3d0ef94e36ec | 171 | PTE10 = 0x4028, |
emilmont | 60:3d0ef94e36ec | 172 | PTE11 = 0x402c, |
emilmont | 60:3d0ef94e36ec | 173 | PTE12 = 0x4030, |
emilmont | 60:3d0ef94e36ec | 174 | PTE13 = 0x4034, |
emilmont | 60:3d0ef94e36ec | 175 | PTE14 = 0x4038, |
emilmont | 60:3d0ef94e36ec | 176 | PTE15 = 0x403c, |
emilmont | 60:3d0ef94e36ec | 177 | PTE16 = 0x4040, |
emilmont | 60:3d0ef94e36ec | 178 | PTE17 = 0x4044, |
emilmont | 60:3d0ef94e36ec | 179 | PTE18 = 0x4048, |
emilmont | 60:3d0ef94e36ec | 180 | PTE19 = 0x404c, |
emilmont | 60:3d0ef94e36ec | 181 | PTE20 = 0x4050, |
emilmont | 60:3d0ef94e36ec | 182 | PTE21 = 0x4054, |
emilmont | 60:3d0ef94e36ec | 183 | PTE22 = 0x4058, |
emilmont | 60:3d0ef94e36ec | 184 | PTE23 = 0x405c, |
emilmont | 60:3d0ef94e36ec | 185 | PTE24 = 0x4060, |
emilmont | 60:3d0ef94e36ec | 186 | PTE25 = 0x4064, |
emilmont | 60:3d0ef94e36ec | 187 | PTE26 = 0x4068, |
emilmont | 60:3d0ef94e36ec | 188 | PTE27 = 0x406c, |
emilmont | 60:3d0ef94e36ec | 189 | PTE28 = 0x4070, |
emilmont | 60:3d0ef94e36ec | 190 | PTE29 = 0x4074, |
emilmont | 60:3d0ef94e36ec | 191 | PTE30 = 0x4078, |
emilmont | 60:3d0ef94e36ec | 192 | PTE31 = 0x407c, |
emilmont | 60:3d0ef94e36ec | 193 | |
emilmont | 60:3d0ef94e36ec | 194 | LED_RED = PTB18, |
emilmont | 60:3d0ef94e36ec | 195 | LED_GREEN = PTB19, |
emilmont | 60:3d0ef94e36ec | 196 | LED_BLUE = PTD1, |
emilmont | 60:3d0ef94e36ec | 197 | |
emilmont | 60:3d0ef94e36ec | 198 | // mbed original LED naming |
emilmont | 60:3d0ef94e36ec | 199 | LED1 = LED_BLUE, |
emilmont | 60:3d0ef94e36ec | 200 | LED2 = LED_GREEN, |
emilmont | 60:3d0ef94e36ec | 201 | LED3 = LED_RED, |
emilmont | 60:3d0ef94e36ec | 202 | LED4 = LED_RED, |
emilmont | 60:3d0ef94e36ec | 203 | |
emilmont | 60:3d0ef94e36ec | 204 | // USB Pins |
emilmont | 60:3d0ef94e36ec | 205 | USBTX = PTA2, |
emilmont | 60:3d0ef94e36ec | 206 | USBRX = PTA1, |
emilmont | 60:3d0ef94e36ec | 207 | |
emilmont | 60:3d0ef94e36ec | 208 | // Arduino Headers |
emilmont | 60:3d0ef94e36ec | 209 | D0 = PTA1, |
emilmont | 60:3d0ef94e36ec | 210 | D1 = PTA2, |
emilmont | 60:3d0ef94e36ec | 211 | D2 = PTD4, |
emilmont | 60:3d0ef94e36ec | 212 | D3 = PTA12, |
emilmont | 60:3d0ef94e36ec | 213 | D4 = PTA4, |
emilmont | 60:3d0ef94e36ec | 214 | D5 = PTA5, |
emilmont | 60:3d0ef94e36ec | 215 | D6 = PTC8, |
emilmont | 60:3d0ef94e36ec | 216 | D7 = PTC9, |
emilmont | 60:3d0ef94e36ec | 217 | D8 = PTA13, |
emilmont | 60:3d0ef94e36ec | 218 | D9 = PTD5, |
emilmont | 60:3d0ef94e36ec | 219 | D10 = PTD0, |
emilmont | 60:3d0ef94e36ec | 220 | D11 = PTD2, |
emilmont | 60:3d0ef94e36ec | 221 | D12 = PTD3, |
emilmont | 60:3d0ef94e36ec | 222 | D13 = PTD1, |
emilmont | 60:3d0ef94e36ec | 223 | D14 = PTE0, |
emilmont | 60:3d0ef94e36ec | 224 | D15 = PTE1, |
emilmont | 60:3d0ef94e36ec | 225 | |
emilmont | 60:3d0ef94e36ec | 226 | A0 = PTB0, |
emilmont | 60:3d0ef94e36ec | 227 | A1 = PTB1, |
emilmont | 60:3d0ef94e36ec | 228 | A2 = PTB2, |
emilmont | 60:3d0ef94e36ec | 229 | A3 = PTB3, |
emilmont | 60:3d0ef94e36ec | 230 | A4 = PTC2, |
emilmont | 60:3d0ef94e36ec | 231 | A5 = PTC1, |
emilmont | 60:3d0ef94e36ec | 232 | |
emilmont | 60:3d0ef94e36ec | 233 | // Not connected |
emilmont | 60:3d0ef94e36ec | 234 | NC = (int)0xFFFFFFFF |
emilmont | 60:3d0ef94e36ec | 235 | } PinName; |
emilmont | 60:3d0ef94e36ec | 236 | |
emilmont | 60:3d0ef94e36ec | 237 | typedef enum { |
emilmont | 60:3d0ef94e36ec | 238 | PullNone = 0, |
emilmont | 60:3d0ef94e36ec | 239 | PullDown = 2, |
emilmont | 60:3d0ef94e36ec | 240 | PullUp = 3, |
emilmont | 60:3d0ef94e36ec | 241 | } PinMode; |
emilmont | 60:3d0ef94e36ec | 242 | |
emilmont | 60:3d0ef94e36ec | 243 | #ifdef __cplusplus |
emilmont | 60:3d0ef94e36ec | 244 | } |
emilmont | 60:3d0ef94e36ec | 245 | #endif |
emilmont | 60:3d0ef94e36ec | 246 | |
emilmont | 60:3d0ef94e36ec | 247 | #endif |