??? 07/19/07 17:11 Read: times |
#142042 - This shows you how to use the HW SPI Responding to: ???'s previous message |
Just look at this Keil example:
Keil said:
AT89S8252, AT89S53 SPI Example Program
This example program shows how to configure and use the SPI in master mode for the following microcontrollers: ATMEL AT89S53 ATMEL AT89S8252 To run this program... Choose your target Build the project (Project Menu, Build Target) Start the debugger (Debug Menu, Start/Stop Debug Session) View the Serial Window (View Menu, Serial Window #1) View the SPI peripheral (Peripheral Menu, SPI) View the Port 1 (Peripheral Menu, I/O Port) Display the memory area X:0x700000 Run the program (Debug Menu, Go) A debug script (SPI_AT250X0.ini) includes debugger signal functions that simulate an Atmel AT250X0 SPI memory device. This device is simulated using a simple state machine implemented with switch statements. See: http://www.keil.com/download/docs/226.asp Bernd Nollmeyer said:
Show me how to use the HW SPI in case of the ENC, you have DIN, DOUT, CLK And the memories in that example have 3 pins: SI, SO, and SCK - equivalent to the ENC's DIN, DOUT, and CLK ! |
Topic | Author | Date |
AT89S52 and ENC28J60 | 01/01/70 00:00 | |
Principles - again | 01/01/70 00:00 | |
Yes, I'm using the ENC28J60 | 01/01/70 00:00 | |
AT89S52 and ENC28J60 schematic first | 01/01/70 00:00 | |
what kind of schematic | 01/01/70 00:00 | |
So there is no need to drive a car | 01/01/70 00:00 | |
you should do what you want to do | 01/01/70 00:00 | |
echoes of Mr. Ludd | 01/01/70 00:00 | |
who is Mr. Ludd ? | 01/01/70 00:00 | |
your ancestor | 01/01/70 00:00 | |
yes, thats why Ben is still using an AT89S52 | 01/01/70 00:00 | |
HUH | 01/01/70 00:00 | |
Is that true?? | 01/01/70 00:00 | |
Speed? | 01/01/70 00:00 | |
for a while | 01/01/70 00:00 | |
Why would you not use it?? | 01/01/70 00:00 | |
This shows you how to use the HW SPI | 01/01/70 00:00 | |
have a look here | 01/01/70 00:00 | |
Both of which do use the HW SPI! | 01/01/70 00:00 | |
get it | 01/01/70 00:00 | |
SPI port at AT89S52 with ENC28J60 | 01/01/70 00:00 | |
HW SPI in AT89Sxxx? | 01/01/70 00:00 | |
HW SPI in AT89SXX | 01/01/70 00:00 | |
Ethernet connector with filters | 01/01/70 00:00 | |
The answer is in the link | 01/01/70 00:00 |