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

Proszę o przykładowy listing PIC16F88 z I2C - 200pkt

august_ 27 Sie 2007 23:58 1404 4
REKLAMA
  • #1 4222900
    august_
    Poziom 27  
    Posty: 1081
    Pomógł: 70
    Ocena: 47
    Witam, jak w temacie.
    Chodzi o sprzętową obsługę I2C w asm.

    Przenoszę program z 16F876 na 16F88.
    Nie mogę sobie poradzić ze sprzętową obsługą I2C w tym uC. Zrobiłem już nawet programowo - ale sumienie mnie gryzie i chcę to zmienić.

    Proszę o pomoc.
    Za pomocny listing oddaję 200pkt.
  • REKLAMA
  • REKLAMA
  • #3 4225746
    august_
    Poziom 27  
    Posty: 1081
    Pomógł: 70
    Ocena: 47
    Dzięki,
    A co może znaczyć:

    I2C firmware controlled Master mode (Slave IDLE)?

    Bo taki tryb jest w tym procku dostępny...
  • REKLAMA
  • Pomocny post
    #4 4225898
    piti___
    Poziom 23  
    Posty: 623
    Pomógł: 67
    Ocena: 9
    Wydaje mi sie ze ten tryb wspomaga programowa obsluge Master I2C wlaczajac przerwania przy wykryciu Stop i Start. Przerwanie przy Stop i mozesz wtedy wejsc na magistrale jako master.

    "Master mode operation is supported in firmware using
    interrupt generation on the detection of the Start and
    Stop conditions. ....... The Stop (P) and Start (S) bits will toggle based
    on the Start and Stop conditions. Control of the I2C bus
    may be taken when the P bit is set, or the bus is Idle
    and both the S and P bits are clear."

    A tutaj kilka slow o programowej obsludze lini SCL i SDA.
    "In Master mode operation, the SCL and SDA lines are
    manipulated in firmware by clearing the corresponding
    TRISB<4,1> bit(s)."

    Pozdrawiam
  • #5 4227653
    august_
    Poziom 27  
    Posty: 1081
    Pomógł: 70
    Ocena: 47
    Czyli jest szansa, że się da - ale za wąski w uszach jeszcze jestem by to zrobić.
    Dopracuję programową obsługę, trudno się mówi.
    Dzięki za pomoc.
REKLAMA