??? 09/10/04 10:54 Read: times |
#77185 - RE: another problem with IRQ from SPI CC03 Responding to: ???'s previous message |
hi,
first of all, unlike RD2/IC2/ID2 devices, CC03 has ESPI bit as third bit of IEN1. This is because CC03 has CAN macro built-in which bit ETIM occupies IEN1.2 of. So you need do IE1 |= 0x08 to enable SPI interrupt. Now, after transfer has been completed, the bit SPIF is set and it generates interrupt request. If you just leave ISR without clear this bit then program comes to ISR again and again. To clear SPIF bit you should read SPSTA and then SPDAT registers. For more details read page 127 of AT89C51CC03 manual (chapter "Master Mode"). Regards, Oleg |
Topic | Author | Date |
SPI sample code ATMEL AT89C51CC03 | 01/01/70 00:00 | |
RE: SPI sample code ATMEL AT89C51CC03 | 01/01/70 00:00 | |
RE: SPI sample code ATMEL AT89C51CC03 | 01/01/70 00:00 | |
Book vs teacher | 01/01/70 00:00 | |
RE: Book vs teacher | 01/01/70 00:00 | |
RE: SPI sample code ATMEL AT89C51CC03 | 01/01/70 00:00 | |
another problem with IRQ from SPI CC03 | 01/01/70 00:00 | |
RE: another problem with IRQ from SPI CC03 | 01/01/70 00:00 | |
RE: another problem with IRQ from SPI CC03 | 01/01/70 00:00 | |
RE: simulator | 01/01/70 00:00 | |
RE: simulator | 01/01/70 00:00 | |
RE: simulator![]() | 01/01/70 00:00 |