RS232 comms - need help with datasheet


Results 1 to 14 of 14

Threaded View

  1. #7
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Guys thanks very much for your quick input

    I have a hardware file which is then included in the main program. The config settings are
    Code:
    ASM  
      __CONFIG    _CONFIG1H, _OSC_HSPLL_1H
      __CONFIG    _CONFIG2L, _PWRT_ON_2L  
      __CONFIG    _CONFIG2H, _WDT_ON_2H & _WDTPS_512_2H
      __CONFIG    _CONFIG3H, _PBADEN_OFF_3H
      __CONFIG    _CONFIG4L, _LVP_OFF_4L & _XINST_OFF_4L
    ENDASM
    DEFINE  OSC 48
    'DEFINE  OSC 20  ; config settings 18F4580, 10mhz crystal
    ADCON1 = $0F
    I don't have a 12 Mhz crystal at the moment, but have tried with a 10Mhz one and the slowness is causing other issues with timings of the PID loops etc, I also don't get any hieroglyphics, but I only get a blank screen with a flashing cursor. So I'll pop down and get a few 12Mhz xtals from a local component suppliers and see what that does, as I really need to run this PIC as fast as it goes, and would like to resolve the comms issue.

    Thanks once again for your input,

    Sorry noticed I hadn't changed the OSC value

    OK tried this with a 10Mhz xtal, but still no joy - and is seems as slow
    Code:
    ASM  
      __CONFIG    _CONFIG1H, _OSC_HSPLL_1H
      __CONFIG    _CONFIG2L, _PWRT_ON_2L  
      __CONFIG    _CONFIG2H, _WDT_ON_2H & _WDTPS_512_2H
      __CONFIG    _CONFIG3H, _PBADEN_OFF_3H
      __CONFIG    _CONFIG4L, _LVP_OFF_4L & _XINST_OFF_4L
    ENDASM
    'DEFINE  OSC 48
    DEFINE  OSC 40  ; config settings 18F4580, 10mhz crystal
    ADCON1 = $0F
    Will try the 12mhz xtal when I get one
    Last edited by malc-c; - 6th August 2010 at 14:19. Reason: noticed an error in the def osc

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts