Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LCD counter
#80
(12-17-2016, 05:44 PM)gorankg Wrote:
Ne moraš da znaš kada prestaje brojanje. U glavnoj petlji samo periodično očitavaš TMRH:TMRL i osvežavaš LCD. Tajmer se stavi da radi kao counter. Ako odaberš da se je ulaz nesinhronizovan sa glavnim klokom onda će takav counter da broji čak i signale koji su brži od master kloka. Jednostavno radi kao bilo koji drugi brojački registar! Jedino na šta treba da obratiš pažnju je trenutak kada pređe sa vrednosti 65536 na 0. Ali tada se događa prekid i to  je znak da je nastupio overflow i da na novo očitanu vrednost treba da dodaš 65536. Tajmeri se kod ovih PIC-eva za koje ja znam ne mogu nastavljati kako bi se formirao 32 bitni brojač. 
Ne znam zašto se dešava da broji za jedan manje. Ja sam to simulirao u Proteusu, možda je to i problem do njega. Ako neko želi da proba mogu ovde postaviti sourc, hex i proteus fajl.

Potpuno se slažem, promakao mi je ovaj post.
Reply


Messages In This Thread
LCD counter - by Želja - 12-15-2016, 05:56 PM
RE: LCD counter - by Khadgar2007 - 12-15-2016, 05:59 PM
RE: LCD counter - by Gosha - 12-15-2016, 06:07 PM
RE: LCD counter - by Želja - 12-15-2016, 06:17 PM
RE: LCD counter - by gorankg - 12-15-2016, 07:21 PM
RE: LCD counter - by Želja - 12-15-2016, 07:24 PM
RE: LCD counter - by gorankg - 12-15-2016, 07:28 PM
RE: LCD counter - by Gosha - 12-15-2016, 10:12 PM
RE: LCD counter - by mp3police - 12-16-2016, 09:59 AM
RE: LCD counter - by Želja - 12-16-2016, 10:08 AM
RE: LCD counter - by Želja - 12-16-2016, 10:00 AM
RE: LCD counter - by mp3police - 12-16-2016, 10:32 AM
RE: LCD counter - by gorankg - 12-16-2016, 11:13 AM
RE: LCD counter - by Želja - 12-16-2016, 12:43 PM
RE: LCD counter - by gorankg - 12-16-2016, 01:06 PM
RE: LCD counter - by gorankg - 12-16-2016, 01:08 PM
RE: LCD counter - by vojinilic - 12-16-2016, 01:10 PM
RE: LCD counter - by gorankg - 12-16-2016, 01:13 PM
RE: LCD counter - by Želja - 12-16-2016, 01:27 PM
RE: LCD counter - by vojinilic - 12-16-2016, 01:29 PM
RE: LCD counter - by Želja - 12-16-2016, 01:31 PM
RE: LCD counter - by mikikg - 12-16-2016, 01:34 PM
RE: LCD counter - by Želja - 12-16-2016, 01:36 PM
RE: LCD counter - by mikikg - 12-16-2016, 01:43 PM
RE: LCD counter - by Želja - 12-16-2016, 01:59 PM
RE: LCD counter - by gorankg - 12-16-2016, 01:37 PM
RE: LCD counter - by Želja - 12-16-2016, 01:42 PM
RE: LCD counter - by gorankg - 12-16-2016, 02:01 PM
RE: LCD counter - by mikikg - 12-16-2016, 02:02 PM
RE: LCD counter - by Želja - 12-16-2016, 02:09 PM
RE: LCD counter - by vojinilic - 12-16-2016, 02:27 PM
RE: LCD counter - by mikikg - 12-16-2016, 02:21 PM
RE: LCD counter - by mikikg - 12-16-2016, 02:31 PM
RE: LCD counter - by Želja - 12-16-2016, 02:39 PM
RE: LCD counter - by vojinilic - 12-16-2016, 02:41 PM
RE: LCD counter - by vojinilic - 12-16-2016, 02:39 PM
RE: LCD counter - by mikikg - 12-16-2016, 02:52 PM
RE: LCD counter - by Želja - 12-16-2016, 02:43 PM
RE: LCD counter - by Želja - 12-16-2016, 02:52 PM
RE: LCD counter - by gorankg - 12-16-2016, 02:54 PM
RE: LCD counter - by Želja - 12-16-2016, 02:56 PM
RE: LCD counter - by mikikg - 12-16-2016, 03:00 PM
RE: LCD counter - by Želja - 12-16-2016, 03:06 PM
RE: LCD counter - by vojinilic - 12-16-2016, 03:07 PM
RE: LCD counter - by Želja - 12-16-2016, 03:10 PM
RE: LCD counter - by vojinilic - 12-16-2016, 03:15 PM
RE: LCD counter - by Želja - 12-16-2016, 03:16 PM
RE: LCD counter - by mikikg - 12-16-2016, 03:27 PM
RE: LCD counter - by Želja - 12-16-2016, 03:28 PM
RE: LCD counter - by mikikg - 12-16-2016, 03:36 PM
RE: LCD counter - by gorankg - 12-16-2016, 06:35 PM
RE: LCD counter - by Želja - 12-16-2016, 06:54 PM
RE: LCD counter - by vojinilic - 12-16-2016, 07:13 PM
RE: LCD counter - by gorankg - 12-16-2016, 07:22 PM
RE: LCD counter - by Želja - 12-16-2016, 07:23 PM
RE: LCD counter - by gorankg - 12-17-2016, 09:28 AM
RE: LCD counter - by Želja - 12-17-2016, 10:42 AM
RE: LCD counter - by vojinilic - 12-17-2016, 11:29 AM
RE: LCD counter - by gorankg - 12-17-2016, 11:46 AM
RE: LCD counter - by mikikg - 12-17-2016, 12:34 PM
RE: LCD counter - by vojinilic - 12-17-2016, 12:50 PM
RE: LCD counter - by Želja - 12-17-2016, 12:56 PM
RE: LCD counter - by mp3police - 12-17-2016, 12:59 PM
RE: LCD counter - by vojinilic - 12-17-2016, 01:02 PM
RE: LCD counter - by vojinilic - 12-17-2016, 01:01 PM
RE: LCD counter - by Želja - 12-17-2016, 01:22 PM
RE: LCD counter - by Želja - 12-17-2016, 03:20 PM
RE: LCD counter - by mp3police - 12-17-2016, 03:28 PM
RE: LCD counter - by Želja - 12-17-2016, 04:02 PM
RE: LCD counter - by vojinilic - 12-17-2016, 05:09 PM
RE: LCD counter - by gorankg - 12-17-2016, 05:44 PM
RE: LCD counter - by Gosha - 12-17-2016, 06:01 PM
RE: LCD counter - by Želja - 12-17-2016, 06:05 PM
RE: LCD counter - by Želja - 12-17-2016, 05:45 PM
RE: LCD counter - by gorankg - 12-17-2016, 05:52 PM
RE: LCD counter - by Gosha - 12-17-2016, 05:55 PM
RE: LCD counter - by Želja - 12-17-2016, 05:59 PM
RE: LCD counter - by Gosha - 12-17-2016, 06:04 PM
RE: LCD counter - by Želja - 12-17-2016, 06:09 PM
RE: LCD counter - by Želja - 12-17-2016, 05:56 PM
RE: LCD counter - by Gosha - 12-17-2016, 06:03 PM
RE: LCD counter - by vojinilic - 12-17-2016, 06:13 PM
RE: LCD counter - by Želja - 12-17-2016, 06:16 PM
RE: LCD counter - by gorankg - 12-17-2016, 06:17 PM
RE: LCD counter - by Želja - 12-17-2016, 06:21 PM
RE: LCD counter - by Gosha - 12-17-2016, 06:21 PM
RE: LCD counter - by vojinilic - 12-17-2016, 06:22 PM
RE: LCD counter - by mp3police - 12-17-2016, 06:27 PM
RE: LCD counter - by Želja - 12-17-2016, 06:35 PM
RE: LCD counter - by vojinilic - 12-17-2016, 06:40 PM
RE: LCD counter - by Želja - 12-17-2016, 06:52 PM
RE: LCD counter - by vojinilic - 12-17-2016, 07:00 PM
RE: LCD counter - by vojinilic - 12-17-2016, 06:37 PM
RE: LCD counter - by mikikg - 12-17-2016, 07:12 PM
RE: LCD counter - by gorankg - 12-17-2016, 07:30 PM
RE: LCD counter - by Želja - 12-17-2016, 07:34 PM
RE: LCD counter - by Želja - 12-17-2016, 07:48 PM
RE: LCD counter - by gorankg - 12-17-2016, 08:25 PM
RE: LCD counter - by gorankg - 12-18-2016, 09:37 AM
RE: LCD counter - by Želja - 12-18-2016, 11:12 AM
RE: LCD counter - by Želja - 12-20-2016, 01:20 PM
RE: LCD counter - by gorankg - 12-20-2016, 01:46 PM
RE: LCD counter - by Želja - 12-20-2016, 01:58 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)