You need to log in to create posts and topics.

VREF module on PIC16F628A

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

 

Hi.

Thanks for reporting, I'm having a look at this issue.

 

Ragmar has reacted to this post.
Ragmar