PICF16877a and output port of 2.5V

Discussion in 'Embedded Systems and Microcontrollers' started by hunterage2000, Feb 16, 2013.

  1. hunterage2000

    Thread Starter Active Member

    May 2, 2010
    400
    0
    Hi,

    I have recently noticed that when I set an output port high it is only 2.5V and not 5V. Does anyone know why? I have checked all power connections with 5V going in and pins are setup.
     
  2. hexreader

    Active Member

    Apr 16, 2011
    250
    82
    I can think of two possibilities:

    1) Your processor is not running at all, due to bad configuration bits or bad oscillator circuit maybe.

    2) You only THINK that you have set the port bits to output, but have not done all necessary to achieve output high. Maybe still in analogue mode. Post a simple example code and it should be possible to spot any mistake.
     
  3. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    Do you have any thing connected to the port? If you load the port to much you may see something like this. And to be sure ;) are all VDD and VSS are connected properly.
     
  4. takao21203

    Distinguished Member

    Apr 28, 2012
    3,577
    463
    They are Zero Ohms for 16F as far as I know- all connected internally.
     
  5. hunterage2000

    Thread Starter Active Member

    May 2, 2010
    400
    0
    Its ok, it was a coding error. :rolleyes:
     
  6. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,386
    1,605
    So by what magic or incantation did you get a digital output to read neither one nor zero but instead one half?
     
Loading...