This here is the code from the 7MGE
and the code from the 1G
ld #07h, $1Fh ; Mode control Register
di
ld #01h, $20h ; Port A Data Register
ld #0Fh, $00h ; Port A i/o config
ld #40h, $22h ; Port B Data Register
ld #0FFh, $01h ; Port B i/o config
Thanks to Brutus & 3Ps work my task is a little easier as these two ECUs look to be Structured alike.
what documentation are you using for the ECU operation I have the basic Toshiba 8x info is there anything else ?
Brutus;1054312 said:
ld #0x7, $0x1F // Sets the five least significant bit of the SMR register to 1
di // Disable interrupts
ld #0xD, $0x20 // inits the timer comparison LSB with the port A data (?)
ld #0xF, $0x0 // inits the timer comparison #3 with the port A direction status (?)
ld #0x40, $0x22// Sets the first byte of the RAM with the port B data
ld #0xFF, $0x1 // Sets the last byte of the RAM with the port B direction status
and the code from the 1G
ld #07h, $1Fh ; Mode control Register
di
ld #01h, $20h ; Port A Data Register
ld #0Fh, $00h ; Port A i/o config
ld #40h, $22h ; Port B Data Register
ld #0FFh, $01h ; Port B i/o config
Thanks to Brutus & 3Ps work my task is a little easier as these two ECUs look to be Structured alike.
what documentation are you using for the ECU operation I have the basic Toshiba 8x info is there anything else ?