Register

Unraveling the secrets of the KEYSC

Discuss issues related to Calculator Hacking/Modding.
Senior Member
User avatar
Posts: 603
Joined: Sat Sep 15, 2012 6:59 am
Location: Krautland ****
Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750 G II, Casio fx-9750 G II (SH4), Casio fx-9860G, Casio fx-9860 G SD, Casio fx-9860G Slim, Casio fx-9860 GII SD, Casio fx-9860 GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG 20, Casio Classpad fx-cp400, Casio fx-CG 50

Re: Unraveling the secrets of the KEYSC

Postby SimonLothar » Fri Feb 15, 2019 11:26 pm

The names and short descriptions of the SH7305 KEYSC registers:

KEY (Key interface unit)
A44B0000 dw dw KIUDATA0 (Key input data 0)
A44B0002 dw dw KIUDATA1 (Key input data 1)
A44B0004 dw dw KIUDATA2 (Key input data 2)
A44B0006 dw dw KIUDATA3 (Key input data 3)
A44B0008 dw dw KIUDATA4 (Key input data 4)
A44B000A dw dw KIUDATA5 (Key input data 5)
A44B000C dw dw KIUCNTREG (Scan control)
A44B000E dw dw KIAUTOFIXREG (Automatic key bounce setting)
A44B0010 dw dw KIUMODEREG (Scan mode setting)
A44B0012 dw dw KIUSTATEREG (Scan state)
A44B0014 dw dw KIUINTREG (Interrupt setting)
A44B0016 dw dw KIUWSETREG (Scan wait time setting)
A44B0018 dw dw KIUINTERVALREG (Scan interval time setting)
A44B001A dw dw KOUTPINSET (KOUT line function setting)
A44B001C dw dw KINPINSET (KIN line function setting)


SH7305 registers (complete list)
I'll be back!

Member
User avatar
Posts: 30
Joined: Mon Oct 27, 2014 1:46 pm
Location: Japan
Calculators: Casio Cfx Series, Casio fx-9860G, Casio fx-9860 GII, Casio fx-9860 GII SD Power Graphic 2, Casio fx-CG 10, Casio fx-CG 20, Casio fx-CG 50

Re: Unraveling the secrets of the KEYSC

Postby sentaro21 » Sun Feb 17, 2019 1:01 pm

I'm sorry it is not about KEYSC.

I found this in Simon's SH7305 registers (complete list).
"A4150044 dd dd SSCGCR (Spread spectrum control)"
I was able to completely solve the slightly slow mystery of CG50 (-1.6%).

Ptune3: Inaccurate frequency measurements
http://www.casiopeia.net/forum/viewtopic.php?f=25&t=7327

So I confirmed that it is controlled by the MSB bit of SSCGCR.
Thanks very much. :D

Member
User avatar
Posts: 40
Joined: Fri Aug 21, 2015 11:54 am
Location: France
Calculators: Casio fx-9750 G II, Casio fx-9750 G II (SH4), Casio fx-9860 GII, Casio fx-CG 50

Re: Unraveling the secrets of the KEYSC

Postby lephe » Fri Mar 01, 2019 10:53 pm

Good job Yatis! This will help understand the structure of the KEYSC, that's for sure.

The names and short descriptions of the SH7305 KEYSC registers:

Now that's what I was looking for when I created this topic. Erm... why didn't you post this earlier? :think:

Do you know the bit pattern of these registers and their meaning? There seems to be nothing about them in your chm documentation.

I was able to completely solve the slightly slow mystery of CG50 (-1.6%).

Well done! :D

Senior Member
User avatar
Posts: 603
Joined: Sat Sep 15, 2012 6:59 am
Location: Krautland ****
Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750 G II, Casio fx-9750 G II (SH4), Casio fx-9860G, Casio fx-9860 G SD, Casio fx-9860G Slim, Casio fx-9860 GII SD, Casio fx-9860 GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG 20, Casio Classpad fx-cp400, Casio fx-CG 50

Re: Unraveling the secrets of the KEYSC

Postby SimonLothar » Sat Mar 02, 2019 8:37 am

Now that's what I was looking for when I created this topic. Erm... why didn't you post this earlier? :think:
Do you know the bit pattern of these registers and their meaning? There seems to be nothing about them in your chm documentation.

I posted this about two years ago:
SH7305 registers (complete list)
The list should be part of version 20 of my chm, too, which is the last version I uploaded.
Though I must admit, that my activities ceased, because things around CASIO calculator programming became quiet in recent times.

Concerning the bits I can only provide for some vague speculations:

A44B000C dw dw KIUCNTREG (Scan control, probably significant output bits: 0x8003)
A44B000E dw dw KIAUTOFIXREG (Automatic key bounce setting, probably significant output bits: 0x8077)
A44B0010 dw dw KIUMODEREG (Scan mode setting, probably significant output bits: 0x0E00)
A44B0014 dw dw KIUINTREG (Interrupt setting, probably significant output bits: 0xEF00)
A44B0016 dw dw KIUWSETREG (Scan wait time setting, probably significant output bits: 0xEFFF)
A44B0018 dw dw KIUINTERVALREG (Scan interval time setting, probably significant output bits: 0xFFFF)
A44B001A dw dw KOUTPINSET (KOUT line function setting, probably significant output bits: 0x0FFF)
A44B001C dw dw KINPINSET (KIN line function setting, probably significant output bits: 0x00FF)
I'll be back!

Previous

Return to Calculator Hacking/Modding Discussions

Who is online

Users browsing this forum: No registered users and 3 guests