Nano Microcontroller

nano

The cheapest microcontroller that has the least amount of memory and pins. Great for simple projects that don't require a lot of resources.

How to Acquire

Currently, there is no crafting recipe for the Nano, and it is not accesible in the creative inventory. It can be spawned in using the /give command.

/give <your_username> cnmcu:nano

Specs

SpecValueUnitUsage
CPUmos6502
Clock Speed800Hz
ROM8096BytesProgram Code, Vectors, LUTs
RAM512Bytes256B ZeroPage, 256B Stack Memory
Pins4

Pinout

Pins are numbered from 0 to 3, and they ordered in a clockwise fashion starting from the top and ending at the left. Note that the top right yellow corner of the block indicates the orientation of the pins. They are also labeled in order: front, right, back, and left.

nano pinout

Address Map

The Nano has a 64KB address space, with 8KB of ROM and 512 bytes of RAM.

Address RangeNameUses
0x0000 - 0x0200RAM256 bytes zero page memory | 256 byte stack
0x7000 - 0x7070GPIOPin Control/Interrupts
0x7100 - 0x7110ELMinecraft Event Listener
0x7200 - 0x7208UARTSerial Communication
0xE000 - 0x10000ROMProgram Code, Vectors, LUTs

Modules

  • GPIO - Control and read the state of the pins of a microcontroller via the processor's data bus. It has a buffer of 64 bytes to store the state of every pin, but only the first four are used by the pin drivers.

  • EL - Provides a simple way to listen for Minecraft events to execute code in response.

  • UART - Serial communication module that allows the microcontroller to send and receive data to and from other devices.

Registers

Head to this page to see the registers available in the Nano microcontroller: Nano Registers