Post Reply 
HP41CX "PRA" Misbehaving on TULIP
10-29-2024, 08:56 PM (This post was last modified: 10-29-2024 09:00 PM by rocket.scientist.)
Post: #1
HP41CX "PRA" Misbehaving on TULIP
I have set up my HP41CX with the TULIP interface + devboard with HP-IL module and Printer plugged in. I am running PYilper 1.8.9 with a virtual HP82162A configured ("Printer1", DID:(null), AID:20,Addr:(null)Status:Idle). Note printer address is null, which seems odd. Consider the steps and outputs below. Significant events are marked with lines that start with "**".

In the end the HP41CX displays "TRANSMISSION ERR" and nothing appears on the virtual printer. Note this same sequence works perfectly with a real HP82160 and HP82162A. I have something wrong in my TULIP build, or am missing a key step somewhere.

Any suggestions on what is going on?

TULIP Console
Code:

****************************************************************************
*      
*   Welcome to TULIP4041 - The ULtimate Intelligent Peripheral for the HP41 
*      
*   VERSION 00.01.05 BETA - build time: 2024/10/26_15:02:06
*      
*   Running at :  125.00 MHz
*   Total heap :  473.00 KBytes
*   Free heap  :  238.00 KBytes
*   Tracebuffer:  234.00 KBytes, 5000 samples = 48 bytes/traceline
*      
****************************************************************************
  CDC Port 2 [tracer] connected
  CDC Port 4 [IL Scope] connected
TULIP> system cdc
  CDC Port 1 [console]  connected? yes
  CDC Port 2 [tracer]   connected? yes
  CDC Port 3 [HP-IL]    connected? no
  CDC Port 4 [IL scope] connected? yes
  CDC Port 5 [printer]  connected? no
  CDC Port 3 [HPIL] connected
    WARNING: No virtual HP-IL device connected, HP-IL loop may be open
TULIP> tracer status
  HP41 tracer         enabled 
  system loop tracing enabled  (RSTKB, RST05, BLINK01 and debounce)
  system ROM tracing  enabled  (Page 0..5)
  tracing of IL roms  enabled  (Page 6+7)
  IL scope traffic    enabled 
  PILBox traffic      enabled 
  tracing of IL regs  enabled 
TULIP> plug status
  HP-IL Printer     Page 6
  HP82143 Printer   Page -
  HP-IL module      Page 7
TULIP> 

**start PYilper

PILBox mode changed to COFF / Controller OFF

**turn hp41CX on

**execute PRA

IL Scope
Code:

IL Scope CDC PORT connected

**start PYilper

PILBox < 0497 *COFF   hi: 32 lo: 97  [    1605]

**turn hp41CX on

> 623 IDY                           [    1667]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    1667]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    1670]
 < 623 IDY                           [    1670]
 > 623 IDY                           [    1816]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    1817]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    1819]
 < 623 IDY                           [    1819]
 > 623 IDY                           [    1967]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    1967]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    1969]
 < 623 IDY                           [    1970]
 > 623 IDY                           [    2114]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    2114]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    2116]
 < 623 IDY                           [    2117]
 > 623 IDY                           [    2263]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    2263]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    2265]
 < 623 IDY                           [    2266]
 > 623 IDY                           [    2412]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    2412]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    2420]
 < 623 IDY                           [    2420]
 > 623 IDY                           [    2562]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    2563]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    2565]
 < 623 IDY                           [    2566]
 > 623 IDY                           [    2712]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    2713]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    2716]
 < 623 IDY                           [    2717]
 > 623 IDY                           [    2858]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    2859]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    2862]
 < 623 IDY                           [    2863]
 > 623 IDY                           [    3008]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    3008]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    3011]
 < 623 IDY                           [    3011]
 > 623 IDY                           [    3157]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    3158]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    3160]
 < 623 IDY                           [    3160]
 > 623 IDY                           [    3307]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    3308]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    3310]
 < 623 IDY                           [    3310]
 > 623 IDY                           [    3454]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    3455]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    3457]
 < 623 IDY                           [    3458]
 > 623 IDY                           [    3603]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    3604]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    3606]
 < 623 IDY                           [    3607]
 > 623 IDY                           [    3753]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    3753]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    3756]
 < 623 IDY                           [    3756]
 > 623 IDY                           [    3903]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    3903]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    3905]
 < 623 IDY                           [    3906]
 > 623 IDY                           [    4052]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    4053]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    4055]
 < 623 IDY                           [    4056]
 > 623 IDY                           [    4200]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    4200]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    4204]
 < 623 IDY                           [    4204]
 > 623 IDY                           [    4348]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    4349]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    4351]
 < 623 IDY                           [    4352]
 > 623 IDY                           [    4499]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    4499]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    4501]
 < 623 IDY                           [    4502]
 > 623 IDY                           [    4647]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    4648]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    4650]
 < 623 IDY                           [    4651]
 > 623 IDY                           [    4796]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    4796]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    4799]
 < 623 IDY                           [    4799]
 > 623 IDY                           [    4945]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    4946]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    4948]
 < 623 IDY                           [    4949]
 > 623 IDY                           [    5093]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    5094]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    5096]
 < 623 IDY                           [    5097]
 > 623 IDY                           [    5243]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    5244]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    5246]
 < 623 IDY                           [    5246]
 > 623 IDY                           [    5392]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    5393]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    5395]
 < 623 IDY                           [    5396]
 > 623 IDY                           [    5543]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    5543]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    5546]
 < 623 IDY                           [    5546]
 > 623 IDY                           [    5690]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    5690]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    5693]
 < 623 IDY                           [    5693]
 > 623 IDY                           [    5838]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    5839]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    5841]
 < 623 IDY                           [    5842]
 > 623 IDY                           [    5988]
  PILBox > 0623 IDY   hi: 38 lo: A3  [    5989]
  PILBox < 0623 IDY   hi: 38 lo: A3  [    5991]
 < 623 IDY                           [    5992]

