You need to log in to create posts and topics.
VREF module on PIC16F628A
Ragmar@ragmar
5 Posts
#1 · October 28, 2024, 5:07 pm
Quote from Ragmar on October 28, 2024, 5:07 pmHello, everyone!
I was testing VREF module on PIC16F628A but for some reason, it doesn't behaved like datasheet especification. For exemple:
accordind to equation on page 69, output on RA2 should be 0V, but on simulide, it reaches 5v. Even when increasing VR<3:0>, it cannot reproduce the low range equation of datasheet.
bank_1 movlw B'11111111' movwf TRISB movlw B'11111011' movwf TRISA movlw B'10000000' movwf INTCON movlw B'11011111' movwf OPTION_REG movlw B'11100000' movwf VRCON bank_0
Hello, everyone!
I was testing VREF module on PIC16F628A but for some reason, it doesn't behaved like datasheet especification. For exemple:
accordind to equation on page 69, output on RA2 should be 0V, but on simulide, it reaches 5v. Even when increasing VR<3:0>, it cannot reproduce the low range equation of datasheet.
bank_1
movlw B'11111111'
movwf TRISB
movlw B'11111011'
movwf TRISA
movlw B'10000000'
movwf INTCON
movlw B'11011111'
movwf OPTION_REG
movlw B'11100000'
movwf VRCON
bank_0
Click for thumbs down.0Click for thumbs up.0
Last edited on October 31, 2024, 11:24 am by Ragmar
arcachofo@arcachofo
574 Posts