Dnia 29-03-2011 o 12:42:31 Pascal Baerten <pascal.baer...@gmail.com> napisaĆ(a):
> hi Patrick, > > PIO property is driving the output state. reading to this property is > done > without accessing the chip. > to know the actual input state, read sensed property. That I was suspecting. Do you perhaps know howto check it(not sensed but, PIO value set by user) in the C code so I could modify ow_2408.c? -- p4trykx > > Pascal > > > 2011/3/29 p4trykx <p4tr...@o2.pl> > >> Hello >> I was looking at the code ow_2408.c and I have 2 questions regarding >> Hobby >> boards LCD. >> >> First: how does the initialization works. I see that there is some check >> if the initialization took place >> Cache_Get_SlaveSpecific.... >> but what if I loose power and the LCD resets. Could OWFS somehow figure >> out that LCD needs to be restarted? >> I know there is no read back from the LCD possible but maybe some info >> from latches could be useful. >> Or maybe the Cache_Get... expires after some time and the LCD gets >> reinitialized regardless every few minutes? >> >> Second: I noticed that there is are macros >> #define NIBBLE_TWO(x) (((x)<<4)&0xF0) and others >> >> the 0 in 0xF0 is responsible for resetting three unused PIO (0,1,2) on >> DS2408. I thought of a modification that would check the state of those >> PIOs set by the user and sending the required states. As I mention in >> some >> previous posts I connected the backlight to PIO.0 and I have to renew it >> after every write to the display. Now I use a hardware workaround >> (transistors with a capacitor). >> >> If i set some PIO I can read the state without querying the bus and >> DS2408. >> printf "1" > /mnt/owfs/XXXXXXX/PIO.0 >> and then when I read it >> cat /mnt/owfs/XXXXXXX/PIO.0 >> OWFS gets the value form cache? >> >> Could I somehow check this in ow_2408.c? >> >> -- >> p4trykx >> >> >> ------------------------------------------------------------------------------ >> Enable your software for Intel(R) Active Management Technology to meet >> the >> growing manageability and security demands of your customers. Businesses >> are taking advantage of Intel(R) vPro (TM) technology - will your >> software >> be a part of the solution? Download the Intel(R) Manageability Checker >> today! http://p.sf.net/sfu/intel-dev2devmar >> _______________________________________________ >> Owfs-developers mailing list >> Owfs-developers@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/owfs-developers >> > > ------------------------------------------------------------------------------ Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf _______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers