Try this. Use LAT instead of PORT for outputs. Inputs must use PORT!
Tim.
'****************************************************************
'* Name : 18F26K20test.PBP ...
Type: Posts; User: timmers; Keyword(s):
Try this. Use LAT instead of PORT for outputs. Inputs must use PORT!
Tim.
'****************************************************************
'* Name : 18F26K20test.PBP ...
... unless you request a GOSUB.
IF condition = true THEN GOSUB subroutine
I am revising some old code and was wondering if there was an easier way to do this
PARAM1 VAR WORD
PARAM2 VAR WORD
COMMAND VAR BYTE
TX_BUFF VAR BYTE [20]
LEN VAR BYTE
Old code
...crashed again.
Thats it I am going to look at Fineline again.
Tim.
Problem signature:
Problem Event Name: APPCRASH
Application Name: CodeStudio.exe
Application Version: 4.0.0.0
I have to say, normally MCS is stable and I rarely get problems, but this job I'm on is currently compiling at 52k bytes and growing.
I may have to re-visit Norm's Fineline if it persists.
Tim.
Grrr. MCS keeps crashing. Any suggestions where to start looking?
Error report says-
Problem signature:
Problem Event Name: APPCRASH
Application Name: CodeStudio.exe
Application...
I have a motor with encoder and am servicing the PID loop at regular intervals continuosly.
To get a more accurate regulation, I wish to take the last 8 samples and compare them to an 8 times...
Hi Henrik,
Yes identical hardware, it just looks like PBP runs faster than PBPL!
Tim.
Update:
The PIC is sending the correct data on the TX pin with both compilations.
The problem is in the RS485 Tx enable line.
With PBPL, the PIC sends data out and after a 2mS delay, sets the...
Thanks for the responses, the typical values that exhibit a problem are
HEAD_OUT = 101
FUNC_OUT = 38
PAN_OUT = 0
TILT_OUT = 0
ZOOM_OUT = 1
FOCUS_OUT = 6
ERROR_OUT should calculate as 109...
When I compile a programme using PBPL, our product works absolutely fine. However, when I compile using PBP the product messes around and sends an incorrect checksum.
The programme does not use...
I am curious, Is there a way to put Basic code into HDL for an FPGA?
Thanks for your comments. The security aspect is concerning and I haven't decided yet on how to protect my hex files.
I think the next step is to connect my data reader to the RX TX lines and...
Eventually we would use it in future products requiring customer upgrades. At present it's a return to base upgrade.
I would like to get the *6K22 working first!
We use the 18F26K22 / 46K22's because they have two serial ports and are backwards compatible with the 16F876/877 which we used to use. (albeit the analogue/digital configuration has to change)
The...
- Legacy with older products!
We use the 18F*6K22 and 18F*431 almost exclusively. If we were starting afresh, then we probably would use a built in USB port.
I want to design into future products the ability for a customer to connect their product to a PC and run a upgrade file which re-programmes the product.
Having looked at the bootloader method, I...
One Logic16 ordered.
Thankyou Henrik.
Suggestions please for a serial monitor that can help me debug a project running at 562k5 baud (no it's not a typo 562,500 baud) with mixed parity.
I have an 18F26K22 communicating most of the time,...
Is the data input line (RX) idling low (9600 baud, inverted)? If not then then it will never time out!
Make sure you leave enough time at power up for the LCD to initialise, typically atleast 500mS. The Oled displays are alot quicker to react and I found the following defines worked ok
DEFINE...
When you enable SPEN it takes over both pins as you suspected.
Attached is a pdf schematic similar to Jose P's posting, but halving the number of transistors per channel.
Also need to add a TX BUSY bus to prevent collision. (Hold to ground when transmitting,...
I've had many problems with EEPROM write errors when using a 16F877 part on 3.3v power (20Mhz crystal). Worked fine at first, then deteriorated over time. Replacing with a LF part cured the problem....
Henrik,
We work entirely in PBP. For the top end motor control and move profiling we currently use the Maxon EPOS2 controller, but we have better control at the very slow speeds than Maxon. We are...