PIC 18F device suggestion.


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2003
    Location
    Sao Paulo - Brazil
    Posts
    92

    Default PIC 18F device suggestion.

    Hello Guys !

    I have an old non-commercial project running on a 16F877 @ 4mhz and a 4x20 lcd.

    The project is based on Darrel's interrupts libraries, with the following configuration :

    TMR0 as a pulse counter, to calcualte the car´s speed
    TMR1 as CCP1 to calculate the fuel consumption
    TMR2 as a 500 ms time base.

    This arrangement is working good, but I would like to improve it and use the Richard's ST7735 display Lib for a better presentation and, also, read the RPM form the car. So, I think I'd need another Timer/Counter.

    I´m planning to keep using the Darrel's interrupts libraries (18F version).

    I have some PIC18LF2420 here with me and I was reading its Datasheet.

    In the Datasheet's Timers section, they say that TMR3 can not be used as an independent counter, because TMR1 and TMR3 share the same pin T13CKI for their external input.

    So, should I search for another device with more timers if I need to read the Car's RPM ?

    If yes, is there a suggestion for a new device I should consider ?

    Thank you very much.

    Sérgio.

  2. #2
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default Re: PIC 18F device suggestion.

    Why not using a frequency to voltage converter and than use an ADC channel to read the car RPM.

    Cheers

    Al.
    All progress began with an idea

  3. #3
    Join Date
    Nov 2003
    Location
    Sao Paulo - Brazil
    Posts
    92


    Did you find this post helpful? Yes | No

    Default Re: PIC 18F device suggestion.

    Hi !

    Hummmm... Can you Belive I Had never tryed This before !

    I will make some research on converting frequency to voltage on a range from 0v to 5v.

    Thank you for the advice !

  4. #4


    Did you find this post helpful? Yes | No

    Default Re: PIC 18F device suggestion.

    16f1526/7 has a whole bunch of timers.

    Exactly how are the three timers on the 877 used? perhaps you can shuffle them and make it work with just software. I assume existing timer3 doesn't need a trigger input. Maybe 1 or 3 on the 2420 could be used as the timebase.

    George

  5. #5
    Join Date
    Nov 2003
    Location
    Sao Paulo - Brazil
    Posts
    92


    Did you find this post helpful? Yes | No

    Default Re: PIC 18F device suggestion.

    Hi George,

    thank you for the reply !

    Well, I´m using all 16f877's as described bellow :

    1) TMR0 => Count the number of pulses from the car's wheel.
    2) TMR1/CCP1 => measure the Feel Injector's "On-Time"
    3) TMR2 => This timer is used as a 500ms time base for all calculation and display update.

    I´m using DT Interrupts to deal with the timers.

    May be use the RB change pin interrup to count the RPM events.

    I´m planning to move my project to the ST7735 display, and use the Richard libs available here in the forum. SO, I should move to a 18F series Pic.

    I have here with me, some 18F2420, 18F4550 and 18F2520. I'll try to some of them.

    My best regards !

    Sérgio

Similar Threads

  1. Input Capture CAP1 using PIC 18F help !
    By aredhel in forum mel PIC BASIC
    Replies: 0
    Last Post: - 28th March 2012, 18:21
  2. Pic 18f Usb
    By NavMicroSystems in forum mel PIC BASIC Pro
    Replies: 134
    Last Post: - 31st March 2011, 09:51
  3. Suggestion for textbook on PIC microcontrollers
    By nbrucew in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 16th May 2010, 22:07
  4. First time with 18F pic...
    By gabrielg74 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 9th December 2005, 08:04
  5. Pic suggestion for high precision voltage measure
    By d1camero in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 10th April 2004, 07:22

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