antara keil, arm 7 lpc 2138 dan proteus


salut buat proteus, ternyata proteus bisa untuk simulasi lpc2138. dengan kata lain bisa mempercepat proses ngoprek. ini berikut mode minimumnya biar bisa jalan, tinggal sambungkan saja ke baterai.

 

kalo shematicnya ga seperti itu ga bakalan jalan. wkwkwkwkwkkw. ajib. nah terus ini dia program kecil blinking pakai keil. bisa di download sendiri keilnya mah. ini link nya https://www.keil.com/arm/demo/eval/arm.htm

/******************************************************************************/
/* BLINKY.C: LED Flasher                                                      */
/******************************************************************************/
/* This file is part of the uVision/ARM development tools.                    */
/* Copyright (c) 2005-2006 Keil Software. All rights reserved.                */
/* This software may only be used under the terms of a valid, current,        */
/* end user licence from KEIL for a compatible version of KEIL software       */
/* development tools. Nothing else gives you the right to use this software.  */
/******************************************************************************/

#include <LPC21xx.H>                       /* LPC21xx definitions */

void wait (void)  {                        /* wait function */
  int  d;

  for (d = 0; d < 1000000; d++);           /* only to delay for LED flashes */
}

int main (void) {
  unsigned int i;                          /* LED var */

  IODIR0 = 0x00FF0000;                     /* P1.16..23 defined as Outputs */

  while (1)  {                             /* Loop forever */
    for (i = 1<<16; i < 1<<23; i <<= 1) {  /* Blink LED 0,1,2,3,4,5,6 */
      IOSET0 = i;                          /* Turn on LED */
      wait ();                             /* call wait function */
      IOCLR0 = i;                          /* Turn off LED */
    }
    for (i = 1<<23; i > 1<<16; i >>=1 ) {  /* Blink LED 7,6,5,4,3,2,1 */
      IOSET0 = i;                          /* Turn on LED */
      wait ();                             /* call wait function */
      IOCLR0 = i;                          /* Turn off LED */
    }
  }
}

keheula sim kuring ngadameul heula videona bisi maraneh teu percaya ka sim kuring

4 thoughts on “antara keil, arm 7 lpc 2138 dan proteus”

  1. saya pakai proteus 7.6sp4. udah disambungkan kan vbat dan lain lainnya seperti gambar saya. kalo keil nya pakai 4.21, belum saya crack, tapi cracknya juga punya, tapi belum butuh.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s