TF CD32 Riser Revision 2 Design Complete
Moderators: terriblefire, Terriblefire Moderator
- arkadiusz.makarenko
- Moderator Team

- Posts: 1371
- Joined: Wed Jun 19, 2019 7:36 am
- Location: Edinburgh
Re: TF CD32 Riser Revision 2 Design Complete
Ok. I have setup to carry on working on firmware.
It is not my CD32. I am not sure if my CD32 is flaky, or Riser actually messes up with my CD32. As sync is lost ocasionally and keyboard just sometimes work. Every 3rd or something keyboard press. (On diagrom)
I hooked up Riser to my Amiga 500 keyboard port, and responsivness is perfect. Clock pulse tolerance is enormous as well.
It is not my CD32. I am not sure if my CD32 is flaky, or Riser actually messes up with my CD32. As sync is lost ocasionally and keyboard just sometimes work. Every 3rd or something keyboard press. (On diagrom)
I hooked up Riser to my Amiga 500 keyboard port, and responsivness is perfect. Clock pulse tolerance is enormous as well.
- Attachments
-
- 15892147736654521235203357541496.jpg (394.39 KiB) Viewed 4334 times
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
~ Stanislaw Lem
- arkadiusz.makarenko
- Moderator Team

- Posts: 1371
- Joined: Wed Jun 19, 2019 7:36 am
- Location: Edinburgh
Re: TF CD32 Riser Revision 2 Design Complete
Wow. Current ST usb library implementation for keyboard is very very buggy, if I press more than 4 buttons, they change value to 1 .... This messes up with depressing buttons.
I will revert library to f105 version and see if this helps.
I will revert library to f105 version and see if this helps.
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
~ Stanislaw Lem
- arkadiusz.makarenko
- Moderator Team

- Posts: 1371
- Joined: Wed Jun 19, 2019 7:36 am
- Location: Edinburgh
Re: TF CD32 Riser Revision 2 Design Complete
I did find some issues with keybaord behaviour. Issue is that if multiple buttons (more than 4 or 5) are pressed then weird values appear on reading report. It may be overflow, but each time values are the same.
I will poke this more, I just hope I will not have to implement keyboard report parser, and still will be allowed to use keyboard in boot mode.
I pushed changes to repository. Current implementation may not be ideal, but should be pretty much usable.
I will poke this more, I just hope I will not have to implement keyboard report parser, and still will be allowed to use keyboard in boot mode.
I pushed changes to repository. Current implementation may not be ideal, but should be pretty much usable.
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
~ Stanislaw Lem
-
terriblefire
- Admin sponsor

- Posts: 5687
- Joined: Mon Aug 28, 2017 10:56 pm
- Location: Glasgow, UK
Re: TF CD32 Riser Revision 2 Design Complete
Thanks i'll try that out tomorrow along with a TF330 rev 3 that @supaduper sent me.arkadiusz.makarenko wrote: Mon May 11, 2020 11:12 pm I did find some issues with keybaord behaviour. Issue is that if multiple buttons (more than 4 or 5) are pressed then weird values appear on reading report. It may be overflow, but each time values are the same.
I will poke this more, I just hope I will not have to implement keyboard report parser, and still will be allowed to use keyboard in boot mode.
I pushed changes to repository. Current implementation may not be ideal, but should be pretty much usable.
———
"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: 1371
- Joined: Wed Jun 19, 2019 7:36 am
- Location: Edinburgh
Re: TF CD32 Riser Revision 2 Design Complete
I spent some time trying to understand how usb keyboards send data. Hid report is 8 bytes, and it seems that it can record up to 4 main keys at the same time (I assume special keys like shift, alt etc are recorded separately). Above this report records all keys as 01.
Now I have a bug which doesn't register depressed buttons correctly. It may be simple as not clearing one of variables correctly. And I need to think how to handle "overflow" of keys pressed on usb keyboard.
Now I have a bug which doesn't register depressed buttons correctly. It may be simple as not clearing one of variables correctly. And I need to think how to handle "overflow" of keys pressed on usb keyboard.
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
~ Stanislaw Lem
-
terriblefire
- Admin sponsor

