View previous topic :: View next topic |
Author |
Message |
thushi
Joined: 22 Feb 2006 Posts: 14
|
Three Phase Induction Motor Control / AN843 in C |
Posted: Wed Feb 22, 2006 6:18 am |
|
|
ok i
Last edited by thushi on Thu May 29, 2014 6:19 am; edited 1 time in total |
|
|
Ttelmah Guest
|
|
Posted: Wed Feb 22, 2006 6:25 am |
|
|
Just use the assembler source as supplied...
Generally, to move over to C, to make the main code easier to modify, you will need to retain the assembler handlers for the interrupts, since the code is very precisely coded regarding the interrupt latency. The rest would translate. The same would apply in any C.
Best Wishes |
|
|
thushi
Joined: 22 Feb 2006 Posts: 14
|
|
Posted: Wed Feb 22, 2006 6:28 am |
|
|
Ttelmah wrote: | Just use the assembler source as supplied...
Generally, to move over to C, to make the main code easier to modify, you will need to retain the assembler handlers for the interrupts, since the code is very precisely coded regarding the interrupt latency. The rest would translate. The same would apply in any C.
Best Wishes |
Do you have any experience with AN843? |
|
|
Ttelmah Guest
|
|
Posted: Wed Feb 22, 2006 10:26 am |
|
|
No, but I did a similar phase drive sometime ago, and ended up writing the interrupt handlers in assembler, for exactly the reasons outlined in this AN. The timings have to be exact, if it is to work, and the added latency of the handlers in CCS, would not be acceptable.
Best Wishes |
|
|
|