Recreating a HP-25
|
07-09-2016, 04:40 AM
(This post was last modified: 07-09-2016 04:44 AM by Alejandro Paz(Germany).)
Post: #10
|
|||
|
|||
RE: Recreating a HP-25
I've been working lately on the code quite a bit and on a prototype board with keys and 7-segment displays. The code runs till the entry loop at 0742..0745. I have to implement keyboard scanning now. Debouncing seems to happen entirely on hw. If this where some microprocessor, I'd just use some software counters to scan the matrix and store key changes. I'd like to avoid using one counter per key, because I don't think that it was done like that. There is enough logic in this chip, I just think that is a waste of logic to do it like that....
I had some problems with the carry. It gets set and cleared in the same instruction, not a behaviour I have to reproduce,... on the 1LF2 I used an extra register for the comparison result. Here I used the carry, but it resulted in awkward code. There is a bit to improve. I follow the principle: make it work, make it fast, make it good . The 1LF2 has hw registers and the ws has memory-mapped registers, there is not enough logic for all the muxes one needs in a 8x64 bits register file with two access ports. Two R/W ports are not really needed, they are just convenient. It is a behavioural model after all, not a gate-level model (one could also do this but... why ?). The code posted to github is up-to-date. There is a stream of serial data, pc, opcode and P register coming out of the FPGA (numbers in octal except P). I'm using a MachXO2-1200ZE breakout board, it has a TTL33 to USB adapter built in. It is clocked from the internal 2.08 MHz clock, serial data is output at 500 kbps, no problems for the FT2232, they can also have 2 Mbps . I'll post a couple of pictures of the prototype once I've finished soldering the keys to the connectors, and the displays... quite a bit of wiring going on. If you study a bit the code, there is another surprise there , it only needs another row of keys . Code:
|
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Recreating a HP-25 - Alejandro Paz(Germany) - 06-09-2016, 07:33 AM
RE: Recreating a HP-25 - walter b - 06-09-2016, 09:10 AM
RE: Recreating a HP-25 - Thomas Radtke - 06-09-2016, 10:41 AM
RE: Recreating a HP-25 - PANAMATIK - 06-09-2016, 11:37 AM
RE: Recreating a HP-25 - Thomas Radtke - 06-09-2016, 03:38 PM
RE: Recreating a HP-25 - Alejandro Paz(Germany) - 06-09-2016, 12:03 PM
RE: Recreating a HP-25 - Guenter Schink - 06-09-2016, 07:57 PM
RE: Recreating a HP-25 - Alejandro Paz(Germany) - 06-10-2016, 04:59 AM
RE: Recreating a HP-25 - Guenter Schink - 06-10-2016, 09:13 PM
RE: Recreating a HP-25 - Alejandro Paz(Germany) - 07-09-2016 04:40 AM
RE: Recreating a HP-25 - PANAMATIK - 07-10-2016, 10:26 AM
RE: Recreating a HP-25 - Alejandro Paz(Germany) - 07-10-2016, 11:57 AM
RE: Recreating a HP-25 - Alejandro Paz(Germany) - 10-26-2016, 07:21 PM
RE: Recreating a HP-25 - PANAMATIK - 10-26-2016, 09:56 PM
RE: Recreating a HP-25 - Alejandro Paz(Germany) - 10-27-2016, 10:55 AM
|
User(s) browsing this thread: 1 Guest(s)