Shop OBEX P1 Docs P2 Docs Learn Events
Usage of fullduplexserial object — Parallax Forums

Usage of fullduplexserial object

El PaisaEl Paisa Posts: 375
edited 2007-06-04 02:48 in Propeller 1
Appreciate any help.
Trying to use the fullduplexserial.spin object.
What is the proper··_clkmode and _xinfreq·settings?
These ·settings are not the same as the demo and proto boards.

Comments

  • AndreLAndreL Posts: 1,004
    edited 2007-06-03 23:11
    Look at the demo that uses it, off the top of my head, it doens't matter what frequency the propeller runs out, there is some code that computes the desired count for the final clock rate, so its invariant of the crystal and pll mode.

    Andre'
  • El PaisaEl Paisa Posts: 375
    edited 2007-06-04 02:48
    Andre',

    · _CLKMODE····· = XTAL1 + PLL16X
    '· _XINFREQ····· = 5_000_000

    '· _clkmode = xtal2 + pll8x
    · _xinfreq = 10_000_000 + 0000

    I have tried these four combinations.

    the _CLKMODE does not matter, in both cases, the program runs OK.

    If I change _xinfreq from 5_000_000 to 10_000_000 the program does not work anymore.

    The·xinfreq has a big effect in the baud rate.
Sign In or Register to comment.