Archive for the Category


12F675 as a D-type or JK-type flip flop

Sunday, June 7th, 2009
                        Advertisements


Since I implemented a D type flip flop using the PIC Logic Elements I thought I might go the other way and implement an entire D type flip flop in a single PIC. This uses the edge triggered and port change status interrupts and was an opportunity to have a play with interrupts on the [...]

4-digit Up-Down counter with PIC 16F88

Wednesday, June 3rd, 2009
                        Advertisements


This is a 4 digit decimal counter which can operate as a free running counter or in count and hold mode with manual reset. In either mode the counter can be preset to count to a specified value. Clock edge and leading zero suppression can also be configured. The 7-segment display and indicator LEDs are [...]

IO Controller with Command Line Interface

Tuesday, June 2nd, 2009
                        Advertisements


This code runs on a PIC 16F627A or 628A (and A.F.A.I.K 627/628 parts). It uses the serial USART on the PIC to communicate with a PC. Through this a simple CLI (Command Line Interface) is implemented that allows commands to be sent to the PIC to control output lines and read and return the status [...]