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


Posted on Jun 28, 2012

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 PIC. As written this code will cause a PIC to function as a negative edge triggered D type flip flop with active low Set and Reset inputs.



Following the D type flip flop I've hacked it round to make a JK flip flop. This implementation has one extra 'feature' that a normal discrete logic device doesn't have. After a reset, port GPIO5 (pin 2) is read and the logic level used to select either




Leave Comment

characters left:

New Circuits

.

 


Popular Circuits

Bipolar Stepper Motor Driver Circuit
Dancing LEDs
White LED Voltage Booster Uses 555 Timer IC
Light circuit diagram: Intelligent Electronic Lock
12v to 220v converter circuit
battery charger for 12v
electronic toggle switch no1
60W Linear amplifiers
NE555 Timer
16 Step Sequencer
An op-amp made from 555 chips



Top