- Posts: 5687
- Joined: Mon Aug 28, 2017 10:56 pm
- Location: Glasgow, UK
Re: TF CD32 Riser Revision 2 Design Complete
Apologies.. ive not had a chance to test. Couple of things i've found..arkadiusz.makarenko wrote: Wed May 13, 2020 10:44 pm I spent some time trying to understand how usb keyboards send data. Hid report is 8 bytes, and it seems that it can record up to 4 main keys at the same time (I assume special keys like shift, alt etc are recorded separately). Above this report records all keys as 01.
Now I have a bug which doesn't register depressed buttons correctly. It may be simple as not clearing one of variables correctly. And I need to think how to handle "overflow" of keys pressed on usb keyboard.
My ATX PSU is low voltaging out at 4.2v ... annoying.
I've been debugging the CD32 ITX Clone.
———
"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: 1371
- Joined: Wed Jun 19, 2019 7:36 am
- Location: Edinburgh
Re: TF CD32 Riser Revision 2 Design Complete
I don't think it is worth testing yet. Need to solve this missed depressed buttons issue first.terriblefire wrote: Thu May 14, 2020 1:26 amApologies.. ive not had a chance to test. Couple of things i've found..arkadiusz.makarenko wrote: Wed May 13, 2020 10:44 pm I spent some time trying to understand how usb keyboards send data. Hid report is 8 bytes, and it seems that it can record up to 4 main keys at the same time (I assume special keys like shift, alt etc are recorded separately). Above this report records all keys as 01.
Now I have a bug which doesn't register depressed buttons correctly. It may be simple as not clearing one of variables correctly. And I need to think how to handle "overflow" of keys pressed on usb keyboard.
My ATX PSU is low voltaging out at 4.2v ... annoying.
I've been debugging the CD32 ITX Clone.
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
~ Stanislaw Lem
Re: TF CD32 Riser Revision 2 Design Complete
I knew I was an article about this a while ago, I was sure it was 6 buttons for usb keyboards
http://xahlee.info/kbd/keyboard_n-key_r ... sting.html
http://xahlee.info/kbd/keyboard_n-key_r ... sting.html
- arkadiusz.makarenko
- Moderator Team

- Posts: 1371
- Joined: Wed Jun 19, 2019 7:36 am
- Location: Edinburgh
Re: TF CD32 Riser Revision 2 Design Complete
I will have a look at this. Thank you.Homer79 wrote: Thu May 14, 2020 6:54 pm I knew I was an article about this a while ago, I was sure it was 6 buttons for usb keyboards
http://xahlee.info/kbd/keyboard_n-key_r ... sting.html
Question is if it is any key. I will need to desypher HID report itself (it is painful). It may be 4 allocated for general keys and additional 2 for special keys like shift, ale enter etc?
Report has 8 bytes, which first byte is most likekly ReportID.
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
~ Stanislaw Lem
-
terriblefire
- Admin sponsor

- Posts: 5687
- Joined: Mon Aug 28, 2017 10:56 pm
- Location: Glasgow, UK
Re: TF CD32 Riser Revision 2 Design Complete
Honestly cant think of any situation where more than 4 keys are needed at the same time.arkadiusz.makarenko wrote: Thu May 14, 2020 7:08 pmI will have a look at this. Thank you.Homer79 wrote: Thu May 14, 2020 6:54 pm I knew I was an article about this a while ago, I was sure it was 6 buttons for usb keyboards
http://xahlee.info/kbd/keyboard_n-key_r ... sting.html
Question is if it is any key. I will need to desypher HID report itself (it is painful). It may be 4 allocated for general keys and additional 2 for special keys like shift, ale enter etc?
Report has 8 bytes, which first byte is most likekly ReportID.
S
———
"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."