Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - How to change AMUX (aref) for atmega128

(you are viewing a thread; or go back to list of threads)

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
Tue Jun 28 2011, 11:42:48
(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.
Tue Jun 28 2011, 16:37:11
(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
Thu Jun 30 2011, 09:23:03
(no subject) (by maxxir)
<is there a simplier way..> - Simplest, but not Best IMHO
Fri Jul 1 2011, 12:43:11
(no subject) (by William Schneider)
Is possible add an option to use AREF pin for use a external value?
Wed Jul 13 2011, 16:20:32
(no subject) (by Olivier)
that what i have done finally but i must add external component to make a precise voltage reference
Fri Jul 15 2011, 10:52:40
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):