Re: Trying to send RS232 with PIC sends incorrect data in TeraTerm



On Apr 10, 4:50 am, "Roger Hamlett"
<rogerspamigno...@xxxxxxxxxxxxxxxxxxx> wrote:

What he posts, should work. However there are some caveats:
What _version_ of CCS. They recently (nearly a year ago now!...), launched
their 'version 4' compilers. So far, these are still not working right.
The latest version (32 releases after the supposed 'launch'), is
approaching a 'beta' status to my mind. They ran a 'beta' program for a
few weeks, and had not even got the compiler close to working, or any of
the main issues fixed, before they went 'live'. I was on the beta program,
and one of the things I raised, was only fixed a couple of weeks ago...
I'd guess this may be the free 'demo' version (since this supports the
16F877), and how good this is I don't know. However I would expect basic
code at this level to work OK.

Yes, it is the version 4 CCS compiler. :-(

I have to 'query' why on earth he bothers to test for the compiler being
PCM?. This is normally only done, when you want to make the source code
portable, across multiple chips, and as shown, is an extra thing to go
wrong.

Sorry, this was just the pertinent snippet; this code is based on the
framework of one of CCS's sample programs, in which they have a full
test for PCM, PCB, or PCH. I just copied the important #defines to
show my RS232 setup. I can simply remove the check if you think that
is a possible issue.



.



Relevant Pages

  • Re: C Compiler comparison for PIC18?
    ... >> I've done commercial products using the CCS PCH compiler. ... >> some projects to C18 to see how it stacks up. ... >problem where high ISRs corrupt some registers on exit from the high ISR ...
    (comp.arch.embedded)
  • Re: Which PIC18 C Compiler?
    ... >> using the MPLAB debugger and assembler. ... >series the HiTech ones beats the pants off the CCS compiler, ...
    (comp.arch.embedded)
  • Re: Which PIC18 C Compiler?
    ... >> using the MPLAB debugger and assembler. ... >series the HiTech ones beats the pants off the CCS compiler, ...
    (sci.electronics.design)
  • Re: C Compiler comparison for PIC18?
    ... >> I've done commercial products using the CCS PCH compiler. ... >> some projects to C18 to see how it stacks up. ... And then ISR performance is a joke. ...
    (comp.arch.embedded)
  • Re: Run Time Stack Usage
    ... The solution whcih i had sent ... earlier is *only* for ccs. ... do you mean a particular compiler for TMS470 target? ... bookkeeping routine tracks the maximumstackusage for each function. ...
    (comp.dsp)

Quantcast