This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Perpetual motion controller

Hi,

I have this design for a controller but i dont know the program for it?

Where can I find the code for it? I tried google coding but cannot find it. I normally write Pascal(Delphi) but this needs to be in Keil C for a 8051.

I need to get it working quickly. Who will help?

Parents
  • I think you can get a utility to do this conversion. I think it is called "AP2AC.exe" (stands for Any Program to Any Controller), and runs on the PC platform (the Linux version isn't quite ready yet).

    An example of the AP2AC conversion utility:

    C:\Complex\Directory\Structure>AP2AC oldprogram.* -8051 -KEIL newprogram
    

    It auto-detects the original "oldprogram" files' native CPU and will, depending upon the selected options, generate the newprogram's executable for almost any micro-controller.

    If you have the source files for "oldprogram" it will also regenerate the controller source code too.

    Typical options are:

    For Controllers (an example only):
    -4040
    -8008
    -6502
    -Z80
    -1802
    -8048
    -8051
    -8080
    -8085
    -8086
    -8088
    -8186
    -8286
    -8386
    -8486
    -68000
    -i960
    -6815
    -TMS320Cxx
    -TMS320Cxxx
    -ARM7
    -ARM7M3
    -ARM9
    -ARM11
    
    (etc, PIC devices excluded)
    
    For Compilers (an example only):
    -KEIL
    -IAR
    -TASKING
    -HITECH
    -Intel
    -Freescale
    -COSMAC
    -SDCC
    -Franklin
    -Whitesmith
    -BDS_Leor_Zolman
    
    (etc)
    
    

    It is a bit pricey, but you can get an expert on the AP2AC.exe program here:

    http://www.keil.com/condb/search.asp

    --Cpt. Vince Foster
    2nd Cannon Place
    Fort Marcy Park, VA

Reply
  • I think you can get a utility to do this conversion. I think it is called "AP2AC.exe" (stands for Any Program to Any Controller), and runs on the PC platform (the Linux version isn't quite ready yet).

    An example of the AP2AC conversion utility:

    C:\Complex\Directory\Structure>AP2AC oldprogram.* -8051 -KEIL newprogram
    

    It auto-detects the original "oldprogram" files' native CPU and will, depending upon the selected options, generate the newprogram's executable for almost any micro-controller.

    If you have the source files for "oldprogram" it will also regenerate the controller source code too.

    Typical options are:

    For Controllers (an example only):
    -4040
    -8008
    -6502
    -Z80
    -1802
    -8048
    -8051
    -8080
    -8085
    -8086
    -8088
    -8186
    -8286
    -8386
    -8486
    -68000
    -i960
    -6815
    -TMS320Cxx
    -TMS320Cxxx
    -ARM7
    -ARM7M3
    -ARM9
    -ARM11
    
    (etc, PIC devices excluded)
    
    For Compilers (an example only):
    -KEIL
    -IAR
    -TASKING
    -HITECH
    -Intel
    -Freescale
    -COSMAC
    -SDCC
    -Franklin
    -Whitesmith
    -BDS_Leor_Zolman
    
    (etc)
    
    

    It is a bit pricey, but you can get an expert on the AP2AC.exe program here:

    http://www.keil.com/condb/search.asp

    --Cpt. Vince Foster
    2nd Cannon Place
    Fort Marcy Park, VA

Children
  • A cheaper alternative is the russian utility Kailinka.

    It was originally aimed for smooth transitions from C51 to the CARM compiler, but has proven capable of taking care of the migration from most 8-, 16- and 32-bit controllers but will only target Keil-supported target processors. Note however, that the RealView edition is still in beta, and that some applications may run too fast on the new hardware.

    The important distinction with Kailinka is that it auto-generates a platform-translation layer that is automatically linked with the original binary, so there is no need for any recompilation. The original source can continue to be used - and updated - for the original target.

    The AP2AC.exe tool can be a bit daunting to use for a beginner, because of the need to correctly select the target controller, but the Kailinka tool only requires that the path to Kailinka is placed before the path to the Keil tools - it will then work as a transparent linker proxy. Since it receives the full set of linker options, there will be no need to specify any configuration. The install program takes care of the path updates, and then it is enough to select "build" or "link".

    The Kailinka company are also looking for beta-testers of their new C-Shark tool, that will allow any M$ Visual Studio project to be post-processed for use with Keil-supported microcontrollers. If no undocumented Win32 API are called, then most Windows applications can also be directly run (using a stubbed ntoskrnl.dll) on C51 and ARM platforms.

    Note that both of the above two tools do require a valid CARM or RealView license - the evaluation version of RealView will only support smaller PC applications.

  • AP2AC.exe sounds like the answer to all my problems! I can finally get all of my VB excel macros off of windows and on to my mcu...

    If it only supported PICs :(

    Seriously though, I think you can use the AP2AC.exe utility to create the Linux port. The command looks something like this:

    AP2AC AP2AC.exe -8086 -LinuxGCCUbuntuRedHatDebianOSXanythingbutWindows AP2AC
    

    The trick is to specify the LinuxGCCUbuntuRedHatDebianOSXanythingbutWindows tag, and to make sure that you don't specify an extension for the resulting program. It's also worth noting that you can specify this tag with a -8051 or -ARM7M3 target for those of us out there using OSX on 8051's and ARM7M3's.