**execute PRA

**no further output

PYilper Scope
Code:

pyILPER 1.8.9 Scope

**start PYilper

**power on HP-41CX

IDY 23 (623) idy 23 (623) IDY 23 (623) idy 23 (623) IDY 23 (623) idy 23 (623)
IDY 23 (623) idy 23 (623) IDY 23 (623) idy 23 (623) IDY 23 (623) idy 23 (623)
IDY 23 (623) idy 23 (623) IDY 23 (623) idy 23 (623) IDY 23 (623) idy 23 (623)
IDY 23 (623) idy 23 (623) IDY 23 (623) idy 23 (623) IDY 23 (623) idy 23 (623)
IDY 23 (623) idy 23 (623) IDY 23 (623) idy 23 (623) IDY 23 (623) idy 23 (623)
IDY 23 (623) idy 23 (623) IDY 23 (623) idy 23 (623) IDY 23 (623) idy 23 (623)
IDY 23 (623) idy 23 (623) IDY 23 (623) idy 23 (623) IDY 23 (623) idy 23 (623)
IDY 23 (623) idy 23 (623) IDY 23 (623) idy 23 (623) IDY 23 (623) idy 23 (623)
IDY 23 (623) idy 23 (623) IDY 23 (623) idy 23 (623) IDY 23 (623) idy 23 (623)
IDY 23 (623) idy 23 (623) IDY 23 (623) idy 23 (623) IDY 23 (623) idy 23 (623)

**execute PRA

IDY 00 (600) idy 00 (600) IFC    (490) ifc    (490) RFC    (500) rfc    (500)
RFC    (500) rfc    (500)
Find all posts by this user
Quote this message in a reply
10-30-2024, 04:48 AM (This post was last modified: 10-30-2024 04:59 AM by Craig Bladow.)
Post: #2
RE: HP41CX "PRA" Misbehaving on TULIP
With the same terminal windows and plug in modules I see the following in the TULIP console when I launch pyILPER which differs from what you posted.

Code:

*** pyILPER launched ***
  CDC Port 3 [HPIL] connected                                                   
   WARNING: No virtual HP-IL device connected, HP-IL loop may be open          
  PILBox mode changed to COFF / Controller OFF                                  
  PILBox mode changed to COFI / Controller OFF with IDY

pyILPER ILScope Turning on the 41 and executing PRA after pyILPER connects.
Code:

** 41c power on **
IFC     RFC     RFC     AAU     RFC     RFC     AAD 01  TAD 01  RFC
RFC     SAI     DAB 2E  UNL     RFC     RFC     LAD 01  RFC     RFC
UNL     RFC     RFC
**** PRA ****
AAU     RFC     RFC     AAD 01  TAD 01  RFC
RFC     SAI     DAB 2E  LAD 01  RFC     RFC     UNL     RFC     RFC
AAU     RFC     RFC     AAD 01  TAD 01  RFC     RFC     SAI     DAB 2E
LAD 01  RFC     RFC     DAB 54  DAB 55  DAB 4C  DAB 49  DAB 50  DAB 34
DAB 30  DAB 34  DAB 31  DAB 0D  DAB 0A  UNL     RFC     RFC

