Look at the SHIFTOUT command in the PBP manual. It does the hard work for you.
Look at the SHIFTOUT command in the PBP manual. It does the hard work for you.
Dave
Always wear safety glasses while programming.
Thanks for the direction and tip. I have found out a bit more about about sending and receiving serial information using the PIC. Such commands as serout, hserout and even shiftout. My test was to try synchronous data, and to use a clock. It seems that I could even do away with the 74LS164 and use another PIC chip to receive. That is, a 12F683 could read in some analog voltage, send it out serially and be intercepted by a 16F84, 16F628 or 16F684 and sent out to a 2 or 3 digit 7-segment LED. It may also be an easier task to use the built-in asynchronous serial transfer. I will also be looking at this alternative.
Last edited by johndoug; - 4th January 2013 at 05:18.
Thanks. I will look at it the first opportunity I get. My circuit is synchronous transfer, but I will also look at the advantages of asynchronous using other pic commands like serout and serin. I want to further explore these with the 16F84A, 16F628 and 16F684.
Last edited by johndoug; - 4th January 2013 at 05:18.
Bookmarks