#garfield Logs

Apr 10 2022

#garfield Calendar

12:02 AM rue_mohr: the CPYB instruction isn't working
12:11 AM rue_mohr: but the INVB is
12:11 AM rue_mohr: case CPYB:
12:11 AM rue_mohr: if ((t = OpAssemble( v8[1] , v8[2], 0 )) < 0 ) return -1;
12:11 AM rue_mohr: OP->FInstruction = t;
12:11 AM rue_mohr:
12:11 AM rue_mohr: if ((t = OpAssemble( v8[1] , v8[2], 1 )) < 0 ) return -1;
12:11 AM rue_mohr: OP->TInstruction = t;
12:11 AM rue_mohr:
12:11 AM rue_mohr: OP->FAddress = address+1;
12:11 AM rue_mohr: OP->TAddress = OP->FAddress;
12:11 AM rue_mohr: break;
12:11 AM rue_mohr: case INVB:
12:11 AM rue_mohr: if ((t = OpAssemble( v8[1] , v8[2], 1 )) < 0 ) return -1;
12:11 AM rue_mohr: OP->FInstruction = t;
12:11 AM rue_mohr:
12:11 AM rue_mohr: if ((t = OpAssemble( v8[1] , v8[2], 0 )) < 0 ) return -1;
12:11 AM rue_mohr: OP->TInstruction = t;
12:11 AM rue_mohr:
12:11 AM rue_mohr: OP->FAddress = address+1;
12:11 AM rue_mohr: OP->TAddress = OP->FAddress;
12:11 AM rue_mohr: break;
12:11 AM rue_mohr: the only difference is the data bit being inverted
12:32 AM rue_mohr: no it has to be a hardware issue
12:46 AM rue_mohr: damnit, that ONE instruction doens't want to work
12:52 AM rue_shop3: another variation of the copy isn't working either
12:52 AM rue_shop3: odd
12:57 AM rue_shop3: darnit I cant find the logic analizer
12:57 AM rue_shop3: this freaking day is a writeoff
01:07 AM rue_mohr: and i'm tired
05:00 AM Tom_L: hi
10:24 AM BloodMoon: there!
10:54 AM Tom_L: here here
12:36 PM rue_mohr: I'm awake
12:36 PM rue_mohr: that 1 bit computer, got it up to 8Mhz and it was ok
12:37 PM rue_mohr: I think the memory chip is 150ns
12:43 PM rue_mohr: 2399
12:44 PM rue_mohr: is that up or down?
12:44 PM rue_mohr: I think its up
12:44 PM rue_mohr: I think I remember 2325
12:59 PM Tom_L: naw 3225
12:59 PM Tom_L: cleaned the shop mess this am
12:59 PM Tom_L: oiled the cnc
01:09 PM rue_mohr: mhm
01:09 PM rue_mohr: its apparently cold as hell out
01:23 PM Tom_L: printer went bonkers
01:24 PM Tom_L: aparently it was full of lint
01:42 PM rue_mohr: I cant find any of the lists of things I needed me to do on the weekend
01:43 PM Tom_L: maybe they're all done?
01:43 PM rue_mohr: nope
03:43 PM rue_shop3: working on the rear projection laser voltmeter project
03:45 PM Tom_L: ok yardwork done for today
03:45 PM Tom_L: pick that up again next weekend
04:02 PM rue_shop3: https://www.bctransit.com/sunshine-coast/schedules-and-maps/route-overview?route=1
04:04 PM Tom_L: is there such a thing as a 1" water valve solonoid on a delay timer?
04:04 PM rue_shop3: https://www.bctransit.com/sunshine-coast/schedules-and-maps/route-overview?route=1
04:04 PM Tom_L: so when it engages it delays x minutes
04:26 PM rue_shop3: hmm, dash pot or electornic?
04:49 PM Tom_L: electronic probably
04:49 PM Tom_L: i need the well pump to build a little pressure before opening the valve
05:53 PM aandrew: wow
05:53 PM aandrew: openocd frustrates me
05:55 PM aandrew: the ftdi_layout_init config option says that the two parameters are "data" and "direction" with "direction" being 1 for output
05:56 PM aandrew: My FT2232H-56Q is wired up so that ADBUS0 = TCK, ADBUS1 = TDI (output), ADBUS2 = TDO (input) and ADBUS3 is TMS but that's not used since I'm doing SWD. I have TCK = SWDCK, TDO = SWDIO and TDI connected to TDO via 470R as the docs say
05:56 PM aandrew: ADBUS4-7 is NC on my design, and ACBUS0-7 has various outputs
05:57 PM aandrew: now the FTDI docs say that ACBUS4-7 is GPIOL0..3 and ADBUS0-7 is GPIOH0..7
05:57 PM aandrew: so since on my design ACBUS4-7 is NC, I set them to outputs driving low
05:58 PM aandrew: ftdi_layout_init 0xfa00 0xffff
05:59 PM aandrew: I have been fighting for the last few hours tryign to figure out why the signal on TDI is correct, TCK is correct but TDO is a super low version of TDI. removed everything on the board connected to SWDIO, no change, reflowed the FTDI chip - no change. Removed it to make sure there wasn't a short under it (there wasn't) - no change
06:00 PM aandrew: I even found another FT2232H-56Q chip (they're unobtanium but I have a few) and it has the same issue so definitely not the chip
06:00 PM aandrew: the board isn't shorted, the pin doesn't appear shorted (it'll draw about 18mA and that's it)
06:01 PM aandrew: just for shits and giggles, I change that ftdi_layout_init to 0xfa00 0xfffb (i.e. GPIOL2 is now an input) and now it's not driving low anymore
06:02 PM aandrew: WTF?! GPIOL0..3 is not supposed to be ACBUS0..3, it's supposed to be ACBUS4..7 in MPSSE mode
06:02 PM aandrew: so now at least it's not pulling anything down now, but it's also not working still, but at least it's reading all ones now, not all zeroes and the TDO pin is no longer a 0-0.9ish volt version of TDI
06:02 PM aandrew: so progress I guess?
08:46 PM rue_mohr: whoa 2404
08:52 PM Tom_L: see i set you a goal this morning :)
09:01 PM rue_mohr: ?
09:01 PM rue_mohr: oh ahah
09:01 PM rue_mohr: I read it wrong
09:03 PM Tom_itx: https://www.amazon.com/GAEYAELE-GRT8-2T-Double-DC12V-240V-DC12V-240V/dp/B07CJ15QM7/ref=sr_1_13?keywords=delay%2Bon%2Bmake%2Btimer&qid=1649641438&sr=8-13&th=1
09:03 PM Tom_L: so i need a delay on timer
09:03 PM Tom_L: when powered it will wait x min before turning on the load then remain on until unpowered
09:03 PM Tom_L: 24v
09:05 PM Tom_L: typical time would be 1-2 min
09:05 PM rue_mohr: ok, start delay
09:05 PM rue_mohr: k
09:05 PM rue_mohr: hmm
09:05 PM rue_mohr: 555
09:06 PM rue_mohr: ... have a 555?
09:06 PM Tom_L: no
09:06 PM rue_mohr: have any of your u2 baords?
09:06 PM Tom_L: i'm not going to build one
09:06 PM Tom_L: i put those toys away
09:06 PM rue_mohr: but someone needs them
09:06 PM rue_mohr: and its you...
09:06 PM Tom_L: for a sprinkler system
09:07 PM rue_mohr: yea
09:07 PM Tom_L: are they AC or DC?
09:07 PM Tom_L: the solonoids
09:07 PM Tom_L: probably DC
09:07 PM rue_mohr: usually AC
09:07 PM Tom_L: oh?
09:07 PM rue_mohr: I dont remember the typ voltage tho
09:07 PM rue_mohr: 16?
09:07 PM Tom_L: i can check one
09:07 PM rue_mohr: mmm
09:07 PM Tom_L: dunno the xfrmr is 24 i think
09:07 PM rue_mohr: oh, 24 then
09:08 PM Tom_L: i tried to find a 1" valve that would do it
09:08 PM Tom_L: i don't think they make one
09:08 PM Tom_L: lots of 'off time' valves
09:08 PM Tom_L: run for x and shut off
09:14 PM Tom_itx: https://www.amazon.com/EvertechPRO-Timers-Replacement-Universal-ICM105/dp/B08R31646Y/ref=sr_1_3?keywords=delay+on+make+timer&qid=1649641438&sr=8-3
09:14 PM Tom_L: would that work?
09:15 PM Tom_L: wrong voltage
09:18 PM Tom_L: maybe not, hard to read
09:27 PM Tom_L: checked... 24v AC
09:56 PM Tom_L: yeah i think that will work
10:03 PM rue_mohr: at the 120V level, then bring it down to 24 eh?
10:03 PM rue_mohr: but
10:03 PM rue_mohr: where is the input...
10:04 PM rue_mohr: maybe it... hmmmm
10:11 PM Tom_L: 24v
10:11 PM Tom_L: in and out the way it looks
10:12 PM Tom_L: it's an on delay for a furnace but should work
10:17 PM rue_shop3: I thought all things used the jtag mode for the 232H that was always the same?
10:17 PM rue_shop3: aandrew, I dont get why there isn't just a freaking jtag loopback test
10:19 PM rue_shop3: aandrew, sorry I'm working on testing that 1 bit cpu thru
10:19 PM rue_shop3: having some issues
10:38 PM rue_shop3: ugh, it looks like I have to sync the inputs and phawse back all the input selector fields
10:40 PM Tom_L: it was going so well...
10:43 PM rue_mohr: 2407...
10:43 PM rue_mohr: 8-|
10:44 PM Tom_L: within reach...
10:46 PM Tom_L: my yt have taken off for some reason
10:46 PM Tom_L: one has 5.2k
10:47 PM Tom_L: mustuv hit a nerve
10:50 PM rue_mohr: heh
10:53 PM Tom_L: fpga stuff have low numbers
10:54 PM Tom_L: heh, woodruff cutter 552
10:54 PM aandrew: rue_shop3: there is yes, but there are 12 I/O lines for a port in MPSSE mode, that's what those commands allow you to configure, but it looks like there's a bug in there
10:55 PM rue_mohr: so their doing more than just jtag
10:55 PM rue_mohr: so I hit an interesting issue with this 1 bit processor