BASCOM LT©

Hardware Simulation


This application note shows how to emulate PORT 1 and 3 so you can test the various port
statements from within the BASCOM LT IDE.

The schematic is almost the same as for the MCS Flashprogrammer
2 PCF 8574 I/O extenders are used which are controlled by an I2C interface.

Users of the MCS Flashprogrammer can use the programmer to simulate PORT 1 (port 3 not supported)
You can make a cable which connects P1 of the flashprogrammer (with a piggy-back) to the
target system(the AT89C2051 socket).
Take care not to insert a chip into the programmer when used as a siulator!

You need version 1.11 of the IDE to use this new functionality.

A simple program demonstrates the simulator :
Connect 8 LED via 330 ohm resistors to P1. Simulate the program and see what is happening.

I used a dontronics DT003 power-board as a basis, a DT203 led/button board for the leds and a
dontronics prototypeboard to connect P1 of the flashprogrammer to the datalines of the SIMM-bus.


Dim a As Byte
P1 = 1
For a = 1 to 8
Rotate P1 , Left
Next
For a = 1 to 8
Rotate P1 , Right
Next
End

* Note that this application note uses library version 1.11 *

Schematic:


Last Up-dated at January 14st, 1998


GRIFO®
Via dell'Artigiano, 8/6
40016 San Giorgio di Piano
Bologna ITALY

Tel: +39 051 892.052 (4 lines)
FAX: +39 051 893.661


homeHome BASCOM LT Application Cat. Index