Ok, I hate C ! Maybe you help me and translate this "ugly code": //read byte from SPI (mode 3) as a master BYTE rdSPI(void) { register BYTE BitCnt = 8; counter 8 bit register BYTE Shift; auxiliary register do begin ? { SPI_SCK_LO(); spi_sclk_lo = low ? Shift <<= 1; asm rlf shift ? if(IS_SPI_SDI_LO()) Shift &= ~1; this one is the hell thing !!! else Shift |= 1; same this one ! SPI_SCK_HI(); } while (--BitCnt); ok here repeat 8 times return(Shift); } Thank you, P.S. if you learn me CC5x I will write such a page for C ! regards, Vasile On Thu, 31 Jan 2002, Michael Pettersson wrote: > Hello Vasile > > Yes, I must say that I am a fan of C. > I got a designer at workt that have used a couple of different language with > the PIC > (not the JAL though) and I have written PC software in C. > My only language experience is C. > > I can understand cc5x code with some difficulty but I'm learning. > Your site though is great! > Could you do the same for cc5xfree? :-) > > /best regards > > Michael Pettersson > > > > > Hmm, you are a fan of C ? > > Maybe you'll change your opinion after you'll see my page: > > > > http://www.geocities.com/vsurducan/electro/PIC/f877.html > > > > regards, Vasile > > > > > > On Wed, 30 Jan 2002, Michael Pettersson wrote: > > > > > Hello All! > > > > > > I'm new with PIC and the 16F877 and have started testing the CC5Xfree > from > > > http://www.bknd.com > > > > > > I have a project that I would like to start with but I need a LCD for > this. > > > My first attampts was not succesful and now I need some help. > > > > > > Could anyone help me with a LCD 4 bit parallell test software with the > > > cc5xfree software and against the 16F877 micro? > > > > > > Thanks! > > > > > > Michael > > -- > http://www.piclist.com hint: To leave the PICList > mailto:piclist-unsubscribe-request@mitvma.mit.edu > > -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu