Hogyan kell ADC-t konfigolni bitekkel bascom alatt?
Attiny13-hoz ez a config jó:
Kód: Egész kijelölése
Config Adc = Single , Prescaler = Auto , Reference = Internal (VCC used as Voltage Reference, External Voltage Reference at PB0 (AREF) pin, Internal 1.1V Voltage Reference, Reserved, Internal 2.56V Voltage Reference without external bypass
capacitor, Internal 2.56V Voltage Reference with external bypass capacitor)
Valamint a bascom helpjét:
REFERENCE: Some chips like the M163 have additional reference options.
Value may be OFF , AVCC or INTERNAL. See the data sheets for the different modes.
Some newer micro's support also : INTERNAL_1.1, INTERNAL_2.56,INTERNALEXTCAP
Super, nekem az internál kellene, INTERNAL_1.1 megfelel.
Ezzel próbálkoztam de nem jó:
Kód: Egész kijelölése
Config Adc = Single , Prescaler = Auto , Reference = Internal_1.1 