| ??? 11/14/05 20:20 Read: times |
#103706 - push and pull Responding to: ???'s previous message |
I have had a quick look at the code and I think the problem could be in the spi code. You push 6 bytes onto the stack, then pop them off in a loop while transmitting spi - OK so far, pushes equal pops. But then you push six bytes of spi response on the stack but I cannot see where they get popped off again. I may have missed something but that could be the problem.
Ian |
| Topic | Author | Date |
| Stack pointer causing code to loop? | 01/01/70 00:00 | |
| Try using a simulator | 01/01/70 00:00 | |
| declaring variables | 01/01/70 00:00 | |
| careful | 01/01/70 00:00 | |
| push and pull | 01/01/70 00:00 | |
| Correct | 01/01/70 00:00 | |
| ah.. so if I change... | 01/01/70 00:00 | |
| Uh, no | 01/01/70 00:00 | |
| in same sub | 01/01/70 00:00 | |
| Try a Ring Buffer | 01/01/70 00:00 | |
code changed so push/pops in same sub | 01/01/70 00:00 |



