Draft posted of Practical SX/B Parts I & II
Steph Lindsay
Posts: 767
Hello Folks,
Sorry for the delay, I've had some really sticky font-embedding difficulties that took a few days to diagnose and work around.
I have attached the working draft of Jon Williams' upcoming book Practical SX/B, Parts I & II, 118 pages.·Part III is still being written.· The pdf page is 8.5x11, but the·print area is·formatted for the 7.5x8.5 book size.
As this is the recently-reformatted working draft, there will be typos and formatting glitches lurking in there.· Please direct techical questions to the author on this forum; general typos, formatting errata, and problems printing the document can be reported to me at editor@parallax.com.
Enjoy!
Stephanie Lindsay
Editor, Parallax Inc.
Sorry for the delay, I've had some really sticky font-embedding difficulties that took a few days to diagnose and work around.
I have attached the working draft of Jon Williams' upcoming book Practical SX/B, Parts I & II, 118 pages.·Part III is still being written.· The pdf page is 8.5x11, but the·print area is·formatted for the 7.5x8.5 book size.
As this is the recently-reformatted working draft, there will be typos and formatting glitches lurking in there.· Please direct techical questions to the author on this forum; general typos, formatting errata, and problems printing the document can be reported to me at editor@parallax.com.
Enjoy!
Stephanie Lindsay
Editor, Parallax Inc.
Comments
Thanks so much!!!
·
·
Don't know if to post here: page 48, Blink6.SXB, the text doesn't match the code. In the program, VAR code = 3. In the text, it says VAR code is set to ZERO. Thus, the program does run. You fixed the program to have no bugs.
Now, IF you are having problems writing buggy code. I can help [noparse]:)[/noparse]
I have lots of experience, just ask anyone.
Again, Great Job,
Chris
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I'm not scared of your robot. I'm covered by Old Glory (youtube)
Sorry, I love bad puns [noparse]:D[/noparse]
I'll update this post as i read [noparse]:D[/noparse]
So far: "There is nothing that inspires success like success..." is my favorite line in the book!
Wonderful work so far, really enjoy reading this. The graphics of the circuit layouts are a REALLY nice reference and eyecandy, thanks for them! I'm sure they were a pain to make! Its fun reading this and comparing your examples to my attempts at re-working the stampworks code. Thank you for encouraging me in that direction many months ago! Its like i did my homework, turned it in, and now get to see it corrected with great advice in the columns [noparse]:D[/noparse]
Possible errors:
Page 48, the error CCraig pointed out above
Page 73, "The physics of RC circuits dictate that a resistor will fully charge or fully discharge in five time-constants"
I think that is suppose to be "The physics of RC circuits dictate that a resistor will fully charge or fully discharge a capacitor in five time-constants"
Page 104, "I tend to favor the small value first approach so theTHAT when a byte and word are to be multiplied, the byte will be the first parameter"...However The example on page 105 takes the large value first. The comments on page 106 lead me to think you like the large value first.
Page 109, "When using the SX28, for example, we have 19 bytes of program memory that we never have to worry about." Was this suppose to be "General ram" or is the chart missing a column? And why don't we have to worry about it? Seems like we worry about it in the next 3 pages? Are we not worrying about allocating it, since its do easy compared to the banked memory?
Page 110 OPINION here: You explain what the array numbres mean in the chart, and now i understand them. That chart needs improvement somehow, its not up to par with the other visuals. Maybe something like what you have on page 63. Its a tough one, maybe colored coded with a legend?
Also because I'm an idiot, when you mention the figure 15.1 i went back and looked at table 15.1. Might want to consider showing figure 15.1 before referencing it?
I understand this is a draft, and think you for publishing it now and letting us enjoy it. I only want to help here, so please don't take this as criticism.
Post Edited (T'Saavik) : 7/23/2007 11:33:18 PM GMT
When referencing it in my class it is possible to jump to a specific page in the manual similar to HTML bookmarks? In other words, if I refer to "Chapter 3" in your book with a hyperlink, is it possible to have it go right to that chapter?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
John J. Couture
San Diego Miramar College
Kool book, I'm adapting my course to follow it. Thanks again!
Typos I noticed in the book:
1) sequence of topics in Table of Contents does not match book.
2) pg 1-30 ok
3) pg 31 shows Sec 4, LED blinker program but header at top of page shows sec 7 Multiple LEDs
4) Sec 7 header goes on until you actually hit sec 8 (pg 58)
And of course a couple of suggestions:
a) Include your "The Elements of SX/B Style" as an appendix
b) Another suggested appendix might be a page of links that has links to all of the various books (i.e. see below) AND in big BOLD letters a link to a page showing that this appendix is updated as needed online (format the online page so that it can be printed and inserted in place of the appendix page).
Link Appendix / Page:
(Jon, I have these as HTML link if you want to save time)
SX/B Online Help
Beginning Assembler for the SX
Electrical Engineering Tutorial
Elements of SX/B Style
Williams, A. (2004). "Exploring the SX Microcontroller with Assembly and Basic Programming, Version 3.0", Rocklin, CA:Parallax
Applied Sensors, ver 1.3, 2003, Parallax
SX Programming FAQ, ver 2.0
"SX-Key Development System, Version 2.0". (2003). Rocklin,CA:Parallax
SX Users Manual ver 3.1
SX28 Datasheet
SX Quick Reference Card, 2007, G. Daubach
Practical SX/B, 2007, J. Williams, Draft ed.
Programming the SX Microcontroller, 2003, G. Daubach, $29.95 (link to store)
Best of SX Threads by Capt Quirk
Latest Version of SX/B
FAQ
SX Forum
SXList
SX Sim
List of NV articles highlighting the SX
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
John J. Couture
San Diego Miramar College
You missed one on page 10!
I already sent an email to Stephanie, so I'll leave it as a puzzle...
We really appreciate your input. You are helping us present the material the best way possible and speeding up the process through your contributions.
I can hardly wait for the projects [noparse][[/noparse]hint hint JonnyMac!]. Based on what he has provided so far and what I know about the projects, Jon has some good stuff on the way.
Ken Gracey
Parallax, Inc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<FONT>Steve
What's the best thing to do in a lightning storm? "take a one iron out the bag and hold it straight up above your head, even God cant hit a one iron!"
Lee Travino after the second time being hit by lightning!
Yes, a lot of time has passed... but, really, what have you done to teach yourself? In the book I say very plainly that experience is a better teacher than I am. I know SX/B because I experiment with it every day -- the book is the result of my experiments and learning from great forum gurus like Bean, PJV, PJMonty, et al. Pick up the compiler and code, man! Don't wait for a book to have a really great time with the SX.
Post Edited (JonnyMac) : 7/18/2008 5:58:23 PM GMT
I do understand where your coming from. I work in a very busy machine shop (yep still some around,, and in Michigan too.)
The thing about having a book is that while experience can be a better teacher, by being prepared and reading on the subject you can make your time more effective while trying to learn new things. There is no way I can spend more than a couple hours a week playing with the SX so I look for every advantage I can.
I appriciate your efforts in this. Thanks again for a great primer!
Russ
Ever since July 1st came up, I've been sitting on my hands trying not to ask if its out yet!
Just to let you know, we are still enthused to get it.
I'm sure the book will be worth the wait.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"A government big enough to give you everything you want, is big enough to take away everything you·have."·· Thomas Jefferson
"It is our choices, Harry, that show what we truly are, far more than our abilities."·Dumbledore from Harry Potter
www.iElectronicDesigns.com
·
You do yourself and the other forum members a great disservice by suggesting we can learn better just programming. From time to time, I take some utility you or Bean or PJV or PJMonty or G