Jump to content
ELFORUM - Forumul electronistilor

Random in mikroc


Guest Darude

Recommended Posts

Guest Darude

Am nevoie de un program care sa imi genereze singur un numar si in functie de acest numar generat sa poata microcontrolerul sa selecteze ce secventa de program sa ruleze cu un "case" sau ceva :d. Se poate gace asa ceva cu mikroc???

Link to comment
Share on other sites

Da, se poate :), ce vrei tu se numeste generator pseudo-random, sunt folosite si pentru CRC, cauta un polinom si scrii codul, daca are mikroC functii ptr. CRC atunci poti sa-l folosesti, pentru date de intrare ai nevoie de un counter.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.Terms of Use si Guidelines