Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LCD counter
#88
Ispašće da pametujem, ali opet se svodi na moj prvi post. Ako imaš mašinu koja šalje poznat broj impulsa onda za probu napraviš program koji će uključiti jednu led, što znači čekam, kreni sa impulsima, a potom (posle određenog vremena) stisneš taster, koji će stopirati counter (za svaki slučaj) i sadržaj registra snimiti na flash ili eeprom. To pročitaš pomoću programatora i onda ponoviš određeni broj puta da vidiš da li ima odstupanja u brojanju impulsa (da li gubi prvi impuls. Možeš i u jednoj sesiji više merenja da ne gubiš vreme). Kad se uveriš da li to dobro hardverski funkcioniše, onda idi dalje. Mislim da je svakako 'pametnije' zaustaviti brojač, sad da li postoje uslovi za to ili ne, to su druga pitanja.
Gore je bilo pitanja o capture modu i 'guranja' impulsa u brojač, šta je bolje? Koliko sam shvatio većina PIC-ova u capture modu koristi resurse T1 tajmera, samo sadržaj na određeni 'znak' unese u druge registre kako bi mogli da uhvatimo baš tad vrednost. Što se svodi da je isto. Neki PIC-evi koriste isti ulaz za klok i za T1 brojač, pa ako piše da je buffer high speed, a može da gura klok 20+ Mhz (a i mikikg je potvrdio da može reda Mhz, znači da ima sve preduslove da je 'isto'). Ne bih da guram moje metodologije, svakako imam da učim ohoohooo (Deda Mraz kuca na vrata), ali ja bih testirao taj osnovni modul da li broji kako treba, pa bih se posle bavio displejem (Vojin je to napomenuo pre mene, sad vidim).
Još jednom da kažem da sam gore pogrešio za spajapanje T0 i T1 (Atmel ne poznajem). Možda je moguće (to mi onako vizuelno u glavi, nisam razrađivao) da se pomoću CLC usmeri overflow sa T0 na T1.
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: 8 Guest(s)