Hi Floobydust
floobydust wrote:
Yes, that does seem somewhat strange. Perhaps you have some odd hardware things going on and the NOP before COLDSTRT allows for some settling time. Do you have any trigger on the NMI line perhaps? On a hardware reset, that might be a problem, but not knowing your hardware, it's just a guess.
NOP Isn't even being executed, I did wonder if somehow thing up above COLDSTRT were being executed so I put a couple of STP opcodes there but they had no effect
I don't have anything connected to NMI besides it's pull-up resistor
Quote:
I use a SCC2691 UART on my SBC. I also init the counter/timer for a 100Hz jiffyclock. I use $4800 for the init value, while yours in $2400. I looked at the datasheet specifically for that, and the mode you're using looks to be the same as mine (ACR bits 6:4 set to 110), so I would expect your jiffyclock to be 50ms rather than 100ms... unless I'm missing something.
I have it set to $2400 because I was too cheap to buy a new oscillator when I switched to the duart, so it's running with a 1.8432Mhz crystal instead of a 3.6864 Mhz Crystal as per the datasheet, I should check how long between reset -> uart init and check that I'm giving the uart enough time to reset - I guess with the halved clock it might take longer
Quote:
Simple side note... after setting the stack with LDX #$FF, TXS... you can just do an INX which will set the X reg to zero, saves a byte of code vs LDX #$00
Ah nice!
Quote:
Can you point to a hardware schematic for your setup?
Yep, the Schematics are
here the UART is in
io.pdf The schematics show the main oscillator as being 5Mhz but I'm running with a 10Mhz can now