Re: [Ktechlab-devel] plz put a property in SR flipflop! =P

2009-09-14 Thread P Zoltan
On Fri, 11 Sep 2009 21:38:27 +0200, Alan Grimes wrote: > I'm a bit too lame to do this myself, but I need a Property set up so > that I can change the new m_pol variable in SVN head (ECSRFlipFlop). > > I need it to further improve my DAC circuit. =P > > Ideally, the graphic would also display a

Re: [Ktechlab-devel] plz put a property in SR flipflop! =P

2009-09-14 Thread Alan Grimes
P Zoltan wrote: > On Fri, 11 Sep 2009 21:38:27 +0200, Alan Grimes > wrote: >> I'm a bit too lame to do this myself, but I need a Property set up so >> that I can change the new m_pol variable in SVN head (ECSRFlipFlop). >> I need it to further improve my DAC circuit. =P >> Ideally, the graphi

[Ktechlab-devel] parallel and serial ports.

2009-09-14 Thread santiago gonzalez
Hi list... This comes from the help forum: Zoltan said: *"In ktechlab's source you can find in /src/electronics/port.h and .cpp the implementation. * *As I see, reading and writing is done by calling ioctl on the device. * *I don't know if setting the voltage on the port and seeing the change

Re: [Ktechlab-devel] parallel and serial ports.

2009-09-14 Thread Alan Grimes
> I'm thinking in not simulate PIC but run the code in a real pic and > conect it to a virtual circuit through parallel port. I did a try with a > real pic managing a virtual led in kltechlab through serial port, > working ok; but serial has just a few lines, with parallel i could > interface two w

[Ktechlab-devel] Adding new pics to simulation

2009-09-14 Thread santiago gonzalez
Comes from help forum: "...as currently the part of ktechlab that describes what PICs are supported is quite messy." If you have an idea about how it should be, i can try the work. About what pics are supported i only can find src/micro/picinfoXXbit.h there are the pic classes and what kind of s

Re: [Ktechlab-devel] parallel and serial ports.

2009-09-14 Thread santiago gonzalez
No... is not a rs232 comunication... no protocol... you can just set or clear a pin, just like an electric conection. It can work just like a wire. 2009/9/15 Alan Grimes > > I'm thinking in not simulate PIC but run the code in a real pic and > > conect it to a virtual circuit through parallel po

Re: [Ktechlab-devel] parallel and serial ports.

2009-09-14 Thread santiago gonzalez
Ok... found the parallel port inputs (status) error.. the setHigh() operation was ORed with the readed value but it should be ANDed... now seting or clearing status pins in the real port is shown in ktechlab and can be conected to a ktl circuit... lets do some testings... :) About the serial port

[Ktechlab-devel] new SR code.

2009-09-14 Thread Alan Grimes
I went and figured out (again) how to add a property, I went ahead and solved my own todo on the SR flip-flop. The damn thing sometimes works!!! =( I mean I went into my DAC circuit and replaced 16 NAND gates with 8 SR flipflops, set the polarity to NAND, and half of them do exactly what I wanted

[Ktechlab-devel] Pic interrupts solved.

2009-09-14 Thread santiago gonzalez
I think today is my lucky day... i should buy lottery.. :) Found the problem with interrupts that didn't work in ktechlab but work in gpsim. I think now the pic simulation is faster and my PC's processor doesn't speed up. With a pic program coded at 4MHz, ktechlab simulates it at near real-time.