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

Exact match. Not showing close matches.
PICList Thread
'[SX] Practical SXB Book Code Problems'
2008\02\16@164249 by DigitalDjn/a

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

I have been playing around trying to learn more of the code for the SX and have run across a snag in the Practical SX book. I have typed this code in but I get nothing. I tried searching the forum because I had read at one time there was some typos in Jon book. So I wanted to see if I was doing something wrong or there was an error in the book.



' -------------------------------------------------------------------------
' Program Description
' -------------------------------------------------------------------------
 
Led Blinky 3

' -------------------------------------------------------------------------
' Device Settings
' -------------------------------------------------------------------------
 
DEVICE          SX28, OSC4MHZ, TURBO, STACKX, OPTIONX
FREQ            4_000_000

' -------------------------------------------------------------------------
' IO Pins
' -------------------------------------------------------------------------

Led  Pin RB.0
 
' -------------------------------------------------------------------------
' Constants
' -------------------------------------------------------------------------

IsOn  Con  1
IsOff  Con 0
 
' -------------------------------------------------------------------------

' Variables
' -------------------------------------------------------------------------

' =========================================================================
 PROGRAM Start
' =========================================================================
 
Start:
Do
 Led = IsOn
 Pause 500
 Led = IsOff
 Pause 500
Loop

Thanks,
Kevin

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

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

2008\02\16@170637 by robotworkshopn/a

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

Hello,
One thing that I don't see in your code is where you define the pin as an output.  If it
isn't defined as one you won't see any change in the LED.

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

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

2008\02\16@173106 by JonnyMacn/a

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

Indeed you have a typo, Kevin; I just checked a hard-copy and you omitted the OUTPUT specification for the LED pin.

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

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

2008\02\16@174336 by DigitalDjn/a

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

AH HA! I didn't catch that! That was a simple mistake on my part. I do really like your book and can't wait until it is done. Very well written and easy for the newbie if he makes sure to read everything  :smilewinkgrin:  so output changes it so that what is in the constant specifies output.

Thanks,
Kevin
---------- End of Message ----------

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

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