• AVR Freaks

Hot!Frequency Counter PIC16F877A

Page: < 12 Showing page 2 of 2
Author
dan1138
Super Member
  • Total Posts : 3302
  • Reward points : 0
  • Joined: 2007/02/21 23:04:16
  • Location: 0
  • Status: offline
Re: Frequency Counter PIC16F877A 2019/09/10 15:17:02 (permalink)
+1 (1)
delfindelfin
mbrowning
Well, Z stands for Zero


and  C stands for what? is it Zero Crossing? I think it is Zero Crossing Transitions ..



That you need to ask suggests that you may not be prepared well enough to implement a power mains frequency data logger.
#21
delfindelfin
Super Member
  • Total Posts : 387
  • Reward points : 0
  • Joined: 2017/01/19 12:32:58
  • Location: Mexico
  • Status: offline
Re: Frequency Counter PIC16F877A 2019/09/10 17:45:30 (permalink)
0
I know what is a Zero Cross Detector, but this is the first time that I see it as ZC Transition, and if you google it, there's nothing .. So I need to ask .. I even still don't know if it is that, but what other thing could it be? Besides, I don't have Zero Cross Transitions because I am using the Schmitt Trigger 74LS14 .. I only have rising and falling transitions
 
Edit
By the way, I also noticed something very weird .. If I don't connect anything to RC2, the LCD still displays a frequency of 60 Hz .. is it picking the radiofrequency generated by the grid?
 
Edit 2
I think it is picking the radiofrequency generated by the grid, that's why you need pull-up resistors, I think that's neat .. But anyway, I think the Schmitt Trigger is not working as it should, so I am going to spend a lot of time thinking why ..
post edited by delfindelfin - 2019/09/10 20:36:02

Attached Image(s)


MPLAB X IDE v5.05
XC8 2.00
#22
delfindelfin
Super Member
  • Total Posts : 387
  • Reward points : 0
  • Joined: 2017/01/19 12:32:58
  • Location: Mexico
  • Status: offline
Re: Frequency Counter PIC16F877A 2019/09/10 20:41:23 (permalink)
0
Does anyone know how to interface MicroSD Cards with PICs? Any suggestions of where do I start? It is for the DataLogging System ..

MPLAB X IDE v5.05
XC8 2.00
#23
ric
Super Member
  • Total Posts : 25117
  • Reward points : 0
  • Joined: 2003/11/07 12:41:26
  • Location: Australia, Melbourne
  • Status: online
Re: Frequency Counter PIC16F877A 2019/09/10 22:18:08 (permalink)
+1 (1)
There's no way you will interface a MicroSD to a PIC16F877A.
It does not have nearly enough RAM.

I also post at: PicForum
Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
NEW USERS: Posting images, links and code - workaround for restrictions.
To get a useful answer, always state which PIC you are using!
#24
delfindelfin
Super Member
  • Total Posts : 387
  • Reward points : 0
  • Joined: 2017/01/19 12:32:58
  • Location: Mexico
  • Status: offline
Re: Frequency Counter PIC16F877A 2019/09/11 00:44:37 (permalink)
0
oh, yes .. well, with another PIC from series 16 with more RAM? To be honest, I have no idea where do I start .. I don't know if it is me not being good at electronics, or if it is something hard to interface .. Or maybe both ..
post edited by delfindelfin - 2019/09/11 00:48:15

MPLAB X IDE v5.05
XC8 2.00
#25
crosland
Super Member
  • Total Posts : 1732
  • Reward points : 0
  • Joined: 2005/05/10 10:55:05
  • Location: Warks, UK
  • Status: offline
Re: Frequency Counter PIC16F877A 2019/09/11 01:13:56 (permalink)
+1 (1)
pcbbc
Also you can see the live UK or French grid statuses which include frequency.  The EU/French frequency doesn't seem to be working at the moment, but in the UK we currently have 50.070Hz (presumably we making up some time).



If the frequency goes too low (generators slow down, due increased demand or lack of generating capacity) then the grid starts load shedding as happened in the UK recently when a gas fired power station and a solar array dropped out. The joke was that a bunch of brand new electric trains could not be restarted when the power returned. For any UK readers, it was "the wrong kind of electricity" :)
#26
oliverb
Super Member
  • Total Posts : 257
  • Reward points : 0
  • Joined: 2009/02/16 13:12:38
  • Location: 0
  • Status: offline
Re: Frequency Counter PIC16F877A 2019/09/11 01:36:28 (permalink)
0
Regarding pic variants the PIC18 parts are mostly pin-compatible to PIC16. If you're not limited by development tool then the PIC18F47K40 or PIC18F47K42 may be worth a look?
 
#27
delfindelfin
Super Member
  • Total Posts : 387
  • Reward points : 0
  • Joined: 2017/01/19 12:32:58
  • Location: Mexico
  • Status: offline
Re: Frequency Counter PIC16F877A 2019/09/11 01:46:40 (permalink)
0
oliverb
Regarding pic variants the PIC18 parts are mostly pin-compatible to PIC16. If you're not limited by development tool then the PIC18F47K40 or PIC18F47K42 may be worth a look?

I guess, those are fine.. So, what is the next step for MicroSD Interfacing?

MPLAB X IDE v5.05
XC8 2.00
#28
pcbbc
Super Member
  • Total Posts : 1433
  • Reward points : 0
  • Joined: 2014/03/27 07:04:41
  • Location: 0
  • Status: offline
Re: Frequency Counter PIC16F877A 2019/09/11 02:43:35 (permalink)
+2 (2)
Agree, you're not going to complete this with a PIC16 part unless some of the lower level file system handling is offloaded to the module, and I'm not aware of any modules that work that way.
 
Here's a tutorial for you using a PIC18F45K22.  Haven't used it myself, or SD card modules on micro-controllers for that matter, but it looks to be fairly well written.
#29
oliverb
Super Member
  • Total Posts : 257
  • Reward points : 0
  • Joined: 2009/02/16 13:12:38
  • Location: 0
  • Status: offline
Re: Frequency Counter PIC16F877A 2019/09/11 02:54:45 (permalink)
0
I can't speak with any authority, but a similar question came up on Stackexchange: https://electronics.stackexchange.com/questions/176448/sd-card-spi-interface-for-pic18f25k80
 
Unfortunately some of the application notes are old and hard to update, and one example appears to be for a PIC24 part
 
I'll probably take a look at http://www.studentcompanion.co.za/interfacing-sd-card-with-pic-microcontroller-xc8/ later, it looks interesting.
#30
Page: < 12 Showing page 2 of 2
Jump to:
© 2020 APG vNext Commercial Version 4.5