PDA

View Full Version : Mysterious pulses on input pins



Demon
- 26th September 2024, 22:39
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...

Ioannis
- 27th September 2024, 08:27
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

Demon
- 27th September 2024, 21:47
...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. :p

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).

9768

Ioannis
- 28th September 2024, 18:34
Oh,sorry. I re-read that now...

Well, it is still unbelievable...

Ioannis