• AVR Freaks

AnsweredHot!PIC16F19156 issue with I/O pins when VBATEN=1

Author
Austinalexanderb
New Member
  • Total Posts : 5
  • Reward points : 0
  • Joined: 2018/08/21 07:01:02
  • Location: 0
  • Status: offline
2019/02/26 09:25:16 (permalink)
0

PIC16F19156 issue with I/O pins when VBATEN=1

I am currently using the PIC16F19156 for a project and have discovered an issue. When VBATEN=0, I have proper expected control over the latch register for pin RC0 and RC1(and all other GPIO pins). However, when VBATEN=1, I lose control over the latch register for RC0 and RC1. RC0 and RC1 will no longer go to Vdd or Vss, it is floating somewhere around 0.3v when Vdd=3.3v. All other GPIO pins seem to remain functioning properly with VBATEN=1, it is just RC0 and RC1 that do not work properly.
 
MPLAB-X v5.00
XC8 v1.45
#1
coffee critic
Super Member
  • Total Posts : 357
  • Reward points : 0
  • Status: offline
Re: PIC16F19156 issue with I/O pins when VBATEN=1 2019/02/26 10:39:21 (permalink)
+1 (1)
Post code that can reproduce this condition.

n_*$
#2
qhb
Superb Member
  • Total Posts : 9998
  • Reward points : 0
  • Joined: 2016/06/05 14:55:32
  • Location: One step ahead...
  • Status: offline
Re: PIC16F19156 issue with I/O pins when VBATEN=1 2019/02/26 20:05:57 (permalink) ☼ Best Answerby Austinalexanderb 2019/02/27 07:06:42
+1 (1)
Sounds like the secondary oscillator is enabled.
As coffee critic mentioned, we need to see your test code, INCLUDING the config bits.
 

Nearly there...
#3
Austinalexanderb
New Member
  • Total Posts : 5
  • Reward points : 0
  • Joined: 2018/08/21 07:01:02
  • Location: 0
  • Status: offline
Re: PIC16F19156 issue with I/O pins when VBATEN=1 2019/02/27 07:06:48 (permalink)
0
After further digging into the data sheet, it does seem to be the secondary oscillator that is being enabled on pins RC0 and RC1. Thank you qhb.
#4
Jump to:
© 2019 APG vNext Commercial Version 4.5