Read TinyM0_tools.pdf text version

Technical Note

TinyM0

TN01010101 V1.02 Date:2010/03/31

TinyM0 TKScope CK100 TKStudio K-Flash TKS_COM TinyM0

TinyM0

V1.00 V1.01 V1.02 2010/03/18 2010/3/29 2010/3/31 ISP

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. i

TinyM0

689 12 F4 510630 (020)38730916 (020)38730925 www.zlgmcu.com 38730917 38730972 38730976 38730977

203-204 (020)87578634 (020)87578842 87569917

280 2006 (025)83613221 (025)83613271 83613271 83603500

113 A 1207-1208 (010)62536178 (010)82614433 62536179 82628073

1611 (023)68796438 (023)68796439 68796439

217 502 (0571) 28139611 28139615 (0571) 28139621 28139612 28139616 28139613 28139618

1 401 (028)85439836 (028)85437896 85437446

2070 C 4 D (0755)837817885 (0755)83793285

158 12128 (027)87168497 (027)87163755 87168297 87168397

668 7E (021)53083452 (021)53083491 53083453 53083496

54 1201 (029)87881296 (029)87880865 83063000 87881295

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. ii

TinyM0

3 2 510660 (020)38601859 www.embedtools.com www.embedcontrol.com www.ecardsys.com

CAN-bus

(020)22644381 22644382 22644253 [email protected]

iCAN

(020)28872344 22644373 [email protected]

MiniARM

(020)28872684 28267813 [email protected]

(020)22644380 22644385 [email protected]

(020) 22644386 [email protected]

(020)28267800 22644385 [email protected]

(020)22644371 [email protected]

(020)22644375 28872624 28872345 [email protected]

ARM

(020) 22644383 22644384 NXPARM @zlgmcu.com

(020)22644376 22644389 28267806 [email protected] [email protected]

(020)22644249 28872342 22644399 28872349 22644372 28872569 22644261 28872573 28872524 38601786

(020)22644245

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. iii

TinyM0

1. TinyM0 ......................................................................................................1 2. TKStudio IDE ....................................................................................2

TKStudio ...........................................................................................2 2.1.1 .......................................................................................................2 2.1.2 .......................................................................................................3 2.1.3 .......................................................................................................3 2.1.4 ...................................................................................................5 2.1.5 ...........................................................................................................6 2.2 ...............................................................................................................6 2.2.1 ...........................................................................................................6 2.2.2 .......................................................................................8 2.2.3 .........................................................................................................10 2.2.4 .............................................................................................11 2.2.5 .................................................................................................12 2.2.6 .........................................................................................................13 2.2.7 .........................................................................................................13 2.3 .............................................................................................................13 2.3.1 .................................................................................................13 2.3.2 .....................................................................................................14 2.1

3. TKScope CK100 .........................................................................................16

3.1 3.2 3.3 3.4 4.1 4.2 .................................................................................................................16 .................................................................................................................16 .................................................................................................................17 .............................................................................................................19 .........................................................................................................................33 K-Flash............................................................................................................33 4.2.1 HEX.................................................................................................33 4.2.2 ISP ...........................................................................................................36 .........................................................................................................................41 TKS_COM ......................................................................................................41

4. K-Flash.........................................................................................................33

5. .........................................................................................................41

5.1 5.2

6. .................................................................................................................44

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 1

TinyM0

1. TinyM0

TinyM0 NXP LPC1100 Cortex-M0

LPC1100 LPC1100 ARM Cortex-M0 50MHz 150A/MHz 8/16 8/16 ARM 8/16 32

TinyM0 1.1TKScope CK100 TinyM0 TinyM0

1.1 TinyM0

TinyM0 1. TinyM0 TKScope CK100 KEILIAR TKStudio 2.

TinyM0 LPC111× 2.54mm TinyM0 3. TinyM0 NXP LPC1100 LPC1300 LQFP48 4.

TinyM0 Cortex-M0----LPC1100 Cortex-M0

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 1

TinyM0

2. TKStudio IDE

TKStudio Cortex-M0

2.1

TKStudio

TKStudio TKStudio IDE 8051ARM AVR (TKS)TKStudio IDE 2.1

2.1 TKStudio

TKStudio 2.1.1 TKStudio TKStudio 2.2

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 2

TinyM0

2.2

2.1.2 TKStudio TKStudio 2.3

2.3 TKStudio

2.1.3 TKStudio MCS-51ARMAVR C51SDCC 51 GCC ARMADS ARMRealview MDKGCC AVR

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 3

TinyM0

2.4

