- Published: Monday, 19 December 2016
- Written by Jon Chandler
The PICkit 2 logic tool/analyzer is a handy tool to have around, especially since the price is right! The analyzer mode can show the timing of signals, and the logic tool can be used to monitor the output status of a few bits or to exercize a few inputs. The logic analyzer and UART tool are reasons why I don't upgrade to the PICkit 3.
I'm working on a simple monitor that will record and display the status of 8 test points. In the piece of machinery being monitored, a number of conditions can lead to shutdown, but the only indication a technician troubleshooting the issue is that one or more of these conditions caused the shutdown but not which particular faults occured. A couple of the fault conditions are temperature-related, so a technician arriving some time after a shutdown has occurred has little to go on for troubleshooting.
The monitor I am building will show what faults have occured, and the sequence in which they occurred. It should be a powerful tool for the technicians.
I need to simulate the fault conditions to develop the software. As I get it refined, I'll need to generate 8 signals, but for the initial work, simulating a few inputs will be sufficient. I am using port B of the 18F26K22 to monitor the eight signals. RB6 and RB7 are the ISCP programming pins, but there won't be a programmer connected in the field. Using the PICkit 2, I can easily exercise RB6 and RB7 without making any changes in connections. It's pretty slick.Discuss this article in the forums (1 replies).