UNIV3 AN0/AN1 analog pins

Post Reply
kneelo
Posts: 5
Joined: 19 Feb 2017, 13:39
Location: Western Australia

UNIV3 AN0/AN1 analog pins

Post by kneelo »

Hi,

Are the voltage levels connected to AN0 and AN1 on the UNIV 3 processor used in the firmware? I am designing hardware for an energy monitor so would like to use these analog inputs for extra channels if they are just for information.

I have had a look at the switch module univ_3-1-3-1-rev1 code and these pins seem to be initialised but then I cant see them used anywhere.

Thanks
Neil
Jacek
Posts: 560
Joined: 17 Feb 2007, 18:00

Re: UNIV3 AN0/AN1 analog pins

Post by Jacek »

Both pins are used.
AN0 is used in the bootloader to measure supply voltage. R4 and R5 resistors are used for that in each module.
Code: https://github.com/hapcan/UNIV_3_Bootlo ... .inc#L1026

AN1 is used in the bootloader to define bootloader working mode.
You can read more about that here:
chapter 4 - https://hapcan.com/devices/universal/un ... t_3-4b.pdf
chapter 4.2 https://hapcan.com/devices/universal/un ... _3cpub.pdf
Code: https://github.com/hapcan/UNIV_3_Bootlo ... 4.inc#L217
Regards
Jacek
kneelo
Posts: 5
Joined: 19 Feb 2017, 13:39
Location: Western Australia

Re: UNIV3 AN0/AN1 analog pins

Post by kneelo »

Thanks for the response... I forgot to look at the boot loader.
Post Reply