i?m working on a state machine design with PALASM, but it doesn?t work as intended. Its an excitation circuit for a 5-phase stepper motor driver. Compilation runs without errors or warnings, but simulation shows strange flaws. Any body able and willing to help me?
I don't trust simulations. For me, they seem to be the source of the funny results more often than mistakes I've made. If it is a smallish project you should be able to check your work by hand. Double check the inverted vs non-inverted because that seems to be the easiest mistake to make.
It might also be worth looking at WinCUPL as an alternative to PALASM. It has been a while since I've done any GAL work but I don't recall too much pain with WinCUPL. If the dialects are as similar as the Atmel link below implies, it may be worth a look just to see how the design behaves in a different environment.
"Frank-Stefan Müller" schreef in bericht news:hd0r2q$v7a$ snipped-for-privacy@news2.rz.uni-karlsruhe.de...
Did a lot using Palasm at the time and still have a running version 1.5. If you send the source allong with a descryption about what the circuit is supposed to do, I'll have a look at it.
Slightly OT but related. A former customer of mine just called asking me for a copy of the formerly free AMD PAL compiler PLPL V2.3. It's been a decade or more since I have seen this. Anybody know where he could find a copy?
I looked but couldn't see anything too obvious unless it has to do witht he fact that you didn't latch the direction controls. This could make it mess up on a direction change. This could be an external latch or just part of the design.
Have you tried burning a 22V10 and putting a scope on it?
I assume that WP# and WN# are driving transistors that work the stepper coils. You are using a 9/20 duty cycle on all the coil drives. On each clock, the phase should go 18 degrees.
I haven't looked at the 22V10's datasheet in a while. What is the lowest number of AND gates in the macrocell? Could it be that your compiler has actually not made the correct result without warning you?
Title : schritt5 Author : fsm Pattern : Company : mrt Revision : 1 Date : 12/10/09
PAL22V10 Page : 1 gc c c c c c c c c c c c c c c c c c c c ENA HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH CLOCK LHHLHHLHHLHHLHHLHHLHHLHHLHHLHHLHHLHHLHHLHHLHHLHHLHHLHHLHHLHH LI_RE LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL WP1 LLHHHLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLHHHHHHHHHHHHHHHH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HHHHHHHHHHHHHHHHHHHHHLLLLLLLLLLLLLL WP5 LLHHHHHHHHHHHHHHHHHHHHHHHHHHHLLLLLLLL WN5 LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLHHHHH
yes, the display was exactly resembling the simulation result
I suppose this is true, but why? Could the LOWEST number of AND cells be
a concern? I disassembled the Jedec file, of course there are lots of fuses blown, shold mean NOT blown, intact, but it seems to me, that not all AND strings are used, so there should´t be a problem with missing terms.
I haven't looked at the 22V10's datasheet in a while. What is the lowest number of AND gates in the macrocell? Could it be that your compiler has actually not made the correct result without warning you?
Well, the impossible never happens but I never saw my last PALASM version fail like this.
"Frank-Stefan Müller" schreef in bericht news:hd91cc$skv$ snipped-for-privacy@news2.rz.uni-karlsruhe.de...
Had a closer look at your code and simulation tonight. Apparently you did not want the all zeros at state S0. I know 22V10s have some provision to initialize at power up but I don't remember the correct syntax. I did - and still do - not like it either so I used to circumvent it by defining State 0 to be all zeros (or low or false) which is the "natural" value at power up.
So I changed your code by changing your S0 into S00, making a new S0 which is all zeros and adding a state transistion S0 -> S00. The simulation now looks like:
Title : schritt5 Author : fsm Pattern : Company : mrt Revision : 1 Date : 12/10/09
PAL22V10 Page : 1 gc c c c c c c c c c c c c c c c c c c c ENA HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH CLOCK LHHLHHLHHLHHLHHLHHLHHLHHLHHLHHLHHLHHLHHLHHLHHLHHLHHLHHLHHLHH LI_RE LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL WP1 LLHHHHHHLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLHHHHHHHHHHHHHHHHHHH WN1 LLLLLLLLLLLHHHHHHHHHHHHHHHHHHHHHHHHHHHLLLLLLLLLLLLLLLLLLLLLL WP2 LLLLLLLLLLLLLLLLLHHHHHHHHHHHHHHHHHHHHHHHHHHHLLLLLLLLLLLLLLL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ef in bericht news:hd91cc$skv$ snipped-for-privacy@news2.rz.uni-karlsruhe.de...
Due to the eternal "experimental" phase of the newsserver of my ISP, I cannot see my own postings from time to time. Not the normal way that is. Looking them up in Google Groups makes me see the mess that's made by proportional spacing. So use a fixed font to look at the simulation results.
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.