How to change AMUX (aref) for atmega128 (by Olivier)
Hi i would like to use internal 2.56V reference for analog inputs, ive searched datasheet and i need to change register bit •Bit 7:6 – REFS1:0: Reference Selection Bits
to 1,1 instead of 0,0
do i need to convert hex file to assembler then recompile it? how do i do that. thanx
(no subject) (by maxxir)
Hi.
Choose "Settings->Microcontrollers->ANSI C Code" to generate C code for your project.
Prepare your own C project with the initialization of the periphery AtMega128 Needed (with WinAVR for example).
Then you need to include in the project 'C'-files generated in LDmicro.
How to do this (only for PIC MCU) can be found here:
http://cq.cx/ladder-forum.pl?action=viewthread&parent=2005
Download the file <pic12_ladder_bathroom_light_3.zip> and view the source code.
(no subject) (by Olivier)
is there a simplier way to do it with a disassembler with io information then just change amux register and reassemble it, if i choose ainsi C code it gives me uart errors
(no subject) (by William Schneider)
Is possible add an option to use AREF pin for use a external value?
(no subject) (by Olivier)
that what i have done finally but i must add external component to make a precise voltage reference