User Activity

  • Posted a comment on discussion Help on GCBASIC

    Documentation error. This is not function. This is a macro I added to timer.h a million years ago. My err. And, you should always use #option explicit.

  • Posted a comment on discussion Help on GCBASIC

    Speed test GCBASIC (2025.01.10 (Windows 64 bit) : Build 1447) Compiling: GLCD_Touch_Simple_Demonstration_ATmega2560_SSD1289.gcb Program compiled successfully (Compile time: 1.484 seconds) Summary: Compiled: Program lines: 11344 Subroutines: User: 0 ; System: 44 of 578 ; Total: 44 Chip resource usage: Program Memory: 11613/131072 words (8.86%) RAM: 426/8192 bytes (5.2%) OSC: 16Mhz Assembling program using GCASM Program assembled successfully (Assembly time: 0.360 seconds) Done Total time: 1.844 seconds...

  • Posted a comment on discussion Contributors on GCBASIC

    A quick Google search. https://youtu.be/5FFDZyO50dI?t=186 Shows how the Timers work in detail.

  • Posted a comment on discussion Contributors on GCBASIC

    Great news. The spreadsheet in the DEMO folders. Install the DEMO pack. There are more timers in the folder I mentioned above. Full details of the timers PRE and POST are in the datasheet but just use the timer XLS.

  • Posted a comment on discussion Contributors on GCBASIC

    This is issue is the difference between the 16F timer and the 18F timer. The are different with the 18F needing a PostScaler to get 1s. Works on 27K40 on PORTC.3 - I an input on PORTC.0 but change the PPS to RC0PPS and the PORTC.3 to PORTC.0. I used the spreadsheet in demos\Interrupt_and_Timer_Solutions. See my piccy attached. #CHIP 18F27K40, 64 #OPTION EXPLICIT DIR PORTC.3 OUT // Set RC3 as output // PIC PPS Tool version: 0.0.6.5 #startup InitPPS, 85 #define PPSToolPart 18F27K40 Sub InitPPS // Module:...

  • Posted a comment on discussion Contributors on GCBASIC

    These are two very different tests and the second test will confirm the ext osc configuration and the external clock are operating. Only when that is confirmed can you use the ext osc on the initimer instruction.

  • Posted a comment on discussion Contributors on GCBASIC

    I have to ask. Back to basic. Does the program below work? No other code. To prove the LED flashes. #CHIP 18F67K40, 64 #option explicit Do PULSEOUT PORTC.0, 100 ms wait 100 ms Loop What happens? I dont have a K40, but, then try to prove the ext osc works, and, the config is correct. #CHIP 18F67K40, 64 #option explicit #CONFIG CLKOUTEN=OFF #CONFIG CP=OFF #CONFIG CPD=OFF #CONFIG FCMEN=ON #CONFIG FEXTOSC=OFF #CONFIG LVP=OFF #CONFIG MCLRE=INTMCLR #CONFIG RSTOSC=EXTOSC #CONFIG WDTE=OFF #CONFIG WRTB=OFF...

  • Posted a comment on discussion Contributors on GCBASIC

    Not sure what you mean PPS tool does not work. Works for me. // PIC PPS Tool version: 0.0.6.5 #startup InitPPS, 85 #define PPSToolPart 18F67K40 Sub InitPPS // Module: TMR0 RC3PPS = 0x001D // TMR0 > RC3 End Sub // Add this code segment to your GCBASIC source program But, the timer setup is different. But, the demos will have 18Fxxk40 examples.

View All

Personal Data

Username:
sysgo
Joined:
2016-08-02 15:36:49

Projects

  • No projects to display.

Personal Tools