FAQs for SIM


The embedded tools company

Search FAQs



PDF document ( 16KB / 07-Sep-2016 )


TOP

Simulation of Peripherals by use of DLLs

Ref: 0292
How can I simulate peripherals for the simulator? Do I need a DLL?

An example can be found at: CD\files\demo\simul\demoport.

You have to write a C-File like "demoport.c" and compile it by "makefile" to a DLL (MinGW or Mingw32, Minimalist GNU for Windows can be used: http://www.mingw.org/ ). This DLL will be loaded to our simulator by a command like:
    SIM.LOAD demoport.dll 20000 0
(The parameters are specific to the actual DLL. Here it is the baseaddress and the port-pin number.)

To see the values you should use a command like "per demoport" which opens the window that will be constructed according to file "demoport.per".




Copyright © 2016 Lauterbach GmbH, Altlaufstr.40, D-85635 Höhenkirchen-Siegertsbrunn, Germany  Impressum
The information presented is intended to give overview information only.
Changes and technical enhancements or modifications can be made without notice. Report Errors
Last generated/modified: 22-Sep-2016