Friday, July 13, 2007

Moving...

Hey guys and gals. Just wanted to let you guys know that I'll be moving next week, and I've been packing this week. I've got the code to the intro security code up and running, but I still have to complete the write-up. I'm hoping to be able to get that completed sometime next week or weekend, if I get some spare time.

Labels:

2 Comments:

At January 28, 2008 at 1:29 AM , Blogger Unknown said...

Hello Brennen,

Great tutorials. I tried to implement my own code to test the spi functionality by writing 5 bytes to the TX_Address and reading them back but I am not able to read anything back. My spi buffer register keeps on resetting to zero. My hardware connections are fine. I am using a PIC18F2455. Let me know where to Attach my code. Your thoughts and help would be greatly appreciated.

Thanks,

Amir

--------------

 
At January 29, 2008 at 9:29 AM , Blogger Unknown said...

Hi Brennen,

Unfortunately, the loop back test did not work out for me :( CSN test was ok. I am not sure about the clock test. my new code is in C18 for the loop back tests. I directly connected the SD0(MOSI) pin to the SDI(MISO) pin with a wire. I have checked my configuration registers for SPI and everything is fine(SPI enabled for SCK, SDO, and SDI as serial). I set break points on the write and read functions and I was able to "sort of see" my clock go high on the scope every time a bit is latched from the SDI(8 latches observed). However, the return values of the spi buffer register is always zero for the read function. And In turn, all I get in the spi_data array is garbage (".") from the watch window (not even 0s)

I am having a lot of discrepancies about configuration bit settings as well, and clock settings. I am not using an external clock in my circuit.

Your time taken to give me further thoughts and further assistance is greatly appreciated. Looking forward to hearing from you soon.

Hope all is well.

Regards,

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home