pyILPER Printer1 shows the expected alpha register output from PRA which was, "TULIP4041" and no TRANSMISSION ERR occurs.

EDIT: It turns out I didn't enable the console hpil tracing so here is that data.
Code:

*** Launch pyILPER ***
*** Power On ****
 > 623 IDY                           [     232]         
 < 623 IDY                           [     251]         
 > 490 IFC                           [     286]         
 < 490 IFC                           [     296]         
 > 500 RFC                           [     297]
 < 500 RFC                           [     304]
 > 600 IDY                           [     353]
 < 600 IDY                           [     367]
 > 49A AAU                           [     378]
 < 49A AAU                           [     387]
 > 500 RFC                           [     387]
 < 500 RFC                           [     442]
 > 581 AAD                           [     454]
 < 583 AAD                           [     534]
 > 441 TAD                           [     582]
 < 441 TAD                           [     603]                                 
 > 500 RFC                           [     603]                                 
 < 500 RFC                           [     623]                                 
 > 563 SAI                           [     645]                                 
 < 02E DAB                           [     654]                                 
 > 02E DAB                           [     676]                                 
 < 540 ETO                           [     684]                                 
 > 43F UNL                           [     853]                                 
 < 43F UNL                           [     877]                                 
 > 500 RFC                           [     877]                                 
 < 500 RFC                           [     884]                                 
 > 421 LAD                           [     941]                                 
 < 421 LAD                           [    1018]                                 
 > 500 RFC                           [    1018]                                 
 < 500 RFC                           [    1032]                                 
 > 43F UNL                           [    1079]                                 
 < 43F UNL                           [    1088]                                 
 > 500 RFC                           [    1088]                                 
 < 500 RFC                           [    1186]

*** PRA ***
 > 640 IDY                           [    1275]                                 
 < 640 IDY                           [    1281]                                 
 > 49A AAU                           [    1296]                                 
 < 49A AAU                           [    1307]                                 
 > 500 RFC                           [    1307]                                 
 < 500 RFC                           [    1323]                                 
 > 581 AAD                           [    1333]                                 
 < 583 AAD                           [    1343]                                 
 > 441 TAD                           [    1389]                                 
 < 441 TAD                           [    1438]                                 
 > 500 RFC                           [    1438]                                 
 < 500 RFC                           [    1463]                                 
 > 563 SAI                           [    1484]                                 
 < 02E DAB                           [    1499]                                 
 > 02E DAB                           [    1520]                                 
 < 540 ETO                           [    1533]                                 
 > 421 LAD                           [    1614]                                 
 < 421 LAD                           [    1670]                                 
 > 500 RFC                           [    1670]                                 
 < 500 RFC                           [    1705]                                 
 > 43F UNL                           [    1741]                                 
 < 43F UNL                           [    1756]                                 
 > 500 RFC                           [    1757]                                 
 < 500 RFC                           [    1773]                                 
 > 640 IDY                           [    1995]                                 
 < 640 IDY                           [    2001]                                 
 > 49A AAU                           [    2012]                                 
 < 49A AAU                           [    2034]                                 
 > 500 RFC                           [    2034]                                 
 < 500 RFC                           [    2047]                                 
 > 581 AAD                           [    2057]                                 
 < 583 AAD                           [    2062]                                 
 > 441 TAD                           [    2108]                                 
 < 441 TAD                           [    2188]                                 
 > 500 RFC                           [    2189]                                 
 < 500 RFC                           [    2202]                                 
 > 563 SAI                           [    2219]                                 
 < 02E DAB                           [    2244]                                 
 > 02E DAB                           [    2262]                                 
 < 540 ETO                           [    2350]                                 
 > 421 LAD                           [    2432]                                 
 < 421 LAD                           [    2446]                                 
 > 500 RFC                           [    2446]                                 
 < 500 RFC                           [    2463]                                 
 > 054 DAB                           [    2694]                                 
 < 054 DAB                           [    2720]                                 
 > 055 DAB                           [    2775]                                 
 < 055 DAB                           [    2803]                                 
 > 04C DAB                           [    3010]                                 
 < 04C DAB                           [    3027]                                 
 > 049 DAB                           [    3085]                                 
 < 049 DAB                           [    3114]                                 
 > 050 DAB                           [    3172]                                 
 < 050 DAB                           [    3188]                                 
 > 034 DAB                           [    3242]                                 
 < 034 DAB                           [    3358]                                 
 > 030 DAB                           [    3414]                                 
 < 030 DAB                           [    3423]                                 
 > 034 DAB                           [    3477]                                 
 < 034 DAB                           [    3488]                                 
 > 031 DAB                           [    3541]                                 
 < 031 DAB                           [    3663]                                 
 > 00D DAB                           [    3702]                                 
 < 00D DAB                           [    3715]                                 
 > 00A DAB                           [    3746]                                 
 < 00A DAB                           [    3759]                                 
 > 43F UNL                           [    3785]                                 
 < 43F UNL                           [    3826]                                 
 > 500 RFC                           [    3826]                                 
 < 500 RFC                           [    3832]

