• AVR Freaks

Hot!Reading Analog Value

Page: < 1234 Showing page 4 of 4
Author
ric
Super Member
  • Total Posts : 28671
  • Reward points : 0
  • Joined: 2003/11/07 12:41:26
  • Location: Australia, Melbourne
  • Status: offline
Re: Reading Analog Value 2019/12/07 03:02:32 (permalink)
0
Yes, if you get it wrong, it won't be accurate.

I also post at: PicForum
Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
NEW USERS: Posting images, links and code - workaround for restrictions.
To get a useful answer, always state which PIC you are using!
#61
hudejun
Electrical engineer
  • Total Posts : 15
  • Reward points : 0
  • Joined: 2019/12/05 08:48:06
  • Location: 0
  • Status: offline
Re: Reading Analog Value 2019/12/07 07:36:58 (permalink)
0
You will need to use zero-point detection method for the Phase and Supply 2 signal.
 
All measurements must be synchronized for these point.
 
Then, just subtract two values.
You will be able to get  the voltage between Phase and Supply 2 in this way.
 
There are software and hardware method to get zero-point.
Of course, if both signal had same sync, need not to check zero-point.
#62
Aharon
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2013/01/01 16:45:58
  • Location: 0
  • Status: offline
Re: Reading Analog Value 2020/03/04 08:59:26 (permalink)
-1 (1)
HI
i have a question regarding port definition.
if i use the  TRISx: PORTx TRI-STATE REGISTER  and set the port as output  TRISA bit (= 0)
but not define the level output (LAT register) what will be the output level on the port? = 0 ,=1 , = unknown ?
 
Thanks
Aharon
#63
pcbbc
Super Member
  • Total Posts : 1703
  • Reward points : 0
  • Joined: 2014/03/27 07:04:41
  • Location: 0
  • Status: offline
Re: Reading Analog Value 2020/03/05 08:45:41 (permalink)
+3 (3)
Off topic much? What there something wrong with starting a new thread?!
 
Try looking at what the power on defaults are for the LATA register in the documentation.  There you will find you answer.
 
As you didn't think to provide details of the chip you are using, we can't do that for you.  But for such a simple question that can be answered in the datasheet many probably wouldn't bother even if you had.
 
Edit: Seems digging up an old thread wasn't enough for the OP, they also started 2 new ones:
https://www.microchip.com/forums/m1130787.aspx
https://www.microchip.com/forums/m1130744.aspx
post edited by pcbbc - 2020/03/05 08:51:20
#64
Page: < 1234 Showing page 4 of 4
Jump to:
© 2020 APG vNext Commercial Version 4.5