* Micro controller
- 8-bit turbo 8032 high performance micro controller.
- Instruction-set compatible with MCS52
- Built-in internal 373 and 8-bit programmable lower address port.
- Additional instruction DEC DPTR
- Three 16-bit timers
- Eight three-level-prioritized interrupt sources
- Full duplex serial port
- Boolean Processor
- Programmable operating clock for high speed and sleep mode application
- 256-bytes on-chip RAM.
- 256k address space for external program memory
- Programmable Watchdog Timer
- Two 16-bit Data pointers
- High-speed Architecture.
- 4 clock/machine cycle. (Standard 8051 =12)
- Running up to 40 MHz
- Supports up to 256K bytes FLASH-programming interface.
- Supports 5/3.3-Volt. FLASH.
- Supports ICE mode.
- Supports power-down mode.
- Supports additional serial port
This information is from the mediatek site for the MT1328 DVD Controller (
http://www.mtk.com.tw/product-lines.htm)
This isn't the MT1359 in our 360 dvd-rom but i am going to assume some of this might be true for it
So to calculate the baud
TH1 = Oscillator speed / Clocks per Oscillator Cycle / 32 / Desired Baud Rate
before i was using 12 clock per machine cycle
TH1 = 40000000 / 4 / 32 / 9600
or
TH1 = 25000000 / 4 / 32 / 9600
I am having trouble geting output with these settings though. I am a little confused. I don't normally use asm. i hope i didn't burn out its serial port because the last few flashes i have tried didn't receive anything from the serial port. That could just be due to the me using incorrect setting or a bug in my code.
here is a interesting pdf with max232 wiring and help testing out the serial port
http://www.8052.com/users/jonled/RS232gd.pdf