User Activity

  • Posted a comment on discussion Open Discussion on GCBASIC

    Thank you very much. That's exactly what I was looking for.

  • Posted a comment on discussion Open Discussion on GCBASIC

    Is there a list of all reserved keywords in GCB?

  • Posted a comment on discussion Open Discussion on GCBASIC

    @Chris You're right, that's the problem! There are only byte-type arrays. But, when I define: DIM Result(5) as word this is compiled without warning or error message. This is not good. Here an error message should be displayed. This is the problem understood, but somewhat unsatisfactory solved.

  • Posted a comment on discussion Open Discussion on GCBASIC

    How can I access the H-Byte of an entry in a array from type WORD? I want to store the two result registers from ADC: ADRESH and ADRESL into a WORD array. If I write: ADResult(i) = ADRES that does not work because you can not address ADRES as word. If I write: ADResult_H(i) = ADRESH ADResult(i) = ADRESL does not work: ADResult_H(i) = ADRESH. The compiler reports that "ADResult_H(i)" are not defined. working is only the L-Byte: ADResult(i) = ADRESL

  • Posted a comment on discussion Open Discussion on GCBASIC

    @Anobium Great! But where can I find this video?

  • Posted a comment on discussion Open Discussion on GCBASIC

    @ Chris Thank you for your answer. You're right, I could use this command. But this command needs a lot of memory space. This command takes 110 Word more space than my version: ADCON1.7 = 1 'RIGHT justified, 10-bit using ADCON0 = ChannelYo 'set channel = Yo wait 20 us BSF ADCON0,1 'conversion starten BTFSC ADCON0,1 'check: conversion done? GOTO $-1 'wait for done nYoben0_H = ADRESH 'store the result nYoben0 = ADRESL Because my storage space is tight, I have to save.

  • Posted a comment on discussion Open Discussion on GCBASIC

    I use the PIC 16F1779. In this uP it has a 10-bit ADC. The value of a conversion is stored in two registers ADRESH and ADRESL. Why can I not access these registers as word? I mean the following: DIM nYoben0 as Word alias nYoben0H, nYoben0L nYoben0H = ADRESH nYoben0L = ADRESL is not the same as: nYoben0 = ADRES The assembler translates the first case like this: ;nYoben0H = ADRESH banksel ADRESH movf ADRESH,W banksel NYOBEN0H movwf NYOBEN0H ;nYoben0L = ADRESL banksel ADRESL movf ADRESL,W banksel NYOBEN0L...

  • Posted a comment on discussion Open Discussion on GCBASIC

    OK. But how I do that? If I use MPLAB-X, I write the program in c. But I wrote the program in GCB. Which files do I have to load in MPLAB-X and how do I do that? I do not understand how GCB and MPLAB-X work together Is there perhaps a step by step guide for it? As hardware I have an ICD3 and a PICkit3 available.

View All

Personal Data

Username:
urshopp
Joined:
2019-01-21 14:43:50

Projects

  • No projects to display.

Personal Tools