|Books - Serial PIC'n|
By attacking the code and the theory behind the code head on, Roger L. Stevens book "Serial PIC'n" will be a valuable addition to the library of any serious embedded designer. Roger has managed to put all of the steps, code, and gotchas for implementing serial communications with PIC microcontrollers in one book. Starting with a basic introduction to serial communications, he then covers (in detail)
- The RS-232 standard
- Bit-Bang Asynchronous Communications (Full/Half Duplex, Interrupt Driven, Automatic Bit Rate Detection)
- Using the on-chip UART
- Synchronous Communications
- IIC (Bit-Bang: Master, Slave, EEPROM, A/D)
- Bit-Bang (Master, Slave, A/D, Display Driver, Data Logger)
- On-Chip SPI (EEPROM, A/D, Display, Slave, Master, Daisy-Chaining SPI Devices)
- Microwire (Bit-Bang: Master, Slave, EEPROM, A/D)
- Dallas 1-wire (Bit-Bang: Master, Slave, Thermometer, Parallel Port)
His style of writing is very clear and easily read. I did not find myself re-reading sections to try and understand something he was talking about. I found the book to be full of useful relevant information, without tangents or other distractions. Roger discusses each topic at a time, and in an order such that he doesn't have to say, "We're doing this now, but we won't discuss it until the next section." (The bane of all too many technical books!)
Have you ever needed to implement a PC to PIC interface quickly? Perhaps you've have to access data in a serial EEPROM? Maybe you're porting a simple application from a chip with a UART to one without. In every case the code included with this book is truly "Plug and Play". Whether you are using a 12-bit core chip(12Cxxx) up through to the newer 16-bit core chips(18Cxxx) you'll find the code you need to use, and be able to integrate it into your program quickly and effectively. The code includes copious and useful comments. By using it in your program directly, you may not need to refer back to the book for information on that code.
More important is that serial communication principles are taught in "Serial PIC'n". While a novice will be able to understand an implement this code quickly, even advanced programmers will find useful information in here. He doesn't tell you how to program for multiple bit-banged serial channels, but after reading this book you'll feel confident about doing it yourself, easily and quickly. Programmers of other MCUs will find the "Serial PIC'n" code and knowledge easy to use and port to their favorite architecture.
While Roger gives an example of a protocol (with code) for RS-232 communications, he only touches on it. He does not cover RS-485 at all, nor mentions network communications. What Roger chose to cover, he covers very well, but there still seems to be no suitable book which covers PIC networking issues.
The size of the book was unexpected, a full 8.5" x 11" (x 1.5"), making it decidedly a two-handed book, or table reference (especially as a soft cover). The type is medium sized, so the publisher could have cut it down by using a smaller typeface. It takes up a lot of desk space if you leave it open next to the computer, and it won't fit on a typing stand. It did NOT come with the code examples on disk, one must go to the website for them. While this assures that one has the most updated/bug free versions, it also means you can't get started right away (unless you like typing ;-).
I was particularly surprised (and pleased) to see auto bit rate detection covered. With this code one can have any PIC detect standard bit rates from 300 BPS to 19200 BPS with no special hardware. Also, instead of picking odd names, or acronymizing the code examples (ie, Bit-Bang, Full Duplex via Interrupt code module might have been BBFDWINF.ASM) he uses colors and numbers. Section 5 has seven different pieces of code, from INDIGO1.ASM to INDIGO6.ASM, and a full application as RED1.ASM. Each section has a different color, and each application has a separate color, none of which go over 8 characters (nice for those using legacy programmers and software). This will appeal to those used to naming computers after a particular theme.
"Serial PIC'n" has earned its spot on my bench (not a shelf!) right next to the Microchip data sheets. While I could live without it, I would have been tearing my hair out for hours solving some of the issues it brings up (TRISC[6:7] setup when using the UART, for instance). Since every third PIC project you will likely work on needs serial communications, "Serial PIC'n" is not just a wise investment, but a necessary one. Even if your time is only worth $0.50 an hour to you, you will make up the price of this book in well under 6 months.
8 The topic was covered well
9 Roger knows what he's discussing here
9 Easy to get into and comprehend
8 Somewhat physically larger than it needs to be
10 Very concise, easy to flip to and use a small part
10 Code for every minor section, real-world examples
9 Very well done, will be often used
Amazon.Com customers gave "Serial PIC'n" a 5 out of 5 rating.
Purchase this at:
Go to the author's Website. (includes source code, full table of contents, etc)
Go look at related books.
Email the Reviewer.
Everything on/in this site is copyright
Adam Davis, 1999, except where otherwise noted
[an error occurred while processing this directive]