-
Notifications
You must be signed in to change notification settings - Fork 3
LED counter exampel Max 10 and yousing two logik gates
How to make a counter to make the LED to blink. The counter is needed to use the clock but the clock a frequens that humen eyes can't follo, the counter count and send the signal after a certain count is reacht and it do this multipel times. Its basicli a loop to send signal after a certain cout is reachd and it do this again and again.
You need to make a new symbol tool. To do it you need to open Libari, Basic funkions, aritmetic, LPM-counter.
You need to change the channel from somthink (I did forgot from how mani bits) to 32 bits. Next.next.next
Finisht Nexts step inklude the counter in the block-diagramm and connect it do a LED
Its on the bottom of the diagramm. next step is to ad the clockto the counter as a input connect it do the counter and don't connect the buss from the counter to the LED but draw it out name it sam as the output from counter and makeanoter connetion wire but this time from the LED name it q.[25] in this example but you need the 25 becaus this is the 25 bit aot of the channel and it has the right fequens do make the LED to blink slow enougt that the humen eye can follo this.
I have two logik gates build in becaus ther was a second LED and a button to. Next thing do make it that if you bress the butten one LED stop blinking but lit the anoter change its status change from lit to not lit. For this purbos you need a not gate and a or gate. You need to realize this funkion konnect the not gate whit the wire betven the button and the LED, it's importand that the input from the not gate is konnectet there not the output becaus you need to disconnect the coundre from the LED and connect it to the input from the or gate same thing goes for the output from the not gate. Finalli you connect the output from the or gatte to the LED that was previusli connected to the counter. The apparienz should be somthink similar to this:
finish