Shop OBEX P1 Docs P2 Docs Learn Events
4 mHz xtal and FullDuplexSerial(Extended) — Parallax Forums

4 mHz xtal and FullDuplexSerial(Extended)

WhelzornWhelzorn Posts: 256
edited 2007-10-17 23:00 in Propeller 1
I'm sorry, this is probably a ridiculously simple question. But what would I need to change in the FullDuplexSerialExtended object to make it work with a 4mHz xtal (x16 pll) instead of the 5mHz that comes on the dev boards?
If it already does, then I have another error. But I assume the timing is off (either there, or in some other piece of code that is timing sensitive).
thanks

Comments

  • AribaAriba Posts: 2,685
    edited 2007-10-17 21:09
    You need to change nothing in the Serial-driver. This drivers are programmed to work with different system clocks (in a limited range).
    But you have to set the right clock frequency in the Top-object file's CON section:

    _clkmode = xtal1 + pll16x
      _xinfreq = 4_000_000
    
    



    do you call the start-methode of the serial driver before the first communication?

    Andy
  • WhelzornWhelzorn Posts: 256
    edited 2007-10-17 21:29
    hmmm... that's what I did, but it's still not working. Maybe it's the device I'm trying to communicate with.
  • WhelzornWhelzorn Posts: 256
    edited 2007-10-17 23:00
    Never mind, I got it working. For some reason it wouldn't transmit the data correctly while I was watching it in realterm with the prop plug.
Sign In or Register to comment.