Page 17 of 60
Re: TF CD32 Riser Revision 2 Design Complete
Posted: 05 Jun 2020 21:19
by terriblefire
Yes except the address is just one pin between the CPLD and ARM. One pin for Mouse, One pin for Joypad1 and another for joypad2. Thats it unless we want to try and inplement flashfloppy.
The reason we dont always make it decode these is incase someone wants to put a real mouse or joypad in the machine.
EDIT: Keyboard will work without the CPLD at all. Keyboard is wired direct to the arm on rev1.
Re: TF CD32 Riser Revision 2 Design Complete
Posted: 06 Jun 2020 16:28
by terriblefire
I pulled the latest code from the repo and i get a hardfault every time? Needs the cap?
Re: TF CD32 Riser Revision 2 Design Complete
Posted: 06 Jun 2020 16:33
by arkadiusz.makarenko
@terriblefire
Hi Yes add the cap (I added 10uF as I didn't have 4.7uF), or change this in main
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE3);
to this
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
or comment it out altogether.
I was playing with power settings and forgot to change it back.
Re: TF CD32 Riser Revision 2 Design Complete
Posted: 06 Jun 2020 17:18
by terriblefire
Added the cap and now i have working USB keyboard :)
right so you need a way to override individual memory locations?
Re: TF CD32 Riser Revision 2 Design Complete
Posted: 06 Jun 2020 18:06
by arkadiusz.makarenko
terriblefire wrote: 06 Jun 2020 17:18
Added the cap and now i have working USB keyboard :)
right so you need a way to override individual memory locations?
Only those required for mouse and gamepad?
Re: TF CD32 Riser Revision 2 Design Complete
Posted: 06 Jun 2020 18:19
by terriblefire
arkadiusz.makarenko wrote: 06 Jun 2020 18:06
terriblefire wrote: 06 Jun 2020 17:18
Added the cap and now i have working USB keyboard :)
right so you need a way to override individual memory locations?
Only those required for mouse and gamepad?
can i ask for one thing first.. explicitly set every unused pin to high Z.
Re: TF CD32 Riser Revision 2 Design Complete
Posted: 06 Jun 2020 18:29
by arkadiusz.makarenko
terriblefire wrote: 06 Jun 2020 18:19
can i ask for one thing first.. explicitly set every unused pin to high Z.
Are those lines 5V or 3.3V?
Re: TF CD32 Riser Revision 2 Design Complete
Posted: 06 Jun 2020 18:33
by terriblefire
arkadiusz.makarenko wrote: 06 Jun 2020 18:29
terriblefire wrote: 06 Jun 2020 18:19
can i ask for one thing first.. explicitly set every unused pin to high Z.
Are those lines 5V or 3.3V?
All the amiga lines are 5v. The ones that are INTSIG are 3.3v
Re: TF CD32 Riser Revision 2 Design Complete
Posted: 06 Jun 2020 19:59
by arkadiusz.makarenko
@terriblefire
I've set up all pins (sorry don't know exactly which ones are not in use - will tidy this up later) to GPIO_Input no-pull-up no-pull-down. Which should be high impeadance.
I have still usart5 on PD2 - RX and PC12 - TX ? should this be changed as well?
Re: TF CD32 Riser Revision 2 Design Complete
Posted: 06 Jun 2020 21:11
by terriblefire
no those are fine. Just things on the Amiga bus really.