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...
Type: Posts; User: readitaloud; Keyword(s):
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...
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
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...
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...
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
...
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...
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...
Darrel,
Thanks for the tip. The routine works very well !
- Martin
Using a 18F26J11 device and having problems loading a byte or word into the program memory space. Program details below:
#CONFIG
CONFIG WDTEN = ON
...
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....
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...
Can someone inform me of the full name of the .LIB file being referred to.
- Martin
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...
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
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...
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...
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...
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...
Thanks Steve
I remember reading this thread a while back. Just did not sink in. All is working well now.
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...
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...