logo elektroda
logo elektroda
X
logo elektroda
REKLAMA
REKLAMA
Adblock/uBlockOrigin/AdGuard mogą powodować znikanie niektórych postów z powodu nowej reguły.

ATmega - jak odczytać Fusebit w C i dostosować podzielniki rezonatora?

arturromarr 16 Lut 2017 09:28 1335 4
REKLAMA
  • #1 16282533
    arturromarr
    Poziom 17  
    Witam,
    Mam pytanie czy możliwe jest odczytanie Fusebit z poziomu programu w C.
    Chodzi mi o funkcjonalność polegającą np na tym że program sam dobierze swoje podzielniki w zależności od ustawionego wewnętrznego rezonatora.

    Pozdrawiam
  • REKLAMA
  • #2 16282573
    Eagle
    Poziom 24  
    Cytat:

    16.6.2 Reading Fuse Bits from Firmware
    The algorithm for reading fuse bytes is similar to the one described above for reading lock bits,
    only the addresses are different.
    To read the Fuse Low Byte (FLB), follow the below procedure:
    1. Load the Z-pointer with 0x0000.
    2. Set RFLB and SELFPRGEN bits in SPMCSR.
    3. Issuing an LPM instruction within three clock cycles will FLB in the destination register.
  • REKLAMA
  • #3 16283166
    arturromarr
    Poziom 17  
    Czy to jest metoda dla asemblera?
    Nie rozumiem tego zapisu "Z-pointer" , czy można odczytać Fusy w C?
  • REKLAMA
REKLAMA