W65C265 Multiplexed Pins (PIB and UART3) - Custom Board
Re: W65C265 Multiplexed Pins (PIB and UART3) - Custom Board
BigEd wrote:
Jmstein7 wrote:
... but then I read 265iromlist (cleaned up by Andrew Jacobs), which gives the code for the internal rom...
Re: W65C265 Multiplexed Pins (PIB and UART3) - Custom Board
BigEd wrote:
Thanks!
Re: W65C265 Multiplexed Pins (PIB and UART3) - Custom Board
Ha ha - all well thanks - holiday/vacation, friends, family, walking...
Re: W65C265 Multiplexed Pins (PIB and UART3) - Custom Board
BigEd wrote:
Ha ha - all well thanks - holiday/vacation, friends, family, walking...
Jonathan
Re: W65C265 Multiplexed Pins (PIB and UART3) - Custom Board
Jmstein7 wrote:
Okay, I've got it running at FCLK 6mhz with Port 3 at 115200 at boot. I'm still using the external clock for Timer 4. For some reason, I can't get FCLK over 6mhz. I just get garbage if I try.
Jonathan
Jonathan
The ROM monitor listing has calculations for FCLK =< 6.144 Mhz, and bps =<57600.
Page 30 of the w65c265 datasheet v2.1 has the formula to get the values to program the timers for arbitrary FCLK and bps.
Re: W65C265 Multiplexed Pins (PIB and UART3) - Custom Board
tokafondo wrote:
I don't know how you managed to get Port 3 to run at 115200 at boot.
Re: W65C265 Multiplexed Pins (PIB and UART3) - Custom Board
Does your custom rom contain values for calculating FCLK over 6 mhz and corresponding baud rates?
The internal rom will default to 3.68 mhz on error.
BTW congrats!
Cheers, Andy
The internal rom will default to 3.68 mhz on error.
BTW congrats!
Cheers, Andy
Re: W65C265 Multiplexed Pins (PIB and UART3) - Custom Board
handyandy wrote:
Does your custom rom contain values for calculating FCLK over 6 mhz and corresponding baud rates?
The internal rom will default to 3.68 mhz on error.
BTW congrats!
Cheers, Andy
The internal rom will default to 3.68 mhz on error.
BTW congrats!
Cheers, Andy
Great question! My ROM doesn't need to do that because I made FCLK independent of the baud rate. I use TIN on P60 to connect an oscillator for Timer 4. In my case, 1.8432mhz. That is what it uses to set the baud rate. Therefore, you can use whatever FCLK you desire.
Jonathan
- Sheep64
- In Memoriam
- Posts: 311
- Joined: 11 Aug 2020
- Location: A magnetic field
Re: W65C265 Multiplexed Pins (PIB and UART3) - Custom Board
I presume that you want to re-assemble the W65C265's monitor program but with UART not clashing. I understand that the monitor looks for a magic string at $8000 and then runs an external program. If you're not using the region from $8000-$DEFF, it might be quicker and easier to run a patched copy of the monitor from external ROM. It might also be desirable to use an external UART.
Re: W65C265 Multiplexed Pins (PIB and UART3) - Custom Board
Sheep64 wrote:
I presume that you want to re-assemble the W65C265's monitor program but with UART not clashing. I understand that the monitor looks for a magic string at $8000 and then runs an external program. If you're not using the region from $8000-$DEFF, it might be quicker and easier to run a patched copy of the monitor from external ROM. It might also be desirable to use an external UART.
Re: W65C265 Multiplexed Pins (PIB and UART3) - Custom Board
Okay, here she is!
I found two errors, but they were simple to fix with two wires and some solder.
Testing her like crazy!
Testing her like crazy!
Re: W65C265 Multiplexed Pins (PIB and UART3) - Custom Board
I would have hoped for a 65256 chip version that has lots of internal RAM and boots from SPI flash, so all IO pins would be available instead of having to sacrifice them for the system bus
Author of the GeckOS multitasking operating system, the usb65 stack, designer of the Micro-PET and many more 6502 content: http://6502.org/users/andre/
Re: W65C265 Multiplexed Pins (PIB and UART3) - Custom Board
fachat wrote:
I would have hoped for a 65256 chip version that has lots of internal RAM and boots from SPI flash, so all IO pins would be available instead of having to sacrifice them for the system bus
Re: W65C265 Multiplexed Pins (PIB and UART3) - Custom Board
fachat wrote:
I would have hoped for a 65256 chip version that has lots of internal RAM and boots from SPI flash, so all IO pins would be available instead of having to sacrifice them for the system bus