Announcement

Collapse
No announcement yet.

Issue with DEC modifier and 18F26K83

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    I tested your (Andy's) program as-written except for some config changes. The DEC modifier works for me.

    I had to change the #CONFIG to use the internal oscillator because I don't have a crystal. The lines I changed are:
    Code:
     #CONFIG   
        CONFIG FEXTOSC = OFF     ;Oscillator not enabled
        CONFIG RSTOSC = HFINTOSC_64MHZ     ;HFINTOSC with HFFRQ = 64 MHz and CDIV = 1:1
        ....
    I'm receiving with another PIC functioning as a serial-to-USB converter. I measured the bit-length at exactly 104uS for 9600.

    I'm compiling with PBP 3.1.1 and MPASMX 5.81.

    Not sure where to go next. I suppose we could exchange and compare hex files. Might be easier if you contact me via [email protected].

    Charles Leo
    ME Labs, Inc.
    http://melabs.com

    Comment


    • #17
      Hi Charles,

      I have changed to the internal oscillator as per your config settings, however the problem persists.

      Interestingly, if I substitute HEX for DEC in my HSEROUT line, the output is as expected (i.e.32)

      hserout ["Testbyte= ",HEX testbyte,10,13]

      I will contact you directly via email and we can go from there.

      Andy

      Comment


      • #18
        The latest beta version has fixed this problem http://pbp3.com/downloads/PBP3_312Beta_20190218.exe

        Andy

        Comment


        • #19
          That's a surprise to me, but I'll take it.

          When I write code, I use all the best bytes....
          Charles Leo
          ME Labs, Inc.
          http://melabs.com

          Comment

          Working...
          X