[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference 7.286::atarist

Title:Atari ST, TT, & Falcon
Notice:Please read note 1.0 and its replies before posting!
Moderator:FUNYET::ANDERSON
Created:Mon Apr 04 1988
Last Modified:Tue May 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1433
Total number of notes:10312

745.0. "Centronics port address" by EVTAI1::LEGER (Vous avez dit GRAPHIQUE ?) Wed Jan 24 1990 09:20

    
    Hello,
    
    Please, does anybody know the address of Centronics printer port?
    I need to use it without the printer driver for test purpose.
    
    						Thanks,
    						Jean-claude.
    
T.RTitleUserPersonal
Name
DateLines
745.1Is this what you wantUKCSSE::RDAVIESLive long and prosperWed Jan 24 1990 10:2727
    Happen to have the ST programmers reference to hand:
    
    The parrallel port is actually found on the yamaha sound chip (PSG)!
    Addresses $FF8800 relevent registers:
    offset(hex)	register	
    	7	mixer control/I/O enable
    	E	I/O port A
    
    Data is written to to a device as follows:
    	select enable register (mixer)
    	set bit 6 to a '1' (set I/O port to output)
    	select I/O port A data store
    	write data to PSG
    	note once data is loaded into the register it remains there until
    further data is loaded, or the system is reset, or the register is
    switched to input mode.
    
    Data is read from a device as follows:
    	select enable register (mixer)
    	set bit 6 to a '0' (set I/O port to input)
    	select I/O port A data store
    	read data from PSG
    	The register follows signals applied to the port, only by reading
    will the data be transfered to the internal bus.
    
    
    Richard
745.2SupervisorSUBURB::JAMESHLeft Handed People are SUPER NaturalThu Jan 25 1990 11:065
    Don't forget to be in Supervisor mode. It's a useful port is that.
    I use it to output to a printer, a plotter and input from a keyboard
    and a 4 bit F/D converter to produce a picture. Now all I need is
    a 4 way switch!!
    ...Howard
745.3thanksEVTAI1::LEGERVous avez dit GRAPHIQUE ?Thu Jan 25 1990 11:334
    
    	Thanks a lot for your help.
    
    			Jean-claude.