PBP Book


Closed Thread
Results 1 to 40 of 84

Thread: PBP Book

Hybrid View

  1. #1
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    I've just read through this thread and thing that it's a wonderful idea. It's what's needed to suppliment the missing 10% that Melanie was on about.

    I also agree that you have to draw the line somewhere, and I personally don't feel the need to have a three volume glossary explaining all the known electronic terms and phrases. It should be expected that the reader will google what a resistor or LED is if they don't know.

    For my point of view I find PicBASIC Pro very similar to the old BASIC I used on my ZX81 all those years ago. I bet 90% of the forum membership can own up to typing something like

    10 for i = 10 to 25
    20 print "hello"
    30 if i > 25 then CLS
    40 next i

    whilst walking round Dixons or some other computer shop. And PBP follows this logic.

    I've only dabbled in PIC programming since 2004, and class myself strictly as a novice. I started by downloading samples from other web sites, and being shown how to write code in ASM. Frustrated by the commands I looked for a higher structured language for my simple projects, and ended up using JAL. However there are loads of issues with JAL, and one is its poor manual. For me not having an example of how to use each command and the correct syntax made me look for an alternative. I then looked at PBP and downloaded the manual. This and the examples (and the forum ) helped make my mind up to go out and get a copy.

    However I've found that on some occasions, it appears that there are other commands that are not detailed enough in the manual and it is this area that I feel the book will work. I've been searching Amazon and the like for a book just like this, more of a very detailed manual for PBP rather than the project books that are currently on the market, and I feel there is agap to be filled.

    To answer another point Melanie raised, you will alwayd get the total knobhead that has the mental capacity of an ameaba cell. It happens in all forums and all subjects. I was a very active member of a herpetological society (thats someone with an interest in reptiles, amphibians and spiders) and we used to get asked really stupid questions, but that didn't stop two committee members writing a successful book.

    Another comparason could be the Hynes manuals (this is for folk in the UK) - these used to contain a section at the front showing a complete stripdown of the engine of whatever car the manual was based on. Now I don't want to start any feminest arguments, but most women don't know how to check the oil let alone how to replace the piston rings, so now the later versions of the manual are really extensions of the cars handbook, but showing things in more detail.. like how to check and top up the oil !

    Bruce, get writing and put me down for a copy..

  2. #2
    Join Date
    Jun 2006
    Location
    Mountain View California
    Posts
    7


    Did you find this post helpful? Yes | No

    Thumbs up

    Bruce,

    As a new member (just joined today), I would love to see a book and would purchase one for sure.

    As you are aware, there are a few books out there now. Most of them do not go into configuration details for the smaller devices. They usually cover the 16F84 or the 16F876/7. I would like to see a section on the differences between the 12FXXX devices vs the 16F8X(X).

    Some of the more experienced members at this site think that a book is not such a good idea. But, for many of us it would be great. Many of us don't have time to do heavy research due to other life priorities. The bottom line is that it would be a great resource for us that are not as well versed as you and the other experts.

    Thank you,
    Ben

  3. #3
    Join Date
    Sep 2005
    Posts
    10


    Did you find this post helpful? Yes | No

    Default PicBasic Pro Book

    Bruce,

    I think a book dedicated to only PBP is greatly needed! Lot's of books have info on both PicBasic and Pro, but if one wants to learn PBP only, they end up with less than 1/2 book for their money. I think most authors think that most people will learn PicBasic first, then PBP. I, like many people, never even dabbled in Basic Stamp or PicBasic. I like to see lots of written PBP code, could call me a visual learner. Good luck with your efforts!

  4. #4
    Join Date
    Apr 2006
    Location
    Michigan
    Posts
    70


    Did you find this post helpful? Yes | No

    Default

    I agree with Melanie except for the completeness of the PBP manual. I think there are a lot of holes. A couple examples:

    1)I posted a question on here about pulsin. Lets say I want to check the pulse length of a high signal. The book doesn't say if it waits for a leading edge, or if it will just start counting when the instruction starts and the pin is high. I never got an answer. I ended up puting an if then statement to start this command when the pin is low.

    2)For LCDout you need to put a $FE for commands. The manual does not explain why this is. Someone in here told me that $FE makes the enable bit high while leaving it out lets the enable bit go low.

    These are both things that you would have to either find in the manual or have developed PBP to know. I don't think that anyone but MELABS could write a book that explains this.

  5. #5
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Hi Bruce,

    I have a title for your second book.

    Code:
    ============================
    
    Teaching math!
    
    My pupils are:
    
    Parallax Basic Stamp I
    Parallax Basic Stamp II
    MELabs PICBASIC Compiler
    MELabs PICBASIC Pro Compiler
    
    ============================
    * * *

    To the user schu4647:

    A great source of information is the Parallax Basic Stamp 2 manual and
    the Parallax web site. Many of the Parallax Basic Stamp commands are
    supported by the MELabs Compiler.

    Example: Pulsin
    See PDF page 97 and 98 of the link below:
    http://www.pond.ie/pdf/BStamp.pdf

    Best regards,

    Luciano

  6. #6
    Join Date
    Aug 2003
    Location
    Northern California
    Posts
    14


    Did you find this post helpful? Yes | No

    Exclamation PBP Book & Titles

    "Hello nedtron it appears that you have not posted on our forums in several weeks, why not take a few moments to ask a question, help provide a solution or just engage in a conversation with another member in any one of our forums?"

    OK You asked for it . . .

    Rehashing command syntax and data sheets seems redundant.

    A book of good practical "real world" examples with code, concise explanation and "real" schematics would probably be useful and helpful.

    I don't mean "Hello World" nor half baked Myke Predko projects.

    Something more on the order of Don Lancaster's TTL Cookbook might work.

    Perhaps a PIC Heathkit on steroids would do the trick?

    Good practical examples provide a solid foundation and may communicate nuisances either to subtle or to verbose for logistic text.

    Perhaps "PIC Micros for Dummies" would work?

    Every programming text that I have seen neglects the very effective and infamous Bill Gates approach to programming "The Art of Stealing Other Peoples Code and Compiling It".

    Personally, I can always steal and compile faster.

    The Internet has made steal n' compile technology a reality.

    I have seen countless engineers searching the Internet for drivers, active controls and source code.

    GNU public domain code is the cat's meow!

    A federal court found that the Pentium II had stolen embedded Cyrix code and inadvertently included the Cyrix trademark statement! (dumb)

    National Semiconductor bought Cyrix and collected the big bucks from Intel. (smart)

    Now I know that their are prima donnas who think that every byte of PIC Basic code that that they compile is a virgin holy creation of the highest order deserving Code Protect, Serialization and encryption techniques not yet devised by lowly Microchip.

    However, I see it as the PIC game.

    Parker Brothers gave us Monopoly and Microchip gave us PIC.

    Both are great games allowing players to devise their individual strategies.

    There are other great games such as Visual Basic, C++, FORTRAN and Assembly.

    However, at the end of the day, Parker Brothers (Hasbro), Microsoft, Borland and Microchip are the real winners!

    And yes, we were well entertained . . .

    Or it least I was . . .

    I kind of like this title “Steal This Code & Give the Bucks to Charity”.

    Perhaps, I have over elaborated and the title "RTFM" might just work after all?

    Got to go, there's some USB HID code looking awfully good!

    Ned

  7. #7
    Join Date
    Nov 2005
    Posts
    10


    Did you find this post helpful? Yes | No

    Default

    I would spend a chapter on the bootloader, and just putting some code on a chip. Basically talking to the chip, and flash an LED. Great start, minimal code.

    I would ignore writing anything on each command, as a search or reading the manual will work everytime.

    Keep in mind that a chip is all about IO. Spend a lot of time on this (like the rest of the book). Digital input, analog input (linear and logarithmic). Maybe a temperature sensor (thermisistor). Bluetooth, 802.11a/b/g, ethernet, RS232 (both internal and Max232a, etc). Output to LED, LCD, Touch screen, data logger on chip and external stuff like SD card, eeprom, X10, etc.

    If you had projects like home automation, and logging, maybe a thermostat, you will sell a bunch of books, and I'd buy one. If you went into commands I'm out, a waste of my time and money. Don't teach logic, that can be obtained anywhere. Fundamental circuits are OK though because there are way more programmers than there are circuit designers.

    Always explain why you are selecting a command over another one, or a specific circuit.

  8. #8


    Did you find this post helpful? Yes | No

    Default This should be posted somewhere other than here...

    Quote Originally Posted by schu4647 View Post
    I agree with Melanie except for the completeness of the PBP manual. I think there are a lot of holes. A couple examples:

    1)I posted a question on here about pulsin. Lets say I want to check the pulse length of a high signal. The book doesn't say if it waits for a leading edge, or if it will just start counting when the instruction starts and the pin is high. I never got an answer. I ended up puting an if then statement to start this command when the pin is low.

    2)For LCDout you need to put a $FE for commands. The manual does not explain why this is. Someone in here told me that $FE makes the enable bit high while leaving it out lets the enable bit go low.

    These are both things that you would have to either find in the manual or have developed PBP to know. I don't think that anyone but MELABS could write a book that explains this.
    There's more to these statements than it appears on the surface (and why I applaud anyone that writes a book, does tech support, etc). I see many posts referring to commands from the PBP manual like #1 here, but if you look in the manual they just don't hold up. This is a good example: "The book doesn't say if it waits for a leading edge,"...
    Read the first paragraph from the manual (I broke it out into "steps"):
    1.) Measures pulse width on Pin (ok, good, that's what we want).
    2.) If State is zero (0), the width of a low pulse is measured (measured width placed in Var)
    3.) If State is one (1), the width of a high pulse is measured (measured width stored in Var).
    4.) If the pulse edge never happens...Var is set to zero (0).
    Skipping ahead...
    5.) PULSIN normally waits a maximum of 65535 counts before it determines there is no pulse ( which can be adjusted via a DEFINE).

    So, the manual does in fact tell you exactly what it is doing. How much more information needs to be contained in the explanation for it to be clear what's going on? Is there a different manual than the one I have (I've bought PBP for myself many years ago, as well as for three different companies I've done consulting work for and got the same manual). Or, as is so often the case, has someone assumed that they "knew" what the command did?

    On the second statement about the LCDOUT command I ask (and this kind of goes to what Melanie said) "How much information is enough"? The first paragraph clearly says "PBP supports LCD modules with a Hitachi 44780 controller or equivalent". To me, this means more than RTFM; it means read ALL the data for ALL the components used in a design. I have a copy of the 44780 data sheet and understand what all the commands are doing and why. This goes to what I refer to the current state of "Lego electronics"; plug stuff together and assume it will work. When it doesn't do what you "thought" blame the module, code "example", compiler - everyone but yourself.

    No one book is a panacea. No one reference can tell you everything.

    Mike Tripoli

Similar Threads

  1. PBP, ASM and LST files
    By HenrikOlsson in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th January 2010, 13:43
  2. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  3. Compiler differences between PBP 2.33 & 2.46
    By nikopolis in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd May 2006, 19:01
  4. how to get the PBP book in malaysia?
    By PoTeToJB in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 2nd March 2006, 09:27
  5. Newby- PBP wont compile for 18F (MPLAB)
    By jd76duke in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th December 2005, 23:30

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts