|
|
|||||||||||
|
The PIC16 is an 8-bit microcontroller by Microchip with RISC instruction set. This page is a browser-based teaching model: you can type a small subset of assembly, single-step or run it, and see the W register, the STATUS register, data memory (SRAM), and Flash (program listing) update together with an 18-pin DIP drawing where PORTB pins glow when driven high (output). Sections Harvard ArchitectureThe PIC16 uses a Harvard-style organization: program memory (Flash, 14-bit words) and data memory (SRAM, 8-bit file registers) are separate address spaces. Instructions are fetched from Flash; Instruction cycle (conceptual)Each Step Fwd performs FETCH → DECODE → EXECUTE: the current Flash line is highlighted, then registers / I/O / flags update. Run repeats steps at a selectable rate (Hz). Step Bwd restores the previous snapshot (limited history) for experimentation. Memory map (simplified visualization)
ALU and STATUS
SimulationThe interactive simulator is below. Use the controls to explore the concepts described above.
Usage
Opcodes (subset)
LimitationsThis is for visualization and learning. Timers, exact multi-bank handling, full EEPROM and peripheral configuration, or cycles are simplified.
|
|||||||||||