display driver


Closed Thread
Results 1 to 8 of 8

Thread: display driver

  1. #1
    Join Date
    Apr 2008
    Location
    Gainesville, VA
    Posts
    15

    Default display driver

    I was planning to use a 18F4550 to collect data from 24 bit counter/shiftregister and also enter data from keypad. I thought I could also use the additional I/O ports to drive 7 segment displays. However I want to provide the shift clock, counter gate and reset from the 4550. The counter gate is 1 second, so when all this is in a main program loop, I can't see how i can loop the display at the same time fast enough to refresh the display. I am not an experienced programmer and this is basically my first time trying to do something like this, so hopefully someone can give me some advice. I was thinking I could use a dedicated PIC just for the display, and go with a lesser processor than the 4550 for the other functions.
    Klaus

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    The main advantage of PIC over Stamp is their interrupt Feature, you can setup a background timer to refresh your display, scan your keypad while doing something else.

    Do you have any schematic of your current design?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Apr 2008
    Location
    Gainesville, VA
    Posts
    15


    Did you find this post helpful? Yes | No

    Default

    File attached
    Attached Images Attached Images

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    From what I feel, 74hct165 and 74hct404 could be removed the whole thing could be done in software. What's your "clock" signal looks like?

    Timer interrupt to scan your keyboard and refresh your display... main loop to process your clock.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    Apr 2008
    Location
    Gainesville, VA
    Posts
    15


    Did you find this post helpful? Yes | No

    Default

    It's a 6 MHz pulse. I'm displaying the change in frequency once per second. I did not think that the processor was fast enough to handle that.

  6. #6
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Oh yeah, so basically it's a kind of frequency counter? how much accuracy you need? What's the threshold (+/- 10Kz, +/- 1Mhz)?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  7. #7
    Join Date
    Apr 2008
    Location
    Gainesville, VA
    Posts
    15


    Did you find this post helpful? Yes | No

    Default

    I'm looking for very small changes in frequency. As little as 20 Hz. This is why I have a 24 bit counter. The counter is updated once per second, and the new count is always subtracted from the base count. This device is intended to measure accumulated thickness of material deposited on a substrate. The crystal, which is located near the substrate, is also coated and thereby loaded with the material which causes the frequency to decrease. The change in frequency can be related to thickness of coating of the material based on density of material and other factors.

  8. #8
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    So that's something an internal PIC counter can do without much problem (maybe some overflow handling or some prescaler thingy) ... but always possible. No real need for extra external counter.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Hdsp 21xx display
    By Original in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th June 2012, 20:07
  2. Replies: 2
    Last Post: - 14th July 2008, 22:11
  3. 7-segment display driver
    By Klaus in forum General
    Replies: 3
    Last Post: - 15th April 2008, 13:37
  4. DS1820 display with 7-seg 4 digits
    By chai98a in forum Code Examples
    Replies: 12
    Last Post: - 10th April 2008, 13:12
  5. Driver code for 14 segment LED display
    By Durward Searcy in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 12th December 2004, 20:08

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