Author Topic: Rubidium Standard  (Read 8024 times)

0 Members and 1 Guest are viewing this topic.

Online texaspyro

  • Frequent Contributor
  • **
  • Posts: 656
Re: Rubidium Standard
« Reply #50 on: July 09, 2017, 11:32:38 AM »
Here is some C code that I wrote for doing GPIB on an AVR chip (2561).  It emulates the Prologix GPIB-serial adapter (with some extensions).   Released under the MIT license.  Tested with gpibkit.

Note that the attached code is not complete (it uses LCD/touchscreen/serial I/O routines and some header files that are not included),   but should be fairly easy to modify for other systems.  The serial I/O routines are interrupt driven and use buffered I/O.

You can find the missing code here:

https://github.com/mega-donkey/Mega-Donkey

The file also has code for emulating another GPIB serial interface...  it should be nuked from orbit.

 
The following users thanked this post: Muxr

Online texaspyro

  • Frequent Contributor
  • **
  • Posts: 656
Re: Rubidium Standard
« Reply #51 on: January 13, 2018, 12:38:00 PM »

does anyone happen to have any information as to what can be done with the Serial Port on the XHTF1003H by Chengdu Tianao Electronics Co., Ltd., and how the protocol works?


My bet is the serial protocol is the same as the LPFRS.  Serial 1200,8,N,1  On the LPFRS the serial port is TTL level RS-232 (not inverted TTL "UART" polarity).  You can connect it directly to most serial ports. 

Pin 9 goes to RS-232 pin 2  and pin 5 goes to RS-232 pin 3.  Try sending it a "M" or "V"  There are also commands for setting the freq.  Coarse freq is done by a DDS and fine freq is done with the C-field current. 

Lady Heather v6 will be able to talk LPFRS.  Attached is a plot of an LPFRS powering up.


http://www.spectratime.com/documents/lpfrs_manual1.pdf
 
The following users thanked this post: TiN


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf