Recent

Author Topic: PicPas, Pascal compiler for Microchip PIC  (Read 115064 times)

Edson

  • Hero Member
  • *****
  • Posts: 1301
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #90 on: July 14, 2017, 10:53:46 pm »
Hello, here my first real PicPas application. It works!
Erni

Excelent. A very good application. Feel free to make suggestion about the compiler.

Quote
This program uses 3 bytes of RAM (4,7%) and 44 bytes of FLASH (4,3%)

PicPas is probably, the most optimized compiler for the Mid-Range PIC.  :D
MikroPascal and MikroC would have used at least, 16 bytes of RAM.
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

Erni

  • New Member
  • *
  • Posts: 15
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #91 on: July 15, 2017, 09:22:59 am »
OK, here is my wishlist:
The black background maybe very hacker-like, but it's hard to read.
At first I had to edit the colors. I like the blue background or the white,
that was in the first versions of PicPas and shown on the Github-Page.
So I wish a few loadable skins :)

A binary notation for numbers, like 01101001B or %01101001.
This makes bit-settings in the registers easyer.

A menu to setup the config-word.
Now I have to set the Config-Word with the programmers menu (WinPicPro),
but it should be stored in the HEX-file by the compiler.

The download button to run the external flash-program (or a batch-file).
It can execute the PicKit2-Commandline-Tool for example
and has to give the parameters for file-path, file-name, file-ext
and the processor.

One of my wishes is allready done: Version 0.72 runs on my old workbench
computer with Win-XP SP3 :).
The first versions of PicPas didn't, needed Win-7.

Thank you!
Erni

Edson

  • Hero Member
  • *****
  • Posts: 1301
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #92 on: July 15, 2017, 06:39:13 pm »
So I wish a few loadable skins :)
Yes. It's projected to include themes. It's not so complicated.
By the moment, you can save your "skin" just copying the file "PicPas-win32.xml". It includes all the settings including the appearance.

A binary notation for numbers, like 01101001B or %01101001.
There is a binary notation: %01101001
And hexa notation: $FF

A menu to setup the config-word.
Now I have to set the Config-Word with the programmers menu (WinPicPro),
but it should be stored in the HEX-file by the compiler.

Yes. This is something useful. Easy to implement. Maybe in the next version.  :)
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

Edson

  • Hero Member
  • *****
  • Posts: 1301
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #93 on: July 16, 2017, 06:48:20 pm »
The download button to run the external flash-program (or a batch-file).
It can execute the PicKit2-Commandline-Tool for example
and has to give the parameters for file-path, file-name, file-ext
and the processor.

I haven't realized that this simple adition can be very useful. This is easy to implement too. Something like "Run External Tool" or something like tihis. I will consider for the next version.
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

Erni

  • New Member
  • *
  • Posts: 15
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #94 on: July 16, 2017, 07:34:10 pm »
Hello Edson,
sorry for not reading the documentation. I tried the wrong binary notation only,
that was stupid.
A "Run External Tool"-menu is a good idea. Please allow more user-entries for
different programs to execute :)
I just finished my second project with PicPas, a speed-controller for my PCB-drill.
It holds the speed stable, also with a PIC 12F629.
I tested it on a breadboard, it works very well.

jc99

  • Hero Member
  • *****
  • Posts: 553
    • My private Site
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #95 on: July 16, 2017, 09:05:58 pm »
Hi I started to translate the documentation to english ... I started with the Usermanual ...
(also in my repo ... )
OS: Win XP x64, Win 7, Win 7 x64, Win 10, Win 10 x64, Suse Linux 13.2
Laz: 1.4 - 1.8.4, 2.0
https://github.com/joecare99/public
'~|    /''
,_|oe \_,are
If you want to do something for the environment: Twitter: #reduceCO2 or
https://www.betterplace.me/klimawandel-stoppen-co-ueber-preis-reduzieren

majid.ebru

  • Sr. Member
  • ****
  • Posts: 494
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #96 on: July 17, 2017, 07:14:50 am »
Hi I started to translate the documentation to english ... I started with the Usermanual ...
(also in my repo ... )

Thank You
 :-* :-* :-*

Edson

  • Hero Member
  • *****
  • Posts: 1301
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #97 on: July 17, 2017, 05:39:09 pm »
Hi I started to translate the documentation to english ... I started with the Usermanual ...
(also in my repo ... )

Very good  :). It was something missing in PicPas. Thanks.

A "Run External Tool"-menu is a good idea. Please allow more user-entries for
different programs to execute :)
OK. I will consider it.

I just finished my second project with PicPas, a speed-controller for my PCB-drill.
It holds the speed stable, also with a PIC 12F629.
Do you have some repository for your code? I would like to see it.
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

Erni

  • New Member
  • *
  • Posts: 15
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #98 on: July 17, 2017, 09:16:33 pm »
Hello Edson,
I can upload the project zip-file here, but I have to draw
the schematic and do some documentation before.
To do this, I need the next weekend...

Thanks to jc99 for the translation!

Erni

  • New Member
  • *
  • Posts: 15
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #99 on: July 23, 2017, 01:32:46 pm »
Hello Edson,
here the requested documents for the PCB-Drill-Controller uploaded.
Thanks for your interest, please have a look!

Edson

  • Hero Member
  • *****
  • Posts: 1301
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #100 on: July 23, 2017, 07:22:15 pm »
Hello Edson,
here the requested documents for the PCB-Drill-Controller uploaded.
Thanks for your interest, please have a look!

Excelent. Do you have it published in some site?
I would like to include a link in mi GitHub page. Or I can include your project in my GItHub if not.
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

Erni

  • New Member
  • *
  • Posts: 15
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #101 on: July 23, 2017, 08:21:45 pm »
Please put it to your PicPas-Project, if you want!

Edson

  • Hero Member
  • *****
  • Posts: 1301
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #102 on: August 04, 2017, 08:32:49 pm »
Please put it to your PicPas-Project, if you want!
OK, It's included in the /sample folder.

Thanks for share your project.  :)
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

Edson

  • Hero Member
  • *****
  • Posts: 1301
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #103 on: August 07, 2017, 05:48:48 pm »
PicPas 0.7.3 has been released.  :D  https://github.com/t-edson/PicPas

News:

- Directives $CONFIG, $INCLUDE, $DEFINE and $IFDEF/$IFNDEF/$ELSE/$ENDIF implemented
- Error location improved for ASM and  DIRECTIVES blocks.
- Macros and conditional compilation implemented  (experimental).
- External Tools configuration implemented.

Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

Edson

  • Hero Member
  • *****
  • Posts: 1301
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #104 on: August 21, 2017, 05:41:19 pm »
PicPas has been updated to the 0.7.4 version:  https://github.com/t-edson/PicPas

News:
- Highlighting of multiples errors.
- Support for themes.
- More setting options.
- New operations implemented.
- New registers for 32 bits operations.
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

 

TinyPortal © 2005-2018