User Activity

  • Posted a comment on discussion Compiler Problems on GCBASIC

    Issue - Micro controller stops execution under certain conditions. The Program below will not complete "TEST_LOOP2" "TEST_LOOP3" Never Executes #CHIP 18f27q43, 32 #CONFIG MCLRE = ON, WDTE = OFF #OPTION Explicit #DEFINE LED PORTC.3 Dir LED OUT '''Variables Dim MyDouble as Double Wait 1 s TEST_LOOP1: 'Verify LED with 3 Flashes Repeat 3 Pulseout PORTC.3, 200 ms Wait 200 ms End Repeat Wait 1 s TEST_LOOP2: 'This loop does not complete 2 iterations Repeat 2 MyDouble = 10.00 - 3.140 MyDouble = 0 - 9.10...

  • Posted a comment on discussion Help on GCBASIC

    Per the Datasheet Page 181 / 11.6 Note: PORTE is unavailable on 28-pin devices.

  • Posted a comment on discussion Open Discussion on GCBASIC

    The demos for the Q20 are located in the folder: ...Vendor_Boards\Great_Cow_Basic_Demo_Board\18Fx6q20_ChipRange_Demonstrations\ However none of these show the use of an external crystal or the any specific config settings that may be required for this range of chips. ( the default settings seem good) As I previously noted, your code is missing the Dir command for the Port.pin My suggestion (for testing) would be to use the internal oscillator and to also set the port direction( required). #chip 18F06Q20,...

  • Posted a comment on discussion Open Discussion on GCBASIC

    OP code is missing port direction for PortC.3. Dir PortC.3 Out

  • Posted a comment on discussion Open Discussion on GCBASIC

    Try this and tell us what happens. Make sure that Vdd is tied to Vddio2 (Pins 1 & 8) #Chip 18F06Q20, 20 #CONFIG FCMEN=ON #CONFIG FEXTOSC=HS //' or try FEXTOSC=HS_24MHZ #CONFIG RSTOSC=EXTOSC Wait 100 ms #Define LED PortC.3 Dir LED Out Do Set LED ON Wait 500 ms Set LED Off Wait 500 ms Loop Edited to add additional option for FEXTOSC

  • Posted a comment on discussion Help on GCBASIC

    PulseOut is a macro with a minimum time val of 1 microsecond. However, to get what you need ASM can be inserted into the following code as shown below. #CHIP 18F46Q71, 64 wait 100 ms Dir PortC.2 OUT ' ----- Main body of program commences here. do set PortC.2 on nop nop nop nop nop nop nop nop nop set PortC.2 off nop nop nop nop nop nop nop loop This will give you 625ns on and 625ns off @ 64Mhz

  • Posted a comment on discussion Open Discussion on GCBASIC

    This seemed to have resolved the problem. The USARTs now initialize and the ASM looks good. Thanks

  • Posted a comment on discussion Open Discussion on GCBASIC

    Not getting any serial output on 18F46K42, 18F47Q43, etc. Seems to be an issue with usart.h. I swapped out the current usart.h with an older version ( Dec 2022) and it works OK. Attached is my ASM and GCB Code. 2024.08.18 (Windows 64 bit) : Build 1411

View All

Personal Data

Username:
williamroth
Joined:
2014-06-12 03:46:17
Location:
Texas / United States / CDT
Gender:
Male

Projects

This is a list of open source software projects that William Roth is associated with:

  • Project Logo GCBASIC   Last Updated:

Personal Tools

MongoDB Logo MongoDB