Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: readitaloud; Keyword(s):

Search: Search took 0.00 seconds.

  1. Replies
    0
    Views
    2,238

    RTCC Interrupt for DT_INTS-18.bas

    I am using the 18F26J11 device which has a RTCC. The device is being put into sleep mode but I want to wake the device up using the RTCC Interrupt. I am using ver. 3.4 of DT_INTS-18.bas for the...
  2. Replies
    7
    Views
    4,793

    Re: ASCII HEX Word to Decimal conversion....

    John,

    You need to convert from ASCII to binary value. 4 bytes become 2 bytes.

    Add the following:

    ' New variables
    x var byte
    y var byte
    i var byte
  3. Replies
    7
    Views
    4,793

    Re: ASCII HEX Word to Decimal conversion....

    Hi John,

    The statement;
    YEAR = PRITIM [0] + PRITIM [1] + PRITIM [2] + PRITIM [3}

    will yield YEAR = $30 + $37 + $44 + $43 ' ASCII 07DC

    This will set YEAR = $EE which equals 238. Are you...
  4. Replies
    54
    Views
    164,821

    Re: Cordic trig assembly code for PIC18f

    Walter,,

    Yes the statement: IF ang > 9000 then ang = 45000 - ang, does the job. For some reason the first time I tried using it the results were crazy so I simply tried to make a patch. I must...
  5. Replies
    54
    Views
    164,821

    Re: Cordic trig assembly code for PIC18f

    Walter,

    I added three lines as shown in red. With the additions all 4 quadrants are returning correct magnitude and sign values.

    See attached test file.

    - Martin

    ...
  6. Replies
    54
    Views
    164,821

    Re: Cordic trig assembly code for PIC18f

    This is getting closer. The magnitude and sign values for the sin(ang) are all good. The magnitude term for the cos(ang) is good except the sign ,msb is incorrect for quadrants 2,3 and 4. Here is a...
  7. Replies
    54
    Views
    164,821

    Re: Cordic trig assembly code for PIC18f

    Hi,

    I am using your TRIG.inc in a small program. The values appear correct from (ang) = 0 to 9000, 0 to 90.00 degrees. For values, 9000 < (ang) < 18000 ,the
    values for x and y appear to...
  8. Re: Writing to Program code space using Writecode command.A

    Darrel,

    Thanks for the tip. The routine works very well !

    - Martin
  9. Writing to Program code space using Writecode command.A

    Using a 18F26J11 device and having problems loading a byte or word into the program memory space. Program details below:

    #CONFIG
    CONFIG WDTEN = ON
    ...
  10. Replies
    2
    Views
    3,583

    Re: MAPLAB X and PBP 2.60C

    Hi Steve.

    I installed the PBP3 demo and have it now integrated with MPLAB X except for the syntax highlighting feature. I have the plugin for PBP installed though but no highlighting showing up....
  11. Replies
    2
    Views
    3,583

    MAPLAB X and PBP 2.60C

    I have installed MPLAB X and have downloaded the MPLAB X plugin and installed into MPLAB X for PBP language highlighting. I do not see any context highlighting. Can this be done with PBP 2.60C or...
  12. Replies
    12
    Views
    7,792

    Re: ArrayRead question

    Can someone inform me of the full name of the .LIB file being referred to.

    - Martin
  13. Replies
    5
    Views
    5,761

    Re: HEX byte to ASCII output...

    John,
    The sensor has .5 degree resolution. You can store INTTEMP.LOWBYTE into a NEW VAR of length WORD then multiply the new variable by 5. In your example 49 X 5 is 245. HEX "31" actually...
  14. Re: Capacitive Touch Button by using ADC channel (the CVD system)

    Ero

    GPIO.2 must remain an input all the time. Tie this input to Vcc. Tell the ADC to select GPIO.2 input pin as an analog input to charge the C_hold cap.

    - Martin
  15. Replies
    14
    Views
    14,474

    Re: Simple Photodiode On/Off circuit

    Bodgetts

    There are a lot of ambient noise sources these days. TV remotes use a modulation frequency of around 53 KHz to modulate their controllers light source. An "on" signal is actually...
  16. Replies
    0
    Views
    25,247

    MPLAB ICD Memory Usage Gauge Issues

    When using View -> 1 Memory Usage Gauge, the amount of memory used for program memory seems correct although the amount of data memory is always zero. I have 1600 + bytes used in variables. Is there...
  17. Replies
    3
    Views
    3,270

    Re: Measuring battery impedance

    First take an open circuit voltage measurement of the battery. Let this equal Vo. Apply a variable load, Rload, until the voltage across the load is 1/2 (Vo). At this point Rload will be equal to the...
  18. Replies
    0
    Views
    2,148

    18F devices RTCC Interrupt

    Was wondering if DT_INTS-18 can support the the use of the RTCC interrupt source. I am using the 18F26J11 device and am thinking of using the RTCC interrupt source to branch to a RTCC interrupt...
  19. Replies
    4
    Views
    5,194

    Re: Compile problem with MPLAB IDE v. 8.73

    Thanks Steve

    I remember reading this thread a while back. Just did not sink in. All is working well now.
  20. Replies
    4
    Views
    5,194

    Re: Compile problem with MPLAB IDE v. 8.73

    Thanks Darrel as this fixed the compile error problem. Now trying to figure which configuration bits are not allowing debug to work. I had to modify the 18F26J11.inc file in my PBP directory to as...
  21. Replies
    4
    Views
    5,194

    Compile problem with MPLAB IDE v. 8.73

    I have a test program for the 18F26J11 device where I am utilizing interrupts. The code compiles fine when using Microcode Studio and the U2 programmer. The code also works as expected. When trying...
Results 1 to 21 of 21