Welcome, Guest. Please login or register.

Author Topic: Hardware pin on an A500 to toggle via assembly  (Read 1162 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline kamigaTopic starter

  • Full Member
  • ***
  • Join Date: Oct 2005
  • Posts: 165
    • Show only replies by kamiga
Hardware pin on an A500 to toggle via assembly
« on: January 03, 2014, 07:58:23 PM »
I'm doing some troubleshooting for the replacement A501 card I'm designing and I could use some help.

http://techtravels.org for details on the project(s)

I could really use a hardware pin(or two) to toggle through assembly, and it's not immediately clear to me what's available that would be both easy to call from assembly AND not be disruptive to normal OS processes.

The idea here is that I have some VERY rudimentary memory tests implemented in assembly, and I'd like to trigger my logic analyzer on error or success.

Maybe a pin from the parallel port?

Ideally, there won't be any complicated chip-setup procedure, os libraries to load, or anything.

If I could just add/mov a 1 or a 0 into an address, that would be perfect.

Thanks
kamiga
 

Offline psxphill

Re: Hardware pin on an A500 to toggle via assembly
« Reply #1 on: January 04, 2014, 12:08:39 AM »
Quote from: kamiga;756184
Maybe a pin from the parallel port?
 
Ideally, there won't be any complicated chip-setup procedure, os libraries to load, or anything.
 
If I could just add/mov a 1 or a 0 into an address, that would be perfect.

Parallel port is simplest, you just need a couple of move.b to set the port to output and write a byte to the port.
 

Offline RedskullDC

  • Full Member
  • ***
  • Join Date: Sep 2003
  • Posts: 136
    • Show only replies by RedskullDC
Re: Hardware pin on an A500 to toggle via assembly
« Reply #2 on: January 04, 2014, 09:55:43 AM »
Hi Kamiga,

Quote from: kamiga;756184


The idea here is that I have some VERY rudimentary memory tests implemented in assembly, and I'd like to trigger my logic analyzer on error or success.

Maybe a pin from the parallel port?

Ideally, there won't be any complicated chip-setup procedure, os libraries to load, or anything.

If I could just add/mov a 1 or a 0 into an address, that would be perfect.


If you are just testing the memory functionality (RTC appears to work, I just had a look at your web page), you could use the _CLKRD pin (GARY pin 22) as a strobe for your analyser?

Only requires reading the appropriate address range, no lib calls etc. $00DC0001

Cheers,
Red
Redskull @ Digital Corruption
A500, 4000/060-75MHz
WinUAE on Windows7-X64Ult
Minimig DE1
-------------------------
 

Offline kamigaTopic starter

  • Full Member
  • ***
  • Join Date: Oct 2005
  • Posts: 165
    • Show only replies by kamiga
Re: Hardware pin on an A500 to toggle via assembly
« Reply #3 on: January 05, 2014, 06:22:44 AM »
Thanks for the replies.

Yes, I'll give the RTC method a try.  So far, everything is passing, and so there's no errors to catch. :)