NOTICE: This website will be shut down in the near future. Product content has moved to nxp.com. Forum content and FAQs have been moved to community.nxp.com. We encourage you to create a user account on nxp.com to use the new community forums and access NXP microcontroller content. We greatly appreciate your contributions and look forward to seeing you at our new web location.

 

Coridium SuperPro+ BASIC Compiler

1 reply [Last post]
dgarofolo
Offline
Joined: 2012-07-16
Posts: 1

I am trying to connect a quadrature (rotory) encoder to my Coridium SuperPro+ board, using their free BASICtools compiler. It needs to run on a timed interrupt to ensure an adequate polling rate. I can't figure out how to get the interrupts to work as explained in the help files. Does anyone have any experience with this BASIC compiler? Below is my test code. I would expect that every second it would print a higher value for X. I get zeros, so the Interrupt Sub must not be running? Any suggestions or sample code would be greatly appreciated.

DIM X As Integer

INTERRUPT SUB every20msec:
X = X + 1
ENDSUB

main:

ON TIMER 20 every20msec

PRINT "DO SOME OTHER STUFF TOO"
PRINT X
Wait (1000)

GOTO Main

END

Dan

0
Your rating: None

Dan

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
cfbsoftware
Offline
Joined: 2011-07-18
Posts: 34

This question has been answered in the Yahoo ARMExpress group:

http://tech.groups.yahoo.com/group/ARMexpress/message/3280

Chris Burrows
CFB Software
Astrobe for Cortex-M3 (v4.5 Sep 2013)
http://www.astrobe.com

Chris Burrows
CFB Software
Astrobe for Cortex-M3 (v4.5 Sep 2013)
http://www.astrobe.com

feedback