Try CC41!
Find all posts by this user
Quote this message in a reply
10-30-2024, 09:29 AM
Post: #3
RE: HP41CX "PRA" Misbehaving on TULIP
Best check the ILPer configuration, and if the printer is enabled. Try to reconnect ILPer. In the TULIP ILScope the connection should be confirmed. You receive COFF and that should be echoed.
Will try to replicate tomorrow

Regards, Meindert
Find all posts by this user
Quote this message in a reply
10-30-2024, 01:16 PM
Post: #4
RE: HP41CX "PRA" Misbehaving on TULIP
Thanks for the responses. I re-checked "Enable IDY frames" in PYilper and see the "PILBox mode changed to COFI / Controller OFF with IDY" status in the console interface.

I've tried this PRA scenario both ways with little change in behavior. I'm really starting to believe either 1) I am missing something obvious in my virtual setup, or 2) I messed something devious up when I built my TULIP. This seems specific to my TULIP build since physical HPIL devices work perfectly, and nobody else is reporting these issues.

I did find U5 behaved oddly when I put a scope on it. It wasn't "not" working, but still odd. For now I have JP2 pulled and U5 pin 3 lifted. Per the schematic this takes the U5 logic out of the picture. I have ordered replacements.

I can't see where monitoring FI is critical to the TULIP HPIL function, but I'll ask to be sure. Is FI monitoring important here?
Find all posts by this user
Quote this message in a reply
10-30-2024, 01:53 PM
Post: #5
RE: HP41CX "PRA" Misbehaving on TULIP
(10-30-2024 01:16 PM)rocket.scientist Wrote:  I did find U5 behaved oddly when I put a scope on it. It wasn't "not" working, but still odd. For now I have JP2 pulled and U5 pin 3 lifted. Per the schematic this takes the U5 logic out of the picture. I have ordered replacements.

I can't see where monitoring FI is critical to the TULIP HPIL function, but I'll ask to be sure. Is FI monitoring important here?

No, the U5 is "only" used to let the Pico read back the FI line (used for tracing), it is not used to drive or interfere with the 41 bus in any way, only to read the state if another device - apart from Tulip - should drive the line.
If (and only if) the U5 is broken and somehow interfere with the bus then the behavior is unpredictable.

I.e. you should be able to use the Tulip board without the U5 even mounted and only loose the ability to trace the FI line - but no other feature or functionality should be affected.

With that said, the HPIL uses the FI line to flag it's state to the 41, so if FI fails somehow, then the HPIL will most probably fail as well.

At least AFAIK ...

Cheers,
Thomas

[35/45/55/65/67/97/80 21/25/29C 31E/32E/33E|C/34C/38E 41C|CV|CX 71B 10C/11C/12C/15C|CE/16C 32S|SII/42S 28C|S 48GX/49G/50G 35S 41X]
Find all posts by this user
Quote this message in a reply
10-30-2024, 03:54 PM
Post: #6
RE: HP41CX "PRA" Misbehaving on TULIP
!!! GOT IT !!!

I have been chasing a dodgy waveform on FI, specifically U5 pins 2&3; when all along I had a dodgy solder joint on U3 pin 11 - FI-HP41.

I am going to officially call my latest diagnostic technique "Bowling with Bumpers". My thanks to everyone for keeping me focused on finding what was really going on.

I stand before giants.
Find all posts by this user
Quote this message in a reply
10-30-2024, 04:15 PM
Post: #7
RE: HP41CX "PRA" Misbehaving on TULIP
Congrats!

I will take your experience as a warning if/when I run into trouble....
I have mine all soldered up, but had not time yet to start playing with it, nor I will for a couple of weeks, so I'll console myself with the thought that you and other early adopters will flag all the early bugs by the time I get to it...

Juan
Find all posts by this user
Quote this message in a reply
10-31-2024, 08:50 AM
Post: #8
RE: HP41CX "PRA" Misbehaving on TULIP
As Thomas correctly said, U5 is for FI input only, and is not critical for the TULIP operation. But FI is important for modules that use it, and the HP-IL module is one.
Glad to hear that the problem is now fixed

Regards, Meindert
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)