LPC1100 Realview MDK 4.x TKStudio TKStudio Realview MDK TKStudio Realview MDKTKStudio TKStudio 2.5 2.6

2.5

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 4

TinyM0

2.6

Realview MDK 2.7KEIL

->ARM->BIN40

2.7

2.1.4 TKStudio K 8051 ARM AVR /

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 5

TinyM0

2.8

2.1.5

2.9

45 K-FlashTKS_COM

2.2

2.2.1 Windows TKStudioTKStudio TKStudio TKStudio

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 6

TinyM0

2.10 TKStudio

TKStudio 2.11

2.11

"" "" "" "CPU" 2.12

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 7

TinyM0

2.12 CPU

""""" " "" .xmp 2.2.2 LPC1100 1 Flash 0x00000000 RAM 0x10000000 LPC1100 target.c lpc1100.h InChip.sct LPC1100 Windows TKStudioTKStudio TKStudio TKStudio

2.13 TKStudio

TKStudio 3.7

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 8

TinyM0

2.15

2.14

2.15 LPC1100

LPC1100 Cortex-M0_Execut_for_LPC1100 C Thumb Cortex-M0_Execut_for_LPC1100 DebugInFlash Release

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 9

TinyM0

2.16 LPC1100 1 2 InChip.sct LPC1100 Release LPC1100 LPC1100 OTP ISP SWD ISP /

2.2.3 "" "" Test.c ,

2.17

""""

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 10

TinyM0

2.18

