Giter Club home page Giter Club logo

Comments (9)

keirf avatar keirf commented on September 28, 2024

Change the definitions of O_TRUE and O_FALSE themselves. Should work.

from greaseweazle.

staticmem avatar staticmem commented on September 28, 2024

Thanks, I disabled the above change and edited the O_TRUE and O_FALSE as suggested. Then I also had to change the pin configuration for the GPO_bus:

#define GPO_bus GPO_pushpull(IOSPD_LOW, HIGH)

from greaseweazle.

keirf avatar keirf commented on September 28, 2024

That's surprising. Are you patching against tip of master branch?

from greaseweazle.

staticmem avatar staticmem commented on September 28, 2024

Not sure what you mean by "tip".

I used the Greaseweazle-0.19 source package and made changes to src/floppy.c and src/f1/floppy.c as needed then did a "make dist".

The changes involved the redefine of O_FALSE and O_TRUE, changing some of the port lines to suit this boards requirements and also using #define GPO_bus GPO_pushpull(IOSPD_LOW, HIGH)

It was a while ago that I rearranged some of the lines and can't quite remember the full reason but making sure 5V tolerant was used for inputs and possibly a change or two to make routing the board out easier.

I also modified the PIN test code to test the new pin arrangement but I noticed in the background things like drives selection are disabled after a few seconds.

For output buffers I'm using 2N7002 NFETs. These provide the required pull-down capability (I use a 150R res pack in last drive). All the FETs will have have 10k gate pull down resistors fitted because on power-up of the BP it will be high impedance which can cause lines to be in any state until things settled down in the Micro. My earlier board uses 10k pull downs on WG and WD only to prevent corruption of a disk if left in drive but my later board provides 10k for all the FET gates to avoid lines coming on at the start.

I also added support for 4 drives using this method. I moved some of the floppy lines to suit the voltage requirements of my arrangement. On an earlier design I also made changes for the extra drives and modified the Python script to work like the F7 build which I will also do for this 2N7002 board.

I guess I could have set the direction to an input (with weak pull-downs) or high impedance when the output state needs to go to a high and set as output when a low is required. Anyway I just went with the Push-Pull method as it will be quicker to respond given possible gate capacitance issues.

from greaseweazle.

staticmem avatar staticmem commented on September 28, 2024

Ok closed, that's fine as solution has been reached, I was just trying to outline what I am doing with this wonderful project. I sent you an email reply about my variation that I hope you will receive and consider.

from greaseweazle.

keirf avatar keirf commented on September 28, 2024

That's fine, though I have not received an email. If you have code to contribute then the best method is a Pull request. I can then give feedback. I don't recall if we discussed how to differentiate between different boards in a single build of Greaseweazle? We're using PC13-PC15 in the F7 build. Restrospective discussion for hardware already committed to is less good than agreement in advance :)

from greaseweazle.

staticmem avatar staticmem commented on September 28, 2024

Sorry Keirf I don't know know about Pull requests, etc. I'll get into Github one day but I'm a bit "old school" and too many other projects on the go to look into it right now.

I just want to supply what I have done but not publicly so you can check it out yourself. My changes are well organised and use "#ifdef FIO2" where I added changes and a couple of minor changes to the Python scripts to allow for 4 Shugart drives.

I can even send you a free PCB. :)

from greaseweazle.

keirf avatar keirf commented on September 28, 2024

Okay then email is best. But please tell me what you'd like done: Are you looking to have your board supported in the official releases? Or included as a build option in the source? Or what?

from greaseweazle.

staticmem avatar staticmem commented on September 28, 2024

ok, sent you an email that works.

from greaseweazle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.