//stuck on timer wait, inside interrupt level 6 handler

PCR
TYPE RESET
Peripheral Control Register 0x(FF)FFF003

PCR T field could be set to use timer chaining

CPU wrote 16 bits of 0x00000000 to register 0x60A, PC 0x10083BF0.

#define kChannelSet1		\
	kChannelTemp0,			\
	kChannelPenY,			\
	kChannelBattery7846,	\
	kChannelUnused,			\
	kChannelUnused,			\
	kChannelPenX,			\
	kChannelDockTwister,	\
	kChannelTemp1

CPU read 8 bits from register 0x0431, PC 0x100815B2.
CPU read 8 bits from register 0x0420, PC 0x100815B8.
CPU read 8 bits from register 0x0421, PC 0x100815BE.
SPI2 transfer, ENABLE:true, XCH:false, IRQ:false, IRQEN:false, BITCOUNT:12 //XCH false, does  nothing
SPI2 transfer, ENABLE:true, XCH:true, IRQ:false, IRQEN:false, BITCOUNT:12
SPI2 transfer, ENABLE:true, XCH:false, IRQ:false, IRQEN:false, BITCOUNT:5 //XCH false, does  nothing
SPI2 transfer, ENABLE:true, XCH:true, IRQ:false, IRQEN:false, BITCOUNT:5
SPI2 transfer, ENABLE:true, XCH:false, IRQ:false, IRQEN:false, BITCOUNT:16 //XCH false, does  nothing
SPI2 transfer, ENABLE:true, XCH:true, IRQ:false, IRQEN:false, BITCOUNT:16
SPI2 transfer, ENABLE:true, XCH:true, IRQ:false, IRQEN:false, BITCOUNT:3
SPI2 transfer, ENABLE:false, XCH:false, IRQ:false, IRQEN:false, BITCOUNT:1 //XCH false, does  nothing
CPU read 8 bits from register 0x0431, PC 0x10081A04.

CPU read 8 bits from register 0x0431, PC 0x100815B2.
CPU read 8 bits from register 0x0420, PC 0x100815B8.
CPU read 8 bits from register 0x0421, PC 0x100815BE.


//copilots SPI touch code
	case SPIMCONT:
		db_SPIMCONT.x = value;
		if (db_SPIMCONT.anon.XCH && db_SPIMCONT.anon.IRQEN) {
			db_SPIMCONT.anon.SPIMIRQ = 1;
			db_SPIMCONT.anon.XCH = 0;
			switch (db_PFDATA.x & 0x0f) {
			case 0x6:
				db_SPIMDATA.x = (0xff - CustShptr->penx) * 2;
				break;
			case 0x9:
				db_SPIMDATA.x = (0xff - CustShptr->peny) * 2;
				break;
			}
		}
		break;