Hello Leonel,
The data cheet for the 16F872 says the max current sink OR source for BOTH ports A & B is 200ma. So depending on the current draw of your LEDs I think you are safe to put all of them on at the same time. I don't like stressing a circuit so I use transistors or driver packages like a ULN2003 or similar types to drive external devices. The boards I just made for a project have transistor drivers for the LEDs and I used ULN2003s to drive remote LED display boards just to keep my project compatable with the existing wiring and circuits.
As for shift and store registers, I guess it depends on the overall project requirements. I'm working on some add-ons to my project and am looking at using the I2C PCF8574's for I/O ports. Nav Micro has posted some of his projects on this Forum in the past along with photos of his boards using 8574's for I/O.
If you're working on an alarm project, that's my area of interest. I have been in the alarm business for over 30 years now and have made numerous devices that have kept my operation ahead of the other alarm companies in my area. My current project is a 160 zone annunciator system for 2 apartment buildings. I am replacing and old system that has no replacement parts available. It's nearing completion in the next few weeks.
Have fun with your project. If I can help in the future let me know.
BobK
Bookmarks