News:

;) This forum is the property of Proton software developers

Main Menu

Positron Cube

Started by midali, Nov 23, 2026, 09:36 AM

Previous topic - Next topic

midali

Hi all,

I'd like to share PositronCube, a free tool for configuring the newer PIC devices visually and generating ready-to-compile Positron8 BASIC code. You pick a device, click a pin and choose its function: GPIO, ADC, UART, I2C, SPI, PWM or LCD. The tool then writes the fuses, oscillator setup, PPS declares and peripheral initialisation for you.

Supported families (162 devices):

PIC16F: 131xx, 152xx, 153xx, 171xx, 180xx, 183xx, 184xx, 188xx, 191xx
PIC18F: K40, K42, K83, Q10, Q2x, Q4x, Q7x, Q8x

More PIC families will be added in future versions.

Please give it a try and report any bugs you find here: wrong pin, wrong register setting, code that doesn't compile or behaves differently on real hardware. Please include the device name and a short description.

Download: https://1drv.ms/u/c/3801029E3DBF59D0/IQBiTklyIt5gQoUBMb42rqbDAVo-DFZ1ZDe79m3IwUOHs5s?e=waBnFb

Thanks, and enjoy!
DigitAll

midali

PositronCube v1.6 – pin & peripheral configurator for Positron8 / Positron16

PositronCube is a free CubeMX-style tool for Positron BASIC. You pick a PIC, click a pin to set its function, and it generates ready-to-compile code. That code covers the fuses, the oscillator/PLL setup, PPS mapping, GPIO, ADC, UART, I2C (hardware or software), SPI, HPWM and HD44780 LCD.

Supported devices (918):

PIC12F, e.g. 12F675, 12F683, 12F1822
PIC16F classic, enhanced and new PPS families, e.g. 16F628A, 16F877A, 16F1938, 16F18855
PIC18F classic, J, K20/K22/K80 and K40/K42/Q-series
PIC24F/H/E
dsPIC33F/E/EV/CK

I compile-tested every device with Positron, using the internal oscillator, a crystal and a crystal + PLL where available. The tool only offers the features that actually compile on each chip.

Known exceptions:

No HPWM on dsPIC33EP/EV, and no ADIn on dsPIC33CK, because Positron16 doesn't support them there.
No UART/HPWM mapping on a few PIC24/dsPIC33 devices whose Positron .def files have wrong or missing PPS data: 33EP MU/GS, 24FJ GA70x, 24HJ12/16/32.
A few devices are left out because Positron can't build for them or their device data is inconsistent, e.g. 16F1716, 18F2450, 33EP512GM310 and some 44-pin 18F J parts.
The PLL settings for PIC24/dsPIC33 follow the datasheets, but please verify the clock on real hardware.

Please test it with your own devices and report any bugs here. Include the device name and the generated code if possible. If you have ideas for new features, let me know and I'll try to implement them.

Download: PositronCube rev 1.6

DigitAll

Yves

Misali,

Nice little useful setuo program. I will try it in future project. Thank you for sharing

Yves
Yves

▲