Announcements
IMPORTANT: Cypress Developer Community is transitioning on October 20th. To learn more and be prepared for this change, check out our latest announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

KlZo_3306126
New Contributor II

Hello @ll,

If you want to configurate, debug and test your implementation interactive, you can do this with mecrisp-stellaris, an FORTH implementation for several Cypress PSOCs.

Example:

To initiate a PWM there are several API's to do this. One API write the compare value:

pastedImage_0.png

To using this API you can call the API in a C-function. To modifies it on the fly you can use the configure menu from PSOC-Creator and translate and flash the whole application.

Alternative you can do following, if you have install mecrisp-stellaris:

100 PWM_1_WriteCompare1()  <enter>      \ 100 is put on the data stack and the API 'PWM_1_WriteCompare1()' will be calling. /!\ translating and flashing are not necessary

You can also define a word like this:

: MaxDuty1

     100

     PWM_1_WriteCompare1()

;

or that

: MinDuty1

     0

     PWM_1_WriteCompare1()

;

... MaxDuty wait MinDuty ....      \ for more examples download one of following mecrisp-stellaris implementations:

As already published here, the FORTH development environment 'mecrisp-stellaris' is available for download for the following 7 Cypress PSoC's:

Board:          /          PSoC:

CY8CKIT-043     -> cy8c4247azi

CY8CKIT-044     -> cy8c4247azi

CY8CKIT-046     -> cy8c4248bzi

CY8CKIT-049     -> cy8c4245axi

CY8CKIT-050     -> cy8c5868axi

CY8CKIT-059     -> cy8c5888lti

FreeSoC2           -> cy8c5888axi

See: https://sourceforge.net/projects/mecrisp/files/Cypress/

If you would like to know more about FORTH, you will find the classic Starting-FORTH and Thinking-FORTH by Leo Brodie:

https://1scyem2bunjw1ghzsf1cjwwn-wpengine.netdna-ssl.com/wp-content/uploads/2018/01/Starting-FORTH.p...

http://thinking-forth.sourceforge.net/

The Definition of ANS FORTH you can find here: http://lars.nocrew.org/dpans/dpans.htm

If you want to know more about Mecrisp-Stellaris you are right here:

https://www.forth-ev.de/filemgmt_data/files/4d2015-arm.pdf

When PSoC evaboard is not listed and you interest on a Forth for your board, please contact me via the e-mail address provided in README of one of the downloads to clarify the possibility of porting

Klaus

0 Likes
4 Replies
KlZo_3306126
New Contributor II

I have added an example to use API's interactively

0 Likes
KlZo_3306126
New Contributor II

Following note:
Meanwhile, there are mecrisp stellaris in version 2.4.9.
For the listed PSOC's the FORTH version 2.4.1 to 2.4.5 are available, depending on the PSOC type. An upgrade to 2.4.9 is not required.

0 Likes
evzo_4147511
New Contributor

Hello,

is it possible to porting mecrisp-stellaris for my own board with a PSOC 5LP (Cy8C5888axi)?

0 Likes
KlZo_3306126
New Contributor II

Hello forth.ler,

Yes it is possible in principle. To check this, I need detailed information. Contact me by e-mail. You will find the e-mail address in every download

0 Likes