Mysterious pulses on input pins


+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154

    Wink Mysterious pulses on input pins

    This is for the next guy.

    I was having all sorts of unpredictable effects on a 16F18877, countless days lost trying to debug the root of the problem.

    So I started a new program, importing features one at a time: HSEROUT, IOC, WPU, INLVL, PPS, each with a bit of code, and so on.

    Turns out I had dead LCDOUTs at the very bottom that were sending pulses to default pins. All sorts of mayhem, in my case, pin A4 (Register Select according to my old PCP manual).

    Unfreaking-believable...
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115


    Did you find this post helpful? Yes | No

    Default Re: Mysterious pulses on input pins

    Come on man...

    Really?

    Well, I will repeat the ESD thing again. Be carefull with the electrostatic charges. Be grounded at all times, no matter what you wear or what kind of floor mat is on the floor.

    This LCD sure it was not dead when connected...

    Ioannis

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: Mysterious pulses on input pins

    Quote Originally Posted by Demon View Post
    ...Turns out I had dead LCDOUTs at the very bottom that were sending pulses to default pins...
    Ioannis, you misunderstood. Dead LCDOUTs, not dead LCDs.

    I forgot to take out the commands when I migrated from my breadboard for preliminary tests (on the left), to the larger circuit on the right.

    Now the rotary encoders and ADC are handled by the PIC upper left, switches will be handled by upper right (not implemented yet), USB will be lower right and outputs are handled by the lower left (LCDs and future LEDs).

    The right side is not implemented yet. I wanted to get the 16F18877 on the left working properly first (IOC, ADC, PWM, USART, that sort of stuff).

    Name:  Breadboard prototypes.jpg
Views: 94
Size:  169.4 KB
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115


    Did you find this post helpful? Yes | No

    Default Re: Mysterious pulses on input pins

    Oh,sorry. I re-read that now...

    Well, it is still unbelievable...

    Ioannis

Similar Threads

  1. Trying to measure time between two pulses on different pins.
    By Ryan7777 in forum mel PIC BASIC Pro
    Replies: 26
    Last Post: - 8th September 2014, 12:05
  2. I can't read some input pins on a PIC18F4620
    By chaneyv4 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 25th January 2014, 18:23
  3. Timing input pulses and re-outputting them
    By jamie_s in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 28th February 2007, 01:50
  4. Analog pins for digital input
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 9th September 2005, 00:32
  5. Timed pulses on 2 pins
    By Danie Joubert in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 15th March 2004, 07:38

Members who have read this thread : 6

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