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

[Bascom]SONY SIRC Receiver - ATmega32 i Atmega8 - jakie są różnice

14 Sie 2011 22:52 2846 6
REKLAMA
  • #1 9825450
    Konto nie istnieje
    Konto nie istnieje  
  • REKLAMA
  • #2 9834931
    gayetan
    Poziom 18  
    Tak się tylko zapytam... a kompilowałeś go na inny procesor czy tylko wgrałeś .hex'a?
  • REKLAMA
  • #3 9835230
    Konto nie istnieje
    Konto nie istnieje  
  • REKLAMA
  • Pomocny post
    #4 9835899
    gayetan
    Poziom 18  
    Nie znam dobrze Bascom'a ale moim zdaniem to zapewne kwestia Timerów.
    Masz w kodzie
    Kod: text
    Zaloguj się, aby zobaczyć kod

    jest różnica w przypisaniu dla ATMega 8 - ICP1 to pin 14 (PB0) dla ATMega 32 ICP1 to pin 20 (PD6) - zobacz czy ( i ew. co tam masz podłączone )
    w załączeniu pinouty:
  • #5 9838168
    Konto nie istnieje
    Konto nie istnieje  
  • REKLAMA
  • Pomocny post
    #6 9838245
    xury
    Specjalista automatyka domowa
    Jak to nic nie podłączone ?
    A jak ma uc odbierać kody z pilota jeśli nie na ICP ?
    Cytat:
    This program works by connecting the Data output from the IS1U621 to the ICP
    ' Pin of the AVR and then uses the Capture1 interrupt to measure the time
    ' between each bit to know if it is a 1 or a 0 and then uses Compare1a interrupt
    ' to detect that there has not been a bit toggle for several bit times to
    ' detect the end of the packet
  • #7 9838522
    Konto nie istnieje
    Konto nie istnieje  
REKLAMA