| ??? 06/13/12 21:05 Read: times |
#187697 - Example code on this website Responding to: ???'s previous message |
http://www.8052.com/codelib/files/93C46B.C
I have no idea how good / bad this code may be. However it should give you a good start. It reads 16-bit. If you want to access 8-bit, you set the mode pin on your 93C46 chip to 8-bit. Note that the AT89S52 has no hardware SPI so yo need to bit-bang it. Other Atmel chips like AT89LP4052 or AT89S8253 do have hardware SPI. Personally, I would write the spi_init() and spi() functions instead of inline code as in the example C file. David. |
| Topic | Author | Date |
| help me with 93c46 and at89s52---MikroC | 01/01/70 00:00 | |
| What You Need to Do Yourself | 01/01/70 00:00 | |
| need help - 93c46 using AT89s52 - mikroc | 01/01/70 00:00 | |
| MikroC is unwise choice | 01/01/70 00:00 | |
| help me with 93c46 and at89s52---MikroC | 01/01/70 00:00 | |
| So check without scope - adjust code until testable | 01/01/70 00:00 | |
| you have now 3 times asked help with 93c46/at89s52--MikroC | 01/01/70 00:00 | |
| 93c46/at89s52--MikroC | 01/01/70 00:00 | |
| my suggestion | 01/01/70 00:00 | |
| You have already been given suggestions | 01/01/70 00:00 | |
| help me with 93c46 and at89s52---MikroC | 01/01/70 00:00 | |
| Use a proper Compiler | 01/01/70 00:00 | |
| I wanna, I wanna, I wanna, | 01/01/70 00:00 | |
| Time to actually prove your logic and your delays | 01/01/70 00:00 | |
| ----thanks all for helping out | 01/01/70 00:00 | |
| do you REALLY expect .... | 01/01/70 00:00 | |
| If you can't get MikroC to work ... | 01/01/70 00:00 | |
| switching to keil | 01/01/70 00:00 | |
| Example code on this website | 01/01/70 00:00 | |
why, oh why | 01/01/70 00:00 |



