Some observations. It seems the #CONFIG and #ENDCONFIG can be in column 1 but all the other values must be indented.
When I hit 'compile program' the code all compiles but when I check the CONFIG...
Type: Posts; User: BrianT; Keyword(s):
Some observations. It seems the #CONFIG and #ENDCONFIG can be in column 1 but all the other values must be indented.
When I hit 'compile program' the code all compiles but when I check the CONFIG...
Hi Richard,
Thanks for your time in looking at this. I am using a scope so 10 mS is very visible. I use the melabs U2 USB programmer and manually set the config fuses as per the table at the top...
I have some boards I need to test before committing labour and some expensive peripherals. I have changed the thread name as the older one was getting off the track I thought.
I have partly...
1k with high brightness LEDs is plenty.
I think the problem is a missing register definition somewhere but I can't find it.
Cheers
BrianT
Thanks for the tip. I tried LATB.0 and it makes no difference.
The LED polarity is correct. With the MCU removed, the LED lights when 5V is applied to PortB.0
I am trying to get a PIC18F4620 to blink a LED.
I think I have enough hardware bit I cannot get it to work.
'****************************************************************
' Name ...
Thanks Henrik.
Your approach works but I call the 'SendThis' subroutine over 2000 times per loop, from different parts of the code, so I was trying to avoid all the additional "If Abort = 1 then...
I need a fast subroutine to transmit a character, increment the CheckSum and check if a Reset "R" command has come in.
If the "R" is found I want to immediately jump back to the start of the sending...
I am using PBP3.0.1.4 with MCSPX 5.0.0.5
I set the config state through the drop down [C] button that pops up whenever I do a 'compile/program'. There is no choice to set WDT_ON_2H.
Is...
Something else is needed though. The next code snip hangs at the SLEEP line. WDTCON = 1 turns the SoftWDT on but that does not stop the hang..
</>
read 47, snooze.byte0
read 48,...
I cannot get my PIC18F4620 to wake from sleep. The code and the configuration settings are below. It is such a simple program but obviously I am missing some necessary register setting.
All...
Search the web,
Plenty of hits on "digital calliper protocol"
http://www.yadro.de/digital-scale/protocol.html
HTH
BrianT
I have had this problem intermittently for the last 2 years at least. David Barker had nothing constructive to say when I queried him. I notice that if I catch the error message immediately, I can...
How can I move MCSPX and PBP3 from a failing WIN XP computer that crashes every few minutes to a newer WIN 7 PC. I want to preserve my fully licensed code.
Any pointers gratefully received.
...
I have scanned the PIC18F4620 datasheet and the PBP3 manual and I can't find a description of the bit order used by the HSEROUT [A] command. Does it send A.0 first or A.7? I know I could set up a...
My ignorance is on clear display here so please be gentle.
I have a system of two PIC16F88 and three 18F4620 which all chatter amongst themselves over a multiwire parallel bus. Some of the code...
I have 6 PICs chattering amongst themselves in a gas mixer. The comms is cable based, not wireless, but there are similarities. I found I had to send a number of preamble characters to get the...
Hi Ardhuru,
Thanks for the tip but I am not sure I can use it. On a scope I can see Vpp jumps from zero to about 14 volts about 100 microseconds before switched Vdd comes up. Is that what you...
I had a similar error recently. It was caused by a DEBUG statement that was missing a comma.
I had intended the line to be
DEBUG 13, 10, "text here", 13, 10 but it got entered as
DEBUG 13, 10,...
Here is a snip that uses a lookdown table with linear interpolation between key values. It has had a lot of junk snipped out but it comes from a running program using a PIC16F88.
HTH
Brian
...
I can program fresh SMD PIC12F675 with the melabs U2 USB programmer via the melabs 8/14 pin programming adapter but that assumes loose chips before soldering to the board. I have my candle board set...
I have a simple LED candle simulator used in a stage musical. I built a dozen of them 3 years ago and they worked a treat. I went to build some more with newer brighter LEDs but the old code in the...
There is a simpler way.
All the necessary information is in the .LST file. You need to search for "Argument out of range" and then scroll up many pages until you find the PBP statement that caused...
Thanks Darrel,
My .asm file has no line numbers so I opened a new file in MCSPX then copied and pasted the .asm file to the blank MCSPX file via NotePad. This gave me line numbering and sure enough...