Menu

PIC10F

Majenko Technologies

The PIC10F has just a handful of instructions, and just 256 or 512 byes of flash. RAM is no more than 24 bytes.

Currently supported:

  • Most of the instructions work perfectly. Sleep doesn't, it just stops with a while(1) loop. OPTION doesn't do anything yet either, nor does TRIS.
  • The three GPIO output lines work as outputs. There are no inputs yet.
  • Emulation runs at a frequency defined in the config file. If no frequency is provided, it enters "free running" mode.
  • Timer 0
  • TRIS command
  • Digital Inputs
  • OPTION command

Still to support:

  • Capture and Compare
  • MCLR (Reset)
  • Analog Inputs
  • Watchdog
  • Reset / power-up states

Connections

Inputs

GPIO3

Outputs

None

Input/Outputs

GPIO0
GPIO1
GPIO2

Configuration

  • frequency speed

A number of hertz to run the emulation at. If this configuration directive is omitted the emulation runs in "free running" mode where there is no delay between instructions.

Due to limitations in the Linux scheduling there is an upper limit of a few thousand Hz (dependent on your system).

  • flash filename

Load the file specified by filename into flash. The file should be Intel HEX formatted. (Most embedded microcontroller toolchains create HEX files by default, or have tools to convert to HEX.)


Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.