4 Flip-Flop Macros
In this chapter, the following flip-flop macros are described:
r_edge
(rising edge detector)f_edge
(falling edge detector)latch1
(D latch with active high enable)latch0
(D latch with active low enable)dff_r
(rising edge triggered D flip-flop)dff_f
(falling edge triggered D flip-flop)tff_r
(rising edge triggered T flip-flop)tff_f
(falling edge triggered T flip-flop)jkff_r
(rising edge triggered JK flip-flop)jkff_f
(falling edge triggered JK flip-flop)
Each macro defined here requires an edge detection mechanism except for latch0
and latch1.
The following 8-bit variables are used for this purpose:
RED: Rising edge detector
FED: Falling edge detector
DFF_RED: Rising edge detector for D flip-flop
DFF_FED: Falling ...
Get Building a Programmable Logic Controller with a PIC16F648A Microcontroller now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.