#define _PAGE_ Port pin assignments #include "head.t"

Port A

Port pin Player Recorder FM/V2 Recorder
PA0 GP InDC adapter detect (0=inserted) /CS4MAS Parallel Port (for recording) /CS4MAS Parallel Port (for recording)
PA1 /RAS OutDRAM control /RAS OutDRAM control /RAS OutDRAM control
PA2 /CS6 OutATA registers /CS6 OutATA registers /CS6 OutATA registers
PA3 /WAIT InBus handshake /WAIT InBus handshake /WAIT InBus handshake
PA4 /WR OutBus write signal /WR OutBus write signal /WR OutBus write signal
PA5 GP InON key (0=pressed) GP OutATA power control (1=on) GP OutATA/LED power control (1=on)
PA6 /RD OutBus read signal /RD OutBus read signal /RD OutBus read signal
PA7 GP OutATA buffer control (0=active) GP OutATA buffer control (0=active) GP OutATA buffer control (0=active)
PA8    GP OutMAS POR Reset (polarity varies) GP OutMAS POR Reset (polarity varies)
PA9 GP OutATA Reset (0=reset) GP OutATA Reset (0=reset) GP OutATA Reset (0=reset)
PA10 GP OutUSB Enable (0=enable) GP OutUSB Enable (polarity varies) GP OutUSB Enable (polarity varies)
PA11 GP InSTOP key (0=pressed) GP OutMAS PR DMA Request (polarity varies) GP OutMAS PR DMA Request (polarity varies)
PA12 /IRQ0ATA INTRQ (not used) /IRQ0ATA INTRQ (not used) /IRQ0ATA INTRQ (not used)
PA13    /IRQ1RTC IRQ   
PA14 GP OutBacklight (1=on) GP InNot used   
PA15 GP InUSB cable detect (0=inserted) /IRQ3MAS Demand IRQ, start demand /IRQ3MAS Demand IRQ, start demand

Port B

Port pin Player Recorder FM/V2 Recorder
PB0 GP OutLCD Data Select (1=data) GP OutLCD Serial Data GP OutLCD Serial Data / FM Radio Data In
PB1 GP OutLCD Chip Select (0=active) GP OutLCD Serial Clock GP OutLCD Serial Clock / FM Radio Serial Clock
PB2 GP OutLCD Serial Data GP OutLCD Data Select (1=data) GP OutLCD Data Select (1=data)
PB3 GP OutLCD Serial Clock GP OutLCD Chip Select (0=active) GP OutLCD Chip Select (0=active) / FM Radio Chip Enable (1=active)
PB4 GP OutHard disk power (0=on) NewPlayer only GP InOFF key (0=pressed) GP InFM Radio Data Out
PB5 GP OutMAS WSEN (1=enable) GP OutCharger control (0=enable) GP OutMain power control (0=shut off)
PB6 GP OutRed LED control (1=on) GP OutRed LED control (1=on) GP OutRed LED control (1=on)
PB7 GP I/OI²C Data GP OutI²C Data GP OutI²C Data
PB8         
PB9 TxD0MAS Serial link for MP3 data TxD0MAS Serial link for MP3 data TxD0MAS Serial link for MP3 data
PB10 RxD1Remote control serial input RxD1Remote control serial input Unused(meant for RDS data input, IIRC)
PB11         
PB12 SCK0MAS Serial Clock for MP3 data SCK0MAS Serial Clock for MP3 data SCK0MAS Serial Clock for MP3 data
PB13 GP OutI²C Clock GP OutI²C Clock GP OutI²C Clock
PB14 /IRQ6MAS Demand IRQ, stop demand /IRQ6MAS Demand IRQ, stop demand /IRQ6MAS Demand IRQ, stop demand
PB15 GP InMAS MP3 frame sync GP InMAS PRTW input (0=ready) GP InMAS PRTW input (0=ready)

Port C/Analog In

Port pin Player Recorder FM/V2 Recorder
PC0/AN0 LEFT key Battery voltage 1 (unusable)  
PC1/AN1 MENU key Charger regulator voltage USB detect
PC2/AN2 RIGHT key USB voltage OFF key
PC3/AN3 PLAY key   ON key
PC4/AN4   F1, F2, F3, UP keys F1, F2, F3, UP keys
PC5/AN5   DOWN, PLAY, LEFT, RIGHT keys DOWN, PLAY, LEFT, RIGHT keys
PC6/AN6 Battery voltage Battery voltage Battery voltage
PC7/AN7 DC input voltage DC input voltage DC input voltage
#include "foot.t"