Jump to content



Photo
- - - - -

Is fx-CG50 9600 baud serial output possible?


  • Please log in to reply
1 reply to this topic

#1 Sal

Sal

    Newbie

  • Members
  • Pip
  • 23 posts
  • Gender:Male
  • Interests:Studying calculator hardware. Looking for hidden or undocumented functions.

  • Calculators:
    fx-3800P fx-4500PA fx-5800P fx-CG50 SL-1100TV

Posted 30 July 2020 - 01:29 AM

I would like to use the mini stereo jack along with level shifters for 9600 baud serial output under control of either the built in interpreter or the included Python. Is this possible? I want to use the fx-CG50 as a controller for the Icom IC-PCR1000 serial controlled wideband radio receiver.

From what I have read so far, it looks like I might have to go with Arduino. I am hoping, though. If anyone knows how, they'll be here I bet!

Thanks!!!

#2 HappyCalc

HappyCalc

    Casio Addict

  • Members
  • PipPipPip
  • 56 posts
  • Gender:Male
  • Location:Germany
  • Interests:Programming, On-Calc Programming(C.Basic), Gaming, Origami, Eating Chocolate

  • Calculators:
    fx-9860GII-2
    fx-CG50

Posted 23 December 2021 - 02:20 PM

Using the built-in Basic or Python Interpreter this is not possible. Basic only supports a command to talk with ECON-modules. If you want to connect with your radio receiver, you could use C.Basic. That's a highly extended version of the builtin Basic interpreter. There you can run this code:

1 64->Dim List 1.B
2 OpenComport38k,5,1
3 Receive38k List 1,64
4 CloseComport38k

Explanation:

1 Initialize List as 64 Bytes

2 Open the Serial Port with baudrate type 5 (9600) and mode 1 (no metadata)

3 Wait for 64 bytes and write them to list 1

4 Close the port (otherwise LINK may not work)






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users