Tach Project (binary counting)...


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Posts
    15


    Did you find this post helpful? Yes | No

    Default

    Originally posted by mister_e
    Are you using PIC16F877 ???? PORTA.3 for LOAD/CS pin.... PORTA.3 is analog. Must be turn to digital

    ADCON1=7 ;turn off PORTA & PORTE to digital
    Hi mister_e,
    First off thanks again for giving me hand. I added the ADCON1=7 command as follows <snippet>

    '********
    symbol DOUT = PORTC.5 'line for data input connected to RC5
    symbol CLK = PORTC.3 'CLK line connected to pin RC3
    symbol Load = PORTA.3
    ADCON1 = 7
    '********

    I read up on MELabs site about the intermittent problems they have when not turning off the A/D functions. Great tip. I did try adding the pause commands as you suggested. Still no change. I do see that the pause commands are taking affect as I'm monitoring the pins on a O-Scope.

    A few observations:

    I can have banks 1, 2 & 3 all 00000000 and bank 0 = 00011111 and all LED's on bank 0 shutsdown. As soon as I go to 00001111 all is well.

    I cannot go into Display test mode, this also shutsdown all LED's.

    Output of 16F877 pin#24 RC.5 has a strange output. Has 2 sets of pulses - a 12.5 Hz pulse and a 50 Hz pulse. I can see both at the same time (not using a dual channel scope mode). I attached a screen shot of the pulses. Not too good but you'll get the idea.

    I am using the default 4MHz clock, I was under the impression that the clock pulse would be a constant pulse at a particular rate out. It almost looks like a burst of pulses (15 of them) then it starts the pattern over. I'm going to recheck my oscope to make sure I'm not in some un-calibrated mode.

    Thanks for all the help you have given me. Their must be something I'm missing...

    George-
    Netjammer-
    Attached Images Attached Images  

Similar Threads

  1. A Serial GLCD 128x64 Simple Project
    By Oldspring in forum Off Topic
    Replies: 0
    Last Post: - 8th March 2010, 20:58
  2. PIC16F628 - Convert Binary to BCD?
    By steng in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 20th March 2009, 08:17
  3. A Temperature & Humidity Data Recorder Project
    By Oldspring in forum Off Topic
    Replies: 0
    Last Post: - 9th July 2008, 18:47
  4. help required regarding reading binary files
    By shaiqbashir in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 4th March 2008, 22:30
  5. A category for Project Ideas
    By Pic_User in forum Forum Requests
    Replies: 2
    Last Post: - 23rd June 2006, 07:29

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