I believe you are correct in your assumption.
Here is the LST file info:
All other memory blocks unused.
Program Memory Bytes Used: 16376
Program Memory Bytes Free: 8
Errors : 2
Warnings : 0...
Type: Posts; User: tjkelly; Keyword(s):
I believe you are correct in your assumption.
Here is the LST file info:
All other memory blocks unused.
Program Memory Bytes Used: 16376
Program Memory Bytes Free: 8
Errors : 2
Warnings : 0...
How can I determine the actual size of the code?
The last working version that I have is a 35K Hex file but I don't know the actual binary code size.
Thanks Charles that will certainly help me to get started.
As far as A/D readings are concerned, to get a relationship to altitude should I work backwards from the formula:
P = 0.0039 * ADval +...
Everything was going great until I got the following error using MPLAB V8.80 free version, PBP 2.60c, Long version of compiler.
ERROR: Unable to execute mpasmwin.Error[126] C:\PBP\PBPPI18L.LIB 733...
I am trying to understand from examples using Lookup2 on this forum how to construct a lookup table to determine altitude from my MPX6115 pressure sensor.
Here iwhat I have so far:
1. I am...
Thanks for all the advice.
I have successfully got it all to work even with a circulating TX buffer that was a pain to get working correctly but I finally got it.
OK, after using DT Interrupts to implement TX_INT, I can see that immediately upon enabling the interrupt, I get an interrupt due to TXIF being set (TXREG is empty).
This would indicate to me that...
Yesterday I successfully implemented UART RX interrupts using DT Interrupts.
As far as TX interrupts go, my plan is to use ArrayWrite within my main program to write string messages and A/D...
Problem solved.
74LVC126A was a bad part.
Replaced it and still couldn't write the Flash.
Turned out the Flash is write protected by default upon bootup.
I have designed and had a circuit board built that interfaces an 18F2420 running at 5V to a 25VF032 SPI Flash.
To allow the 2 voltages to mingle I am using a 74LVC126A in between as a level...
I'm not sure about the distance but am guessing about a foot apart.
I am working on a joint project with another programmer in another area to communicate some data between our PIC processors.
We have chosen serial comm to do this. Can we simply connect the TTL...
Yeah, what a dumb mistake on my part. I had forgotten about the sign bit being lost resulting in only 31 bits. Thanks.
I am compiling this with the long version of PBP and using an 18F2420.
Why do I get the result of the division as shown below?
I expected it to be 0xC455A
P var Long
current_voltage var Word
I made a mistake in my description above. From the datasheet:
"In either case, when the conversion is completed, the GO/DONE bit is cleared, the ADIF flag is set and the A/D begins sampling the...
I am using the 18F2420 and a variation of the DT_Analog routines where I am writing the registers directly to perform oversampled A/D on multiple channels in succession.
From the datasheet, when...
OK, after a lot of trial and error and finally getting a scope to look at some signals I determined what was going on. In the code below I found that I have to put a small delay (Pauseus 25) after...
I havent used the SHIFTOUT/SHIFTIN commands but do you need to specify the MODE in your EEREAD routine?
SHIFTOUT SO, SCK, , [$03, BLOCK1,ADDR.byte1,addr.byte0]
It is specified as MSBFIRST...
I am using a PIC18F2420 with a Microchip 25LC1024 128k x 8 EEPROM.
To get my technique down on using the MSSP I wrote the test code below to write data to the first 2 locations in the EEPROM then to...