TFMSX Arrives
Moderators: terriblefire, Terriblefire Moderator
Re: TFMSX Arrives
Great work @terriblefire. Am watching this one with interest. I never had an MSX but did want one back then.
-
- Moderator Team
- Posts: 5368
- Joined: Mon Aug 28, 2017 10:56 pm
- Location: Glasgow, UK
Re: TFMSX Arrives
Right i have it up and running Monkey Academy ... no keyboard yet but sound is working.
I have made some mistakes with this revision but they're easily fixed on the next respin.
I have made some mistakes with this revision but they're easily fixed on the next respin.
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
- arkadiusz.makarenko
- Moderator Team
- Posts: 1208
- Joined: Wed Jun 19, 2019 7:36 am
- Location: Edinburgh
Re: TFMSX Arrives
I am slowly starting keyboard firmware.
I have set up project and slowly starting writing key mappings to mimic the grid.
I have set up project and slowly starting writing key mappings to mimic the grid.
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
~ Stanislaw Lem
-
- Moderator Team
- Posts: 5368
- Joined: Mon Aug 28, 2017 10:56 pm
- Location: Glasgow, UK
Re: TFMSX Arrives
I have made some mistakes we might need to send data back to the CPLD by SPI or something...arkadiusz.makarenko wrote: ↑Sun Apr 18, 2021 9:33 pm I am slowly starting keyboard firmware.
I have set up project and slowly starting writing key mappings to mimic the grid.
But I also built a second MSeX ...
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
- arkadiusz.makarenko
- Moderator Team
- Posts: 1208
- Joined: Wed Jun 19, 2019 7:36 am
- Location: Edinburgh
Re: TFMSX Arrives
@terriblefire
For keyboard data?
For keyboard data?
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
~ Stanislaw Lem
-
- Moderator Team
- Posts: 5368
- Joined: Mon Aug 28, 2017 10:56 pm
- Location: Glasgow, UK
Re: TFMSX Arrives
Yeah i think we have 7 wires connected between the CPLD and ARM... so 4 are output from the CPLD with the scan row and the arm can just write back on a clock and mosi line. I think they are all the available lines on PC0-PC7 (PC5 seems to be missing/NC on this chip).
It would also be useful if the ARM could hold a line low for 10uS (or more) to save me counting to 32768 for a power on reset timer. It would save about 40 registers in the CPLD.
EDIT: i'll also send a TFMSX to you for testing... i've not got DB9 joystick sockets spare to hand so you'll need 2 of those and a 2.4mm 5V power supply that can do about 750mA.
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
- arkadiusz.makarenko
- Moderator Team
- Posts: 1208
- Joined: Wed Jun 19, 2019 7:36 am
- Location: Edinburgh
Re: TFMSX Arrives
Stm32 has plenty various counters, but it takes a while before they can be setup on after boot, same with gpio?
I have never measured it but I suspect it may take even few hundred ms?
I have never measured it but I suspect it may take even few hundred ms?
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
~ Stanislaw Lem
-
- Moderator Team
- Posts: 5368
- Joined: Mon Aug 28, 2017 10:56 pm
- Location: Glasgow, UK
Re: TFMSX Arrives
it actually doesnt matter... so long as at some point we go low for a period... the VDP needs 10uS of reset low with the clock running... but everythign could run for a few ms then go into reset again .arkadiusz.makarenko wrote: ↑Sun Apr 18, 2021 10:54 pm Stm32 has plenty various counters, but it takes a while before they can be setup on after boot, same with gpio?
I have never measured it but I suspect it may take even few hundred ms?
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
- arkadiusz.makarenko
- Moderator Team
- Posts: 1208
- Joined: Wed Jun 19, 2019 7:36 am
- Location: Edinburgh
Re: TFMSX Arrives
Based on this.terriblefire wrote: ↑Sat Apr 17, 2021 10:22 am
and the return signal to the MSXCode: Select all
PC0 = ARM PIN8 PC1 = ARM PIN9 PC2 = ARM PIN10 PC3 = ARM PIN11
Code: Select all
PB0 = ARM PIN 14 PB1 = ARM PIN 15 PB2 = ARM PIN 16 PB3 = ARM PIN 17 PB4 = ARM PIN 20 PB5 = ARM PIN 21 PB6 = ARM PIN 22 PB7 = ARM PIN 23
SPI1 is available on already connected pins PA (PA4-7). (NSS,SCK,MISO,MOSI)
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
~ Stanislaw Lem
-
- Moderator Team
- Posts: 5368
- Joined: Mon Aug 28, 2017 10:56 pm
- Location: Glasgow, UK
Re: TFMSX Arrives
Basically I made a mistake because i put the prototype together in 2-3 days.. .
I thought the Keyboard control went through the PSG IO but it doesnt it goes through the PPI controller. So there are 16 pins uselessly connected between the ARM and the PSG (well maybe not 100% uselessly because we could do joysticks that way). Even after that I thought their might be a chance to read the GPIO from the PSG by redirecting a read for the PPI Port B.. but alas no.. you need to set an address register in the PSG to get it spit it out..
TBH The MSX is so slow we can get away with this alternative approach for this rev 0 to prove all the bits work and of course we'll fix it in the rev 1. But since i literally had no idea what i was doing and simply slapped together a proto board i'm not disappointed.
The following pins are connected between the ARM and the CPLD.
I think these are all PORT C not PORT A as you said. There are also 2 spare pins on the CPLD that could be patched over to ARM PINS if needed.
The following pins are not connected to anything on the ARM..
Any of those could be used for the SPI... and we dont need a MISO.. the CPLD has nothing to say
I thought the Keyboard control went through the PSG IO but it doesnt it goes through the PPI controller. So there are 16 pins uselessly connected between the ARM and the PSG (well maybe not 100% uselessly because we could do joysticks that way). Even after that I thought their might be a chance to read the GPIO from the PSG by redirecting a read for the PPI Port B.. but alas no.. you need to set an address register in the PSG to get it spit it out..
TBH The MSX is so slow we can get away with this alternative approach for this rev 0 to prove all the bits work and of course we'll fix it in the rev 1. But since i literally had no idea what i was doing and simply slapped together a proto board i'm not disappointed.
The following pins are connected between the ARM and the CPLD.
Code: Select all
ARM PIN 8
ARM PIN 9
ARM PIN 10
ARM PIN 11
ARM PIN 24
ARM PIN 37
ARM PIN 38
The following pins are not connected to anything on the ARM..
Code: Select all
ARM PIN 2
ARM PIN 3
ARM PIN 4
ARM PIN 28
ARM PIN 29
ARM PIN 33
ARM PIN 39
ARM PIN 40
ARM PIN 41
ARM PIN 43
ARM PIN 50
ARM PIN 51
ARM PIN 52
ARM PIN 61
ARM PIN 62
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."