Register

DSP

Discuss issues related to the fx-9860G Software Development Kit
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

DSP

Postby SimonLothar » Tue Sep 29, 2015 5:53 pm

TeamFX proposed to use the DSP-features of the fx-MPUs.

Indeed this seems to be possible on SH-7305-based calculators.
Bit 12 of sr must be set. Otherwise DSP-instructions give an illegal instruction error.
Though after a hardware-RESET the instruction SETRC gives an illegal instruction error irrespective of sr bit 12. After a controlled off/ON, SETRC behaves itself. The reason of which has yet to be unravelled.
With the renesas SH compiler comes a library sh3dspnb.lib (together with ensigdsp.h and _dspc_type.h ) which works with the old SDK. The library functions are documented in the SHC-manual chapter 10.3.5.
Most information is covered in [Renesas REJ09B0317-0400 Rev. 4.00 Revision Date: May 15, 2006].
The Instructions PWSB and PWAD (see [Renesas REJ09B0317-0400 Rev. 4.00 Revision Date: May 15, 2006] page 93) are not supported by the old SDK.
I'll be back!

Senior Member
Posts: 100
Joined: Sun Mar 24, 2013 12:01 pm
Calculators: None

Re: DSP

Postby TeamFX » Tue Sep 29, 2015 6:22 pm

Some related discussion can be found here:
https://www.cemetech.net/forum/viewtopic.php?t=11918

Member
Posts: 24
Joined: Sun Aug 31, 2014 4:48 pm
Calculators: Casio Cfx Series, Casio fx-9860 GII

Re: DSP

Postby Jsec42 » Tue Sep 29, 2015 10:16 pm

What would some of the advantages of abusing the DSP hardware be?

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: DSP

Postby SimonLothar » Wed Sep 30, 2015 5:56 pm

Jsec42 wrote:What would some of the advantages of abusing the DSP hardware be?

It is speed. The DSP is able to process up to four operations in one cycle.
Consider the sh3dsp-library function "mean", which calculates the mean of 16-bit values (max. 2048 measurements), f. i. to reduce measurement noise.
It runs about four to five times faster compared to a conventional programmed C function on a SH-4A-fx-9860.

Though, to be honest: On fx-calculators I think the use of the DSP-functions has some academical value to gain experience, only. Which is enough for me, but not necessarily for anybody. At this juncture the crash after RESET prevents the DSP to be used beyond an academical approach.

Additionally it looks as if they lost interest in DSP with the regular SH-4A MPUs. At least I did not find any proper documentation, yet. Perhaps the SH-4A-MPUs are too fast as such and a DSP is not worth the trouble any more.

If you abuse it or use it, is up to you.

BTW (off-topic): I dropped fx_calculators_SuperH_based.chm (20) with a few news. The most (possibly only) interesting thing seems to be the (I hope unabridged) lists of SH7337/7355-, SH7291- and SH7305-registers, which I gathered based on a suggestion of TeamFX.
I'll be back!

Member
Posts: 24
Joined: Fri Aug 28, 2015 5:10 am
Calculators: Casio fx-9750G PLUS, Casio fx-9750 G II (SH4)

Re: DSP

Postby brickviking » Wed Sep 30, 2015 8:28 pm

Could you explain what you mean by "Dropped"? I don't know this term, except in "I dropped a plate".

Thanks.

(Post 16)
Regards, BrickViking

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: DSP

Postby SimonLothar » Wed Sep 30, 2015 9:48 pm

brickviking wrote:Could you explain what you mean by "Dropped"? I don't know this term, except in "I dropped a plate".
Oh, sry. I do so much Drag&Drop all day long. Seems that I subconsciously got accustomed to the term "drop a file". The percentage of dropping files is above 99.9 % compared to dropping plates, as far as I am concerned. To be honest I cannot remember the last instance me dropping a plate or any other dishes.
But to answer your question: I meant "uploaded". ;)
I'll be back!

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: DSP

Postby SimonLothar » Thu Oct 01, 2015 6:03 pm

Jsec42 wrote:What would some of the advantages of abusing the DSP hardware be?

The library function "Variance" seems to be three to four times faster compared to a conventional approach.
I'll be back!

Member
Posts: 24
Joined: Sun Aug 31, 2014 4:48 pm
Calculators: Casio Cfx Series, Casio fx-9860 GII

Re: DSP

Postby Jsec42 » Mon Oct 05, 2015 12:37 am

It is very possible that they lost interest in the DSP instructions in the SH4a. After all, the Casio 9860gii/2, Prism, and CP-400 are tied for the fastest graphing calculator when set to their top speed.

Return to Casio fx-9860 SDK

Who is online

Users browsing this forum: No registered users and 5 guests