2.2.4 TKStudio "" "" """"

2.19

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 11

TinyM0

2.2.5 2.20

2.20 2.1

2.21

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 12

TinyM0

2.2.6

*.xmp ""

2.2.7 TKStudioTKStudiouV2uV3ADSSDCC 2.22

2.22

"" " CPU" "" "" TKStudio TKStudio

2.3

2.3.1 TKStudio MDK 2.23

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 13

TinyM0

2.23

"" 2.3.2

"/"TKStudioTK

Studio 2.24

2.24 2.2 /

/

/

TKStudio 2.25 2.3

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 14

TinyM0

2.25 2.3

-

-

SFR

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 15

TinyM0

3. TKScope CK100

3.1

TKScope CK100 2009 ARM Cortex-M0 ARM7 ARM9Cortex-M1Cortex-M3XSCALEARM10ARM11Cortex-R4 Cortex-A8 TKScope CK100 IDE KeilIAR TKStudio

TKScope CK100 IDE TKStudio// KeilKeil ARM / IARIAR /

3.1 TKScope CK100 IDE

TKScope CK100 USB USB PC

3.2

3.2 TKScope CK100

TKScope CK100 TKScope SuperARM ICE CK ARM TKScope ARM

TKScope TKScope 8051ARMDSPAVRC166MX IDE TKStudiozlglogicKeilADSIARRealViewAVR CCS zlglogic

TKScope CK100 Cortex-M0 Thumb SWD IDE IARKeilTKStudio Flash / Flash 2

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 16

TinyM0

JTAG 1MHz JTAG

TKScope CK100

3.3

TKScope CK100 USB PC POWEREMU RUN PC"" 3.3 3.4 3.5

3.3

3.4

TKScope CK100 TKStudio D:\Program Files\Zhiyuan Electronic\TKStudio\LPC1100\CK100 Driver CK100

TinyM0 TKStudio LPC1100

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 17

TinyM0

3.5

"CK100_Driver"

3.6 TinyM0 EMU RUN

3.6

-> 3.7

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 18

TinyM0

3.7

USB

3.4

GPIO_BEEP LPC1100 TKScope CK100 1. TinyM0 3.3VGND P2.7 BEEP LED

P2.7 LED

USB PC EMU RUN EMU RUN 2.

GPIO_BEEP 3.8

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 19

TinyM0

3.8

TKStudio 3.9

3.9

LPC1114 3.10-- 3.12

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 20

TinyM0

3.10

3.11

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 21

TinyM0

3.12

1TKStudio 3.14TKScope CK100 AGDIAGDI

3.13

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 22

TinyM0

3.14

2TKScope CK100 UL2ARM_TKS CP_DRV_ARM_for_AGDI.dll 3.15D:\Program Files\Zhiyuan Elec tronic\TKStudio\LPC1100 ""

3.15 TinyM0 TKStudio LPC1100

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 23

TinyM0

3TKScope CK100 3.16

3.16

TKScope CK100 TKScope CK100 3.17 3.18 NXP->LPC1114×301->CK100

3.17 TKScope CK100

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 24

TinyM0

3.18

3.19TKScope CK100 3.20

3.19

3.20

TKScope CK100 3.21

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 25

TinyM0

3.21

TKScope CK100 3.22 LPC1100 SWD""SWD

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 26

TinyM0

3.22

TKScope CK100 3.23 TinyM0 LPC1114 Flash 32KB MCU "LPC1100 IAP 32KB Flash"

3.23

Flash TKScope CK100 3.24

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 27

TinyM0

3.24

TKScope CK100 3.25

3.25

10000 ID CODE SRMA 3.26

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 28

TinyM0

3.26

TKScope CK100 3.

TKStudioGPIO_BEEP 3.1

3.1 #include "..\config.h" /******************************************************************************************* *******************************************************************************************/ #define BEEP #define BEEP_INIT() #define BEEPOFF() #define BEEPON() (1ul << 7) GPIO2DIR |= BEEP BEEP /* /* /* */ */ */ GPIO2DATA |= GPIO

GPIO2DATA &= ~BEEP

/******************************************************************************************* ** myDelay ** ** ** *******************************************************************************************/ void myDelay (INT32U ulTime) { INT32U i; i = 0; while (ulTime--) { for (i = 0; i < 5000; i++); }

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 29

TinyM0

} /******************************************************************************************* ** main ** BEEPP2.7 BEEPEasyCortexM3-1300 ** ** *******************************************************************************************/ int main (void) { targetInit(); pinInit(); SYSAHBCLKCTRL |= (1ul << 6); BEEP_INIT(); while (1) { BEEPON(); myDelay(400); BEEPOFF(); myDelay(400); } } /* /* /* GPIO */ */ */

1DegugInFlashFlash GPIO_BEEP 3.27

3.27

2Debug 3.28TKStudio Flash 3.29

3.28

3.29 Flash

3main 3.30

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 30

TinyM0

3.31"Disassembly"

3.30

3.31C "0""F"

3.31

4 3.32

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 31

TinyM0

3.32

5 3.33""

3.33

6"DebugInFlash" Flash 7"Release" LPC1100 LPC1100 OTP

3.34

LPC1100 3.34 ISPSWDISP/

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 32

TinyM0

4. K-Flash

4.1

K-FlashTKStudio FlashK-Flash 4.1

4.1 K-Flash

K-Flash TKScope ARM51AVR bin hex elf Flash Flash (NOR/NAND/SPI ) Flash ISP ARM Flash

4.2

K-Flash

4.2.1 HEX TKStudioK-Flash 4.2

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 33

TinyM0

4.2 K-Flash

K-Flash ARM AVR51 TKScope 1. K-Flash 4.3

4.3

4.4 3.4

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 34

TinyM0

4.4

4.5

4.5

1

Flash Flash Flash Flash

2

RAM RAM RAM

3

Flash

4

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 35

TinyM0

2.

K-Flash bin 4.6

4.6

3.

"" 4.2.2 ISP LPC1100 K-Flash ISP ISP UART0 1. RXD-P1.6TXD-P1.7 PC LPC1100 ISP P0.1DGND

PC RS-232

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 36

TinyM0

2.

K-Flash 4.7 -> NXP ->LPC1114x301Serial ISP 4.8

4.7

Serial ISP

4.8 ISP

4.9 PC 115200 12MHz

4.9 ISP

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 37

TinyM0

ISPK-Flash 4.10 4.11K-Flash 4.12

4.10 ISP

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 38

TinyM0

4.11 ISP

4.12 ISP

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 39

TinyM0

3.

ISP

K-FlashISP 4.13-- 4.14

4.13 ISP

4.14 ISP

PC

PCPCRXDTXD PC

PCUART0ISP

ISP

"115200"

ISP K-Flash

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 40

TinyM0

5.

5.1

TKS_COMTKStudio TKS_COM TKS_COM 5.1

5.1 TKS_COM

TKS_COM PC ASCII HEX

5.2

TKS_COM

TKStudioTKS_COM 5.2

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 41

TinyM0

5.2

1.

/

TKS-COM " """ TKS-COM TKS-COM "TKS-COM.ini" TKS-COM 2. TKS-COM TKS-COM 5.3

5.3

3.

TKS-COM PC 5.4

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 42

TinyM0

5.4

ASCII Hex RTS/DTR "" ""

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 43

TinyM0

6.

/ ""

©2008 Guangzhou ZHIYUAN Electronics CO., LTD. 44

Information

49 pages

Report File (DMCA)

Our content is added by our users. We aim to remove reported files within 1 working day. Please use this link to notify us:

Report this file as copyright or inappropriate

324168


Notice: fwrite(): send of 206 bytes failed with errno=104 Connection reset by peer in /home/readbag.com/web/sphinxapi.php on line 531