Author |
Message |
Topic: SPI Problem with ATMEL AT25F1024A [solved] |
2pi
Replies: 15
Views: 22117
|
Forum: General CCS C Discussion Posted: Wed Dec 21, 2005 6:05 am Subject: SPI Problem with ATMEL AT25F1024A [solved] |
hello!
i tried your suggestion, but it still not work.
i noticed the following effect:
i can read and write the statusregister as often i want.
i can read the ID of the chip as often i want.
i ... |
Topic: SPI Problem with ATMEL AT25F1024A [solved] |
2pi
Replies: 15
Views: 22117
|
Forum: General CCS C Discussion Posted: Tue Dec 20, 2005 11:14 am Subject: SPI Problem with ATMEL AT25F1024A [solved] |
yeah i tried this!
it doesn�t work. i get 0x00 0x00 0xff 0xff 0xff 0xff 0xff ....
but it should be this in it: 0x00 0x01 0x02 0x03 ....
But reading the ID of the device works fine. the comeback val ... |
Topic: SPI Problem with ATMEL AT25F1024A [solved] |
2pi
Replies: 15
Views: 22117
|
Forum: General CCS C Discussion Posted: Tue Dec 20, 2005 9:49 am Subject: SPI Problem with ATMEL AT25F1024A [solved] |
the full code for writting a byte / the Status Register / the WEN bit in the Status Register:
// SPI WRITE (ONE BYTE) =====================================
void spi_write_one_byte(unsi ... |
Topic: SPI Problem with ATMEL AT25F1024A [solved] |
2pi
Replies: 15
Views: 22117
|
Forum: General CCS C Discussion Posted: Tue Dec 20, 2005 7:40 am Subject: still problems ... |
it was too early to cheer. there are still problems with the SPI.
setting and reading the status register of the e2prom works, but writting and reading data still doesn�t work. sometimes it looks ... |
Topic: SPI Problem with ATMEL AT25F1024A [solved] |
2pi
Replies: 15
Views: 22117
|
Forum: General CCS C Discussion Posted: Mon Dec 19, 2005 1:45 am Subject: Problem solved |
back from weekend, i tried your suggestions!
The compiler didn�t set the bits CKP, CKE, SMP in the correct way!
I used your posted code and now everything is doing fine.
Thank you very much!
Gre ... |
Topic: SPI Problem with ATMEL AT25F1024A [solved] |
2pi
Replies: 15
Views: 22117
|
Forum: General CCS C Discussion Posted: Fri Dec 16, 2005 11:55 am Subject: Thank you for the fast response! |
@Ttelmah: yeah ~wp and ~hold are booth driven high from the pic. i forgot this code-snippet to copy&paste. that works fine!
to the problem: the serial clock and the serial data out of the pic ... |
Topic: SPI Problem with ATMEL AT25F1024A [solved] |
2pi
Replies: 15
Views: 22117
|
Forum: General CCS C Discussion Posted: Fri Dec 16, 2005 6:51 am Subject: SPI Problem with ATMEL AT25F1024A [solved] |
Hello!
I�m a Microchip/CCS Newbie and I got some problems with the SPI.
I�m using the PIC16F687 @ 8MHZ, 3.6 V and i�ve compilerversion 3.235.
I�m using the spi interface of the chip to connect it w ... |
|