Putting Altera MAX Series in Hibernation Mode Using User Flash Memory

ID 683668
Date 1/14/2016
Public

1.4.1. 4-Bit Binary Up-Counter

The 4-bit binary up-counter is the user application module that counts from four bits of zeros to four bits of ones. The Reset and Count input pins of the device go to the input ports of the counter, while the output of the counter goes to four output pins to drive LEDs.

Every low pulse to the Count input pin increments the count value by one. When the count value reaches its maximum value (four bits of ones), the next low pulse to the Count input port resets the count value to four bits of zeros. To reset the count value to all zeros at any time, assert the Reset signal.

Upon power-up, the Main Controller fetches the UFM stored counter value and sends it to the 4-bit binary up-counter to write out the value to the output pins. When a shut down is initiated by the 16-bit binary slow counter module, the main controller fetches the current stored count value from the 4-bit binary up-counter to write into the UFM before asserting pwr_dn_ready signal.