Searching \ for '[SX] Assembly to PBasic' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: massmind.org/techref/ubicom/languages.htm?key=basic
Search entire site for: 'Assembly to PBasic'.

Exact match. Not showing close matches.
PICList Thread
'[SX] Assembly to PBasic'
2009\06\12@193751 by NWUpgradesn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, NWUpgrades wrote:

I am having an issue with a stepper motor controller that I had posted about on the Basic Stamp site. I was told that this code is in Assembly.  The problem is I am not the best at programming and was wondering if there is anyone that can convert the code to PBasic for me, or tell me whet I need to do. I have tried known working code that John sent me some time ago, but the motor will only go CW, unless I swap the wires from the motor to the controller, then I can get it to go CCW. I am using Pin 0 for Direction and Pin 1 for Step. Thanks in advance for any help.



Here is their code:


;16c54  step motor asm
;Control by pulse and signals (JP1 Removed)
;==========================================

MODE_A                      
       BTFSC         PORTB,3     ;CP pouse in?                  
       GOTO         MODE_A_BACK ;CP=1 no pouse                          
       BTFSC         FLAG, 0                              
       GOTO         $+2             ;high-->low                            
       GOTO         MODE_A
;                  
       BCF         FLAG, 0                            
       BTFSS         PORTB,2     ;when RB2 =low voltage and RB2-DIR=high,TEMP=TEMP+1 ,contrarily TEMP=TEMP-1        
       GOTO         A_LOOP1                            
       INCF         TEMP, F                            
       GOTO         A_LOOP2  
A_LOOP1                          
       DECF         TEMP, F
A_LOOP2                          
       CALL         STEP_RUN    ;one pouse step one,so differ frequency can adjust step motor speed.                
       GOTO         MODE_A  
MODE_A_BACK                            
       BSF         FLAG, 0    ;normal RB3=H,FLAG D0=1                      
       GOTO         MODE_A
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=359388
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)

2009\06\12@203604 by franklin97355n/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, franklin97355 wrote:

Where is the code for STEP_RUN?

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=359388#m359400
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)

2009\06\13@001429 by NWUpgradesn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, NWUpgrades wrote:

I have no clue!!! Like I said, I am not that great at programming, and have never played with assembly. I had posted this question on the Basic Stamp forum and was directed here. I was just wondering if anyone can figure this out and translate it to PBasic.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=359388#m359425
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)

2009\06\13@053415 by leon_hellern/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, leon_heller wrote:

It's (badly written) PIC assembler. It should be very easy to convert it to SX assembler (the SX uses the PIC instruction set).

Leon
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=359388#m359445
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)

2009\06\13@071718 by Fred_5msn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Fred_5ms wrote:

Have a look http://forums.parallax.com/forums/default.aspx?f=5&m=348254&g=348336#m348336 http://www.parallax.com/Store/Accessories/MotorServos/tabid/163/CategoryID/57/List/0/Level/a/ProductID/65/Default.aspx?SortField=ProductName%2cProductName http://forums.parallax.com/forums/default.aspx?f=5&m=353227&g=353231#m353231 http://search.parallax.com/search?q=stepper&ie=&site=parallax&output=xml_no_dtd&client=parallax&lr=&proxystylesheet=parallax&oe=
http://forums.parallax.com/forums/search.aspx?f=7
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=359388#m359453
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)

2009\06\13@103949 by NWUpgradesn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, NWUpgrades wrote:

I do not need SX Assembler. I need PBasic.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=359388#m359478
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)

2009\06\13@104558 by NWUpgradesn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, NWUpgrades wrote:

Also, I have a TON of stepper motors and do not need any more. My project does not allow for using up an expensive Basic Stamp and the ULN2003 to control a motor. Any how, I have more the most part figured out a solution using the code John sent me. I just have to ground the controller to my Homework board as well as it's normal ground and it all works. Do not ask me how, because I am not that far advanced in electronics, but it does work and now I can move on.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=359388#m359480
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)

2009\06\14@043816 by JonnyMacn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote:

[Quoting: "NWUpgrades"]I do not need SX Assembler. I need PBasic.

If you need PBASIC code for a stepper you can find it on the Parallax site associated with their stepper motor.   This is a forum for the SX processor and solutions requested here should be directed at SX Assembly or SX/B.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=359388#m359598
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)

2009\06\16@121211 by PJMontyn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, PJMonty wrote:

NWUpgrades,
If you need PBasic, then you are posting in the wrong forum.  I would suggest you locate a forum that deals with PBasic, as this forum aimed at SX users who program in SX assembly and SX/B.  If any other programmers hang out here, then great, but don't expect to find many who aren't programming SX assembly or SX/B.

Thanks,
PeterM
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=359388#m360218
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)

2009\06\16@134122 by robotworkshopn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, robotworkshop wrote:

[Quoting: "NWUpgrades"]Also, I have a TON of stepper motors and do not need any more. My project does not allow for using up an expensive Basic Stamp and the ULN2003 to control a motor. Any how, I have more the most part figured out a solution using the code John sent me. I just have to ground the controller to my Homework board as well as it's normal ground and it all works. Do not ask me how, because I am not that far advanced in electronics, but it does work and now I can move on.

I think you missed the point of those links.  If you navigate the Parallax website to the unipolar stepper motor they sell you can find examples on how to use it in the PDF documentation on that product page.  It shows how to connect it to a BASIC Stamp and also shows code examples.

That assembly code you posted was just a fragment of a larger program and isn't worth messing with.  Just figure out exactly what you want your program to do and use the examples that Parallax already provides as a guide.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=359388#m360249
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)

More... (looser matching)
- Last day of these posts
- In 2009 , 2010 only
- Today
- New search...