Advertisement  

Wednesday, 24 July 2019
     
 
Main Menu
Home Home
Shop Shop
News News
BASCOM-AVR BASCOM-AVR
BASCOM-8051 BASCOM-8051
Products Products
Application Notes Application Notes
Publications Publications
Links Links
Support Center Support Center
Downloads Downloads
Forum Forum
Resellers Resellers
Contact Us Contact Us
Updates Updates
MCS Wiki MCS Wiki
Online Help
BASCOM-AVR Help BASCOM-AVR Help
BASCOM-8051 Help BASCOM-8051 Help
Contents in Cart
Show Cart
Your Cart is currently empty.
Search the Shop

Products Search

User Login
Username

Password

If you have problem after log in with disappeared login data, please press F5 in your browser

RSS News
 
     
 

 
   
     
 
AN #10 - BASCOM-LT and BASCOM-8051 Hardware simulation Print
BASCOM-LT and BASCOM-8051 Hardware simulation

BASCOM LT and BASCOM-8051 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 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 simulator!

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.
For info on these boards http://www.dontronics.com


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

Schematic :