[OT] C-ben a ! mi is pontosan?
Ábrahám Gábor
abraham at plus7.hu
Thu Oct 14 09:42:37 CEST 2004
Szia !
> > Ez egy csak olvashato regisztert ellenoriz, aminek erteke nem lehet
> > 0x8000, mert fixen egy konstanst ad vissza (gyartoazonosito). Innettol
> > kezdve nem ertem miert kell meg pluszban 0x8000-val osszehasonlitani,
> > mikor a kovetkezo sorokban (ezt mar nem ideztem be) leellenori a
> > lehetseges gyartokat.
> Szerintem egyszerűen találtál egy relikviát :-) Lehet, hogy olyan
> hardveren
> fejlesztették a programot, ahol az a regiszter változhatott, és egyszerűen
> bennefelejtették.
En most csinaltam eppen hasonlot, mert hozzam kerult neheny peldany a
DS2155 A3-as reviziojabol.
Mit mond a manual :
Register Name: IDR
Register Description: Device Identification Register
Register Address: 0Fh
Bits 0 to 3/Chip Revision Bits (ID0 to ID3).
The lower four bits of the IDR are used to display the die revision of
the chip. IDO is the LSB of a decimal code that represents the chip
revision.
Bits 4 to 7/Device ID (ID4 to ID7).
The upper four bits of the IDR are used to display the DS2155 ID.
Elinditottam a bevalt programomat, ami rogton tiltakozott, hogy hardware
hiba
miatt nem tudja a vonalat megnyitni, Kerestem a hibat egy darabig, aztan
talaltam
egy erratat-t, miszerint :
24. DEVICE ID REGISTER READS INCORRECT VALUE
Description:
The device ID register (IDR) contains an incorrect value of B0h, which would
have been reserved for
revision A1.
Tehet lehet, hogy van regebbi verzio, ami rossz ID-t ad.
Gabor
More information about the Elektro
mailing list