AQA New Specification - Microcontroller Simulator - Electronics Tutorials

The Simulator

This microcontroller simulator is based on the AQA Electronics A Level specification. The Instruction Set has been expanded slightly over the AQA spec' to make it possible to write timer interrupt code.

Getting Started

Read this DOC or DOCX or PDF then work through the tutorial links on the left.

Bugs

There is one significant bug. Some AQA machine instructions take two clock cycles to run. In this simulator, all instructions run in one clock cycle. This problem might get fixed this summer (2009). There are likely to be more undiscovered bugs.

Save Your Programs

Web-based tools do not have access to the local computer's file system (for security and safety reasons). So to save a program, select the code and copy it (CTRL+C) or mouse right click and choose copy. Then paste the code into a program such as Notepad. Then save the file. Reverse this process to run a saved program.

Caution

PinoutSome processor details are not specified by AQA so design assumptions had to be made. The processor described in exam questions might differ in some details. For example Pre, Tmr, Porta, b and c and Trisa, b and c are all memory mapped in the simulator. These registers, specified by AQA, might not be memory mapped in exam questions. The processor details could differ in other areas too such as this pinout which is a work of pure imagination. Vpp is used only when programming the chip. PGC is the serial data clock signal used while programming and PGD is the serial program data line. These are for In Circuit Serial Programming (ICSP).


Tutorial Tasks

There are ten (more to come perhaps) examples and tasks. Use the navigation links on the left to get to these.

reviseOmatic

There are over 60 test/revision questions on assembly code programming and the simulated peripheral devices.
Look for questions on this topic - 23 A2 Assembly Code Programming.
There are over 600 questions covering the AS and A2 specification. Anyone can register, set up classes and add topics to classes.

Topics:

01-nop-jmp   02-LEDs   03-Heater   03-Tlight   04-SevSeg   05-Delay   06-H-Bridge   07-Interrupts   08-Gray   09-Stepper   doc   hex-num   index  

Flash:

sim  

DOC:

Microcontroller Simulator   Microcontroller Simulator.   Microcontroller with Harvard Architecture  

PDF:

Microcontroller Simulator  

Images:

architecture   assem-H-Bridge   assem-Heater-FC   assem-Heater   assem-Stepper   assem-TLIGHT-grid   Gray   pinout   sim-leds   sim-sev-seg-design   sim-sev-seg   sim-traffic  

 

Privacy Policy, © Copyright, Contact Information and Disclaimers

Site highly rated by Schoolzone.co.uk

Valid XHTML 1.0 Transitional

Valid CSS!