symmetric power supply pic 16f877a


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    Join Date
    Jul 2022
    Posts
    26


    Did you find this post helpful? Yes | No

    Talking Re: symmetric power supply pic 16f877a

    can you please help me by correcting the friend code?

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,695


    0 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: symmetric power supply pic 16f877a

    its just like deja vu all over again
    https://support.melabs.com/forum/pic...de-pic-16f877a
    4 years later still the same scant detail
    Warning I'm not a teacher

  3. #3
    Join Date
    Jul 2022
    Posts
    26


    Did you find this post helpful? Yes | No

    Default Re: symmetric power supply pic 16f877a

    Since nobody wanted to help me in this forum, I wanted to try again in this forum. is there a problem? if you are not going to help, do not criticize

  4. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    2,695


    0 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: symmetric power supply pic 16f877a

    is there a problem?

    i doubt many would risk unvetted content from google drive, youtube would be safer.
    there is no config settings in your code.
    what type of osc and speed.
    what have you tried to port code to 16f886 and what happened.
    does it work on a 16f877a.
    has it ever worked or is it just a proteus simulation, proteus does not really work for some real time things.
    there is no schematic.
    why use fp ,can you really expect accuracy to 2 decimals.
    what does symmetric power supply pic 16f877a mean ,the code is just a display
    but the voltages flicker and do not complain fixed, what does this mean , are the voltages out of control or is it the the readings
    two dp accuracy from single asynchronous adc results is not plausible afaics esp without a stable voltage reference for adc
    Warning I'm not a teacher

  5. #5
    Join Date
    Jul 2022
    Posts
    26


    Did you find this post helpful? Yes | No

    Default Re: symmetric power supply pic 16f877a

    In the google drive link I uploaded a video of the proteus simulation of the code with the negative and positive voltages flashing. the code works with pic 16f877a, microchip announced that it will stop making pic 16f877a and i want to migrate the code to work with pic 16f886. In addition, anyone can make a symmetrical source, in my case I implement a digital indicator with a pic and use an operational amplifier in inverter mode to input negative voltage to the pic, use a voltage divider for the positive input and not damage the adc of the pic. If it won't help, don't comment.

  6. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170


    0 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: symmetric power supply pic 16f877a

    Get rid of Floating point. All will be much more smoother.

    Either you like it or not, Richard has nailed the problems. If I were you, I would read carefully his suggestions.

    Ioannis

  7. #7
    Join Date
    Jul 2022
    Posts
    26


    Did you find this post helpful? Yes | No

    Default Re: symmetric power supply pic 16f877a

    If I eliminated the floating point, the positive and negative voltages would NOT be the same as those recorded by the voltmeters in the Proteus simulation. attached proteus simulation image I also attach the old code when I started to make the code with the first code the negative and positive voltages are different. so i expanded the code and now the negative and positive voltages are flashing, but the negative and positive voltages that register on lcd 20 x4 are the same as the voltmeters in the proteus simulation. if it won't help don't comment













    DEFINE LCD_DREG PORTD
    DEFINE LCD_DBIT 4
    DEFINE LCD_RSREG PORTE
    DEFINE LCD_RSBIT 0
    DEFINE LCD_EREG PORTE
    DEFINE LCD_EBIT 1
    DEFINE LCD_BITS 4
    DEFINE LCD_LINES 2

    DEFINE ADC_BITS 10
    DEFINE ADC_CLOCK 3
    DEFINE ADC_ SAMPLEUS 50

    TRISC.6 = 0
    TRISC.7 = 1
    TRISA = 255
    ADCON1 = %11000010
    TRISB.6 = %0

    LED VAR PORTB.6
    B1 VAR WORD
    B2 VAR WORD
    VALOR1 VAR BYTE
    VALOR2 VAR BYTE

    STAR:
    ADCIN 1, B1
    ADCIN 2, B2
    VALOR1=B1/9
    VALOR2=B2/12

    SEROUT2 PORTC.6,188,["$", "$", DEC4 B1,"$", "$",DEC4 B2,10,13]
    LCDOUT $FE,2," SYMMETRIC FONT "
    LCDOUT $FE,$C4," JOSE LUIS "
    LCDOUT $FE,$90," VOLTAGE NEGATIVE:-",DEC2 VALOR1
    LCDOUT $FE,$D0," VOLTAGE POSITIVE:+",DEC2 VALOR2
    HIGH LED
    GOTO STAR
    Attached Images Attached Images  

Similar Threads

  1. symmetric source code pic 16f877a
    By joseluisatmega8 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 30th August 2018, 13:30
  2. 0-60 vdc power supply controlled by pic 0-5vdc
    By chuzkin in forum Schematics
    Replies: 0
    Last Post: - 22nd April 2014, 22:15
  3. PIC power supply basics
    By shottootto in forum General
    Replies: 7
    Last Post: - 19th December 2013, 14:58
  4. PIC backup power supply: switchover ???
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 18th April 2008, 18:05
  5. Decent 24 volt Pic power supply
    By rwskinner in forum Schematics
    Replies: 7
    Last Post: - 18th December 2006, 13:27

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