Commit bc864086a6b92f7409c72561bce2e604f6e324ba
authorMichel Pollet <buserror@gmail.com>
Wed, 14 Apr 2010 17:13:21 +0000 (18:13 +0100)
committerMichel Pollet <buserror@gmail.com>
Wed, 14 Apr 2010 17:13:21 +0000 (18:13 +0100)
tree72e194fedc640a0c8c9273d94dac17d87acd4328
parent9903ca718a19106ac341f28e377cd0ba7f6fbb0e
Message:
ADC: Fully functional core

simavr ADC allows external code to feed real voltages to the
simulator, and the simulator uses it's 'real' reference voltage
to do the right thing and return the 'proper' 10 bits ADC value
to the AVR firmware.

To send values to the ADC, register your code to wait for the
ADC_IRQ_OUT_TRIGGER irq, and at that point send any of the
ADC_IRQ_ADC* with Millivolts as value.

External trigger is not done yet.

Signed-off-by: Michel Pollet <buserror@gmail.com>
2 files changed:
simavr/sim/avr_adc.c
simavr/sim/avr_adc.h