AVRPascal 1.4 with UnoLib 0.4

AVRPascal is a Pascal code editor for AVR microcontrollers (ATtiny and ATmega families). It uses the FreePascal compiler to compile source code, and AVRdude to transfer the code to the microcontroller's memory using the USBasp programmer or Arduino Uno (ATmega328p only). AVRPascal features:

  • has syntax-highlighting, in case of compilation errors it indicates the line of code where the error occurred
  • has tooltips for parameters of functions and procedures, as well as fields of record types and methods of class types
  • has tabbed document interface
  • ability to configure the fuse-bits of the microcontroller

Arduino Uno

Source of image: wikipedia.org

UnoLib is a library written in Pascal designed for the Arduino Uno platform (ATmega328p microcontroller with a 16MHz clock). It is a translation of part of the standard Arduino library, with the necessary modifications. Support for fixed point numbers has also been added. Modules:

  • analog.pas - support for analog pins
  • defs.pas - definitions of constatnts, bit manipulations, port support
  • dht.pas - support for DHT11/22 sensors
  • digital.pas - support for digital pins
  • ds1302rtc.pas - support for ds1302 real time clock
  • fix16.pas - support for fixed point numbers
  • hardwareserial.pas - support for serial communication
  • liquidcrystal.pas - support for LCD
  • timer.pas - time-related routines

Windows 64-bit
Date File Size Notes
28/11/23 AVRPascal.1.4.0.293.Setup.Win.zip 13.67 MB Installer. The USBasp programmer requires the libusb driver installed. The Arduino board requires installed drivers for Windows.
Linux 64-bit
Date File Size Notes
28/11/23 AVRPascal.1.4.0.293.Setup.Linux.zip 11.44 MB DEB package. To use the USBasp programmer or Arduino board, run the program with root privileges or add a logged user to the dialout group.
MacOS 64-bit
Date File Size Notes
28/11/23 AVRPascal.1.4.0.293.Setup.Mac.zip 9.77 MB PKG package
Documents
Date File Size Notes
28/11/23 AVRPascal_Changes.txt 1.29 KB List of changes

The application is distributed as freeware. It means that it can be used completely free for home use, while it is forbidden to introduce any modifications or derive financial benefits from the distribution of the program by third parties. Although, I have made my best to ensure that the program works correctly, I cannot give any guarantees for the program operation and I am not liable for any possible damage resulting from its usage.

AVRPascalDbg 1.4

Debugger for AVRPascal, based on the DebugWire protocol. It communicates with AVR microcontrollers using a USB-UART converter, installed in the operating system as a virtual serial port. AVRPascalDbg works with adapters based on the FT232 chip from FTDI, e.g. Waveshare FT232. AVRPascalDbg has basic debugging functionality such as starting, interrupting and resuming the program, adding a breakpoint and tracking changes in the microcontroller register values. The limitation of the demo version is the maximum size of flash memory that can be loaded into the microcontroller, which is 350 bytes.

Windows 64-bit
Date File Size Notes
02/12/23 AVRPascalDbg.1.4.0.102.Win.zip 6.44 MB Zip archive containing the dll library and the DEMO license file. These files should be copied to the AVRPascal binaries directory (by default c:\Program Files\AVRPascal\bin\win64). The Waveshare FT232 converter requires the VCP driver to be installed.
Linux 64-bit
Date File Size Notes
02/12/23 AVRPascalDbg.1.4.0.102.Linux.zip 7.63 MB Zip archive containing the so library and the DEMO license file. These files should be copied to the AVRPascal binaries directory (/opt/AVRPascal/bin/linux64).
Documents
Date File Size Notes
02/12/23 AVRPascalDbg_Manual.pdf 308.73 KB User manual.

Updated: 02/12/23