User Activity

  • Posted a comment on discussion Help on GCBASIC

    Excellent Evan. All fixed. I removed #define byte_variable PORTA.0 and added dim byte_variable as Byte and all works as expected in the Real Pic Simulator. One thing to note for users. When using a micro with an 8 bit ADC, the Real Pic Simulator shows it as a 10 bit (at least it does in Visual Mode). This means that the simulator will be expecting a value exactly 4 times what you are wishing to detect in your code ie I set a threshold of ADC value of 128 and the Real Pic Sim will see that as a value...

  • Posted a comment on discussion Help on GCBASIC

    Thanks heaps Evan. You are a lifesaver. I've wondered where the new colour coded compiler is hiding. I only downloaded what I believed to be the latest version 5 days ago. There are versions in github, sourceforge & I think at gcbasic.com. Can you give me the link for the latest version?

  • Posted a comment on discussion Help on GCBASIC

    Hmmm, seems only one file uploaded. Here is the .gcb file for the above.

  • Posted a comment on discussion Help on GCBASIC

    Thank you Evan for all your hard work on the above. I thought I'd start very simple this time. I've attached a very small code snippet that I can't get to work in the Real Pic Simulator, along with a screenshot of the project loaded into the Real Pic Simulator. I'm hopeful you can tell me what's wrong with my code? It compiles fine (Build 1523 04/10/2025). I've detailed the expected outcome as comments in the code. Basically, portB.5 should flash and portB.4 should come on if AD0 is >=128. Real Pic...

  • Posted a comment on discussion Help on GCBASIC

    Thank you heaps Evan. I'm looking at your refactoring & will come back after I have thoroughly examined it. I have come from the world of programming using RTOS, so the Goto's was my methodology of how to implement this without using millis and interrupts. One quick question. Normally, does the Real Pic Simulator input/output pin visualisations, show 8 bit ADCs as 10 bit ADCs? All three 8 bit ADCs (AN0, AN1, AN3) show in the Real Pic Simulator (visualisation mode) as being 10 bit ADCs.

  • Posted a comment on discussion Open Discussion on GCBASIC

    This is sounding excellent Angel. Setting up MPLAB X is quite a pain for simulation. Is there a manual describing how to use the new GC Studio Debugger? I have generated the debug file & can get the debugger to operate. Unfortunately, I have little idea of what to actually look for within the working registers to have much hope of locating why my code does not operate as expected.

  • Posted a comment on discussion Help on GCBASIC

    I'm hoping someone can help me. I'm using the PIC16F716. The ADC registers for this chip have some constraints. You can select 4 x ADC pins in, or 3 x ADC pins in & one digital out (RA2, which is what my project does). The ADCs are 8 bit. The attached .gcb code compiles fine & runs through the entire start-up sequence absolutely fine. When it gets to the main loop with the ADC reads, it seems to hang. I don't know if this is my code (probably) or a problem with the chip definitions. I've tried to...

  • Posted a comment on discussion Help on GCBASIC

    Simulide is a linux program converted to run on Windows. I found placing the input & output objects and wire connections between them using Windows 10 to be quite buggy, so much so, that I gave up & went looking for greener pastures. Of course, YMMV.

View All

Personal Data

Username:
derek1
Joined:
2018-12-31 04:00:43
Location:
Queensland / Australia / AEST
Gender:
Male

Projects

  • No projects to display.

Personal Tools

MongoDB Logo MongoDB