Crystals


Closed Thread
Results 1 to 11 of 11

Thread: Crystals

  1. #1
    Join Date
    Jun 2007
    Posts
    26

    Default Crystals

    Hello ya all

    I am trying to implement a battery backup and a low power mode when theres no power. I just need to detect a door opening and record the time and date to a serial eeprom.

    When I looked up the pic I'm useing I was happy, only 500 Na in standby but when I looked up the crystal oscillator I'm using it said 20ma

    I have always used these type of oscillators due to solid performance and not needed the hard to find caps. But this project is all SMD and needs to be low power while the machines turned off all night. Sooooo

    this Pic is the PIC16F59-I/PT running at 20mhz (but 4mhz would work fine).
    How many mili amps or N amps would a normal crystal with caps use ? and would I define LP crystal ?

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by jason View Post
    I am trying to implement a battery backup and a low power mode when theres no power. I just need to detect a door opening and record the time and date to a serial eeprom.
    When I looked up the pic I'm useing I was happy, only 500 Na in standby but when I looked up the crystal oscillator I'm using it said 20ma
    I have always used these type of oscillators due to solid performance and not needed the hard to find caps. But this project is all SMD and needs to be low power while the machines turned off all night. Sooooo
    this Pic is the PIC16F59-I/PT running at 20mhz (but 4mhz would work fine).
    How many mili amps or N amps would a normal crystal with caps use ? and would I define LP crystal ?
    I got different numbers than what you got...(according to DS41213D)...
    @ 20Mhz @ 5v, using a crystal, running (not including any external pieces/parts, extended temp version) - 7mA max
    Standby/Sleeping - 2v w/ WDT enabled - 15uA max.

    Any reason why you're using the 'F59? There are much better chips out there with a lot more options and probably cost the same, if not cheaper. The 'F59 doesn't have much in the way of options.

  3. #3
    Join Date
    Jun 2007
    Posts
    26


    Did you find this post helpful? Yes | No

    Default Ok

    ok ya your right, on page 61. But WOW what a difference it draws between 4mhz and 20 mhz. If I go with 4mhz I would save alot even if I do only wake up once every 3 seconds or so.

    The reason I'm useing this chip, well I dont need any options other than a voltage detector to determine when the power drops to 4.5v and I was using a voltage detector with a trigger at 4.5v. the chip I'm using cost $1.38 (the cheapest I found with 33 ios) here in mexico through newark. Do you know of other pics cheaper that are Flash ? I'm open to suggestions But I do preaty much have my board desgned.

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by jason View Post
    ok ya your right, on page 61. But WOW what a difference it draws between 4mhz and 20 mhz. If I go with 4mhz I would save alot even if I do only wake up once every 3 seconds or so.
    Power usage 'generally' goes up as the square of the operating speed...
    i.e. 1mA @ 4Mhz, 4mA @ 8Mhz, 16mA @ 16Mhz, etc.etc...not always true, but generally.

    The reason I'm useing this chip, well I dont need any options other than a voltage detector to determine when the power drops to 4.5v and I was using a voltage detector with a trigger at 4.5v. the chip I'm using cost $1.38 (the cheapest I found with 33 ios) here in mexico through newark. Do you know of other pics cheaper that are Flash ? I'm open to suggestions But I do preaty much have my board desgned.
    If you've got the board designed and have it set up for an 'F59, then switch over to an 18F4620 (or even a 16F877). A bit more spendy, but loads more options, it'll plop right into the same socket with very few (if any) hardware changes, less current draw both in operation and standy with more options to run the clock, including clock switching in the middle of operation, and most importantly...interrupts that can wake up your PIC ONLY when a switch is tripped (see Interrupt on Pin Change in the datasheets for the above mentioned PICs), thereby meaning your PIC would be asleep EXCEPT when triggered by a door...which could mean that practically 99.9999999999% of the time, your PIC is sleeping. And I'd be willing to bet that the difference in price would more than make up for the new-found flexibility of the newer chips.

  5. #5
    Join Date
    Jun 2007
    Posts
    26


    Did you find this post helpful? Yes | No

    Default Spendy

    Ya there alot more spendy. I'm trying to keep the cost down to minimal. here in Mexico in Newark the current chip is $1.38 and the 18F4620 is $7.28

    However the PIC16F877A-I/PT is $5.70 and if I use a AD for the voltage detection which will save me about $2 that brings me down to $3.70, still a bit more. But like you say the added options. I will think about it.

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by jason View Post
    Ya there alot more spendy. I'm trying to keep the cost down to minimal. here in Mexico in Newark the current chip is $1.38 and the 18F4620 is $7.28. However the PIC16F877A-I/PT is $5.70 and if I use a AD for the voltage detection which will save me about $2 that brings me down to $3.70, still a bit more. But like you say the added options. I will think about it.
    One other thing to note...
    The PIC16F59 is a 12-bit device, not a 14-bit device like the F877, or 16-bit like the 18F4620.
    Using PBP, you'll be limited as to which commands you can use with the 16F59.
    Maybe check out the 18F4410/18F4510. Looks to me like they might be a bit cheaper than the 16F877A.

  7. #7
    Join Date
    Jun 2007
    Posts
    26


    Did you find this post helpful? Yes | No

    Default Shoot !!!

    Yep I see it now. I went to PBP manual on 12bit core and It wont allow the serin2 command which I need and several other stuff.

    those last 2 chips you sugested, newark down here dosn't have them instock, not to mention they are around $7.50

    the PIC16F877A-I/PT QTFP 44 pin is in stock and costs $5.70, I just ordered 4 for now, just to have in stock here at the office. But isnt there another chip with a few less features that is cheaper ??? I really liked the $1.38 price sticker cuase I'll be making a few thousand of these cards. There for accounting and security of video arcade games.

  8. #8


    Did you find this post helpful? Yes | No

    Default 8 uA sleep with PIC16LF877A

    I run a PIC16LF877A with a 3.6 volt lithium battery and a 4 MHz crystal. The crystal costs $0.50. It works just as well with or without the 10 pF crystal caps. Current draw in sleep is under 8 uA. The unit wakes frequently (via the SLEEP nn command) and runs for over a year on a Tadiran TL-5186 lithium button cell. A 16F877A runs close to the same current on 5 volts and also works down to about 3 volts.

    HTH
    Brian
    Last edited by BrianT; - 10th July 2007 at 01:30. Reason: grammar

  9. #9
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by jason View Post
    the PIC16F877A-I/PT QTFP 44 pin is in stock and costs $5.70, I just ordered 4 for now, just to have in stock here at the office. But isnt there another chip with a few less features that is cheaper ???
    Quantity 1000 should get you a decent price break...

    < pic16f877a? PIC16F874...1/2 the flash, 1/2 the eeprom, 1/2 the ram, same # of I/O's... PIC16F870, 871, etc,etc.
    Go to Microchip.com and do a parametric search...find the chip YOU want. Only takes seconds...
    Why so many I/O?
    Last edited by skimask; - 10th July 2007 at 03:53.

  10. #10
    Join Date
    Jun 2007
    Posts
    26


    Did you find this post helpful? Yes | No

    Default Pic16f914-i/pt

    The PIC16F914-I/PT is a good price and it has a PLVD module which would save me $2. Just need to figure out how to use it

    It also talks about a "Precision" internal Oscillator. Is this good enough for serial comunications in picbasic pro? That would save me another $0.50

    Thanks for the tip on the Parametric search at microchip.

  11. #11
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by jason View Post
    It also talks about a "Precision" internal Oscillator. Is this good enough for serial comunications in picbasic pro? That would save me another $0.50
    Generally not. Unless you can come up with a method to continuously recalibrate the internal clock everytime the temperature, voltage, humidity changes.

Similar Threads

  1. Elapsed Timer Demo
    By Darrel Taylor in forum Code Examples
    Replies: 111
    Last Post: - 29th October 2012, 18:39
  2. 20 Mhz Crystal, simple blinking LED
    By BenjaminsShinob in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 16th October 2007, 06:06
  3. Crystals & Caps - Super noob question??
    By kevj in forum General
    Replies: 4
    Last Post: - 24th September 2007, 18:11

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts