Hi ....
Background :
Have a controller unit that basic take inputs (buttons) to activate outputs (coils on hydraulic valves). The unit have now to be modified with a toggled input. After searching the Atmel ATF750C have this and have the same config as the PEEL pld that exists at the moment.
Data sheet on ATF750C
]http://www.atmel.com/Images/doc0776.pdf] Criteria :
The PCB have to stay intact eg. I will take units from shelf and replace the PEEL with the ATF750C.
Problem :
The pld program is made in wincupl as preferred compiler stated by Atmel.
wincupl =>
]http://www.atmel.com/tools/WINCUPL.aspx] I have no clock so to speek on pin 1 just the suppled power.
But in data sheet for ATF750C you are not looked to use clk from "world clock" (pin1) to the t/d flip-flop. From what I understand you can use a input pin or a product.
So in Wincupl I have compiled and simulated in Winsim with success but I will not work on the hardware.
Device v750c ;
PIN 3 = In1b ;
PIN 18 = OutT ; /*Toggle funktion */
OutT.sp = 'b'0 ;
OutT.t = In1b ;
OutT.ck = In1b ;
Even tried with product on the clock for t-flip-flop
Device v750c ;
PIN 3 = In1b ;
PIN 18 = OutT ; /*Toggle funktion */
OutT.sp = 'b'0 ;
OutT.t = In1b ;
OutT.ck = In1b # 'b'0;
Have tried so many times now and also with changing to pin-keeper
Device v750cppk ;
Last night i found this document
]http://www.atmel.com/Images/DOC0790.PDF] (Atmels PLD designer guide )
I haven't the programmer available at the moment .. but must I make a product from the "world clock" (pin 1) ?
Like this
Device v750c ;
PIN 1 = clk;
PIN 3 = In1b ;
PIN 18 = OutT ; /*Toggle funktion */
OutT.sp = 'b'0 ;
OutT.d = In1b ;
OutT.ck = In1b & clk ;
After banging my head for over 1 week now and being aprox. the user of half of googles bandwith I ended up here.
So could some one point me in the right direction or just clarify that the impression of being able to use clk from almost what ever sources you have is bogus in the datasheet for the ATF750C.
My native language isn't english but I hope I made my problem so clear that you understand.
I have only small experience of electronics so keep it a bit easy if you have thought or better a code example that uses a t-flip-flop with the .ck not connected to pin1.
Anyway I love the David's shows and watch them as soon they are published.
Mostly of the time in the teardowns episodes I don't have a clue of what's all the parts are doing but you get some small fragment of knowledge every time.
What I can contribute to this community is app for you PLD beginners. Try LogiSim
]http://ozark.hendrix.edu/~burch/logisim/] .
You don't have to installed it. That's huge plus ... (every time you installs something in windows you get one step nearer the time you have to reinstall the os).
Thanks in advanced
Per Nils